diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java index ddbdac942e..c72cf60947 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java @@ -31,15 +31,15 @@ public void visit(V element) { }); } - default T accept(io.kubernetes.client.fluent.Visitor... visitors) { + default T accept(Visitor... visitors) { return accept(Collections.emptyList(), visitors); } - default T accept(List> path,io.kubernetes.client.fluent.Visitor... visitors) { + default T accept(List> path,Visitor... visitors) { return accept(path, "", visitors); } - default T accept(List> path,String currentKey,io.kubernetes.client.fluent.Visitor... visitors) { + default T accept(List> path,String currentKey,Visitor... visitors) { List sortedVisitor = new ArrayList<>(); for (Visitor visitor : visitors) { visitor = VisitorListener.wrap(visitor); diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java index e030bb4311..8e0b112e07 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java @@ -101,7 +101,7 @@ private static Class getClass(Type type) { } } - private static Optional getMatchingInterface(Class targetInterface,java.lang.reflect.Type... candidates) { + private static Optional getMatchingInterface(Class targetInterface,Type... candidates) { if (candidates == null || candidates.length == 0) { return Optional.empty(); } 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 c480f6f358..9cdf72e0a8 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class AbstractOpenApiSchemaFluent> extends BaseFluent{ +public class AbstractOpenApiSchemaFluent> extends BaseFluent{ public AbstractOpenApiSchemaFluent() { } @@ -22,8 +24,8 @@ public AbstractOpenApiSchemaFluent(AbstractOpenApiSchema instance) { protected void copyInstance(AbstractOpenApiSchema instance) { if (instance != null) { - this.withSchemaType(instance.getSchemaType()); - } + this.withSchemaType(instance.getSchemaType()); + } } public Boolean getIsNullable() { @@ -53,24 +55,41 @@ public boolean hasSchemaType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o; - if (!java.util.Objects.equals(isNullable, that.isNullable)) return false; - if (!java.util.Objects.equals(schemaType, that.schemaType)) return false; + if (!(Objects.equals(isNullable, that.isNullable))) { + return false; + } + if (!(Objects.equals(schemaType, that.schemaType))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(isNullable, schemaType, super.hashCode()); + return Objects.hash(isNullable, schemaType); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (isNullable != null) { sb.append("isNullable:"); sb.append(isNullable + ","); } - if (schemaType != null) { sb.append("schemaType:"); sb.append(schemaType); } + if (!(isNullable == null)) { + sb.append("isNullable:"); + sb.append(isNullable); + sb.append(","); + } + if (!(schemaType == null)) { + sb.append("schemaType:"); + sb.append(schemaType); + } sb.append("}"); return sb.toString(); } 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 8eb0f4d786..eca6dffc4a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class AdmissionregistrationV1ServiceReferenceBuilder extends AdmissionregistrationV1ServiceReferenceFluent implements VisitableBuilder{ public AdmissionregistrationV1ServiceReferenceBuilder() { this(new AdmissionregistrationV1ServiceReference()); 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 9796629ebd..55c608ab91 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class AdmissionregistrationV1ServiceReferenceFluent> extends BaseFluent{ +public class AdmissionregistrationV1ServiceReferenceFluent> extends BaseFluent{ public AdmissionregistrationV1ServiceReferenceFluent() { } @@ -23,13 +25,13 @@ public AdmissionregistrationV1ServiceReferenceFluent(AdmissionregistrationV1Serv private Integer port; protected void copyInstance(AdmissionregistrationV1ServiceReference instance) { - instance = (instance != null ? instance : new AdmissionregistrationV1ServiceReference()); + instance = instance != null ? instance : new AdmissionregistrationV1ServiceReference(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withPath(instance.getPath()); - this.withPort(instance.getPort()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withPath(instance.getPath()); + this.withPort(instance.getPort()); + } } public String getName() { @@ -85,28 +87,57 @@ public boolean hasPort() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } AdmissionregistrationV1ServiceReferenceFluent that = (AdmissionregistrationV1ServiceReferenceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); + return Objects.hash(name, namespace, path, port); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } 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 5aa59fe2a1..9194d78266 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class AdmissionregistrationV1WebhookClientConfigBuilder extends AdmissionregistrationV1WebhookClientConfigFluent implements VisitableBuilder{ public AdmissionregistrationV1WebhookClientConfigBuilder() { this(new AdmissionregistrationV1WebhookClientConfig()); 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 d84420cd45..ec13e2a00f 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.lang.Byte; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class AdmissionregistrationV1WebhookClientConfigFluent> extends BaseFluent{ +public class AdmissionregistrationV1WebhookClientConfigFluent> extends BaseFluent{ public AdmissionregistrationV1WebhookClientConfigFluent() { } @@ -26,12 +29,12 @@ public AdmissionregistrationV1WebhookClientConfigFluent(AdmissionregistrationV1W private String url; protected void copyInstance(AdmissionregistrationV1WebhookClientConfig instance) { - instance = (instance != null ? instance : new AdmissionregistrationV1WebhookClientConfig()); + instance = instance != null ? instance : new AdmissionregistrationV1WebhookClientConfig(); if (instance != null) { - this.withCaBundle(instance.getCaBundle()); - this.withService(instance.getService()); - this.withUrl(instance.getUrl()); - } + this.withCaBundle(instance.getCaBundle()); + this.withService(instance.getService()); + this.withUrl(instance.getUrl()); + } } public A withCaBundle(byte... caBundle) { @@ -48,12 +51,12 @@ public A withCaBundle(byte... caBundle) { } public byte[] getCaBundle() { - int size = caBundle != null ? caBundle.size() : 0;; - byte[] result = new byte[size];; + int size = caBundle != null ? caBundle.size() : 0; + byte[] result = new byte[size]; if (size == 0) { return result; } - int index = 0;; + int index = 0; for (byte item : caBundle) { result[index++] = item; } @@ -61,38 +64,63 @@ public byte[] getCaBundle() { } public A addToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } this.caBundle.add(index, item); - return (A)this; + return (A) this; } public A setToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - this.caBundle.set(index, item); return (A)this; + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.set(index, item); + return (A) this; } - public A addToCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + public A addToCaBundle(Byte... items) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; } public A addAllToCaBundle(Collection items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; } - public A removeFromCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + public A removeFromCaBundle(Byte... items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } public A removeAllFromCaBundle(Collection items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } public boolean hasCaBundle() { - return this.caBundle != null && !this.caBundle.isEmpty(); + return this.caBundle != null && !(this.caBundle.isEmpty()); } public AdmissionregistrationV1ServiceReference buildService() { @@ -124,15 +152,15 @@ public ServiceNested withNewServiceLike(AdmissionregistrationV1ServiceReferen } public ServiceNested editService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(null)); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public ServiceNested editOrNewService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(new AdmissionregistrationV1ServiceReferenceBuilder().build())); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new AdmissionregistrationV1ServiceReferenceBuilder().build())); } public ServiceNested editOrNewServiceLike(AdmissionregistrationV1ServiceReference item) { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(item)); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } public String getUrl() { @@ -149,26 +177,49 @@ public boolean hasUrl() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } AdmissionregistrationV1WebhookClientConfigFluent that = (AdmissionregistrationV1WebhookClientConfigFluent) o; - if (!java.util.Objects.equals(caBundle, that.caBundle)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; - if (!java.util.Objects.equals(url, that.url)) return false; + if (!(Objects.equals(caBundle, that.caBundle))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } + if (!(Objects.equals(url, that.url))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(caBundle, service, url, super.hashCode()); + return Objects.hash(caBundle, service, url); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); } - if (service != null) { sb.append("service:"); sb.append(service + ","); } - if (url != null) { sb.append("url:"); sb.append(url); } + if (!(caBundle == null) && !(caBundle.isEmpty())) { + sb.append("caBundle:"); + sb.append(caBundle); + sb.append(","); + } + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + sb.append(","); + } + if (!(url == null)) { + sb.append("url:"); + sb.append(url); + } sb.append("}"); return sb.toString(); } 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 8a71cbaa1a..ec047f0367 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class ApiextensionsV1ServiceReferenceBuilder extends ApiextensionsV1ServiceReferenceFluent implements VisitableBuilder{ public ApiextensionsV1ServiceReferenceBuilder() { this(new ApiextensionsV1ServiceReference()); 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 1edcd968da..305d38937c 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class ApiextensionsV1ServiceReferenceFluent> extends BaseFluent{ +public class ApiextensionsV1ServiceReferenceFluent> extends BaseFluent{ public ApiextensionsV1ServiceReferenceFluent() { } @@ -23,13 +25,13 @@ public ApiextensionsV1ServiceReferenceFluent(ApiextensionsV1ServiceReference ins private Integer port; protected void copyInstance(ApiextensionsV1ServiceReference instance) { - instance = (instance != null ? instance : new ApiextensionsV1ServiceReference()); + instance = instance != null ? instance : new ApiextensionsV1ServiceReference(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withPath(instance.getPath()); - this.withPort(instance.getPort()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withPath(instance.getPath()); + this.withPort(instance.getPort()); + } } public String getName() { @@ -85,28 +87,57 @@ public boolean hasPort() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } ApiextensionsV1ServiceReferenceFluent that = (ApiextensionsV1ServiceReferenceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); + return Objects.hash(name, namespace, path, port); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } 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 a49e24858f..5f95510b4b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class ApiextensionsV1WebhookClientConfigBuilder extends ApiextensionsV1WebhookClientConfigFluent implements VisitableBuilder{ public ApiextensionsV1WebhookClientConfigBuilder() { this(new ApiextensionsV1WebhookClientConfig()); 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 9ac6fd8474..1b0f807827 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.lang.Byte; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class ApiextensionsV1WebhookClientConfigFluent> extends BaseFluent{ +public class ApiextensionsV1WebhookClientConfigFluent> extends BaseFluent{ public ApiextensionsV1WebhookClientConfigFluent() { } @@ -26,12 +29,12 @@ public ApiextensionsV1WebhookClientConfigFluent(ApiextensionsV1WebhookClientConf private String url; protected void copyInstance(ApiextensionsV1WebhookClientConfig instance) { - instance = (instance != null ? instance : new ApiextensionsV1WebhookClientConfig()); + instance = instance != null ? instance : new ApiextensionsV1WebhookClientConfig(); if (instance != null) { - this.withCaBundle(instance.getCaBundle()); - this.withService(instance.getService()); - this.withUrl(instance.getUrl()); - } + this.withCaBundle(instance.getCaBundle()); + this.withService(instance.getService()); + this.withUrl(instance.getUrl()); + } } public A withCaBundle(byte... caBundle) { @@ -48,12 +51,12 @@ public A withCaBundle(byte... caBundle) { } public byte[] getCaBundle() { - int size = caBundle != null ? caBundle.size() : 0;; - byte[] result = new byte[size];; + int size = caBundle != null ? caBundle.size() : 0; + byte[] result = new byte[size]; if (size == 0) { return result; } - int index = 0;; + int index = 0; for (byte item : caBundle) { result[index++] = item; } @@ -61,38 +64,63 @@ public byte[] getCaBundle() { } public A addToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } this.caBundle.add(index, item); - return (A)this; + return (A) this; } public A setToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - this.caBundle.set(index, item); return (A)this; + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.set(index, item); + return (A) this; } - public A addToCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + public A addToCaBundle(Byte... items) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; } public A addAllToCaBundle(Collection items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; } - public A removeFromCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + public A removeFromCaBundle(Byte... items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } public A removeAllFromCaBundle(Collection items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } public boolean hasCaBundle() { - return this.caBundle != null && !this.caBundle.isEmpty(); + return this.caBundle != null && !(this.caBundle.isEmpty()); } public ApiextensionsV1ServiceReference buildService() { @@ -124,15 +152,15 @@ public ServiceNested withNewServiceLike(ApiextensionsV1ServiceReference item) } public ServiceNested editService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(null)); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public ServiceNested editOrNewService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(new ApiextensionsV1ServiceReferenceBuilder().build())); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new ApiextensionsV1ServiceReferenceBuilder().build())); } public ServiceNested editOrNewServiceLike(ApiextensionsV1ServiceReference item) { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(item)); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } public String getUrl() { @@ -149,26 +177,49 @@ public boolean hasUrl() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } ApiextensionsV1WebhookClientConfigFluent that = (ApiextensionsV1WebhookClientConfigFluent) o; - if (!java.util.Objects.equals(caBundle, that.caBundle)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; - if (!java.util.Objects.equals(url, that.url)) return false; + if (!(Objects.equals(caBundle, that.caBundle))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } + if (!(Objects.equals(url, that.url))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(caBundle, service, url, super.hashCode()); + return Objects.hash(caBundle, service, url); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); } - if (service != null) { sb.append("service:"); sb.append(service + ","); } - if (url != null) { sb.append("url:"); sb.append(url); } + if (!(caBundle == null) && !(caBundle.isEmpty())) { + sb.append("caBundle:"); + sb.append(caBundle); + sb.append(","); + } + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + sb.append(","); + } + if (!(url == null)) { + sb.append("url:"); + sb.append(url); + } sb.append("}"); return sb.toString(); } 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 74490c67a7..03726a0804 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class ApiregistrationV1ServiceReferenceBuilder extends ApiregistrationV1ServiceReferenceFluent implements VisitableBuilder{ public ApiregistrationV1ServiceReferenceBuilder() { this(new ApiregistrationV1ServiceReference()); 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 066259ab41..31137c748b 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class ApiregistrationV1ServiceReferenceFluent> extends BaseFluent{ +public class ApiregistrationV1ServiceReferenceFluent> extends BaseFluent{ public ApiregistrationV1ServiceReferenceFluent() { } @@ -22,12 +24,12 @@ public ApiregistrationV1ServiceReferenceFluent(ApiregistrationV1ServiceReference private Integer port; protected void copyInstance(ApiregistrationV1ServiceReference instance) { - instance = (instance != null ? instance : new ApiregistrationV1ServiceReference()); + instance = instance != null ? instance : new ApiregistrationV1ServiceReference(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withPort(instance.getPort()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withPort(instance.getPort()); + } } public String getName() { @@ -70,26 +72,49 @@ public boolean hasPort() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } ApiregistrationV1ServiceReferenceFluent that = (ApiregistrationV1ServiceReferenceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, namespace, port, super.hashCode()); + return Objects.hash(name, namespace, port); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } 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 c0595e25c9..80d65770a5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class AuthenticationV1TokenRequestBuilder extends AuthenticationV1TokenRequestFluent implements VisitableBuilder{ public AuthenticationV1TokenRequestBuilder() { this(new AuthenticationV1TokenRequest()); 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 d1a26bbc3b..fb3cd7cac4 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class AuthenticationV1TokenRequestFluent> extends BaseFluent{ +public class AuthenticationV1TokenRequestFluent> extends BaseFluent{ public AuthenticationV1TokenRequestFluent() { } @@ -24,14 +27,14 @@ public AuthenticationV1TokenRequestFluent(AuthenticationV1TokenRequest instance) private V1TokenRequestStatusBuilder status; protected void copyInstance(AuthenticationV1TokenRequest instance) { - instance = (instance != null ? instance : new AuthenticationV1TokenRequest()); + instance = instance != null ? instance : new AuthenticationV1TokenRequest(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1TokenRequestSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1TokenRequestSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1TokenRequestSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1TokenRequestSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1TokenRequestSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1TokenRequestStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1TokenRequestStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1TokenRequestStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1TokenRequestStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1TokenRequestStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } AuthenticationV1TokenRequestFluent that = (AuthenticationV1TokenRequestFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 e1661163b0..5c80fd4287 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class CoreV1EndpointPortBuilder extends CoreV1EndpointPortFluent implements VisitableBuilder{ public CoreV1EndpointPortBuilder() { this(new CoreV1EndpointPort()); 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 9c4214ea25..8f63e16612 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class CoreV1EndpointPortFluent> extends BaseFluent{ +public class CoreV1EndpointPortFluent> extends BaseFluent{ public CoreV1EndpointPortFluent() { } @@ -23,13 +25,13 @@ public CoreV1EndpointPortFluent(CoreV1EndpointPort instance) { private String protocol; protected void copyInstance(CoreV1EndpointPort instance) { - instance = (instance != null ? instance : new CoreV1EndpointPort()); + instance = instance != null ? instance : new CoreV1EndpointPort(); if (instance != null) { - this.withAppProtocol(instance.getAppProtocol()); - this.withName(instance.getName()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } + this.withAppProtocol(instance.getAppProtocol()); + this.withName(instance.getName()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } public String getAppProtocol() { @@ -85,28 +87,57 @@ public boolean hasProtocol() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } CoreV1EndpointPortFluent that = (CoreV1EndpointPortFluent) o; - if (!java.util.Objects.equals(appProtocol, that.appProtocol)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; + if (!(Objects.equals(appProtocol, that.appProtocol))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); + return Objects.hash(appProtocol, name, port, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (appProtocol != null) { sb.append("appProtocol:"); sb.append(appProtocol + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(appProtocol == null)) { + sb.append("appProtocol:"); + sb.append(appProtocol); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } 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 6def31bdb1..c54b36b1b7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class CoreV1EventBuilder extends CoreV1EventFluent implements VisitableBuilder{ public CoreV1EventBuilder() { this(new CoreV1Event()); 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 080cd47540..e3a41e7b5e 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 @@ -1,18 +1,21 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; import java.lang.Integer; import java.time.OffsetDateTime; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class CoreV1EventFluent> extends BaseFluent{ +public class CoreV1EventFluent> extends BaseFluent{ public CoreV1EventFluent() { } @@ -38,26 +41,26 @@ public CoreV1EventFluent(CoreV1Event instance) { private String type; protected void copyInstance(CoreV1Event instance) { - instance = (instance != null ? instance : new CoreV1Event()); + instance = instance != null ? instance : new CoreV1Event(); if (instance != null) { - this.withAction(instance.getAction()); - this.withApiVersion(instance.getApiVersion()); - this.withCount(instance.getCount()); - this.withEventTime(instance.getEventTime()); - this.withFirstTimestamp(instance.getFirstTimestamp()); - this.withInvolvedObject(instance.getInvolvedObject()); - this.withKind(instance.getKind()); - this.withLastTimestamp(instance.getLastTimestamp()); - this.withMessage(instance.getMessage()); - this.withMetadata(instance.getMetadata()); - this.withReason(instance.getReason()); - this.withRelated(instance.getRelated()); - this.withReportingComponent(instance.getReportingComponent()); - this.withReportingInstance(instance.getReportingInstance()); - this.withSeries(instance.getSeries()); - this.withSource(instance.getSource()); - this.withType(instance.getType()); - } + this.withAction(instance.getAction()); + this.withApiVersion(instance.getApiVersion()); + this.withCount(instance.getCount()); + this.withEventTime(instance.getEventTime()); + this.withFirstTimestamp(instance.getFirstTimestamp()); + this.withInvolvedObject(instance.getInvolvedObject()); + this.withKind(instance.getKind()); + this.withLastTimestamp(instance.getLastTimestamp()); + this.withMessage(instance.getMessage()); + this.withMetadata(instance.getMetadata()); + this.withReason(instance.getReason()); + this.withRelated(instance.getRelated()); + this.withReportingComponent(instance.getReportingComponent()); + this.withReportingInstance(instance.getReportingInstance()); + this.withSeries(instance.getSeries()); + this.withSource(instance.getSource()); + this.withType(instance.getType()); + } } public String getAction() { @@ -154,15 +157,15 @@ public InvolvedObjectNested withNewInvolvedObjectLike(V1ObjectReference item) } public InvolvedObjectNested editInvolvedObject() { - return withNewInvolvedObjectLike(java.util.Optional.ofNullable(buildInvolvedObject()).orElse(null)); + return this.withNewInvolvedObjectLike(Optional.ofNullable(this.buildInvolvedObject()).orElse(null)); } public InvolvedObjectNested editOrNewInvolvedObject() { - return withNewInvolvedObjectLike(java.util.Optional.ofNullable(buildInvolvedObject()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewInvolvedObjectLike(Optional.ofNullable(this.buildInvolvedObject()).orElse(new V1ObjectReferenceBuilder().build())); } public InvolvedObjectNested editOrNewInvolvedObjectLike(V1ObjectReference item) { - return withNewInvolvedObjectLike(java.util.Optional.ofNullable(buildInvolvedObject()).orElse(item)); + return this.withNewInvolvedObjectLike(Optional.ofNullable(this.buildInvolvedObject()).orElse(item)); } public String getKind() { @@ -233,15 +236,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public String getReason() { @@ -286,15 +289,15 @@ public RelatedNested withNewRelatedLike(V1ObjectReference item) { } public RelatedNested editRelated() { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(null)); + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(null)); } public RelatedNested editOrNewRelated() { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); } public RelatedNested editOrNewRelatedLike(V1ObjectReference item) { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(item)); + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(item)); } public String getReportingComponent() { @@ -352,15 +355,15 @@ public SeriesNested withNewSeriesLike(CoreV1EventSeries item) { } public SeriesNested editSeries() { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(null)); + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(null)); } public SeriesNested editOrNewSeries() { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(new CoreV1EventSeriesBuilder().build())); + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(new CoreV1EventSeriesBuilder().build())); } public SeriesNested editOrNewSeriesLike(CoreV1EventSeries item) { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(item)); + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(item)); } public V1EventSource buildSource() { @@ -392,15 +395,15 @@ public SourceNested withNewSourceLike(V1EventSource item) { } public SourceNested editSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(null)); + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(null)); } public SourceNested editOrNewSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(new V1EventSourceBuilder().build())); + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(new V1EventSourceBuilder().build())); } public SourceNested editOrNewSourceLike(V1EventSource item) { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(item)); + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(item)); } public String getType() { @@ -417,54 +420,161 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } CoreV1EventFluent that = (CoreV1EventFluent) o; - if (!java.util.Objects.equals(action, that.action)) return false; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(count, that.count)) return false; - if (!java.util.Objects.equals(eventTime, that.eventTime)) return false; - if (!java.util.Objects.equals(firstTimestamp, that.firstTimestamp)) return false; - if (!java.util.Objects.equals(involvedObject, that.involvedObject)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(lastTimestamp, that.lastTimestamp)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(related, that.related)) return false; - if (!java.util.Objects.equals(reportingComponent, that.reportingComponent)) return false; - if (!java.util.Objects.equals(reportingInstance, that.reportingInstance)) return false; - if (!java.util.Objects.equals(series, that.series)) return false; - if (!java.util.Objects.equals(source, that.source)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(action, that.action))) { + return false; + } + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(eventTime, that.eventTime))) { + return false; + } + if (!(Objects.equals(firstTimestamp, that.firstTimestamp))) { + return false; + } + if (!(Objects.equals(involvedObject, that.involvedObject))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(lastTimestamp, that.lastTimestamp))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(related, that.related))) { + return false; + } + if (!(Objects.equals(reportingComponent, that.reportingComponent))) { + return false; + } + if (!(Objects.equals(reportingInstance, that.reportingInstance))) { + return false; + } + if (!(Objects.equals(series, that.series))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(action, apiVersion, count, eventTime, firstTimestamp, involvedObject, kind, lastTimestamp, message, metadata, reason, related, reportingComponent, reportingInstance, series, source, type, super.hashCode()); + return Objects.hash(action, apiVersion, count, eventTime, firstTimestamp, involvedObject, kind, lastTimestamp, message, metadata, reason, related, reportingComponent, reportingInstance, series, source, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (action != null) { sb.append("action:"); sb.append(action + ","); } - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (count != null) { sb.append("count:"); sb.append(count + ","); } - if (eventTime != null) { sb.append("eventTime:"); sb.append(eventTime + ","); } - if (firstTimestamp != null) { sb.append("firstTimestamp:"); sb.append(firstTimestamp + ","); } - if (involvedObject != null) { sb.append("involvedObject:"); sb.append(involvedObject + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (lastTimestamp != null) { sb.append("lastTimestamp:"); sb.append(lastTimestamp + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (related != null) { sb.append("related:"); sb.append(related + ","); } - if (reportingComponent != null) { sb.append("reportingComponent:"); sb.append(reportingComponent + ","); } - if (reportingInstance != null) { sb.append("reportingInstance:"); sb.append(reportingInstance + ","); } - if (series != null) { sb.append("series:"); sb.append(series + ","); } - if (source != null) { sb.append("source:"); sb.append(source + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(action == null)) { + sb.append("action:"); + sb.append(action); + sb.append(","); + } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(eventTime == null)) { + sb.append("eventTime:"); + sb.append(eventTime); + sb.append(","); + } + if (!(firstTimestamp == null)) { + sb.append("firstTimestamp:"); + sb.append(firstTimestamp); + sb.append(","); + } + if (!(involvedObject == null)) { + sb.append("involvedObject:"); + sb.append(involvedObject); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(lastTimestamp == null)) { + sb.append("lastTimestamp:"); + sb.append(lastTimestamp); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(related == null)) { + sb.append("related:"); + sb.append(related); + sb.append(","); + } + if (!(reportingComponent == null)) { + sb.append("reportingComponent:"); + sb.append(reportingComponent); + sb.append(","); + } + if (!(reportingInstance == null)) { + sb.append("reportingInstance:"); + sb.append(reportingInstance); + sb.append(","); + } + if (!(series == null)) { + sb.append("series:"); + sb.append(series); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 00a567cc7d..2130cae666 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class CoreV1EventListBuilder extends CoreV1EventListFluent implements VisitableBuilder{ public CoreV1EventListBuilder() { this(new CoreV1EventList()); 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 de6986876b..9083064fa2 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class CoreV1EventListFluent> extends BaseFluent{ +public class CoreV1EventListFluent> extends BaseFluent{ public CoreV1EventListFluent() { } @@ -29,13 +32,13 @@ public CoreV1EventListFluent(CoreV1EventList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(CoreV1EventList instance) { - instance = (instance != null ? instance : new CoreV1EventList()); + instance = instance != null ? instance : new CoreV1EventList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,CoreV1Event item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } CoreV1EventBuilder builder = new CoreV1EventBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,CoreV1Event item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,CoreV1Event item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } CoreV1EventBuilder builder = new CoreV1EventBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,CoreV1Event item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { - if (this.items == null) {this.items = new ArrayList();} - for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(CoreV1Event... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { - if (this.items == null) return (A)this; - for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(CoreV1Event... items) { + if (this.items == null) { + return (A) this; + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - CoreV1EventBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + CoreV1EventBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { + public A withItems(CoreV1Event... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,CoreV1Event item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } CoreV1EventListFluent that = (CoreV1EventListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends CoreV1EventFluent> implements int index; public N and() { - return (N) CoreV1EventListFluent.this.setToItems(index,builder.build()); + return (N) CoreV1EventListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 63472fb6c0..124e6596d6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class CoreV1EventSeriesBuilder extends CoreV1EventSeriesFluent implements VisitableBuilder{ public CoreV1EventSeriesBuilder() { this(new CoreV1EventSeries()); 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 62557be302..80b09bef93 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class CoreV1EventSeriesFluent> extends BaseFluent{ +public class CoreV1EventSeriesFluent> extends BaseFluent{ public CoreV1EventSeriesFluent() { } @@ -22,11 +24,11 @@ public CoreV1EventSeriesFluent(CoreV1EventSeries instance) { private OffsetDateTime lastObservedTime; protected void copyInstance(CoreV1EventSeries instance) { - instance = (instance != null ? instance : new CoreV1EventSeries()); + instance = instance != null ? instance : new CoreV1EventSeries(); if (instance != null) { - this.withCount(instance.getCount()); - this.withLastObservedTime(instance.getLastObservedTime()); - } + this.withCount(instance.getCount()); + this.withLastObservedTime(instance.getLastObservedTime()); + } } public Integer getCount() { @@ -56,24 +58,41 @@ public boolean hasLastObservedTime() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } CoreV1EventSeriesFluent that = (CoreV1EventSeriesFluent) o; - if (!java.util.Objects.equals(count, that.count)) return false; - if (!java.util.Objects.equals(lastObservedTime, that.lastObservedTime)) return false; + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(lastObservedTime, that.lastObservedTime))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(count, lastObservedTime, super.hashCode()); + return Objects.hash(count, lastObservedTime); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (count != null) { sb.append("count:"); sb.append(count + ","); } - if (lastObservedTime != null) { sb.append("lastObservedTime:"); sb.append(lastObservedTime); } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(lastObservedTime == null)) { + sb.append("lastObservedTime:"); + sb.append(lastObservedTime); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..c245452fcf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class CoreV1ResourceClaimBuilder extends CoreV1ResourceClaimFluent implements VisitableBuilder{ + public CoreV1ResourceClaimBuilder() { + this(new CoreV1ResourceClaim()); + } + + public CoreV1ResourceClaimBuilder(CoreV1ResourceClaimFluent fluent) { + this(fluent, new CoreV1ResourceClaim()); + } + + public CoreV1ResourceClaimBuilder(CoreV1ResourceClaimFluent fluent,CoreV1ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public CoreV1ResourceClaimBuilder(CoreV1ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + CoreV1ResourceClaimFluent fluent; + + public CoreV1ResourceClaim build() { + CoreV1ResourceClaim buildable = new CoreV1ResourceClaim(); + buildable.setName(fluent.getName()); + buildable.setRequest(fluent.getRequest()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..c3e6dce459 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java @@ -0,0 +1,99 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class CoreV1ResourceClaimFluent> extends BaseFluent{ + public CoreV1ResourceClaimFluent() { + } + + public CoreV1ResourceClaimFluent(CoreV1ResourceClaim instance) { + this.copyInstance(instance); + } + private String name; + private String request; + + protected void copyInstance(CoreV1ResourceClaim instance) { + instance = instance != null ? instance : new CoreV1ResourceClaim(); + if (instance != null) { + this.withName(instance.getName()); + this.withRequest(instance.getRequest()); + } + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getRequest() { + return this.request; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public boolean hasRequest() { + return this.request != 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; + } + CoreV1ResourceClaimFluent that = (CoreV1ResourceClaimFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(name, request); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(request == null)) { + sb.append("request:"); + sb.append(request); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file 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 89534de2a1..4f64e879e0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class DiscoveryV1EndpointPortBuilder extends DiscoveryV1EndpointPortFluent implements VisitableBuilder{ public DiscoveryV1EndpointPortBuilder() { this(new DiscoveryV1EndpointPort()); 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 38652a7d35..092df72a6c 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class DiscoveryV1EndpointPortFluent> extends BaseFluent{ +public class DiscoveryV1EndpointPortFluent> extends BaseFluent{ public DiscoveryV1EndpointPortFluent() { } @@ -23,13 +25,13 @@ public DiscoveryV1EndpointPortFluent(DiscoveryV1EndpointPort instance) { private String protocol; protected void copyInstance(DiscoveryV1EndpointPort instance) { - instance = (instance != null ? instance : new DiscoveryV1EndpointPort()); + instance = instance != null ? instance : new DiscoveryV1EndpointPort(); if (instance != null) { - this.withAppProtocol(instance.getAppProtocol()); - this.withName(instance.getName()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } + this.withAppProtocol(instance.getAppProtocol()); + this.withName(instance.getName()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } public String getAppProtocol() { @@ -85,28 +87,57 @@ public boolean hasProtocol() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } DiscoveryV1EndpointPortFluent that = (DiscoveryV1EndpointPortFluent) o; - if (!java.util.Objects.equals(appProtocol, that.appProtocol)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; + if (!(Objects.equals(appProtocol, that.appProtocol))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); + return Objects.hash(appProtocol, name, port, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (appProtocol != null) { sb.append("appProtocol:"); sb.append(appProtocol + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(appProtocol == null)) { + sb.append("appProtocol:"); + sb.append(appProtocol); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } 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 82c1140473..4f04f17d6d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class EventsV1EventBuilder extends EventsV1EventFluent implements VisitableBuilder{ public EventsV1EventBuilder() { this(new EventsV1Event()); 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 9bcc496a81..2100fa9cc7 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 @@ -1,18 +1,21 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; import java.lang.Integer; import java.time.OffsetDateTime; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class EventsV1EventFluent> extends BaseFluent{ +public class EventsV1EventFluent> extends BaseFluent{ public EventsV1EventFluent() { } @@ -38,26 +41,26 @@ public EventsV1EventFluent(EventsV1Event instance) { private String type; protected void copyInstance(EventsV1Event instance) { - instance = (instance != null ? instance : new EventsV1Event()); + instance = instance != null ? instance : new EventsV1Event(); if (instance != null) { - this.withAction(instance.getAction()); - this.withApiVersion(instance.getApiVersion()); - this.withDeprecatedCount(instance.getDeprecatedCount()); - this.withDeprecatedFirstTimestamp(instance.getDeprecatedFirstTimestamp()); - this.withDeprecatedLastTimestamp(instance.getDeprecatedLastTimestamp()); - this.withDeprecatedSource(instance.getDeprecatedSource()); - this.withEventTime(instance.getEventTime()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withNote(instance.getNote()); - this.withReason(instance.getReason()); - this.withRegarding(instance.getRegarding()); - this.withRelated(instance.getRelated()); - this.withReportingController(instance.getReportingController()); - this.withReportingInstance(instance.getReportingInstance()); - this.withSeries(instance.getSeries()); - this.withType(instance.getType()); - } + this.withAction(instance.getAction()); + this.withApiVersion(instance.getApiVersion()); + this.withDeprecatedCount(instance.getDeprecatedCount()); + this.withDeprecatedFirstTimestamp(instance.getDeprecatedFirstTimestamp()); + this.withDeprecatedLastTimestamp(instance.getDeprecatedLastTimestamp()); + this.withDeprecatedSource(instance.getDeprecatedSource()); + this.withEventTime(instance.getEventTime()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withNote(instance.getNote()); + this.withReason(instance.getReason()); + this.withRegarding(instance.getRegarding()); + this.withRelated(instance.getRelated()); + this.withReportingController(instance.getReportingController()); + this.withReportingInstance(instance.getReportingInstance()); + this.withSeries(instance.getSeries()); + this.withType(instance.getType()); + } } public String getAction() { @@ -154,15 +157,15 @@ public DeprecatedSourceNested withNewDeprecatedSourceLike(V1EventSource item) } public DeprecatedSourceNested editDeprecatedSource() { - return withNewDeprecatedSourceLike(java.util.Optional.ofNullable(buildDeprecatedSource()).orElse(null)); + return this.withNewDeprecatedSourceLike(Optional.ofNullable(this.buildDeprecatedSource()).orElse(null)); } public DeprecatedSourceNested editOrNewDeprecatedSource() { - return withNewDeprecatedSourceLike(java.util.Optional.ofNullable(buildDeprecatedSource()).orElse(new V1EventSourceBuilder().build())); + return this.withNewDeprecatedSourceLike(Optional.ofNullable(this.buildDeprecatedSource()).orElse(new V1EventSourceBuilder().build())); } public DeprecatedSourceNested editOrNewDeprecatedSourceLike(V1EventSource item) { - return withNewDeprecatedSourceLike(java.util.Optional.ofNullable(buildDeprecatedSource()).orElse(item)); + return this.withNewDeprecatedSourceLike(Optional.ofNullable(this.buildDeprecatedSource()).orElse(item)); } public OffsetDateTime getEventTime() { @@ -220,15 +223,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public String getNote() { @@ -286,15 +289,15 @@ public RegardingNested withNewRegardingLike(V1ObjectReference item) { } public RegardingNested editRegarding() { - return withNewRegardingLike(java.util.Optional.ofNullable(buildRegarding()).orElse(null)); + return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(null)); } public RegardingNested editOrNewRegarding() { - return withNewRegardingLike(java.util.Optional.ofNullable(buildRegarding()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(new V1ObjectReferenceBuilder().build())); } public RegardingNested editOrNewRegardingLike(V1ObjectReference item) { - return withNewRegardingLike(java.util.Optional.ofNullable(buildRegarding()).orElse(item)); + return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(item)); } public V1ObjectReference buildRelated() { @@ -326,15 +329,15 @@ public RelatedNested withNewRelatedLike(V1ObjectReference item) { } public RelatedNested editRelated() { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(null)); + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(null)); } public RelatedNested editOrNewRelated() { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); } public RelatedNested editOrNewRelatedLike(V1ObjectReference item) { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(item)); + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(item)); } public String getReportingController() { @@ -392,15 +395,15 @@ public SeriesNested withNewSeriesLike(EventsV1EventSeries item) { } public SeriesNested editSeries() { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(null)); + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(null)); } public SeriesNested editOrNewSeries() { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(new EventsV1EventSeriesBuilder().build())); + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(new EventsV1EventSeriesBuilder().build())); } public SeriesNested editOrNewSeriesLike(EventsV1EventSeries item) { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(item)); + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(item)); } public String getType() { @@ -417,54 +420,161 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } EventsV1EventFluent that = (EventsV1EventFluent) o; - if (!java.util.Objects.equals(action, that.action)) return false; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(deprecatedCount, that.deprecatedCount)) return false; - if (!java.util.Objects.equals(deprecatedFirstTimestamp, that.deprecatedFirstTimestamp)) return false; - if (!java.util.Objects.equals(deprecatedLastTimestamp, that.deprecatedLastTimestamp)) return false; - if (!java.util.Objects.equals(deprecatedSource, that.deprecatedSource)) return false; - if (!java.util.Objects.equals(eventTime, that.eventTime)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(note, that.note)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(regarding, that.regarding)) return false; - if (!java.util.Objects.equals(related, that.related)) return false; - if (!java.util.Objects.equals(reportingController, that.reportingController)) return false; - if (!java.util.Objects.equals(reportingInstance, that.reportingInstance)) return false; - if (!java.util.Objects.equals(series, that.series)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(action, that.action))) { + return false; + } + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(deprecatedCount, that.deprecatedCount))) { + return false; + } + if (!(Objects.equals(deprecatedFirstTimestamp, that.deprecatedFirstTimestamp))) { + return false; + } + if (!(Objects.equals(deprecatedLastTimestamp, that.deprecatedLastTimestamp))) { + return false; + } + if (!(Objects.equals(deprecatedSource, that.deprecatedSource))) { + return false; + } + if (!(Objects.equals(eventTime, that.eventTime))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(note, that.note))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(regarding, that.regarding))) { + return false; + } + if (!(Objects.equals(related, that.related))) { + return false; + } + if (!(Objects.equals(reportingController, that.reportingController))) { + return false; + } + if (!(Objects.equals(reportingInstance, that.reportingInstance))) { + return false; + } + if (!(Objects.equals(series, that.series))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(action, apiVersion, deprecatedCount, deprecatedFirstTimestamp, deprecatedLastTimestamp, deprecatedSource, eventTime, kind, metadata, note, reason, regarding, related, reportingController, reportingInstance, series, type, super.hashCode()); + return Objects.hash(action, apiVersion, deprecatedCount, deprecatedFirstTimestamp, deprecatedLastTimestamp, deprecatedSource, eventTime, kind, metadata, note, reason, regarding, related, reportingController, reportingInstance, series, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (action != null) { sb.append("action:"); sb.append(action + ","); } - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (deprecatedCount != null) { sb.append("deprecatedCount:"); sb.append(deprecatedCount + ","); } - if (deprecatedFirstTimestamp != null) { sb.append("deprecatedFirstTimestamp:"); sb.append(deprecatedFirstTimestamp + ","); } - if (deprecatedLastTimestamp != null) { sb.append("deprecatedLastTimestamp:"); sb.append(deprecatedLastTimestamp + ","); } - if (deprecatedSource != null) { sb.append("deprecatedSource:"); sb.append(deprecatedSource + ","); } - if (eventTime != null) { sb.append("eventTime:"); sb.append(eventTime + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (note != null) { sb.append("note:"); sb.append(note + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (regarding != null) { sb.append("regarding:"); sb.append(regarding + ","); } - if (related != null) { sb.append("related:"); sb.append(related + ","); } - if (reportingController != null) { sb.append("reportingController:"); sb.append(reportingController + ","); } - if (reportingInstance != null) { sb.append("reportingInstance:"); sb.append(reportingInstance + ","); } - if (series != null) { sb.append("series:"); sb.append(series + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(action == null)) { + sb.append("action:"); + sb.append(action); + sb.append(","); + } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(deprecatedCount == null)) { + sb.append("deprecatedCount:"); + sb.append(deprecatedCount); + sb.append(","); + } + if (!(deprecatedFirstTimestamp == null)) { + sb.append("deprecatedFirstTimestamp:"); + sb.append(deprecatedFirstTimestamp); + sb.append(","); + } + if (!(deprecatedLastTimestamp == null)) { + sb.append("deprecatedLastTimestamp:"); + sb.append(deprecatedLastTimestamp); + sb.append(","); + } + if (!(deprecatedSource == null)) { + sb.append("deprecatedSource:"); + sb.append(deprecatedSource); + sb.append(","); + } + if (!(eventTime == null)) { + sb.append("eventTime:"); + sb.append(eventTime); + 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 (!(note == null)) { + sb.append("note:"); + sb.append(note); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(regarding == null)) { + sb.append("regarding:"); + sb.append(regarding); + sb.append(","); + } + if (!(related == null)) { + sb.append("related:"); + sb.append(related); + sb.append(","); + } + if (!(reportingController == null)) { + sb.append("reportingController:"); + sb.append(reportingController); + sb.append(","); + } + if (!(reportingInstance == null)) { + sb.append("reportingInstance:"); + sb.append(reportingInstance); + sb.append(","); + } + if (!(series == null)) { + sb.append("series:"); + sb.append(series); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 af7d918ab6..1daf62b8fb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class EventsV1EventListBuilder extends EventsV1EventListFluent implements VisitableBuilder{ public EventsV1EventListBuilder() { this(new EventsV1EventList()); 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 248d7684dd..b5480d9d72 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class EventsV1EventListFluent> extends BaseFluent{ +public class EventsV1EventListFluent> extends BaseFluent{ public EventsV1EventListFluent() { } @@ -29,13 +32,13 @@ public EventsV1EventListFluent(EventsV1EventList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(EventsV1EventList instance) { - instance = (instance != null ? instance : new EventsV1EventList()); + instance = instance != null ? instance : new EventsV1EventList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,EventsV1Event item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } EventsV1EventBuilder builder = new EventsV1EventBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,EventsV1Event item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,EventsV1Event item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } EventsV1EventBuilder builder = new EventsV1EventBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,EventsV1Event item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { - if (this.items == null) {this.items = new ArrayList();} - for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(EventsV1Event... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { - if (this.items == null) return (A)this; - for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(EventsV1Event... items) { + if (this.items == null) { + return (A) this; + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - EventsV1EventBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + EventsV1EventBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { + public A withItems(EventsV1Event... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,EventsV1Event item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } EventsV1EventListFluent that = (EventsV1EventListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends EventsV1EventFluent> implemen int index; public N and() { - return (N) EventsV1EventListFluent.this.setToItems(index,builder.build()); + return (N) EventsV1EventListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 b932f79264..e570d1382f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class EventsV1EventSeriesBuilder extends EventsV1EventSeriesFluent implements VisitableBuilder{ public EventsV1EventSeriesBuilder() { this(new EventsV1EventSeries()); 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 d951164bf7..ab6fefbf4e 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class EventsV1EventSeriesFluent> extends BaseFluent{ +public class EventsV1EventSeriesFluent> extends BaseFluent{ public EventsV1EventSeriesFluent() { } @@ -22,11 +24,11 @@ public EventsV1EventSeriesFluent(EventsV1EventSeries instance) { private OffsetDateTime lastObservedTime; protected void copyInstance(EventsV1EventSeries instance) { - instance = (instance != null ? instance : new EventsV1EventSeries()); + instance = instance != null ? instance : new EventsV1EventSeries(); if (instance != null) { - this.withCount(instance.getCount()); - this.withLastObservedTime(instance.getLastObservedTime()); - } + this.withCount(instance.getCount()); + this.withLastObservedTime(instance.getLastObservedTime()); + } } public Integer getCount() { @@ -56,24 +58,41 @@ public boolean hasLastObservedTime() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } EventsV1EventSeriesFluent that = (EventsV1EventSeriesFluent) o; - if (!java.util.Objects.equals(count, that.count)) return false; - if (!java.util.Objects.equals(lastObservedTime, that.lastObservedTime)) return false; + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(lastObservedTime, that.lastObservedTime))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(count, lastObservedTime, super.hashCode()); + return Objects.hash(count, lastObservedTime); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (count != null) { sb.append("count:"); sb.append(count + ","); } - if (lastObservedTime != null) { sb.append("lastObservedTime:"); sb.append(lastObservedTime); } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(lastObservedTime == null)) { + sb.append("lastObservedTime:"); + sb.append(lastObservedTime); + } sb.append("}"); return sb.toString(); } 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 599a1e635e..54f9d8ee85 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class FlowcontrolV1SubjectBuilder extends FlowcontrolV1SubjectFluent implements VisitableBuilder{ public FlowcontrolV1SubjectBuilder() { this(new FlowcontrolV1Subject()); 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 448e798945..6eb7271877 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class FlowcontrolV1SubjectFluent> extends BaseFluent{ +public class FlowcontrolV1SubjectFluent> extends BaseFluent{ public FlowcontrolV1SubjectFluent() { } @@ -23,13 +26,13 @@ public FlowcontrolV1SubjectFluent(FlowcontrolV1Subject instance) { private V1UserSubjectBuilder user; protected void copyInstance(FlowcontrolV1Subject instance) { - instance = (instance != null ? instance : new FlowcontrolV1Subject()); + instance = instance != null ? instance : new FlowcontrolV1Subject(); if (instance != null) { - this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); - this.withServiceAccount(instance.getServiceAccount()); - this.withUser(instance.getUser()); - } + this.withGroup(instance.getGroup()); + this.withKind(instance.getKind()); + this.withServiceAccount(instance.getServiceAccount()); + this.withUser(instance.getUser()); + } } public V1GroupSubject buildGroup() { @@ -61,15 +64,15 @@ public GroupNested withNewGroupLike(V1GroupSubject item) { } public GroupNested editGroup() { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(null)); + return this.withNewGroupLike(Optional.ofNullable(this.buildGroup()).orElse(null)); } public GroupNested editOrNewGroup() { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(new V1GroupSubjectBuilder().build())); + return this.withNewGroupLike(Optional.ofNullable(this.buildGroup()).orElse(new V1GroupSubjectBuilder().build())); } public GroupNested editOrNewGroupLike(V1GroupSubject item) { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(item)); + return this.withNewGroupLike(Optional.ofNullable(this.buildGroup()).orElse(item)); } public String getKind() { @@ -114,15 +117,15 @@ public ServiceAccountNested withNewServiceAccountLike(V1ServiceAccountSubject } public ServiceAccountNested editServiceAccount() { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(null)); + return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(null)); } public ServiceAccountNested editOrNewServiceAccount() { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(new V1ServiceAccountSubjectBuilder().build())); + return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(new V1ServiceAccountSubjectBuilder().build())); } public ServiceAccountNested editOrNewServiceAccountLike(V1ServiceAccountSubject item) { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(item)); + return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(item)); } public V1UserSubject buildUser() { @@ -154,40 +157,69 @@ public UserNested withNewUserLike(V1UserSubject item) { } public UserNested editUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(null)); + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); } public UserNested editOrNewUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1UserSubjectBuilder().build())); + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1UserSubjectBuilder().build())); } public UserNested editOrNewUserLike(V1UserSubject item) { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item)); + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } FlowcontrolV1SubjectFluent that = (FlowcontrolV1SubjectFluent) o; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(serviceAccount, that.serviceAccount)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(serviceAccount, that.serviceAccount))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); + return Objects.hash(group, kind, serviceAccount, user); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (serviceAccount != null) { sb.append("serviceAccount:"); sb.append(serviceAccount + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(serviceAccount == null)) { + sb.append("serviceAccount:"); + sb.append(serviceAccount); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } sb.append("}"); return sb.toString(); } 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 b9e7561b13..e28adbc080 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class RbacV1SubjectBuilder extends RbacV1SubjectFluent implements VisitableBuilder{ public RbacV1SubjectBuilder() { this(new RbacV1Subject()); 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 5bd2b1ec2c..4755fd2e4b 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class RbacV1SubjectFluent> extends BaseFluent{ +public class RbacV1SubjectFluent> extends BaseFluent{ public RbacV1SubjectFluent() { } @@ -22,13 +24,13 @@ public RbacV1SubjectFluent(RbacV1Subject instance) { private String namespace; protected void copyInstance(RbacV1Subject instance) { - instance = (instance != null ? instance : new RbacV1Subject()); + instance = instance != null ? instance : new RbacV1Subject(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + } } public String getApiGroup() { @@ -84,28 +86,57 @@ public boolean hasNamespace() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } RbacV1SubjectFluent that = (RbacV1SubjectFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, namespace, super.hashCode()); + return Objects.hash(apiGroup, kind, name, namespace); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } + 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(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..ea7d59f31a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class ResourceV1ResourceClaimBuilder extends ResourceV1ResourceClaimFluent implements VisitableBuilder{ + public ResourceV1ResourceClaimBuilder() { + this(new ResourceV1ResourceClaim()); + } + + public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaimFluent fluent) { + this(fluent, new ResourceV1ResourceClaim()); + } + + public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaimFluent fluent,ResourceV1ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + ResourceV1ResourceClaimFluent fluent; + + public ResourceV1ResourceClaim build() { + ResourceV1ResourceClaim buildable = new ResourceV1ResourceClaim(); + 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/V1alpha3ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java similarity index 50% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java index e361c3a0c2..075e2a5de7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java @@ -1,37 +1,40 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3ResourceClaimFluent> extends BaseFluent{ - public V1alpha3ResourceClaimFluent() { +public class ResourceV1ResourceClaimFluent> extends BaseFluent{ + public ResourceV1ResourceClaimFluent() { } - public V1alpha3ResourceClaimFluent(V1alpha3ResourceClaim instance) { + public ResourceV1ResourceClaimFluent(ResourceV1ResourceClaim instance) { this.copyInstance(instance); } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1alpha3ResourceClaimSpecBuilder spec; - private V1alpha3ResourceClaimStatusBuilder status; + private V1ResourceClaimSpecBuilder spec; + private V1ResourceClaimStatusBuilder status; - protected void copyInstance(V1alpha3ResourceClaim instance) { - instance = (instance != null ? instance : new V1alpha3ResourceClaim()); + protected void copyInstance(ResourceV1ResourceClaim instance) { + instance = instance != null ? instance : new ResourceV1ResourceClaim(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,25 +92,25 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha3ResourceClaimSpec buildSpec() { + public V1ResourceClaimSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(V1alpha3ResourceClaimSpec spec) { + public A withSpec(V1ResourceClaimSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1alpha3ResourceClaimSpecBuilder(spec); + this.spec = new V1ResourceClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { this.spec = null; @@ -124,30 +127,30 @@ public SpecNested withNewSpec() { return new SpecNested(null); } - public SpecNested withNewSpecLike(V1alpha3ResourceClaimSpec item) { + public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { return new SpecNested(item); } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3ResourceClaimSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceClaimSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1alpha3ResourceClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + public SpecNested editOrNewSpecLike(V1ResourceClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1alpha3ResourceClaimStatus buildStatus() { + public V1ResourceClaimStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(V1alpha3ResourceClaimStatus status) { + public A withStatus(V1ResourceClaimStatus status) { this._visitables.remove("status"); if (status != null) { - this.status = new V1alpha3ResourceClaimStatusBuilder(status); + this.status = new V1ResourceClaimStatusBuilder(status); this._visitables.get("status").add(this.status); } else { this.status = null; @@ -164,47 +167,82 @@ public StatusNested withNewStatus() { return new StatusNested(null); } - public StatusNested withNewStatusLike(V1alpha3ResourceClaimStatus item) { + public StatusNested withNewStatusLike(V1ResourceClaimStatus item) { return new StatusNested(item); } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1alpha3ResourceClaimStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ResourceClaimStatusBuilder().build())); } - public StatusNested editOrNewStatusLike(V1alpha3ResourceClaimStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + public StatusNested editOrNewStatusLike(V1ResourceClaimStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourceClaimFluent that = (V1alpha3ResourceClaimFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + ResourceV1ResourceClaimFluent that = (ResourceV1ResourceClaimFluent) 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } @@ -215,7 +253,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp V1ObjectMetaBuilder builder; public N and() { - return (N) V1alpha3ResourceClaimFluent.this.withMetadata(builder.build()); + return (N) ResourceV1ResourceClaimFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -224,14 +262,14 @@ public N endMetadata() { } - public class SpecNested extends V1alpha3ResourceClaimSpecFluent> implements Nested{ - SpecNested(V1alpha3ResourceClaimSpec item) { - this.builder = new V1alpha3ResourceClaimSpecBuilder(this, item); + public class SpecNested extends V1ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1ResourceClaimSpec item) { + this.builder = new V1ResourceClaimSpecBuilder(this, item); } - V1alpha3ResourceClaimSpecBuilder builder; + V1ResourceClaimSpecBuilder builder; public N and() { - return (N) V1alpha3ResourceClaimFluent.this.withSpec(builder.build()); + return (N) ResourceV1ResourceClaimFluent.this.withSpec(builder.build()); } public N endSpec() { @@ -240,14 +278,14 @@ public N endSpec() { } - public class StatusNested extends V1alpha3ResourceClaimStatusFluent> implements Nested{ - StatusNested(V1alpha3ResourceClaimStatus item) { - this.builder = new V1alpha3ResourceClaimStatusBuilder(this, item); + public class StatusNested extends V1ResourceClaimStatusFluent> implements Nested{ + StatusNested(V1ResourceClaimStatus item) { + this.builder = new V1ResourceClaimStatusBuilder(this, item); } - V1alpha3ResourceClaimStatusBuilder builder; + V1ResourceClaimStatusBuilder builder; public N and() { - return (N) V1alpha3ResourceClaimFluent.this.withStatus(builder.build()); + return (N) ResourceV1ResourceClaimFluent.this.withStatus(builder.build()); } public N endStatus() { 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 e968ead6d5..9c6ed3e196 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class StorageV1TokenRequestBuilder extends StorageV1TokenRequestFluent implements VisitableBuilder{ public StorageV1TokenRequestBuilder() { this(new StorageV1TokenRequest()); 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 0adb288b93..b709b00bd9 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class StorageV1TokenRequestFluent> extends BaseFluent{ +public class StorageV1TokenRequestFluent> extends BaseFluent{ public StorageV1TokenRequestFluent() { } @@ -21,11 +23,11 @@ public StorageV1TokenRequestFluent(StorageV1TokenRequest instance) { private Long expirationSeconds; protected void copyInstance(StorageV1TokenRequest instance) { - instance = (instance != null ? instance : new StorageV1TokenRequest()); + instance = instance != null ? instance : new StorageV1TokenRequest(); if (instance != null) { - this.withAudience(instance.getAudience()); - this.withExpirationSeconds(instance.getExpirationSeconds()); - } + this.withAudience(instance.getAudience()); + this.withExpirationSeconds(instance.getExpirationSeconds()); + } } public String getAudience() { @@ -55,24 +57,41 @@ public boolean hasExpirationSeconds() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } StorageV1TokenRequestFluent that = (StorageV1TokenRequestFluent) o; - if (!java.util.Objects.equals(audience, that.audience)) return false; - if (!java.util.Objects.equals(expirationSeconds, that.expirationSeconds)) return false; + if (!(Objects.equals(audience, that.audience))) { + return false; + } + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(audience, expirationSeconds, super.hashCode()); + return Objects.hash(audience, expirationSeconds); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audience != null) { sb.append("audience:"); sb.append(audience + ","); } - if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds); } + if (!(audience == null)) { + sb.append("audience:"); + sb.append(audience); + sb.append(","); + } + if (!(expirationSeconds == null)) { + sb.append("expirationSeconds:"); + sb.append(expirationSeconds); + } sb.append("}"); return sb.toString(); } 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 61bea7c6b1..7510936aca 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIGroupBuilder extends V1APIGroupFluent implements VisitableBuilder{ public V1APIGroupBuilder() { this(new V1APIGroup()); 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 4122a11635..2f71510275 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1APIGroupFluent> extends BaseFluent{ +public class V1APIGroupFluent> extends BaseFluent{ public V1APIGroupFluent() { } @@ -31,15 +34,15 @@ public V1APIGroupFluent(V1APIGroup instance) { private ArrayList versions; protected void copyInstance(V1APIGroup instance) { - instance = (instance != null ? instance : new V1APIGroup()); + instance = instance != null ? instance : new V1APIGroup(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withPreferredVersion(instance.getPreferredVersion()); - this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); - this.withVersions(instance.getVersions()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withPreferredVersion(instance.getPreferredVersion()); + this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); + this.withVersions(instance.getVersions()); + } } public String getApiVersion() { @@ -110,19 +113,21 @@ public PreferredVersionNested withNewPreferredVersionLike(V1GroupVersionForDi } public PreferredVersionNested editPreferredVersion() { - return withNewPreferredVersionLike(java.util.Optional.ofNullable(buildPreferredVersion()).orElse(null)); + return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(null)); } public PreferredVersionNested editOrNewPreferredVersion() { - return withNewPreferredVersionLike(java.util.Optional.ofNullable(buildPreferredVersion()).orElse(new V1GroupVersionForDiscoveryBuilder().build())); + return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(new V1GroupVersionForDiscoveryBuilder().build())); } public PreferredVersionNested editOrNewPreferredVersionLike(V1GroupVersionForDiscovery item) { - return withNewPreferredVersionLike(java.util.Optional.ofNullable(buildPreferredVersion()).orElse(item)); + return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(item)); } public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); @@ -131,11 +136,13 @@ public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(index, builder); } - return (A)this; + return (A) this; } public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); @@ -144,41 +151,71 @@ public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.set(index, builder); } - return (A)this; + return (A) this; } - public A addToServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; + public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); + } + return (A) this; } public A addAllToServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); + } + return (A) this; } - public A removeFromServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) return (A)this; - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder); this.serverAddressByClientCIDRs.remove(builder);} return (A)this; + public A removeFromServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; } public A removeAllFromServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) return (A)this; - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder); this.serverAddressByClientCIDRs.remove(builder);} return (A)this; + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; } public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { - if (serverAddressByClientCIDRs == null) return (A) this; - final Iterator each = serverAddressByClientCIDRs.iterator(); - final List visitables = _visitables.get("serverAddressByClientCIDRs"); + if (serverAddressByClientCIDRs == null) { + return (A) this; + } + Iterator each = serverAddressByClientCIDRs.iterator(); + List visitables = _visitables.get("serverAddressByClientCIDRs"); while (each.hasNext()) { - V1ServerAddressByClientCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ServerAddressByClientCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildServerAddressByClientCIDRs() { @@ -230,7 +267,7 @@ public A withServerAddressByClientCIDRs(List server return (A) this; } - public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { + public A withServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { if (this.serverAddressByClientCIDRs != null) { this.serverAddressByClientCIDRs.clear(); _visitables.remove("serverAddressByClientCIDRs"); @@ -244,7 +281,7 @@ public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1Se } public boolean hasServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null && !this.serverAddressByClientCIDRs.isEmpty(); + return this.serverAddressByClientCIDRs != null && !(this.serverAddressByClientCIDRs.isEmpty()); } public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { @@ -260,32 +297,45 @@ public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(i } public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { - if (serverAddressByClientCIDRs.size() <= index) throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); - return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); + if (index <= serverAddressByClientCIDRs.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } public ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { - if (serverAddressByClientCIDRs.size() == 0) throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); - return setNewServerAddressByClientCIDRLike(0, buildServerAddressByClientCIDR(0)); + if (serverAddressByClientCIDRs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(0, this.buildServerAddressByClientCIDR(0)); } public ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { int index = serverAddressByClientCIDRs.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last serverAddressByClientCIDRs. The list is empty."); - return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.versions == null) { + this.versions = new ArrayList(); + } V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); @@ -294,11 +344,13 @@ public A addToVersions(int index,V1GroupVersionForDiscovery item) { _visitables.get("versions").add(builder); versions.add(index, builder); } - return (A)this; + return (A) this; } public A setToVersions(int index,V1GroupVersionForDiscovery item) { - if (this.versions == null) {this.versions = new ArrayList();} + if (this.versions == null) { + this.versions = new ArrayList(); + } V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); @@ -307,41 +359,71 @@ public A setToVersions(int index,V1GroupVersionForDiscovery item) { _visitables.get("versions").add(builder); versions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; + public A addToVersions(V1GroupVersionForDiscovery... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; } public A addAllToVersions(Collection items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; } - public A removeFromVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items) { - if (this.versions == null) return (A)this; - for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").remove(builder); this.versions.remove(builder);} return (A)this; + public A removeFromVersions(V1GroupVersionForDiscovery... items) { + if (this.versions == null) { + return (A) this; + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; } public A removeAllFromVersions(Collection items) { - if (this.versions == null) return (A)this; - for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").remove(builder); this.versions.remove(builder);} return (A)this; + if (this.versions == null) { + return (A) this; + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; } public A removeMatchingFromVersions(Predicate predicate) { - if (versions == null) return (A) this; - final Iterator each = versions.iterator(); - final List visitables = _visitables.get("versions"); + if (versions == null) { + return (A) this; + } + Iterator each = versions.iterator(); + List visitables = _visitables.get("versions"); while (each.hasNext()) { - V1GroupVersionForDiscoveryBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1GroupVersionForDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVersions() { @@ -393,7 +475,7 @@ public A withVersions(List versions) { return (A) this; } - public A withVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... versions) { + public A withVersions(V1GroupVersionForDiscovery... versions) { if (this.versions != null) { this.versions.clear(); _visitables.remove("versions"); @@ -407,7 +489,7 @@ public A withVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDisco } public boolean hasVersions() { - return this.versions != null && !this.versions.isEmpty(); + return this.versions != null && !(this.versions.isEmpty()); } public VersionsNested addNewVersion() { @@ -423,57 +505,109 @@ public VersionsNested setNewVersionLike(int index,V1GroupVersionForDiscovery } public VersionsNested editVersion(int index) { - if (versions.size() <= index) throw new RuntimeException("Can't edit versions. Index exceeds size."); - return setNewVersionLike(index, buildVersion(index)); + if (index <= versions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); } public VersionsNested editFirstVersion() { - if (versions.size() == 0) throw new RuntimeException("Can't edit first versions. The list is empty."); - return setNewVersionLike(0, buildVersion(0)); + if (versions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(0, this.buildVersion(0)); } public VersionsNested editLastVersion() { int index = versions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last versions. The list is empty."); - return setNewVersionLike(index, buildVersion(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); } public VersionsNested editMatchingVersion(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ServerAddressByClient int index; public N and() { - return (N) V1APIGroupFluent.this.setToServerAddressByClientCIDRs(index,builder.build()); + return (N) V1APIGroupFluent.this.setToServerAddressByClientCIDRs(index, builder.build()); } public N endServerAddressByClientCIDR() { @@ -520,7 +654,7 @@ public class VersionsNested extends V1GroupVersionForDiscoveryFluent implements VisitableBuilder{ public V1APIGroupListBuilder() { this(new V1APIGroupList()); 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 9fe96debed..f60dde2542 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1APIGroupListFluent> extends BaseFluent{ +public class V1APIGroupListFluent> extends BaseFluent{ public V1APIGroupListFluent() { } @@ -28,12 +30,12 @@ public V1APIGroupListFluent(V1APIGroupList instance) { private String kind; protected void copyInstance(V1APIGroupList instance) { - instance = (instance != null ? instance : new V1APIGroupList()); + instance = instance != null ? instance : new V1APIGroupList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withGroups(instance.getGroups()); - this.withKind(instance.getKind()); - } + this.withApiVersion(instance.getApiVersion()); + this.withGroups(instance.getGroups()); + this.withKind(instance.getKind()); + } } public String getApiVersion() { @@ -50,7 +52,9 @@ public boolean hasApiVersion() { } public A addToGroups(int index,V1APIGroup item) { - if (this.groups == null) {this.groups = new ArrayList();} + if (this.groups == null) { + this.groups = new ArrayList(); + } V1APIGroupBuilder builder = new V1APIGroupBuilder(item); if (index < 0 || index >= groups.size()) { _visitables.get("groups").add(builder); @@ -59,11 +63,13 @@ public A addToGroups(int index,V1APIGroup item) { _visitables.get("groups").add(builder); groups.add(index, builder); } - return (A)this; + return (A) this; } public A setToGroups(int index,V1APIGroup item) { - if (this.groups == null) {this.groups = new ArrayList();} + if (this.groups == null) { + this.groups = new ArrayList(); + } V1APIGroupBuilder builder = new V1APIGroupBuilder(item); if (index < 0 || index >= groups.size()) { _visitables.get("groups").add(builder); @@ -72,41 +78,71 @@ public A setToGroups(int index,V1APIGroup item) { _visitables.get("groups").add(builder); groups.set(index, builder); } - return (A)this; + return (A) this; } - public A addToGroups(io.kubernetes.client.openapi.models.V1APIGroup... items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").add(builder);this.groups.add(builder);} return (A)this; + public A addToGroups(V1APIGroup... items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").add(builder); + this.groups.add(builder); + } + return (A) this; } public A addAllToGroups(Collection items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").add(builder);this.groups.add(builder);} return (A)this; + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").add(builder); + this.groups.add(builder); + } + return (A) this; } - public A removeFromGroups(io.kubernetes.client.openapi.models.V1APIGroup... items) { - if (this.groups == null) return (A)this; - for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").remove(builder); this.groups.remove(builder);} return (A)this; + public A removeFromGroups(V1APIGroup... items) { + if (this.groups == null) { + return (A) this; + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").remove(builder); + this.groups.remove(builder); + } + return (A) this; } public A removeAllFromGroups(Collection items) { - if (this.groups == null) return (A)this; - for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").remove(builder); this.groups.remove(builder);} return (A)this; + if (this.groups == null) { + return (A) this; + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").remove(builder); + this.groups.remove(builder); + } + return (A) this; } public A removeMatchingFromGroups(Predicate predicate) { - if (groups == null) return (A) this; - final Iterator each = groups.iterator(); - final List visitables = _visitables.get("groups"); + if (groups == null) { + return (A) this; + } + Iterator each = groups.iterator(); + List visitables = _visitables.get("groups"); while (each.hasNext()) { - V1APIGroupBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1APIGroupBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildGroups() { @@ -158,7 +194,7 @@ public A withGroups(List groups) { return (A) this; } - public A withGroups(io.kubernetes.client.openapi.models.V1APIGroup... groups) { + public A withGroups(V1APIGroup... groups) { if (this.groups != null) { this.groups.clear(); _visitables.remove("groups"); @@ -172,7 +208,7 @@ public A withGroups(io.kubernetes.client.openapi.models.V1APIGroup... groups) { } public boolean hasGroups() { - return this.groups != null && !this.groups.isEmpty(); + return this.groups != null && !(this.groups.isEmpty()); } public GroupsNested addNewGroup() { @@ -188,28 +224,39 @@ public GroupsNested setNewGroupLike(int index,V1APIGroup item) { } public GroupsNested editGroup(int index) { - if (groups.size() <= index) throw new RuntimeException("Can't edit groups. Index exceeds size."); - return setNewGroupLike(index, buildGroup(index)); + if (index <= groups.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "groups")); + } + return this.setNewGroupLike(index, this.buildGroup(index)); } public GroupsNested editFirstGroup() { - if (groups.size() == 0) throw new RuntimeException("Can't edit first groups. The list is empty."); - return setNewGroupLike(0, buildGroup(0)); + if (groups.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "groups")); + } + return this.setNewGroupLike(0, this.buildGroup(0)); } public GroupsNested editLastGroup() { int index = groups.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last groups. The list is empty."); - return setNewGroupLike(index, buildGroup(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "groups")); + } + return this.setNewGroupLike(index, this.buildGroup(index)); } public GroupsNested editMatchingGroup(Predicate predicate) { int index = -1; - for (int i=0;i extends V1APIGroupFluent> implement int index; public N and() { - return (N) V1APIGroupListFluent.this.setToGroups(index,builder.build()); + return (N) V1APIGroupListFluent.this.setToGroups(index, builder.build()); } public N endGroup() { 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 be36f56ed5..bb8cabab61 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIResourceBuilder extends V1APIResourceFluent implements VisitableBuilder{ public V1APIResourceBuilder() { this(new V1APIResource()); 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 6df5372208..ea5fd9798d 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 @@ -1,20 +1,22 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; -import java.lang.String; import java.lang.Boolean; -import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIResourceFluent> extends BaseFluent{ +public class V1APIResourceFluent> extends BaseFluent{ public V1APIResourceFluent() { } @@ -33,50 +35,75 @@ public V1APIResourceFluent(V1APIResource instance) { private String version; protected void copyInstance(V1APIResource instance) { - instance = (instance != null ? instance : new V1APIResource()); + instance = instance != null ? instance : new V1APIResource(); if (instance != null) { - this.withCategories(instance.getCategories()); - this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespaced(instance.getNamespaced()); - this.withShortNames(instance.getShortNames()); - this.withSingularName(instance.getSingularName()); - this.withStorageVersionHash(instance.getStorageVersionHash()); - this.withVerbs(instance.getVerbs()); - this.withVersion(instance.getVersion()); - } + this.withCategories(instance.getCategories()); + this.withGroup(instance.getGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespaced(instance.getNamespaced()); + this.withShortNames(instance.getShortNames()); + this.withSingularName(instance.getSingularName()); + this.withStorageVersionHash(instance.getStorageVersionHash()); + this.withVerbs(instance.getVerbs()); + this.withVersion(instance.getVersion()); + } } public A addToCategories(int index,String item) { - if (this.categories == null) {this.categories = new ArrayList();} + if (this.categories == null) { + this.categories = new ArrayList(); + } this.categories.add(index, item); - return (A)this; + return (A) this; } public A setToCategories(int index,String item) { - if (this.categories == null) {this.categories = new ArrayList();} - this.categories.set(index, item); return (A)this; + if (this.categories == null) { + this.categories = new ArrayList(); + } + this.categories.set(index, item); + return (A) this; } - public A addToCategories(java.lang.String... items) { - if (this.categories == null) {this.categories = new ArrayList();} - for (String item : items) {this.categories.add(item);} return (A)this; + public A addToCategories(String... items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; } public A addAllToCategories(Collection items) { - if (this.categories == null) {this.categories = new ArrayList();} - for (String item : items) {this.categories.add(item);} return (A)this; + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; } - public A removeFromCategories(java.lang.String... items) { - if (this.categories == null) return (A)this; - for (String item : items) { this.categories.remove(item);} return (A)this; + public A removeFromCategories(String... items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; } public A removeAllFromCategories(Collection items) { - if (this.categories == null) return (A)this; - for (String item : items) { this.categories.remove(item);} return (A)this; + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; } public List getCategories() { @@ -125,7 +152,7 @@ public A withCategories(List categories) { return (A) this; } - public A withCategories(java.lang.String... categories) { + public A withCategories(String... categories) { if (this.categories != null) { this.categories.clear(); _visitables.remove("categories"); @@ -139,7 +166,7 @@ public A withCategories(java.lang.String... categories) { } public boolean hasCategories() { - return this.categories != null && !this.categories.isEmpty(); + return this.categories != null && !(this.categories.isEmpty()); } public String getGroup() { @@ -195,34 +222,59 @@ public boolean hasNamespaced() { } public A addToShortNames(int index,String item) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } this.shortNames.add(index, item); - return (A)this; + return (A) this; } public A setToShortNames(int index,String item) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - this.shortNames.set(index, item); return (A)this; + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.set(index, item); + return (A) this; } - public A addToShortNames(java.lang.String... items) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - for (String item : items) {this.shortNames.add(item);} return (A)this; + public A addToShortNames(String... items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; } public A addAllToShortNames(Collection items) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - for (String item : items) {this.shortNames.add(item);} return (A)this; + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; } - public A removeFromShortNames(java.lang.String... items) { - if (this.shortNames == null) return (A)this; - for (String item : items) { this.shortNames.remove(item);} return (A)this; + public A removeFromShortNames(String... items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; } public A removeAllFromShortNames(Collection items) { - if (this.shortNames == null) return (A)this; - for (String item : items) { this.shortNames.remove(item);} return (A)this; + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; } public List getShortNames() { @@ -271,7 +323,7 @@ public A withShortNames(List shortNames) { return (A) this; } - public A withShortNames(java.lang.String... shortNames) { + public A withShortNames(String... shortNames) { if (this.shortNames != null) { this.shortNames.clear(); _visitables.remove("shortNames"); @@ -285,7 +337,7 @@ public A withShortNames(java.lang.String... shortNames) { } public boolean hasShortNames() { - return this.shortNames != null && !this.shortNames.isEmpty(); + return this.shortNames != null && !(this.shortNames.isEmpty()); } public String getSingularName() { @@ -315,34 +367,59 @@ public boolean hasStorageVersionHash() { } public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} + if (this.verbs == null) { + this.verbs = new ArrayList(); + } this.verbs.add(index, item); - return (A)this; + return (A) this; } public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public List getVerbs() { @@ -391,7 +468,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -405,7 +482,7 @@ public A withVerbs(java.lang.String... verbs) { } public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); + return this.verbs != null && !(this.verbs.isEmpty()); } public String getVersion() { @@ -422,40 +499,105 @@ public boolean hasVersion() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1APIResourceFluent that = (V1APIResourceFluent) o; - if (!java.util.Objects.equals(categories, that.categories)) return false; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespaced, that.namespaced)) return false; - if (!java.util.Objects.equals(shortNames, that.shortNames)) return false; - if (!java.util.Objects.equals(singularName, that.singularName)) return false; - if (!java.util.Objects.equals(storageVersionHash, that.storageVersionHash)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; + if (!(Objects.equals(categories, that.categories))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespaced, that.namespaced))) { + return false; + } + if (!(Objects.equals(shortNames, that.shortNames))) { + return false; + } + if (!(Objects.equals(singularName, that.singularName))) { + return false; + } + if (!(Objects.equals(storageVersionHash, that.storageVersionHash))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, storageVersionHash, verbs, version, super.hashCode()); + return Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, storageVersionHash, verbs, version); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (categories != null && !categories.isEmpty()) { sb.append("categories:"); sb.append(categories + ","); } - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespaced != null) { sb.append("namespaced:"); sb.append(namespaced + ","); } - if (shortNames != null && !shortNames.isEmpty()) { sb.append("shortNames:"); sb.append(shortNames + ","); } - if (singularName != null) { sb.append("singularName:"); sb.append(singularName + ","); } - if (storageVersionHash != null) { sb.append("storageVersionHash:"); sb.append(storageVersionHash + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } + if (!(categories == null) && !(categories.isEmpty())) { + sb.append("categories:"); + sb.append(categories); + sb.append(","); + } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespaced == null)) { + sb.append("namespaced:"); + sb.append(namespaced); + sb.append(","); + } + if (!(shortNames == null) && !(shortNames.isEmpty())) { + sb.append("shortNames:"); + sb.append(shortNames); + sb.append(","); + } + if (!(singularName == null)) { + sb.append("singularName:"); + sb.append(singularName); + sb.append(","); + } + if (!(storageVersionHash == null)) { + sb.append("storageVersionHash:"); + sb.append(storageVersionHash); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } sb.append("}"); return sb.toString(); } 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 f32a940d62..964d00b2fb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIResourceListBuilder extends V1APIResourceListFluent implements VisitableBuilder{ public V1APIResourceListBuilder() { this(new V1APIResourceList()); 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 da990a89a3..619e433960 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1APIResourceListFluent> extends BaseFluent{ +public class V1APIResourceListFluent> extends BaseFluent{ public V1APIResourceListFluent() { } @@ -29,13 +31,13 @@ public V1APIResourceListFluent(V1APIResourceList instance) { private ArrayList resources; protected void copyInstance(V1APIResourceList instance) { - instance = (instance != null ? instance : new V1APIResourceList()); + instance = instance != null ? instance : new V1APIResourceList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withGroupVersion(instance.getGroupVersion()); - this.withKind(instance.getKind()); - this.withResources(instance.getResources()); - } + this.withApiVersion(instance.getApiVersion()); + this.withGroupVersion(instance.getGroupVersion()); + this.withKind(instance.getKind()); + this.withResources(instance.getResources()); + } } public String getApiVersion() { @@ -78,7 +80,9 @@ public boolean hasKind() { } public A addToResources(int index,V1APIResource item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } V1APIResourceBuilder builder = new V1APIResourceBuilder(item); if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); @@ -87,11 +91,13 @@ public A addToResources(int index,V1APIResource item) { _visitables.get("resources").add(builder); resources.add(index, builder); } - return (A)this; + return (A) this; } public A setToResources(int index,V1APIResource item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } V1APIResourceBuilder builder = new V1APIResourceBuilder(item); if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); @@ -100,41 +106,71 @@ public A setToResources(int index,V1APIResource item) { _visitables.get("resources").add(builder); resources.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResources(io.kubernetes.client.openapi.models.V1APIResource... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; + public A addToResources(V1APIResource... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").add(builder); + this.resources.add(builder); + } + return (A) this; } public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").add(builder); + this.resources.add(builder); + } + return (A) this; } - public A removeFromResources(io.kubernetes.client.openapi.models.V1APIResource... items) { - if (this.resources == null) return (A)this; - for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").remove(builder); this.resources.remove(builder);} return (A)this; + public A removeFromResources(V1APIResource... items) { + if (this.resources == null) { + return (A) this; + } + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; } public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").remove(builder); this.resources.remove(builder);} return (A)this; + if (this.resources == null) { + return (A) this; + } + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; } public A removeMatchingFromResources(Predicate predicate) { - if (resources == null) return (A) this; - final Iterator each = resources.iterator(); - final List visitables = _visitables.get("resources"); + if (resources == null) { + return (A) this; + } + Iterator each = resources.iterator(); + List visitables = _visitables.get("resources"); while (each.hasNext()) { - V1APIResourceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1APIResourceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResources() { @@ -186,7 +222,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(io.kubernetes.client.openapi.models.V1APIResource... resources) { + public A withResources(V1APIResource... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -200,7 +236,7 @@ public A withResources(io.kubernetes.client.openapi.models.V1APIResource... reso } public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + return this.resources != null && !(this.resources.isEmpty()); } public ResourcesNested addNewResource() { @@ -216,53 +252,93 @@ public ResourcesNested setNewResourceLike(int index,V1APIResource item) { } public ResourcesNested editResource(int index) { - if (resources.size() <= index) throw new RuntimeException("Can't edit resources. Index exceeds size."); - return setNewResourceLike(index, buildResource(index)); + if (index <= resources.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); } public ResourcesNested editFirstResource() { - if (resources.size() == 0) throw new RuntimeException("Can't edit first resources. The list is empty."); - return setNewResourceLike(0, buildResource(0)); + if (resources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(0, this.buildResource(0)); } public ResourcesNested editLastResource() { int index = resources.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resources. The list is empty."); - return setNewResourceLike(index, buildResource(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); } public ResourcesNested editMatchingResource(Predicate predicate) { int index = -1; - for (int i=0;i extends V1APIResourceFluent> int index; public N and() { - return (N) V1APIResourceListFluent.this.setToResources(index,builder.build()); + return (N) V1APIResourceListFluent.this.setToResources(index, builder.build()); } public N endResource() { 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 8af4088674..a3ef5c3992 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceBuilder extends V1APIServiceFluent implements VisitableBuilder{ public V1APIServiceBuilder() { this(new V1APIService()); 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 ca0ebd5176..92904a9b40 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceConditionBuilder extends V1APIServiceConditionFluent implements VisitableBuilder{ public V1APIServiceConditionBuilder() { this(new V1APIServiceCondition()); 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 797bab8e55..1d3278293e 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceConditionFluent> extends BaseFluent{ +public class V1APIServiceConditionFluent> extends BaseFluent{ public V1APIServiceConditionFluent() { } @@ -24,14 +26,14 @@ public V1APIServiceConditionFluent(V1APIServiceCondition instance) { private String type; protected void copyInstance(V1APIServiceCondition instance) { - instance = (instance != null ? instance : new V1APIServiceCondition()); + instance = instance != null ? instance : new V1APIServiceCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1APIServiceConditionFluent that = (V1APIServiceConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 37125a0970..a7fc4e595a 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceFluent> extends BaseFluent{ +public class V1APIServiceFluent> extends BaseFluent{ public V1APIServiceFluent() { } @@ -24,14 +27,14 @@ public V1APIServiceFluent(V1APIService instance) { private V1APIServiceStatusBuilder status; protected void copyInstance(V1APIService instance) { - instance = (instance != null ? instance : new V1APIService()); + instance = instance != null ? instance : new V1APIService(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1APIServiceSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1APIServiceSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1APIServiceSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1APIServiceSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1APIServiceSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1APIServiceStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1APIServiceStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1APIServiceStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1APIServiceStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1APIServiceStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1APIServiceFluent that = (V1APIServiceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 1c8bb41124..12c5a3644b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceListBuilder extends V1APIServiceListFluent implements VisitableBuilder{ public V1APIServiceListBuilder() { this(new V1APIServiceList()); 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 da675dfe1a..6c470b092f 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceListFluent> extends BaseFluent{ +public class V1APIServiceListFluent> extends BaseFluent{ public V1APIServiceListFluent() { } @@ -29,13 +32,13 @@ public V1APIServiceListFluent(V1APIServiceList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1APIServiceList instance) { - instance = (instance != null ? instance : new V1APIServiceList()); + instance = instance != null ? instance : new V1APIServiceList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1APIService item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1APIServiceBuilder builder = new V1APIServiceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1APIService item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1APIService item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1APIServiceBuilder builder = new V1APIServiceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1APIService item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1APIService... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1APIService... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1APIService... items) { - if (this.items == null) return (A)this; - for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1APIService... items) { + if (this.items == null) { + return (A) this; + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1APIServiceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1APIServiceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1APIService... items) { + public A withItems(V1APIService... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1APIService... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1APIService item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1APIServiceListFluent that = (V1APIServiceListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1APIServiceFluent> implement int index; public N and() { - return (N) V1APIServiceListFluent.this.setToItems(index,builder.build()); + return (N) V1APIServiceListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 34eacfd44f..1445df3bdf 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceSpecBuilder extends V1APIServiceSpecFluent implements VisitableBuilder{ public V1APIServiceSpecBuilder() { this(new V1APIServiceSpec()); 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 c8ff0038df..fc6977f45a 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 @@ -1,5 +1,7 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -7,6 +9,7 @@ import java.lang.Integer; import java.lang.Byte; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceSpecFluent> extends BaseFluent{ +public class V1APIServiceSpecFluent> extends BaseFluent{ public V1APIServiceSpecFluent() { } @@ -32,16 +35,16 @@ public V1APIServiceSpecFluent(V1APIServiceSpec instance) { private Integer versionPriority; protected void copyInstance(V1APIServiceSpec instance) { - instance = (instance != null ? instance : new V1APIServiceSpec()); + instance = instance != null ? instance : new V1APIServiceSpec(); if (instance != null) { - this.withCaBundle(instance.getCaBundle()); - this.withGroup(instance.getGroup()); - this.withGroupPriorityMinimum(instance.getGroupPriorityMinimum()); - this.withInsecureSkipTLSVerify(instance.getInsecureSkipTLSVerify()); - this.withService(instance.getService()); - this.withVersion(instance.getVersion()); - this.withVersionPriority(instance.getVersionPriority()); - } + this.withCaBundle(instance.getCaBundle()); + this.withGroup(instance.getGroup()); + this.withGroupPriorityMinimum(instance.getGroupPriorityMinimum()); + this.withInsecureSkipTLSVerify(instance.getInsecureSkipTLSVerify()); + this.withService(instance.getService()); + this.withVersion(instance.getVersion()); + this.withVersionPriority(instance.getVersionPriority()); + } } public A withCaBundle(byte... caBundle) { @@ -58,12 +61,12 @@ public A withCaBundle(byte... caBundle) { } public byte[] getCaBundle() { - int size = caBundle != null ? caBundle.size() : 0;; - byte[] result = new byte[size];; + int size = caBundle != null ? caBundle.size() : 0; + byte[] result = new byte[size]; if (size == 0) { return result; } - int index = 0;; + int index = 0; for (byte item : caBundle) { result[index++] = item; } @@ -71,38 +74,63 @@ public byte[] getCaBundle() { } public A addToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } this.caBundle.add(index, item); - return (A)this; + return (A) this; } public A setToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - this.caBundle.set(index, item); return (A)this; + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.set(index, item); + return (A) this; } - public A addToCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + public A addToCaBundle(Byte... items) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; } public A addAllToCaBundle(Collection items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; } - public A removeFromCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + public A removeFromCaBundle(Byte... items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } public A removeAllFromCaBundle(Collection items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } public boolean hasCaBundle() { - return this.caBundle != null && !this.caBundle.isEmpty(); + return this.caBundle != null && !(this.caBundle.isEmpty()); } public String getGroup() { @@ -173,15 +201,15 @@ public ServiceNested withNewServiceLike(ApiregistrationV1ServiceReference ite } public ServiceNested editService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(null)); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public ServiceNested editOrNewService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(new ApiregistrationV1ServiceReferenceBuilder().build())); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new ApiregistrationV1ServiceReferenceBuilder().build())); } public ServiceNested editOrNewServiceLike(ApiregistrationV1ServiceReference item) { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(item)); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } public String getVersion() { @@ -211,34 +239,81 @@ public boolean hasVersionPriority() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1APIServiceSpecFluent that = (V1APIServiceSpecFluent) o; - if (!java.util.Objects.equals(caBundle, that.caBundle)) return false; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(groupPriorityMinimum, that.groupPriorityMinimum)) return false; - if (!java.util.Objects.equals(insecureSkipTLSVerify, that.insecureSkipTLSVerify)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; - if (!java.util.Objects.equals(versionPriority, that.versionPriority)) return false; + if (!(Objects.equals(caBundle, that.caBundle))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(groupPriorityMinimum, that.groupPriorityMinimum))) { + return false; + } + if (!(Objects.equals(insecureSkipTLSVerify, that.insecureSkipTLSVerify))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + if (!(Objects.equals(versionPriority, that.versionPriority))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(caBundle, group, groupPriorityMinimum, insecureSkipTLSVerify, service, version, versionPriority, super.hashCode()); + return Objects.hash(caBundle, group, groupPriorityMinimum, insecureSkipTLSVerify, service, version, versionPriority); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); } - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (groupPriorityMinimum != null) { sb.append("groupPriorityMinimum:"); sb.append(groupPriorityMinimum + ","); } - if (insecureSkipTLSVerify != null) { sb.append("insecureSkipTLSVerify:"); sb.append(insecureSkipTLSVerify + ","); } - if (service != null) { sb.append("service:"); sb.append(service + ","); } - if (version != null) { sb.append("version:"); sb.append(version + ","); } - if (versionPriority != null) { sb.append("versionPriority:"); sb.append(versionPriority); } + if (!(caBundle == null) && !(caBundle.isEmpty())) { + sb.append("caBundle:"); + sb.append(caBundle); + sb.append(","); + } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(groupPriorityMinimum == null)) { + sb.append("groupPriorityMinimum:"); + sb.append(groupPriorityMinimum); + sb.append(","); + } + if (!(insecureSkipTLSVerify == null)) { + sb.append("insecureSkipTLSVerify:"); + sb.append(insecureSkipTLSVerify); + sb.append(","); + } + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + sb.append(","); + } + if (!(versionPriority == null)) { + sb.append("versionPriority:"); + sb.append(versionPriority); + } sb.append("}"); return sb.toString(); } 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 a438d3c03c..642a401cc2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceStatusBuilder extends V1APIServiceStatusFluent implements VisitableBuilder{ public V1APIServiceStatusBuilder() { this(new V1APIServiceStatus()); 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 347f61bd5e..d45ae1c6fb 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceStatusFluent> extends BaseFluent{ +public class V1APIServiceStatusFluent> extends BaseFluent{ public V1APIServiceStatusFluent() { } @@ -26,14 +28,16 @@ public V1APIServiceStatusFluent(V1APIServiceStatus instance) { private ArrayList conditions; protected void copyInstance(V1APIServiceStatus instance) { - instance = (instance != null ? instance : new V1APIServiceStatus()); + instance = instance != null ? instance : new V1APIServiceStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - } + this.withConditions(instance.getConditions()); + } } public A addToConditions(int index,V1APIServiceCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -42,11 +46,13 @@ public A addToConditions(int index,V1APIServiceCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1APIServiceCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -55,41 +61,71 @@ public A setToConditions(int index,V1APIServiceCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1APIServiceCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items) { - if (this.conditions == null) return (A)this; - for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1APIServiceCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1APIServiceConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1APIServiceConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -141,7 +177,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... conditions) { + public A withConditions(V1APIServiceCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -155,7 +191,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1APIServiceConditio } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -171,47 +207,69 @@ public ConditionsNested setNewConditionLike(int index,V1APIServiceCondition i } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1APIServiceConditionFluent implements VisitableBuilder{ public V1APIVersionsBuilder() { this(new V1APIVersions()); 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 83c3058def..7bd6c40690 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1APIVersionsFluent> extends BaseFluent{ +public class V1APIVersionsFluent> extends BaseFluent{ public V1APIVersionsFluent() { } @@ -29,13 +31,13 @@ public V1APIVersionsFluent(V1APIVersions instance) { private List versions; protected void copyInstance(V1APIVersions instance) { - instance = (instance != null ? instance : new V1APIVersions()); + instance = instance != null ? instance : new V1APIVersions(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); - this.withVersions(instance.getVersions()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); + this.withVersions(instance.getVersions()); + } } public String getApiVersion() { @@ -65,7 +67,9 @@ public boolean hasKind() { } public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); @@ -74,11 +78,13 @@ public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.add(index, builder); } - return (A)this; + return (A) this; } public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); @@ -87,41 +93,71 @@ public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i _visitables.get("serverAddressByClientCIDRs").add(builder); serverAddressByClientCIDRs.set(index, builder); } - return (A)this; + return (A) this; } - public A addToServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; + public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); + } + return (A) this; } public A addAllToServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); + } + return (A) this; } - public A removeFromServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) return (A)this; - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder); this.serverAddressByClientCIDRs.remove(builder);} return (A)this; + public A removeFromServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; } public A removeAllFromServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) return (A)this; - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder); this.serverAddressByClientCIDRs.remove(builder);} return (A)this; + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; } public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { - if (serverAddressByClientCIDRs == null) return (A) this; - final Iterator each = serverAddressByClientCIDRs.iterator(); - final List visitables = _visitables.get("serverAddressByClientCIDRs"); + if (serverAddressByClientCIDRs == null) { + return (A) this; + } + Iterator each = serverAddressByClientCIDRs.iterator(); + List visitables = _visitables.get("serverAddressByClientCIDRs"); while (each.hasNext()) { - V1ServerAddressByClientCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ServerAddressByClientCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildServerAddressByClientCIDRs() { @@ -173,7 +209,7 @@ public A withServerAddressByClientCIDRs(List server return (A) this; } - public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { + public A withServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { if (this.serverAddressByClientCIDRs != null) { this.serverAddressByClientCIDRs.clear(); _visitables.remove("serverAddressByClientCIDRs"); @@ -187,7 +223,7 @@ public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1Se } public boolean hasServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null && !this.serverAddressByClientCIDRs.isEmpty(); + return this.serverAddressByClientCIDRs != null && !(this.serverAddressByClientCIDRs.isEmpty()); } public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { @@ -203,59 +239,95 @@ public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(i } public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { - if (serverAddressByClientCIDRs.size() <= index) throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); - return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); + if (index <= serverAddressByClientCIDRs.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } public ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { - if (serverAddressByClientCIDRs.size() == 0) throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); - return setNewServerAddressByClientCIDRLike(0, buildServerAddressByClientCIDR(0)); + if (serverAddressByClientCIDRs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(0, this.buildServerAddressByClientCIDR(0)); } public ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { int index = serverAddressByClientCIDRs.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last serverAddressByClientCIDRs. The list is empty."); - return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.versions == null) { + this.versions = new ArrayList(); + } this.versions.add(index, item); - return (A)this; + return (A) this; } public A setToVersions(int index,String item) { - if (this.versions == null) {this.versions = new ArrayList();} - this.versions.set(index, item); return (A)this; + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.set(index, item); + return (A) this; } - public A addToVersions(java.lang.String... items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (String item : items) {this.versions.add(item);} return (A)this; + public A addToVersions(String... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; } public A addAllToVersions(Collection items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (String item : items) {this.versions.add(item);} return (A)this; + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; } - public A removeFromVersions(java.lang.String... items) { - if (this.versions == null) return (A)this; - for (String item : items) { this.versions.remove(item);} return (A)this; + public A removeFromVersions(String... items) { + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; } public A removeAllFromVersions(Collection items) { - if (this.versions == null) return (A)this; - for (String item : items) { this.versions.remove(item);} return (A)this; + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; } public List getVersions() { @@ -304,7 +376,7 @@ public A withVersions(List versions) { return (A) this; } - public A withVersions(java.lang.String... versions) { + public A withVersions(String... versions) { if (this.versions != null) { this.versions.clear(); _visitables.remove("versions"); @@ -318,32 +390,61 @@ public A withVersions(java.lang.String... versions) { } public boolean hasVersions() { - return this.versions != null && !this.versions.isEmpty(); + return this.versions != null && !(this.versions.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1APIVersionsFluent that = (V1APIVersionsFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(serverAddressByClientCIDRs, that.serverAddressByClientCIDRs)) return false; - if (!java.util.Objects.equals(versions, that.versions)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(serverAddressByClientCIDRs, that.serverAddressByClientCIDRs))) { + return false; + } + if (!(Objects.equals(versions, that.versions))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, serverAddressByClientCIDRs, versions, super.hashCode()); + return Objects.hash(apiVersion, kind, serverAddressByClientCIDRs, versions); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (serverAddressByClientCIDRs != null && !serverAddressByClientCIDRs.isEmpty()) { sb.append("serverAddressByClientCIDRs:"); sb.append(serverAddressByClientCIDRs + ","); } - if (versions != null && !versions.isEmpty()) { sb.append("versions:"); sb.append(versions); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(serverAddressByClientCIDRs == null) && !(serverAddressByClientCIDRs.isEmpty())) { + sb.append("serverAddressByClientCIDRs:"); + sb.append(serverAddressByClientCIDRs); + sb.append(","); + } + if (!(versions == null) && !(versions.isEmpty())) { + sb.append("versions:"); + sb.append(versions); + } sb.append("}"); return sb.toString(); } @@ -356,7 +457,7 @@ public class ServerAddressByClientCIDRsNested extends V1ServerAddressByClient int index; public N and() { - return (N) V1APIVersionsFluent.this.setToServerAddressByClientCIDRs(index,builder.build()); + return (N) V1APIVersionsFluent.this.setToServerAddressByClientCIDRs(index, builder.build()); } public N endServerAddressByClientCIDR() { 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 e1aa8d47eb..c5b1b123de 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AWSElasticBlockStoreVolumeSourceBuilder extends V1AWSElasticBlockStoreVolumeSourceFluent implements VisitableBuilder{ public V1AWSElasticBlockStoreVolumeSourceBuilder() { this(new V1AWSElasticBlockStoreVolumeSource()); 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 47cc5dcc46..c4e3138a77 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1AWSElasticBlockStoreVolumeSourceFluent> extends BaseFluent{ +public class V1AWSElasticBlockStoreVolumeSourceFluent> extends BaseFluent{ public V1AWSElasticBlockStoreVolumeSourceFluent() { } @@ -24,13 +26,13 @@ public V1AWSElasticBlockStoreVolumeSourceFluent(V1AWSElasticBlockStoreVolumeSour private String volumeID; protected void copyInstance(V1AWSElasticBlockStoreVolumeSource instance) { - instance = (instance != null ? instance : new V1AWSElasticBlockStoreVolumeSource()); + instance = instance != null ? instance : new V1AWSElasticBlockStoreVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withPartition(instance.getPartition()); - this.withReadOnly(instance.getReadOnly()); - this.withVolumeID(instance.getVolumeID()); - } + this.withFsType(instance.getFsType()); + this.withPartition(instance.getPartition()); + this.withReadOnly(instance.getReadOnly()); + this.withVolumeID(instance.getVolumeID()); + } } public String getFsType() { @@ -86,28 +88,57 @@ public boolean hasVolumeID() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1AWSElasticBlockStoreVolumeSourceFluent that = (V1AWSElasticBlockStoreVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(partition, that.partition)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(volumeID, that.volumeID)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(partition, that.partition))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(volumeID, that.volumeID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, partition, readOnly, volumeID, super.hashCode()); + return Objects.hash(fsType, partition, readOnly, volumeID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (partition != null) { sb.append("partition:"); sb.append(partition + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(partition == null)) { + sb.append("partition:"); + sb.append(partition); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(volumeID == null)) { + sb.append("volumeID:"); + sb.append(volumeID); + } sb.append("}"); return sb.toString(); } 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 1693c475dd..4100bcce72 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AffinityBuilder extends V1AffinityFluent implements VisitableBuilder{ public V1AffinityBuilder() { this(new V1Affinity()); 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 797c091bfc..fcd070a4ab 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AffinityFluent> extends BaseFluent{ +public class V1AffinityFluent> extends BaseFluent{ public V1AffinityFluent() { } @@ -22,12 +25,12 @@ public V1AffinityFluent(V1Affinity instance) { private V1PodAntiAffinityBuilder podAntiAffinity; protected void copyInstance(V1Affinity instance) { - instance = (instance != null ? instance : new V1Affinity()); + instance = instance != null ? instance : new V1Affinity(); if (instance != null) { - this.withNodeAffinity(instance.getNodeAffinity()); - this.withPodAffinity(instance.getPodAffinity()); - this.withPodAntiAffinity(instance.getPodAntiAffinity()); - } + this.withNodeAffinity(instance.getNodeAffinity()); + this.withPodAffinity(instance.getPodAffinity()); + this.withPodAntiAffinity(instance.getPodAntiAffinity()); + } } public V1NodeAffinity buildNodeAffinity() { @@ -59,15 +62,15 @@ public NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item) { } public NodeAffinityNested editNodeAffinity() { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(null)); + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(null)); } public NodeAffinityNested editOrNewNodeAffinity() { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(new V1NodeAffinityBuilder().build())); + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(new V1NodeAffinityBuilder().build())); } public NodeAffinityNested editOrNewNodeAffinityLike(V1NodeAffinity item) { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(item)); + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(item)); } public V1PodAffinity buildPodAffinity() { @@ -99,15 +102,15 @@ public PodAffinityNested withNewPodAffinityLike(V1PodAffinity item) { } public PodAffinityNested editPodAffinity() { - return withNewPodAffinityLike(java.util.Optional.ofNullable(buildPodAffinity()).orElse(null)); + return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(null)); } public PodAffinityNested editOrNewPodAffinity() { - return withNewPodAffinityLike(java.util.Optional.ofNullable(buildPodAffinity()).orElse(new V1PodAffinityBuilder().build())); + return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(new V1PodAffinityBuilder().build())); } public PodAffinityNested editOrNewPodAffinityLike(V1PodAffinity item) { - return withNewPodAffinityLike(java.util.Optional.ofNullable(buildPodAffinity()).orElse(item)); + return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(item)); } public V1PodAntiAffinity buildPodAntiAffinity() { @@ -139,38 +142,61 @@ public PodAntiAffinityNested withNewPodAntiAffinityLike(V1PodAntiAffinity ite } public PodAntiAffinityNested editPodAntiAffinity() { - return withNewPodAntiAffinityLike(java.util.Optional.ofNullable(buildPodAntiAffinity()).orElse(null)); + return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(null)); } public PodAntiAffinityNested editOrNewPodAntiAffinity() { - return withNewPodAntiAffinityLike(java.util.Optional.ofNullable(buildPodAntiAffinity()).orElse(new V1PodAntiAffinityBuilder().build())); + return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(new V1PodAntiAffinityBuilder().build())); } public PodAntiAffinityNested editOrNewPodAntiAffinityLike(V1PodAntiAffinity item) { - return withNewPodAntiAffinityLike(java.util.Optional.ofNullable(buildPodAntiAffinity()).orElse(item)); + return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1AffinityFluent that = (V1AffinityFluent) o; - if (!java.util.Objects.equals(nodeAffinity, that.nodeAffinity)) return false; - if (!java.util.Objects.equals(podAffinity, that.podAffinity)) return false; - if (!java.util.Objects.equals(podAntiAffinity, that.podAntiAffinity)) return false; + if (!(Objects.equals(nodeAffinity, that.nodeAffinity))) { + return false; + } + if (!(Objects.equals(podAffinity, that.podAffinity))) { + return false; + } + if (!(Objects.equals(podAntiAffinity, that.podAntiAffinity))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(nodeAffinity, podAffinity, podAntiAffinity, super.hashCode()); + return Objects.hash(nodeAffinity, podAffinity, podAntiAffinity); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nodeAffinity != null) { sb.append("nodeAffinity:"); sb.append(nodeAffinity + ","); } - if (podAffinity != null) { sb.append("podAffinity:"); sb.append(podAffinity + ","); } - if (podAntiAffinity != null) { sb.append("podAntiAffinity:"); sb.append(podAntiAffinity); } + if (!(nodeAffinity == null)) { + sb.append("nodeAffinity:"); + sb.append(nodeAffinity); + sb.append(","); + } + if (!(podAffinity == null)) { + sb.append("podAffinity:"); + sb.append(podAffinity); + sb.append(","); + } + if (!(podAntiAffinity == null)) { + sb.append("podAntiAffinity:"); + sb.append(podAntiAffinity); + } sb.append("}"); return sb.toString(); } 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 8da8617b10..49e562aee3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AggregationRuleBuilder extends V1AggregationRuleFluent implements VisitableBuilder{ public V1AggregationRuleBuilder() { this(new V1AggregationRule()); 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 1a703f8ab0..af174b7461 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1AggregationRuleFluent> extends BaseFluent{ +public class V1AggregationRuleFluent> extends BaseFluent{ public V1AggregationRuleFluent() { } @@ -26,14 +28,16 @@ public V1AggregationRuleFluent(V1AggregationRule instance) { private ArrayList clusterRoleSelectors; protected void copyInstance(V1AggregationRule instance) { - instance = (instance != null ? instance : new V1AggregationRule()); + instance = instance != null ? instance : new V1AggregationRule(); if (instance != null) { - this.withClusterRoleSelectors(instance.getClusterRoleSelectors()); - } + this.withClusterRoleSelectors(instance.getClusterRoleSelectors()); + } } public A addToClusterRoleSelectors(int index,V1LabelSelector item) { - if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} + if (this.clusterRoleSelectors == null) { + this.clusterRoleSelectors = new ArrayList(); + } V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); if (index < 0 || index >= clusterRoleSelectors.size()) { _visitables.get("clusterRoleSelectors").add(builder); @@ -42,11 +46,13 @@ public A addToClusterRoleSelectors(int index,V1LabelSelector item) { _visitables.get("clusterRoleSelectors").add(builder); clusterRoleSelectors.add(index, builder); } - return (A)this; + return (A) this; } public A setToClusterRoleSelectors(int index,V1LabelSelector item) { - if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} + if (this.clusterRoleSelectors == null) { + this.clusterRoleSelectors = new ArrayList(); + } V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); if (index < 0 || index >= clusterRoleSelectors.size()) { _visitables.get("clusterRoleSelectors").add(builder); @@ -55,41 +61,71 @@ public A setToClusterRoleSelectors(int index,V1LabelSelector item) { _visitables.get("clusterRoleSelectors").add(builder); clusterRoleSelectors.set(index, builder); } - return (A)this; + return (A) this; } - public A addToClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items) { - if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} - for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").add(builder);this.clusterRoleSelectors.add(builder);} return (A)this; + public A addToClusterRoleSelectors(V1LabelSelector... items) { + if (this.clusterRoleSelectors == null) { + this.clusterRoleSelectors = new ArrayList(); + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").add(builder); + this.clusterRoleSelectors.add(builder); + } + return (A) this; } public A addAllToClusterRoleSelectors(Collection items) { - if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} - for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").add(builder);this.clusterRoleSelectors.add(builder);} return (A)this; + if (this.clusterRoleSelectors == null) { + this.clusterRoleSelectors = new ArrayList(); + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").add(builder); + this.clusterRoleSelectors.add(builder); + } + return (A) this; } - public A removeFromClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items) { - if (this.clusterRoleSelectors == null) return (A)this; - for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").remove(builder); this.clusterRoleSelectors.remove(builder);} return (A)this; + public A removeFromClusterRoleSelectors(V1LabelSelector... items) { + if (this.clusterRoleSelectors == null) { + return (A) this; + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").remove(builder); + this.clusterRoleSelectors.remove(builder); + } + return (A) this; } public A removeAllFromClusterRoleSelectors(Collection items) { - if (this.clusterRoleSelectors == null) return (A)this; - for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").remove(builder); this.clusterRoleSelectors.remove(builder);} return (A)this; + if (this.clusterRoleSelectors == null) { + return (A) this; + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").remove(builder); + this.clusterRoleSelectors.remove(builder); + } + return (A) this; } public A removeMatchingFromClusterRoleSelectors(Predicate predicate) { - if (clusterRoleSelectors == null) return (A) this; - final Iterator each = clusterRoleSelectors.iterator(); - final List visitables = _visitables.get("clusterRoleSelectors"); + if (clusterRoleSelectors == null) { + return (A) this; + } + Iterator each = clusterRoleSelectors.iterator(); + List visitables = _visitables.get("clusterRoleSelectors"); while (each.hasNext()) { - V1LabelSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1LabelSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildClusterRoleSelectors() { @@ -141,7 +177,7 @@ public A withClusterRoleSelectors(List clusterRoleSelectors) { return (A) this; } - public A withClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... clusterRoleSelectors) { + public A withClusterRoleSelectors(V1LabelSelector... clusterRoleSelectors) { if (this.clusterRoleSelectors != null) { this.clusterRoleSelectors.clear(); _visitables.remove("clusterRoleSelectors"); @@ -155,7 +191,7 @@ public A withClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSel } public boolean hasClusterRoleSelectors() { - return this.clusterRoleSelectors != null && !this.clusterRoleSelectors.isEmpty(); + return this.clusterRoleSelectors != null && !(this.clusterRoleSelectors.isEmpty()); } public ClusterRoleSelectorsNested addNewClusterRoleSelector() { @@ -171,47 +207,69 @@ public ClusterRoleSelectorsNested setNewClusterRoleSelectorLike(int index,V1L } public ClusterRoleSelectorsNested editClusterRoleSelector(int index) { - if (clusterRoleSelectors.size() <= index) throw new RuntimeException("Can't edit clusterRoleSelectors. Index exceeds size."); - return setNewClusterRoleSelectorLike(index, buildClusterRoleSelector(index)); + if (index <= clusterRoleSelectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "clusterRoleSelectors")); + } + return this.setNewClusterRoleSelectorLike(index, this.buildClusterRoleSelector(index)); } public ClusterRoleSelectorsNested editFirstClusterRoleSelector() { - if (clusterRoleSelectors.size() == 0) throw new RuntimeException("Can't edit first clusterRoleSelectors. The list is empty."); - return setNewClusterRoleSelectorLike(0, buildClusterRoleSelector(0)); + if (clusterRoleSelectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "clusterRoleSelectors")); + } + return this.setNewClusterRoleSelectorLike(0, this.buildClusterRoleSelector(0)); } public ClusterRoleSelectorsNested editLastClusterRoleSelector() { int index = clusterRoleSelectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last clusterRoleSelectors. The list is empty."); - return setNewClusterRoleSelectorLike(index, buildClusterRoleSelector(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "clusterRoleSelectors")); + } + return this.setNewClusterRoleSelectorLike(index, this.buildClusterRoleSelector(index)); } public ClusterRoleSelectorsNested editMatchingClusterRoleSelector(Predicate predicate) { int index = -1; - for (int i=0;i extends V1LabelSelectorFluent implements VisitableBuilder{ + public V1AllocatedDeviceStatusBuilder() { + this(new V1AllocatedDeviceStatus()); + } + + public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatusFluent fluent) { + this(fluent, new V1AllocatedDeviceStatus()); + } + + public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatusFluent fluent,V1AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1AllocatedDeviceStatusFluent fluent; + + public V1AllocatedDeviceStatus build() { + V1AllocatedDeviceStatus buildable = new V1AllocatedDeviceStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setData(fluent.getData()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setNetworkData(fluent.buildNetworkData()); + buildable.setPool(fluent.getPool()); + buildable.setShareID(fluent.getShareID()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..138caf9b6d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java @@ -0,0 +1,477 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1AllocatedDeviceStatusFluent> extends BaseFluent{ + public V1AllocatedDeviceStatusFluent() { + } + + public V1AllocatedDeviceStatusFluent(V1AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + private ArrayList conditions; + private Object data; + private String device; + private String driver; + private V1NetworkDeviceDataBuilder networkData; + private String pool; + private String shareID; + + protected void copyInstance(V1AllocatedDeviceStatus instance) { + instance = instance != null ? instance : new V1AllocatedDeviceStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + this.withShareID(instance.getShareID()); + } + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A) this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (index <= conditions.size()) { + 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 Object getData() { + return this.data; + } + + public A withData(Object data) { + this.data = data; + return (A) this; + } + + public boolean hasData() { + return this.data != null; + } + + public String getDevice() { + return this.device; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public boolean hasDevice() { + return this.device != null; + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public V1NetworkDeviceData buildNetworkData() { + return this.networkData != null ? this.networkData.build() : null; + } + + public A withNetworkData(V1NetworkDeviceData networkData) { + this._visitables.remove("networkData"); + if (networkData != null) { + this.networkData = new V1NetworkDeviceDataBuilder(networkData); + this._visitables.get("networkData").add(this.networkData); + } else { + this.networkData = null; + this._visitables.get("networkData").remove(this.networkData); + } + return (A) this; + } + + public boolean hasNetworkData() { + return this.networkData != null; + } + + public NetworkDataNested withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public NetworkDataNested editNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); + } + + public NetworkDataNested editOrNewNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1NetworkDeviceDataBuilder().build())); + } + + public NetworkDataNested editOrNewNetworkDataLike(V1NetworkDeviceData item) { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public String getShareID() { + return this.shareID; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public boolean hasShareID() { + return this.shareID != 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; + } + V1AllocatedDeviceStatusFluent that = (V1AllocatedDeviceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(networkData, that.networkData))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(data == null)) { + sb.append("data:"); + sb.append(data); + 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 (!(networkData == null)) { + sb.append("networkData:"); + sb.append(networkData); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + } + sb.append("}"); + return sb.toString(); + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1AllocatedDeviceStatusFluent.this.setToConditions(index, builder.build()); + } + + public N endCondition() { + return and(); + } + + + } + public class NetworkDataNested extends V1NetworkDeviceDataFluent> implements Nested{ + NetworkDataNested(V1NetworkDeviceData item) { + this.builder = new V1NetworkDeviceDataBuilder(this, item); + } + V1NetworkDeviceDataBuilder builder; + + public N and() { + return (N) V1AllocatedDeviceStatusFluent.this.withNetworkData(builder.build()); + } + + public N endNetworkData() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java new file mode 100644 index 0000000000..fd86bf9d62 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1AllocationResultBuilder extends V1AllocationResultFluent implements VisitableBuilder{ + public V1AllocationResultBuilder() { + this(new V1AllocationResult()); + } + + public V1AllocationResultBuilder(V1AllocationResultFluent fluent) { + this(fluent, new V1AllocationResult()); + } + + public V1AllocationResultBuilder(V1AllocationResultFluent fluent,V1AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1AllocationResultBuilder(V1AllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1AllocationResultFluent fluent; + + public V1AllocationResult build() { + V1AllocationResult buildable = new V1AllocationResult(); + buildable.setAllocationTimestamp(fluent.getAllocationTimestamp()); + buildable.setDevices(fluent.buildDevices()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java new file mode 100644 index 0000000000..7c48bee93a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java @@ -0,0 +1,210 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1AllocationResultFluent> extends BaseFluent{ + public V1AllocationResultFluent() { + } + + public V1AllocationResultFluent(V1AllocationResult instance) { + this.copyInstance(instance); + } + private OffsetDateTime allocationTimestamp; + private V1DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + + protected void copyInstance(V1AllocationResult instance) { + instance = instance != null ? instance : new V1AllocationResult(); + if (instance != null) { + this.withAllocationTimestamp(instance.getAllocationTimestamp()); + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public OffsetDateTime getAllocationTimestamp() { + return this.allocationTimestamp; + } + + public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return (A) this; + } + + public boolean hasAllocationTimestamp() { + return this.allocationTimestamp != null; + } + + public V1DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1DeviceAllocationResult devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1DeviceAllocationResultBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1DeviceAllocationResultBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1DeviceAllocationResult item) { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).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; + } + V1AllocationResultFluent that = (V1AllocationResultFluent) o; + if (!(Objects.equals(allocationTimestamp, that.allocationTimestamp))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(allocationTimestamp, devices, nodeSelector); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationTimestamp == null)) { + sb.append("allocationTimestamp:"); + sb.append(allocationTimestamp); + sb.append(","); + } + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1DeviceAllocationResultFluent> implements Nested{ + DevicesNested(V1DeviceAllocationResult item) { + this.builder = new V1DeviceAllocationResultBuilder(this, item); + } + V1DeviceAllocationResultBuilder builder; + + public N and() { + return (N) V1AllocationResultFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1AllocationResultFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java index 859c9c3603..21cf409e42 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AppArmorProfileBuilder extends V1AppArmorProfileFluent implements VisitableBuilder{ public V1AppArmorProfileBuilder() { this(new V1AppArmorProfile()); 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 492f716cdc..1d045e96b2 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1AppArmorProfileFluent> extends BaseFluent{ +public class V1AppArmorProfileFluent> extends BaseFluent{ public V1AppArmorProfileFluent() { } @@ -20,11 +22,11 @@ public V1AppArmorProfileFluent(V1AppArmorProfile instance) { private String type; protected void copyInstance(V1AppArmorProfile instance) { - instance = (instance != null ? instance : new V1AppArmorProfile()); + instance = instance != null ? instance : new V1AppArmorProfile(); if (instance != null) { - this.withLocalhostProfile(instance.getLocalhostProfile()); - this.withType(instance.getType()); - } + this.withLocalhostProfile(instance.getLocalhostProfile()); + this.withType(instance.getType()); + } } public String getLocalhostProfile() { @@ -54,24 +56,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1AppArmorProfileFluent that = (V1AppArmorProfileFluent) o; - if (!java.util.Objects.equals(localhostProfile, that.localhostProfile)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(localhostProfile, that.localhostProfile))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(localhostProfile, type, super.hashCode()); + return Objects.hash(localhostProfile, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (localhostProfile != null) { sb.append("localhostProfile:"); sb.append(localhostProfile + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(localhostProfile == null)) { + sb.append("localhostProfile:"); + sb.append(localhostProfile); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 618a93d9ec..fc533773fd 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AttachedVolumeBuilder extends V1AttachedVolumeFluent implements VisitableBuilder{ public V1AttachedVolumeBuilder() { this(new V1AttachedVolume()); 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 2dfe72387c..6576fec652 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1AttachedVolumeFluent> extends BaseFluent{ +public class V1AttachedVolumeFluent> extends BaseFluent{ public V1AttachedVolumeFluent() { } @@ -20,11 +22,11 @@ public V1AttachedVolumeFluent(V1AttachedVolume instance) { private String name; protected void copyInstance(V1AttachedVolume instance) { - instance = (instance != null ? instance : new V1AttachedVolume()); + instance = instance != null ? instance : new V1AttachedVolume(); if (instance != null) { - this.withDevicePath(instance.getDevicePath()); - this.withName(instance.getName()); - } + this.withDevicePath(instance.getDevicePath()); + this.withName(instance.getName()); + } } public String getDevicePath() { @@ -54,24 +56,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1AttachedVolumeFluent that = (V1AttachedVolumeFluent) o; - if (!java.util.Objects.equals(devicePath, that.devicePath)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(devicePath, that.devicePath))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(devicePath, name, super.hashCode()); + return Objects.hash(devicePath, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devicePath != null) { sb.append("devicePath:"); sb.append(devicePath + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(devicePath == null)) { + sb.append("devicePath:"); + sb.append(devicePath); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 64105e3042..721cc796aa 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AuditAnnotationBuilder extends V1AuditAnnotationFluent implements VisitableBuilder{ public V1AuditAnnotationBuilder() { this(new V1AuditAnnotation()); 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 f02d591733..c4f2f1959a 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1AuditAnnotationFluent> extends BaseFluent{ +public class V1AuditAnnotationFluent> extends BaseFluent{ public V1AuditAnnotationFluent() { } @@ -20,11 +22,11 @@ public V1AuditAnnotationFluent(V1AuditAnnotation instance) { private String valueExpression; protected void copyInstance(V1AuditAnnotation instance) { - instance = (instance != null ? instance : new V1AuditAnnotation()); + instance = instance != null ? instance : new V1AuditAnnotation(); if (instance != null) { - this.withKey(instance.getKey()); - this.withValueExpression(instance.getValueExpression()); - } + this.withKey(instance.getKey()); + this.withValueExpression(instance.getValueExpression()); + } } public String getKey() { @@ -54,24 +56,41 @@ public boolean hasValueExpression() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1AuditAnnotationFluent that = (V1AuditAnnotationFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(valueExpression, that.valueExpression)) return false; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(valueExpression, that.valueExpression))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(key, valueExpression, super.hashCode()); + return Objects.hash(key, valueExpression); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (valueExpression != null) { sb.append("valueExpression:"); sb.append(valueExpression); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(valueExpression == null)) { + sb.append("valueExpression:"); + sb.append(valueExpression); + } sb.append("}"); return sb.toString(); } 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 b552e3a00f..4b9a251373 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AzureDiskVolumeSourceBuilder extends V1AzureDiskVolumeSourceFluent implements VisitableBuilder{ public V1AzureDiskVolumeSourceBuilder() { this(new V1AzureDiskVolumeSource()); 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 e9dbf9d540..68c7ae7931 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1AzureDiskVolumeSourceFluent> extends BaseFluent{ +public class V1AzureDiskVolumeSourceFluent> extends BaseFluent{ public V1AzureDiskVolumeSourceFluent() { } @@ -25,15 +27,15 @@ public V1AzureDiskVolumeSourceFluent(V1AzureDiskVolumeSource instance) { private Boolean readOnly; protected void copyInstance(V1AzureDiskVolumeSource instance) { - instance = (instance != null ? instance : new V1AzureDiskVolumeSource()); + instance = instance != null ? instance : new V1AzureDiskVolumeSource(); if (instance != null) { - this.withCachingMode(instance.getCachingMode()); - this.withDiskName(instance.getDiskName()); - this.withDiskURI(instance.getDiskURI()); - this.withFsType(instance.getFsType()); - this.withKind(instance.getKind()); - this.withReadOnly(instance.getReadOnly()); - } + this.withCachingMode(instance.getCachingMode()); + this.withDiskName(instance.getDiskName()); + this.withDiskURI(instance.getDiskURI()); + this.withFsType(instance.getFsType()); + this.withKind(instance.getKind()); + this.withReadOnly(instance.getReadOnly()); + } } public String getCachingMode() { @@ -115,32 +117,73 @@ public boolean hasReadOnly() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1AzureDiskVolumeSourceFluent that = (V1AzureDiskVolumeSourceFluent) o; - if (!java.util.Objects.equals(cachingMode, that.cachingMode)) return false; - if (!java.util.Objects.equals(diskName, that.diskName)) return false; - if (!java.util.Objects.equals(diskURI, that.diskURI)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; + if (!(Objects.equals(cachingMode, that.cachingMode))) { + return false; + } + if (!(Objects.equals(diskName, that.diskName))) { + return false; + } + if (!(Objects.equals(diskURI, that.diskURI))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(cachingMode, diskName, diskURI, fsType, kind, readOnly, super.hashCode()); + return Objects.hash(cachingMode, diskName, diskURI, fsType, kind, readOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (cachingMode != null) { sb.append("cachingMode:"); sb.append(cachingMode + ","); } - if (diskName != null) { sb.append("diskName:"); sb.append(diskName + ","); } - if (diskURI != null) { sb.append("diskURI:"); sb.append(diskURI + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } + if (!(cachingMode == null)) { + sb.append("cachingMode:"); + sb.append(cachingMode); + sb.append(","); + } + if (!(diskName == null)) { + sb.append("diskName:"); + sb.append(diskName); + sb.append(","); + } + if (!(diskURI == null)) { + sb.append("diskURI:"); + sb.append(diskURI); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } sb.append("}"); return sb.toString(); } 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 3a962245b6..59edfe323e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AzureFilePersistentVolumeSourceBuilder extends V1AzureFilePersistentVolumeSourceFluent implements VisitableBuilder{ public V1AzureFilePersistentVolumeSourceBuilder() { this(new V1AzureFilePersistentVolumeSource()); 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 ddf2a57685..d4510f7e9f 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1AzureFilePersistentVolumeSourceFluent> extends BaseFluent{ +public class V1AzureFilePersistentVolumeSourceFluent> extends BaseFluent{ public V1AzureFilePersistentVolumeSourceFluent() { } @@ -23,13 +25,13 @@ public V1AzureFilePersistentVolumeSourceFluent(V1AzureFilePersistentVolumeSource private String shareName; protected void copyInstance(V1AzureFilePersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1AzureFilePersistentVolumeSource()); + instance = instance != null ? instance : new V1AzureFilePersistentVolumeSource(); if (instance != null) { - this.withReadOnly(instance.getReadOnly()); - this.withSecretName(instance.getSecretName()); - this.withSecretNamespace(instance.getSecretNamespace()); - this.withShareName(instance.getShareName()); - } + this.withReadOnly(instance.getReadOnly()); + this.withSecretName(instance.getSecretName()); + this.withSecretNamespace(instance.getSecretNamespace()); + this.withShareName(instance.getShareName()); + } } public Boolean getReadOnly() { @@ -85,28 +87,57 @@ public boolean hasShareName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1AzureFilePersistentVolumeSourceFluent that = (V1AzureFilePersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretName, that.secretName)) return false; - if (!java.util.Objects.equals(secretNamespace, that.secretNamespace)) return false; - if (!java.util.Objects.equals(shareName, that.shareName)) return false; + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretName, that.secretName))) { + return false; + } + if (!(Objects.equals(secretNamespace, that.secretNamespace))) { + return false; + } + if (!(Objects.equals(shareName, that.shareName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(readOnly, secretName, secretNamespace, shareName, super.hashCode()); + return Objects.hash(readOnly, secretName, secretNamespace, shareName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretName != null) { sb.append("secretName:"); sb.append(secretName + ","); } - if (secretNamespace != null) { sb.append("secretNamespace:"); sb.append(secretNamespace + ","); } - if (shareName != null) { sb.append("shareName:"); sb.append(shareName); } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretName == null)) { + sb.append("secretName:"); + sb.append(secretName); + sb.append(","); + } + if (!(secretNamespace == null)) { + sb.append("secretNamespace:"); + sb.append(secretNamespace); + sb.append(","); + } + if (!(shareName == null)) { + sb.append("shareName:"); + sb.append(shareName); + } sb.append("}"); return sb.toString(); } 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 c658905f18..298a750db0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AzureFileVolumeSourceBuilder extends V1AzureFileVolumeSourceFluent implements VisitableBuilder{ public V1AzureFileVolumeSourceBuilder() { this(new V1AzureFileVolumeSource()); 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 17a3222b7d..d5f618dba7 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1AzureFileVolumeSourceFluent> extends BaseFluent{ +public class V1AzureFileVolumeSourceFluent> extends BaseFluent{ public V1AzureFileVolumeSourceFluent() { } @@ -22,12 +24,12 @@ public V1AzureFileVolumeSourceFluent(V1AzureFileVolumeSource instance) { private String shareName; protected void copyInstance(V1AzureFileVolumeSource instance) { - instance = (instance != null ? instance : new V1AzureFileVolumeSource()); + instance = instance != null ? instance : new V1AzureFileVolumeSource(); if (instance != null) { - this.withReadOnly(instance.getReadOnly()); - this.withSecretName(instance.getSecretName()); - this.withShareName(instance.getShareName()); - } + this.withReadOnly(instance.getReadOnly()); + this.withSecretName(instance.getSecretName()); + this.withShareName(instance.getShareName()); + } } public Boolean getReadOnly() { @@ -70,26 +72,49 @@ public boolean hasShareName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1AzureFileVolumeSourceFluent that = (V1AzureFileVolumeSourceFluent) o; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretName, that.secretName)) return false; - if (!java.util.Objects.equals(shareName, that.shareName)) return false; + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretName, that.secretName))) { + return false; + } + if (!(Objects.equals(shareName, that.shareName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(readOnly, secretName, shareName, super.hashCode()); + return Objects.hash(readOnly, secretName, shareName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretName != null) { sb.append("secretName:"); sb.append(secretName + ","); } - if (shareName != null) { sb.append("shareName:"); sb.append(shareName); } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretName == null)) { + sb.append("secretName:"); + sb.append(secretName); + sb.append(","); + } + if (!(shareName == null)) { + sb.append("shareName:"); + sb.append(shareName); + } sb.append("}"); return sb.toString(); } 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 be90038b36..40c77bd878 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1BindingBuilder extends V1BindingFluent implements VisitableBuilder{ public V1BindingBuilder() { this(new V1Binding()); 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 e598cdd9b0..04ed683afb 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1BindingFluent> extends BaseFluent{ +public class V1BindingFluent> extends BaseFluent{ public V1BindingFluent() { } @@ -23,13 +26,13 @@ public V1BindingFluent(V1Binding instance) { private V1ObjectReferenceBuilder target; protected void copyInstance(V1Binding instance) { - instance = (instance != null ? instance : new V1Binding()); + instance = instance != null ? instance : new V1Binding(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withTarget(instance.getTarget()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withTarget(instance.getTarget()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1ObjectReference buildTarget() { @@ -127,40 +130,69 @@ public TargetNested withNewTargetLike(V1ObjectReference item) { } public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); } public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V1ObjectReferenceBuilder().build())); } public TargetNested editOrNewTargetLike(V1ObjectReference item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(item)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1BindingFluent that = (V1BindingFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; + 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(target, that.target))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, target, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, target); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } + 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 (!(target == null)) { + sb.append("target:"); + sb.append(target); + } sb.append("}"); return sb.toString(); } 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 305584d6f7..fd298c0a03 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1BoundObjectReferenceBuilder extends V1BoundObjectReferenceFluent implements VisitableBuilder{ public V1BoundObjectReferenceBuilder() { this(new V1BoundObjectReference()); 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 42b3b0506a..a52d7acbb3 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1BoundObjectReferenceFluent> extends BaseFluent{ +public class V1BoundObjectReferenceFluent> extends BaseFluent{ public V1BoundObjectReferenceFluent() { } @@ -22,13 +24,13 @@ public V1BoundObjectReferenceFluent(V1BoundObjectReference instance) { private String uid; protected void copyInstance(V1BoundObjectReference instance) { - instance = (instance != null ? instance : new V1BoundObjectReference()); + instance = instance != null ? instance : new V1BoundObjectReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withUid(instance.getUid()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withUid(instance.getUid()); + } } public String getApiVersion() { @@ -84,28 +86,57 @@ public boolean hasUid() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1BoundObjectReferenceFluent that = (V1BoundObjectReferenceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, uid, super.hashCode()); + return Objects.hash(apiVersion, kind, name, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + 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(); } 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 new file mode 100644 index 0000000000..9b8f4cb99b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CELDeviceSelectorBuilder extends V1CELDeviceSelectorFluent implements VisitableBuilder{ + public V1CELDeviceSelectorBuilder() { + this(new V1CELDeviceSelector()); + } + + public V1CELDeviceSelectorBuilder(V1CELDeviceSelectorFluent fluent) { + this(fluent, new V1CELDeviceSelector()); + } + + public V1CELDeviceSelectorBuilder(V1CELDeviceSelectorFluent fluent,V1CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CELDeviceSelectorBuilder(V1CELDeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1CELDeviceSelectorFluent fluent; + + public V1CELDeviceSelector build() { + V1CELDeviceSelector buildable = new V1CELDeviceSelector(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..f142f5de6b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java @@ -0,0 +1,76 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CELDeviceSelectorFluent> extends BaseFluent{ + public V1CELDeviceSelectorFluent() { + } + + public V1CELDeviceSelectorFluent(V1CELDeviceSelector instance) { + this.copyInstance(instance); + } + private String expression; + + protected void copyInstance(V1CELDeviceSelector instance) { + instance = instance != null ? instance : new V1CELDeviceSelector(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CELDeviceSelectorFluent that = (V1CELDeviceSelectorFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java index 2d883d7e6e..88d759d051 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIDriverBuilder extends V1CSIDriverFluent implements VisitableBuilder{ public V1CSIDriverBuilder() { this(new V1CSIDriver()); 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 ea10910a02..85b612caa7 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIDriverFluent> extends BaseFluent{ +public class V1CSIDriverFluent> extends BaseFluent{ public V1CSIDriverFluent() { } @@ -23,13 +26,13 @@ public V1CSIDriverFluent(V1CSIDriver instance) { private V1CSIDriverSpecBuilder spec; protected void copyInstance(V1CSIDriver instance) { - instance = (instance != null ? instance : new V1CSIDriver()); + instance = instance != null ? instance : new V1CSIDriver(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1CSIDriverSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1CSIDriverSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1CSIDriverSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CSIDriverSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1CSIDriverSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSIDriverFluent that = (V1CSIDriverFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 104e102bbe..9204fd2cd1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIDriverListBuilder extends V1CSIDriverListFluent implements VisitableBuilder{ public V1CSIDriverListBuilder() { this(new V1CSIDriverList()); 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 30a6043a29..39d401c528 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIDriverListFluent> extends BaseFluent{ +public class V1CSIDriverListFluent> extends BaseFluent{ public V1CSIDriverListFluent() { } @@ -29,13 +32,13 @@ public V1CSIDriverListFluent(V1CSIDriverList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1CSIDriverList instance) { - instance = (instance != null ? instance : new V1CSIDriverList()); + instance = instance != null ? instance : new V1CSIDriverList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1CSIDriver item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1CSIDriver item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1CSIDriver item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1CSIDriver item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1CSIDriver... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { - if (this.items == null) return (A)this; - for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1CSIDriver... items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1CSIDriverBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CSIDriverBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { + public A withItems(V1CSIDriver... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1CSIDriver item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSIDriverListFluent that = (V1CSIDriverListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1CSIDriverFluent> implements int index; public N and() { - return (N) V1CSIDriverListFluent.this.setToItems(index,builder.build()); + return (N) V1CSIDriverListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 c699b75b75..55988b8127 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIDriverSpecBuilder extends V1CSIDriverSpecFluent implements VisitableBuilder{ public V1CSIDriverSpecBuilder() { this(new V1CSIDriverSpec()); 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 462a73bf53..75a3fe6ce2 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CSIDriverSpecFluent> extends BaseFluent{ +public class V1CSIDriverSpecFluent> extends BaseFluent{ public V1CSIDriverSpecFluent() { } @@ -36,18 +38,18 @@ public V1CSIDriverSpecFluent(V1CSIDriverSpec instance) { private List volumeLifecycleModes; protected void copyInstance(V1CSIDriverSpec instance) { - instance = (instance != null ? instance : new V1CSIDriverSpec()); + instance = instance != null ? instance : new V1CSIDriverSpec(); if (instance != null) { - this.withAttachRequired(instance.getAttachRequired()); - this.withFsGroupPolicy(instance.getFsGroupPolicy()); - this.withNodeAllocatableUpdatePeriodSeconds(instance.getNodeAllocatableUpdatePeriodSeconds()); - this.withPodInfoOnMount(instance.getPodInfoOnMount()); - this.withRequiresRepublish(instance.getRequiresRepublish()); - this.withSeLinuxMount(instance.getSeLinuxMount()); - this.withStorageCapacity(instance.getStorageCapacity()); - this.withTokenRequests(instance.getTokenRequests()); - this.withVolumeLifecycleModes(instance.getVolumeLifecycleModes()); - } + this.withAttachRequired(instance.getAttachRequired()); + this.withFsGroupPolicy(instance.getFsGroupPolicy()); + this.withNodeAllocatableUpdatePeriodSeconds(instance.getNodeAllocatableUpdatePeriodSeconds()); + this.withPodInfoOnMount(instance.getPodInfoOnMount()); + this.withRequiresRepublish(instance.getRequiresRepublish()); + this.withSeLinuxMount(instance.getSeLinuxMount()); + this.withStorageCapacity(instance.getStorageCapacity()); + this.withTokenRequests(instance.getTokenRequests()); + this.withVolumeLifecycleModes(instance.getVolumeLifecycleModes()); + } } public Boolean getAttachRequired() { @@ -142,7 +144,9 @@ public boolean hasStorageCapacity() { } public A addToTokenRequests(int index,StorageV1TokenRequest item) { - if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} + if (this.tokenRequests == null) { + this.tokenRequests = new ArrayList(); + } StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); if (index < 0 || index >= tokenRequests.size()) { _visitables.get("tokenRequests").add(builder); @@ -151,11 +155,13 @@ public A addToTokenRequests(int index,StorageV1TokenRequest item) { _visitables.get("tokenRequests").add(builder); tokenRequests.add(index, builder); } - return (A)this; + return (A) this; } public A setToTokenRequests(int index,StorageV1TokenRequest item) { - if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} + if (this.tokenRequests == null) { + this.tokenRequests = new ArrayList(); + } StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); if (index < 0 || index >= tokenRequests.size()) { _visitables.get("tokenRequests").add(builder); @@ -164,41 +170,71 @@ public A setToTokenRequests(int index,StorageV1TokenRequest item) { _visitables.get("tokenRequests").add(builder); tokenRequests.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items) { - if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} - for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").add(builder);this.tokenRequests.add(builder);} return (A)this; + public A addToTokenRequests(StorageV1TokenRequest... items) { + if (this.tokenRequests == null) { + this.tokenRequests = new ArrayList(); + } + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").add(builder); + this.tokenRequests.add(builder); + } + return (A) this; } public A addAllToTokenRequests(Collection items) { - if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} - for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").add(builder);this.tokenRequests.add(builder);} return (A)this; + if (this.tokenRequests == null) { + this.tokenRequests = new ArrayList(); + } + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").add(builder); + this.tokenRequests.add(builder); + } + return (A) this; } - public A removeFromTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items) { - if (this.tokenRequests == null) return (A)this; - for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").remove(builder); this.tokenRequests.remove(builder);} return (A)this; + public A removeFromTokenRequests(StorageV1TokenRequest... items) { + if (this.tokenRequests == null) { + return (A) this; + } + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").remove(builder); + this.tokenRequests.remove(builder); + } + return (A) this; } public A removeAllFromTokenRequests(Collection items) { - if (this.tokenRequests == null) return (A)this; - for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").remove(builder); this.tokenRequests.remove(builder);} return (A)this; + if (this.tokenRequests == null) { + return (A) this; + } + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").remove(builder); + this.tokenRequests.remove(builder); + } + return (A) this; } public A removeMatchingFromTokenRequests(Predicate predicate) { - if (tokenRequests == null) return (A) this; - final Iterator each = tokenRequests.iterator(); - final List visitables = _visitables.get("tokenRequests"); + if (tokenRequests == null) { + return (A) this; + } + Iterator each = tokenRequests.iterator(); + List visitables = _visitables.get("tokenRequests"); while (each.hasNext()) { - StorageV1TokenRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + StorageV1TokenRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTokenRequests() { @@ -250,7 +286,7 @@ public A withTokenRequests(List tokenRequests) { return (A) this; } - public A withTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... tokenRequests) { + public A withTokenRequests(StorageV1TokenRequest... tokenRequests) { if (this.tokenRequests != null) { this.tokenRequests.clear(); _visitables.remove("tokenRequests"); @@ -264,7 +300,7 @@ public A withTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenReq } public boolean hasTokenRequests() { - return this.tokenRequests != null && !this.tokenRequests.isEmpty(); + return this.tokenRequests != null && !(this.tokenRequests.isEmpty()); } public TokenRequestsNested addNewTokenRequest() { @@ -280,59 +316,95 @@ public TokenRequestsNested setNewTokenRequestLike(int index,StorageV1TokenReq } public TokenRequestsNested editTokenRequest(int index) { - if (tokenRequests.size() <= index) throw new RuntimeException("Can't edit tokenRequests. Index exceeds size."); - return setNewTokenRequestLike(index, buildTokenRequest(index)); + if (index <= tokenRequests.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tokenRequests")); + } + return this.setNewTokenRequestLike(index, this.buildTokenRequest(index)); } public TokenRequestsNested editFirstTokenRequest() { - if (tokenRequests.size() == 0) throw new RuntimeException("Can't edit first tokenRequests. The list is empty."); - return setNewTokenRequestLike(0, buildTokenRequest(0)); + if (tokenRequests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tokenRequests")); + } + return this.setNewTokenRequestLike(0, this.buildTokenRequest(0)); } public TokenRequestsNested editLastTokenRequest() { int index = tokenRequests.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tokenRequests. The list is empty."); - return setNewTokenRequestLike(index, buildTokenRequest(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tokenRequests")); + } + return this.setNewTokenRequestLike(index, this.buildTokenRequest(index)); } public TokenRequestsNested editMatchingTokenRequest(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); + } this.volumeLifecycleModes.add(index, item); - return (A)this; + return (A) this; } public A setToVolumeLifecycleModes(int index,String item) { - if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} - this.volumeLifecycleModes.set(index, item); return (A)this; + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); + } + this.volumeLifecycleModes.set(index, item); + return (A) this; } - public A addToVolumeLifecycleModes(java.lang.String... items) { - if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} - for (String item : items) {this.volumeLifecycleModes.add(item);} return (A)this; + public A addToVolumeLifecycleModes(String... items) { + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); + } + for (String item : items) { + this.volumeLifecycleModes.add(item); + } + return (A) this; } public A addAllToVolumeLifecycleModes(Collection items) { - if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} - for (String item : items) {this.volumeLifecycleModes.add(item);} return (A)this; + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); + } + for (String item : items) { + this.volumeLifecycleModes.add(item); + } + return (A) this; } - public A removeFromVolumeLifecycleModes(java.lang.String... items) { - if (this.volumeLifecycleModes == null) return (A)this; - for (String item : items) { this.volumeLifecycleModes.remove(item);} return (A)this; + public A removeFromVolumeLifecycleModes(String... items) { + if (this.volumeLifecycleModes == null) { + return (A) this; + } + for (String item : items) { + this.volumeLifecycleModes.remove(item); + } + return (A) this; } public A removeAllFromVolumeLifecycleModes(Collection items) { - if (this.volumeLifecycleModes == null) return (A)this; - for (String item : items) { this.volumeLifecycleModes.remove(item);} return (A)this; + if (this.volumeLifecycleModes == null) { + return (A) this; + } + for (String item : items) { + this.volumeLifecycleModes.remove(item); + } + return (A) this; } public List getVolumeLifecycleModes() { @@ -381,7 +453,7 @@ public A withVolumeLifecycleModes(List volumeLifecycleModes) { return (A) this; } - public A withVolumeLifecycleModes(java.lang.String... volumeLifecycleModes) { + public A withVolumeLifecycleModes(String... volumeLifecycleModes) { if (this.volumeLifecycleModes != null) { this.volumeLifecycleModes.clear(); _visitables.remove("volumeLifecycleModes"); @@ -395,42 +467,101 @@ public A withVolumeLifecycleModes(java.lang.String... volumeLifecycleModes) { } public boolean hasVolumeLifecycleModes() { - return this.volumeLifecycleModes != null && !this.volumeLifecycleModes.isEmpty(); + return this.volumeLifecycleModes != null && !(this.volumeLifecycleModes.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSIDriverSpecFluent that = (V1CSIDriverSpecFluent) o; - if (!java.util.Objects.equals(attachRequired, that.attachRequired)) return false; - if (!java.util.Objects.equals(fsGroupPolicy, that.fsGroupPolicy)) return false; - if (!java.util.Objects.equals(nodeAllocatableUpdatePeriodSeconds, that.nodeAllocatableUpdatePeriodSeconds)) return false; - if (!java.util.Objects.equals(podInfoOnMount, that.podInfoOnMount)) return false; - if (!java.util.Objects.equals(requiresRepublish, that.requiresRepublish)) return false; - if (!java.util.Objects.equals(seLinuxMount, that.seLinuxMount)) return false; - if (!java.util.Objects.equals(storageCapacity, that.storageCapacity)) return false; - if (!java.util.Objects.equals(tokenRequests, that.tokenRequests)) return false; - if (!java.util.Objects.equals(volumeLifecycleModes, that.volumeLifecycleModes)) return false; + if (!(Objects.equals(attachRequired, that.attachRequired))) { + return false; + } + if (!(Objects.equals(fsGroupPolicy, that.fsGroupPolicy))) { + return false; + } + if (!(Objects.equals(nodeAllocatableUpdatePeriodSeconds, that.nodeAllocatableUpdatePeriodSeconds))) { + return false; + } + if (!(Objects.equals(podInfoOnMount, that.podInfoOnMount))) { + return false; + } + if (!(Objects.equals(requiresRepublish, that.requiresRepublish))) { + return false; + } + if (!(Objects.equals(seLinuxMount, that.seLinuxMount))) { + return false; + } + if (!(Objects.equals(storageCapacity, that.storageCapacity))) { + return false; + } + if (!(Objects.equals(tokenRequests, that.tokenRequests))) { + return false; + } + if (!(Objects.equals(volumeLifecycleModes, that.volumeLifecycleModes))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes, super.hashCode()); + return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (attachRequired != null) { sb.append("attachRequired:"); sb.append(attachRequired + ","); } - if (fsGroupPolicy != null) { sb.append("fsGroupPolicy:"); sb.append(fsGroupPolicy + ","); } - if (nodeAllocatableUpdatePeriodSeconds != null) { sb.append("nodeAllocatableUpdatePeriodSeconds:"); sb.append(nodeAllocatableUpdatePeriodSeconds + ","); } - if (podInfoOnMount != null) { sb.append("podInfoOnMount:"); sb.append(podInfoOnMount + ","); } - if (requiresRepublish != null) { sb.append("requiresRepublish:"); sb.append(requiresRepublish + ","); } - if (seLinuxMount != null) { sb.append("seLinuxMount:"); sb.append(seLinuxMount + ","); } - if (storageCapacity != null) { sb.append("storageCapacity:"); sb.append(storageCapacity + ","); } - if (tokenRequests != null && !tokenRequests.isEmpty()) { sb.append("tokenRequests:"); sb.append(tokenRequests + ","); } - if (volumeLifecycleModes != null && !volumeLifecycleModes.isEmpty()) { sb.append("volumeLifecycleModes:"); sb.append(volumeLifecycleModes); } + if (!(attachRequired == null)) { + sb.append("attachRequired:"); + sb.append(attachRequired); + sb.append(","); + } + if (!(fsGroupPolicy == null)) { + sb.append("fsGroupPolicy:"); + sb.append(fsGroupPolicy); + sb.append(","); + } + if (!(nodeAllocatableUpdatePeriodSeconds == null)) { + sb.append("nodeAllocatableUpdatePeriodSeconds:"); + sb.append(nodeAllocatableUpdatePeriodSeconds); + sb.append(","); + } + if (!(podInfoOnMount == null)) { + sb.append("podInfoOnMount:"); + sb.append(podInfoOnMount); + sb.append(","); + } + if (!(requiresRepublish == null)) { + sb.append("requiresRepublish:"); + sb.append(requiresRepublish); + sb.append(","); + } + if (!(seLinuxMount == null)) { + sb.append("seLinuxMount:"); + sb.append(seLinuxMount); + sb.append(","); + } + if (!(storageCapacity == null)) { + sb.append("storageCapacity:"); + sb.append(storageCapacity); + sb.append(","); + } + if (!(tokenRequests == null) && !(tokenRequests.isEmpty())) { + sb.append("tokenRequests:"); + sb.append(tokenRequests); + sb.append(","); + } + if (!(volumeLifecycleModes == null) && !(volumeLifecycleModes.isEmpty())) { + sb.append("volumeLifecycleModes:"); + sb.append(volumeLifecycleModes); + } sb.append("}"); return sb.toString(); } @@ -463,7 +594,7 @@ public class TokenRequestsNested extends StorageV1TokenRequestFluent implements VisitableBuilder{ public V1CSINodeBuilder() { this(new V1CSINode()); 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 37193ff54b..0d04509d94 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSINodeDriverBuilder extends V1CSINodeDriverFluent implements VisitableBuilder{ public V1CSINodeDriverBuilder() { this(new V1CSINodeDriver()); 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 c1a54158aa..d018802a76 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CSINodeDriverFluent> extends BaseFluent{ +public class V1CSINodeDriverFluent> extends BaseFluent{ public V1CSINodeDriverFluent() { } @@ -27,13 +30,13 @@ public V1CSINodeDriverFluent(V1CSINodeDriver instance) { private List topologyKeys; protected void copyInstance(V1CSINodeDriver instance) { - instance = (instance != null ? instance : new V1CSINodeDriver()); + instance = instance != null ? instance : new V1CSINodeDriver(); if (instance != null) { - this.withAllocatable(instance.getAllocatable()); - this.withName(instance.getName()); - this.withNodeID(instance.getNodeID()); - this.withTopologyKeys(instance.getTopologyKeys()); - } + this.withAllocatable(instance.getAllocatable()); + this.withName(instance.getName()); + this.withNodeID(instance.getNodeID()); + this.withTopologyKeys(instance.getTopologyKeys()); + } } public V1VolumeNodeResources buildAllocatable() { @@ -65,15 +68,15 @@ public AllocatableNested withNewAllocatableLike(V1VolumeNodeResources item) { } public AllocatableNested editAllocatable() { - return withNewAllocatableLike(java.util.Optional.ofNullable(buildAllocatable()).orElse(null)); + return this.withNewAllocatableLike(Optional.ofNullable(this.buildAllocatable()).orElse(null)); } public AllocatableNested editOrNewAllocatable() { - return withNewAllocatableLike(java.util.Optional.ofNullable(buildAllocatable()).orElse(new V1VolumeNodeResourcesBuilder().build())); + return this.withNewAllocatableLike(Optional.ofNullable(this.buildAllocatable()).orElse(new V1VolumeNodeResourcesBuilder().build())); } public AllocatableNested editOrNewAllocatableLike(V1VolumeNodeResources item) { - return withNewAllocatableLike(java.util.Optional.ofNullable(buildAllocatable()).orElse(item)); + return this.withNewAllocatableLike(Optional.ofNullable(this.buildAllocatable()).orElse(item)); } public String getName() { @@ -103,34 +106,59 @@ public boolean hasNodeID() { } public A addToTopologyKeys(int index,String item) { - if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } this.topologyKeys.add(index, item); - return (A)this; + return (A) this; } public A setToTopologyKeys(int index,String item) { - if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} - this.topologyKeys.set(index, item); return (A)this; + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } + this.topologyKeys.set(index, item); + return (A) this; } - public A addToTopologyKeys(java.lang.String... items) { - if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} - for (String item : items) {this.topologyKeys.add(item);} return (A)this; + public A addToTopologyKeys(String... items) { + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } + for (String item : items) { + this.topologyKeys.add(item); + } + return (A) this; } public A addAllToTopologyKeys(Collection items) { - if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} - for (String item : items) {this.topologyKeys.add(item);} return (A)this; + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } + for (String item : items) { + this.topologyKeys.add(item); + } + return (A) this; } - public A removeFromTopologyKeys(java.lang.String... items) { - if (this.topologyKeys == null) return (A)this; - for (String item : items) { this.topologyKeys.remove(item);} return (A)this; + public A removeFromTopologyKeys(String... items) { + if (this.topologyKeys == null) { + return (A) this; + } + for (String item : items) { + this.topologyKeys.remove(item); + } + return (A) this; } public A removeAllFromTopologyKeys(Collection items) { - if (this.topologyKeys == null) return (A)this; - for (String item : items) { this.topologyKeys.remove(item);} return (A)this; + if (this.topologyKeys == null) { + return (A) this; + } + for (String item : items) { + this.topologyKeys.remove(item); + } + return (A) this; } public List getTopologyKeys() { @@ -179,7 +207,7 @@ public A withTopologyKeys(List topologyKeys) { return (A) this; } - public A withTopologyKeys(java.lang.String... topologyKeys) { + public A withTopologyKeys(String... topologyKeys) { if (this.topologyKeys != null) { this.topologyKeys.clear(); _visitables.remove("topologyKeys"); @@ -193,32 +221,61 @@ public A withTopologyKeys(java.lang.String... topologyKeys) { } public boolean hasTopologyKeys() { - return this.topologyKeys != null && !this.topologyKeys.isEmpty(); + return this.topologyKeys != null && !(this.topologyKeys.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSINodeDriverFluent that = (V1CSINodeDriverFluent) o; - if (!java.util.Objects.equals(allocatable, that.allocatable)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(nodeID, that.nodeID)) return false; - if (!java.util.Objects.equals(topologyKeys, that.topologyKeys)) return false; + if (!(Objects.equals(allocatable, that.allocatable))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodeID, that.nodeID))) { + return false; + } + if (!(Objects.equals(topologyKeys, that.topologyKeys))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(allocatable, name, nodeID, topologyKeys, super.hashCode()); + return Objects.hash(allocatable, name, nodeID, topologyKeys); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allocatable != null) { sb.append("allocatable:"); sb.append(allocatable + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (nodeID != null) { sb.append("nodeID:"); sb.append(nodeID + ","); } - if (topologyKeys != null && !topologyKeys.isEmpty()) { sb.append("topologyKeys:"); sb.append(topologyKeys); } + if (!(allocatable == null)) { + sb.append("allocatable:"); + sb.append(allocatable); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nodeID == null)) { + sb.append("nodeID:"); + sb.append(nodeID); + sb.append(","); + } + if (!(topologyKeys == null) && !(topologyKeys.isEmpty())) { + sb.append("topologyKeys:"); + sb.append(topologyKeys); + } sb.append("}"); return sb.toString(); } 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 e2374be65e..9b065a3375 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSINodeFluent> extends BaseFluent{ +public class V1CSINodeFluent> extends BaseFluent{ public V1CSINodeFluent() { } @@ -23,13 +26,13 @@ public V1CSINodeFluent(V1CSINode instance) { private V1CSINodeSpecBuilder spec; protected void copyInstance(V1CSINode instance) { - instance = (instance != null ? instance : new V1CSINode()); + instance = instance != null ? instance : new V1CSINode(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1CSINodeSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1CSINodeSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1CSINodeSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CSINodeSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1CSINodeSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSINodeFluent that = (V1CSINodeFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 3aa4c9a1fc..249ac599e2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSINodeListBuilder extends V1CSINodeListFluent implements VisitableBuilder{ public V1CSINodeListBuilder() { this(new V1CSINodeList()); 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 1c711b4e14..f380f840bd 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSINodeListFluent> extends BaseFluent{ +public class V1CSINodeListFluent> extends BaseFluent{ public V1CSINodeListFluent() { } @@ -29,13 +32,13 @@ public V1CSINodeListFluent(V1CSINodeList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1CSINodeList instance) { - instance = (instance != null ? instance : new V1CSINodeList()); + instance = instance != null ? instance : new V1CSINodeList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1CSINode item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CSINodeBuilder builder = new V1CSINodeBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1CSINode item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1CSINode item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CSINodeBuilder builder = new V1CSINodeBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1CSINode item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CSINode... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1CSINode... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSINode... items) { - if (this.items == null) return (A)this; - for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1CSINode... items) { + if (this.items == null) { + return (A) this; + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1CSINodeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CSINodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CSINode... items) { + public A withItems(V1CSINode... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1CSINode... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1CSINode item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSINodeListFluent that = (V1CSINodeListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1CSINodeFluent> implements N int index; public N and() { - return (N) V1CSINodeListFluent.this.setToItems(index,builder.build()); + return (N) V1CSINodeListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 0a52e95229..a50d358421 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSINodeSpecBuilder extends V1CSINodeSpecFluent implements VisitableBuilder{ public V1CSINodeSpecBuilder() { this(new V1CSINodeSpec()); 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 a756c26ee7..1b82c45a6f 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CSINodeSpecFluent> extends BaseFluent{ +public class V1CSINodeSpecFluent> extends BaseFluent{ public V1CSINodeSpecFluent() { } @@ -26,14 +28,16 @@ public V1CSINodeSpecFluent(V1CSINodeSpec instance) { private ArrayList drivers; protected void copyInstance(V1CSINodeSpec instance) { - instance = (instance != null ? instance : new V1CSINodeSpec()); + instance = instance != null ? instance : new V1CSINodeSpec(); if (instance != null) { - this.withDrivers(instance.getDrivers()); - } + this.withDrivers(instance.getDrivers()); + } } public A addToDrivers(int index,V1CSINodeDriver item) { - if (this.drivers == null) {this.drivers = new ArrayList();} + if (this.drivers == null) { + this.drivers = new ArrayList(); + } V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); if (index < 0 || index >= drivers.size()) { _visitables.get("drivers").add(builder); @@ -42,11 +46,13 @@ public A addToDrivers(int index,V1CSINodeDriver item) { _visitables.get("drivers").add(builder); drivers.add(index, builder); } - return (A)this; + return (A) this; } public A setToDrivers(int index,V1CSINodeDriver item) { - if (this.drivers == null) {this.drivers = new ArrayList();} + if (this.drivers == null) { + this.drivers = new ArrayList(); + } V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); if (index < 0 || index >= drivers.size()) { _visitables.get("drivers").add(builder); @@ -55,41 +61,71 @@ public A setToDrivers(int index,V1CSINodeDriver item) { _visitables.get("drivers").add(builder); drivers.set(index, builder); } - return (A)this; + return (A) this; } - public A addToDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items) { - if (this.drivers == null) {this.drivers = new ArrayList();} - for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").add(builder);this.drivers.add(builder);} return (A)this; + public A addToDrivers(V1CSINodeDriver... items) { + if (this.drivers == null) { + this.drivers = new ArrayList(); + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").add(builder); + this.drivers.add(builder); + } + return (A) this; } public A addAllToDrivers(Collection items) { - if (this.drivers == null) {this.drivers = new ArrayList();} - for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").add(builder);this.drivers.add(builder);} return (A)this; + if (this.drivers == null) { + this.drivers = new ArrayList(); + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").add(builder); + this.drivers.add(builder); + } + return (A) this; } - public A removeFromDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items) { - if (this.drivers == null) return (A)this; - for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").remove(builder); this.drivers.remove(builder);} return (A)this; + public A removeFromDrivers(V1CSINodeDriver... items) { + if (this.drivers == null) { + return (A) this; + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").remove(builder); + this.drivers.remove(builder); + } + return (A) this; } public A removeAllFromDrivers(Collection items) { - if (this.drivers == null) return (A)this; - for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").remove(builder); this.drivers.remove(builder);} return (A)this; + if (this.drivers == null) { + return (A) this; + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").remove(builder); + this.drivers.remove(builder); + } + return (A) this; } public A removeMatchingFromDrivers(Predicate predicate) { - if (drivers == null) return (A) this; - final Iterator each = drivers.iterator(); - final List visitables = _visitables.get("drivers"); + if (drivers == null) { + return (A) this; + } + Iterator each = drivers.iterator(); + List visitables = _visitables.get("drivers"); while (each.hasNext()) { - V1CSINodeDriverBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CSINodeDriverBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildDrivers() { @@ -141,7 +177,7 @@ public A withDrivers(List drivers) { return (A) this; } - public A withDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... drivers) { + public A withDrivers(V1CSINodeDriver... drivers) { if (this.drivers != null) { this.drivers.clear(); _visitables.remove("drivers"); @@ -155,7 +191,7 @@ public A withDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... driv } public boolean hasDrivers() { - return this.drivers != null && !this.drivers.isEmpty(); + return this.drivers != null && !(this.drivers.isEmpty()); } public DriversNested addNewDriver() { @@ -171,47 +207,69 @@ public DriversNested setNewDriverLike(int index,V1CSINodeDriver item) { } public DriversNested editDriver(int index) { - if (drivers.size() <= index) throw new RuntimeException("Can't edit drivers. Index exceeds size."); - return setNewDriverLike(index, buildDriver(index)); + if (index <= drivers.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "drivers")); + } + return this.setNewDriverLike(index, this.buildDriver(index)); } public DriversNested editFirstDriver() { - if (drivers.size() == 0) throw new RuntimeException("Can't edit first drivers. The list is empty."); - return setNewDriverLike(0, buildDriver(0)); + if (drivers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "drivers")); + } + return this.setNewDriverLike(0, this.buildDriver(0)); } public DriversNested editLastDriver() { int index = drivers.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last drivers. The list is empty."); - return setNewDriverLike(index, buildDriver(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "drivers")); + } + return this.setNewDriverLike(index, this.buildDriver(index)); } public DriversNested editMatchingDriver(Predicate predicate) { int index = -1; - for (int i=0;i extends V1CSINodeDriverFluent> im int index; public N and() { - return (N) V1CSINodeSpecFluent.this.setToDrivers(index,builder.build()); + return (N) V1CSINodeSpecFluent.this.setToDrivers(index, builder.build()); } public N endDriver() { 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 601391a624..8a3b929a85 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIPersistentVolumeSourceBuilder extends V1CSIPersistentVolumeSourceFluent implements VisitableBuilder{ public V1CSIPersistentVolumeSourceBuilder() { this(new V1CSIPersistentVolumeSource()); 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 d6d0f81f42..3b4099690a 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 @@ -1,19 +1,22 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; +import java.lang.Object; import java.util.Map; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1CSIPersistentVolumeSourceFluent> extends BaseFluent{ public V1CSIPersistentVolumeSourceFluent() { } @@ -32,19 +35,19 @@ public V1CSIPersistentVolumeSourceFluent(V1CSIPersistentVolumeSource instance) { private String volumeHandle; protected void copyInstance(V1CSIPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1CSIPersistentVolumeSource()); + instance = instance != null ? instance : new V1CSIPersistentVolumeSource(); if (instance != null) { - this.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); - this.withControllerPublishSecretRef(instance.getControllerPublishSecretRef()); - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withNodeExpandSecretRef(instance.getNodeExpandSecretRef()); - this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); - this.withNodeStageSecretRef(instance.getNodeStageSecretRef()); - this.withReadOnly(instance.getReadOnly()); - this.withVolumeAttributes(instance.getVolumeAttributes()); - this.withVolumeHandle(instance.getVolumeHandle()); - } + this.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); + this.withControllerPublishSecretRef(instance.getControllerPublishSecretRef()); + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withNodeExpandSecretRef(instance.getNodeExpandSecretRef()); + this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); + this.withNodeStageSecretRef(instance.getNodeStageSecretRef()); + this.withReadOnly(instance.getReadOnly()); + this.withVolumeAttributes(instance.getVolumeAttributes()); + this.withVolumeHandle(instance.getVolumeHandle()); + } } public V1SecretReference buildControllerExpandSecretRef() { @@ -76,15 +79,15 @@ public ControllerExpandSecretRefNested withNewControllerExpandSecretRefLike(V } public ControllerExpandSecretRefNested editControllerExpandSecretRef() { - return withNewControllerExpandSecretRefLike(java.util.Optional.ofNullable(buildControllerExpandSecretRef()).orElse(null)); + return this.withNewControllerExpandSecretRefLike(Optional.ofNullable(this.buildControllerExpandSecretRef()).orElse(null)); } public ControllerExpandSecretRefNested editOrNewControllerExpandSecretRef() { - return withNewControllerExpandSecretRefLike(java.util.Optional.ofNullable(buildControllerExpandSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewControllerExpandSecretRefLike(Optional.ofNullable(this.buildControllerExpandSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public ControllerExpandSecretRefNested editOrNewControllerExpandSecretRefLike(V1SecretReference item) { - return withNewControllerExpandSecretRefLike(java.util.Optional.ofNullable(buildControllerExpandSecretRef()).orElse(item)); + return this.withNewControllerExpandSecretRefLike(Optional.ofNullable(this.buildControllerExpandSecretRef()).orElse(item)); } public V1SecretReference buildControllerPublishSecretRef() { @@ -116,15 +119,15 @@ public ControllerPublishSecretRefNested withNewControllerPublishSecretRefLike } public ControllerPublishSecretRefNested editControllerPublishSecretRef() { - return withNewControllerPublishSecretRefLike(java.util.Optional.ofNullable(buildControllerPublishSecretRef()).orElse(null)); + return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(null)); } public ControllerPublishSecretRefNested editOrNewControllerPublishSecretRef() { - return withNewControllerPublishSecretRefLike(java.util.Optional.ofNullable(buildControllerPublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public ControllerPublishSecretRefNested editOrNewControllerPublishSecretRefLike(V1SecretReference item) { - return withNewControllerPublishSecretRefLike(java.util.Optional.ofNullable(buildControllerPublishSecretRef()).orElse(item)); + return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(item)); } public String getDriver() { @@ -182,15 +185,15 @@ public NodeExpandSecretRefNested withNewNodeExpandSecretRefLike(V1SecretRefer } public NodeExpandSecretRefNested editNodeExpandSecretRef() { - return withNewNodeExpandSecretRefLike(java.util.Optional.ofNullable(buildNodeExpandSecretRef()).orElse(null)); + return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(null)); } public NodeExpandSecretRefNested editOrNewNodeExpandSecretRef() { - return withNewNodeExpandSecretRefLike(java.util.Optional.ofNullable(buildNodeExpandSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public NodeExpandSecretRefNested editOrNewNodeExpandSecretRefLike(V1SecretReference item) { - return withNewNodeExpandSecretRefLike(java.util.Optional.ofNullable(buildNodeExpandSecretRef()).orElse(item)); + return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(item)); } public V1SecretReference buildNodePublishSecretRef() { @@ -222,15 +225,15 @@ public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1SecretRef } public NodePublishSecretRefNested editNodePublishSecretRef() { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(null)); + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(null)); } public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1SecretReference item) { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(item)); + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(item)); } public V1SecretReference buildNodeStageSecretRef() { @@ -262,15 +265,15 @@ public NodeStageSecretRefNested withNewNodeStageSecretRefLike(V1SecretReferen } public NodeStageSecretRefNested editNodeStageSecretRef() { - return withNewNodeStageSecretRefLike(java.util.Optional.ofNullable(buildNodeStageSecretRef()).orElse(null)); + return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(null)); } public NodeStageSecretRefNested editOrNewNodeStageSecretRef() { - return withNewNodeStageSecretRefLike(java.util.Optional.ofNullable(buildNodeStageSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public NodeStageSecretRefNested editOrNewNodeStageSecretRefLike(V1SecretReference item) { - return withNewNodeStageSecretRefLike(java.util.Optional.ofNullable(buildNodeStageSecretRef()).orElse(item)); + return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(item)); } public Boolean getReadOnly() { @@ -287,23 +290,47 @@ public boolean hasReadOnly() { } public A addToVolumeAttributes(String key,String value) { - if(this.volumeAttributes == null && key != null && value != null) { this.volumeAttributes = new LinkedHashMap(); } - if(key != null && value != null) {this.volumeAttributes.put(key, value);} return (A)this; + if (this.volumeAttributes == null && key != null && value != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (key != null && value != null) { + this.volumeAttributes.put(key, value); + } + return (A) this; } public A addToVolumeAttributes(Map map) { - if(this.volumeAttributes == null && map != null) { this.volumeAttributes = new LinkedHashMap(); } - if(map != null) { this.volumeAttributes.putAll(map);} return (A)this; + if (this.volumeAttributes == null && map != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (map != null) { + this.volumeAttributes.putAll(map); + } + return (A) this; } public A removeFromVolumeAttributes(String key) { - if(this.volumeAttributes == null) { return (A) this; } - if(key != null && this.volumeAttributes != null) {this.volumeAttributes.remove(key);} return (A)this; + if (this.volumeAttributes == null) { + return (A) this; + } + if (key != null && this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + return (A) this; } public A removeFromVolumeAttributes(Map map) { - if(this.volumeAttributes == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.volumeAttributes != null){this.volumeAttributes.remove(key);}}} return (A)this; + if (this.volumeAttributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + } + } + return (A) this; } public Map getVolumeAttributes() { @@ -337,40 +364,105 @@ public boolean hasVolumeHandle() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSIPersistentVolumeSourceFluent that = (V1CSIPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(controllerExpandSecretRef, that.controllerExpandSecretRef)) return false; - if (!java.util.Objects.equals(controllerPublishSecretRef, that.controllerPublishSecretRef)) return false; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(nodeExpandSecretRef, that.nodeExpandSecretRef)) return false; - if (!java.util.Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef)) return false; - if (!java.util.Objects.equals(nodeStageSecretRef, that.nodeStageSecretRef)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(volumeAttributes, that.volumeAttributes)) return false; - if (!java.util.Objects.equals(volumeHandle, that.volumeHandle)) return false; + if (!(Objects.equals(controllerExpandSecretRef, that.controllerExpandSecretRef))) { + return false; + } + if (!(Objects.equals(controllerPublishSecretRef, that.controllerPublishSecretRef))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(nodeExpandSecretRef, that.nodeExpandSecretRef))) { + return false; + } + if (!(Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef))) { + return false; + } + if (!(Objects.equals(nodeStageSecretRef, that.nodeStageSecretRef))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(volumeAttributes, that.volumeAttributes))) { + return false; + } + if (!(Objects.equals(volumeHandle, that.volumeHandle))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(controllerExpandSecretRef, controllerPublishSecretRef, driver, fsType, nodeExpandSecretRef, nodePublishSecretRef, nodeStageSecretRef, readOnly, volumeAttributes, volumeHandle, super.hashCode()); + return Objects.hash(controllerExpandSecretRef, controllerPublishSecretRef, driver, fsType, nodeExpandSecretRef, nodePublishSecretRef, nodeStageSecretRef, readOnly, volumeAttributes, volumeHandle); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (controllerExpandSecretRef != null) { sb.append("controllerExpandSecretRef:"); sb.append(controllerExpandSecretRef + ","); } - if (controllerPublishSecretRef != null) { sb.append("controllerPublishSecretRef:"); sb.append(controllerPublishSecretRef + ","); } - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (nodeExpandSecretRef != null) { sb.append("nodeExpandSecretRef:"); sb.append(nodeExpandSecretRef + ","); } - if (nodePublishSecretRef != null) { sb.append("nodePublishSecretRef:"); sb.append(nodePublishSecretRef + ","); } - if (nodeStageSecretRef != null) { sb.append("nodeStageSecretRef:"); sb.append(nodeStageSecretRef + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (volumeAttributes != null && !volumeAttributes.isEmpty()) { sb.append("volumeAttributes:"); sb.append(volumeAttributes + ","); } - if (volumeHandle != null) { sb.append("volumeHandle:"); sb.append(volumeHandle); } + if (!(controllerExpandSecretRef == null)) { + sb.append("controllerExpandSecretRef:"); + sb.append(controllerExpandSecretRef); + sb.append(","); + } + if (!(controllerPublishSecretRef == null)) { + sb.append("controllerPublishSecretRef:"); + sb.append(controllerPublishSecretRef); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(nodeExpandSecretRef == null)) { + sb.append("nodeExpandSecretRef:"); + sb.append(nodeExpandSecretRef); + sb.append(","); + } + if (!(nodePublishSecretRef == null)) { + sb.append("nodePublishSecretRef:"); + sb.append(nodePublishSecretRef); + sb.append(","); + } + if (!(nodeStageSecretRef == null)) { + sb.append("nodeStageSecretRef:"); + sb.append(nodeStageSecretRef); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(volumeAttributes == null) && !(volumeAttributes.isEmpty())) { + sb.append("volumeAttributes:"); + sb.append(volumeAttributes); + sb.append(","); + } + if (!(volumeHandle == null)) { + sb.append("volumeHandle:"); + sb.append(volumeHandle); + } sb.append("}"); return sb.toString(); } 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 868663f6aa..52a3c296d9 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIStorageCapacityBuilder extends V1CSIStorageCapacityFluent implements VisitableBuilder{ public V1CSIStorageCapacityBuilder() { this(new V1CSIStorageCapacity()); 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 5ea78d6e7a..5beafd1238 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIStorageCapacityFluent> extends BaseFluent{ +public class V1CSIStorageCapacityFluent> extends BaseFluent{ public V1CSIStorageCapacityFluent() { } @@ -27,16 +30,16 @@ public V1CSIStorageCapacityFluent(V1CSIStorageCapacity instance) { private String storageClassName; protected void copyInstance(V1CSIStorageCapacity instance) { - instance = (instance != null ? instance : new V1CSIStorageCapacity()); + instance = instance != null ? instance : new V1CSIStorageCapacity(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withCapacity(instance.getCapacity()); - this.withKind(instance.getKind()); - this.withMaximumVolumeSize(instance.getMaximumVolumeSize()); - this.withMetadata(instance.getMetadata()); - this.withNodeTopology(instance.getNodeTopology()); - this.withStorageClassName(instance.getStorageClassName()); - } + this.withApiVersion(instance.getApiVersion()); + this.withCapacity(instance.getCapacity()); + this.withKind(instance.getKind()); + this.withMaximumVolumeSize(instance.getMaximumVolumeSize()); + this.withMetadata(instance.getMetadata()); + this.withNodeTopology(instance.getNodeTopology()); + this.withStorageClassName(instance.getStorageClassName()); + } } public String getApiVersion() { @@ -66,7 +69,7 @@ public boolean hasCapacity() { } public A withNewCapacity(String value) { - return (A)withCapacity(new Quantity(value)); + return (A) this.withCapacity(new Quantity(value)); } public String getKind() { @@ -96,7 +99,7 @@ public boolean hasMaximumVolumeSize() { } public A withNewMaximumVolumeSize(String value) { - return (A)withMaximumVolumeSize(new Quantity(value)); + return (A) this.withMaximumVolumeSize(new Quantity(value)); } public V1ObjectMeta buildMetadata() { @@ -128,15 +131,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1LabelSelector buildNodeTopology() { @@ -168,15 +171,15 @@ public NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item) { } public NodeTopologyNested editNodeTopology() { - return withNewNodeTopologyLike(java.util.Optional.ofNullable(buildNodeTopology()).orElse(null)); + return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(null)); } public NodeTopologyNested editOrNewNodeTopology() { - return withNewNodeTopologyLike(java.util.Optional.ofNullable(buildNodeTopology()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(new V1LabelSelectorBuilder().build())); } public NodeTopologyNested editOrNewNodeTopologyLike(V1LabelSelector item) { - return withNewNodeTopologyLike(java.util.Optional.ofNullable(buildNodeTopology()).orElse(item)); + return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(item)); } public String getStorageClassName() { @@ -193,34 +196,81 @@ public boolean hasStorageClassName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSIStorageCapacityFluent that = (V1CSIStorageCapacityFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(capacity, that.capacity)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(maximumVolumeSize, that.maximumVolumeSize)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(nodeTopology, that.nodeTopology)) return false; - if (!java.util.Objects.equals(storageClassName, that.storageClassName)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(maximumVolumeSize, that.maximumVolumeSize))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(nodeTopology, that.nodeTopology))) { + return false; + } + if (!(Objects.equals(storageClassName, that.storageClassName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, capacity, kind, maximumVolumeSize, metadata, nodeTopology, storageClassName, super.hashCode()); + return Objects.hash(apiVersion, capacity, kind, maximumVolumeSize, metadata, nodeTopology, storageClassName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (capacity != null) { sb.append("capacity:"); sb.append(capacity + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (maximumVolumeSize != null) { sb.append("maximumVolumeSize:"); sb.append(maximumVolumeSize + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (nodeTopology != null) { sb.append("nodeTopology:"); sb.append(nodeTopology + ","); } - if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(maximumVolumeSize == null)) { + sb.append("maximumVolumeSize:"); + sb.append(maximumVolumeSize); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(nodeTopology == null)) { + sb.append("nodeTopology:"); + sb.append(nodeTopology); + sb.append(","); + } + if (!(storageClassName == null)) { + sb.append("storageClassName:"); + sb.append(storageClassName); + } sb.append("}"); return sb.toString(); } 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 d160837dcc..8a4a27ad63 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIStorageCapacityListBuilder extends V1CSIStorageCapacityListFluent implements VisitableBuilder{ public V1CSIStorageCapacityListBuilder() { this(new V1CSIStorageCapacityList()); 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 c5da6bceee..d422e34ccc 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIStorageCapacityListFluent> extends BaseFluent{ +public class V1CSIStorageCapacityListFluent> extends BaseFluent{ public V1CSIStorageCapacityListFluent() { } @@ -29,13 +32,13 @@ public V1CSIStorageCapacityListFluent(V1CSIStorageCapacityList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1CSIStorageCapacityList instance) { - instance = (instance != null ? instance : new V1CSIStorageCapacityList()); + instance = instance != null ? instance : new V1CSIStorageCapacityList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1CSIStorageCapacity item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1CSIStorageCapacity item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1CSIStorageCapacity item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1CSIStorageCapacity item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1CSIStorageCapacity... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { - if (this.items == null) return (A)this; - for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1CSIStorageCapacity... items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1CSIStorageCapacityBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CSIStorageCapacityBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { + public A withItems(V1CSIStorageCapacity... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... i } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1CSIStorageCapacity item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSIStorageCapacityListFluent that = (V1CSIStorageCapacityListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1CSIStorageCapacityFluent> i int index; public N and() { - return (N) V1CSIStorageCapacityListFluent.this.setToItems(index,builder.build()); + return (N) V1CSIStorageCapacityListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 e4c123b5d5..eb7a12cd2a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIVolumeSourceBuilder extends V1CSIVolumeSourceFluent implements VisitableBuilder{ public V1CSIVolumeSourceBuilder() { this(new V1CSIVolumeSource()); 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 e2b497d715..60a4792b7b 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 @@ -1,10 +1,13 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; import java.util.Map; @@ -13,7 +16,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CSIVolumeSourceFluent> extends BaseFluent{ +public class V1CSIVolumeSourceFluent> extends BaseFluent{ public V1CSIVolumeSourceFluent() { } @@ -27,14 +30,14 @@ public V1CSIVolumeSourceFluent(V1CSIVolumeSource instance) { private Map volumeAttributes; protected void copyInstance(V1CSIVolumeSource instance) { - instance = (instance != null ? instance : new V1CSIVolumeSource()); + instance = instance != null ? instance : new V1CSIVolumeSource(); if (instance != null) { - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); - this.withReadOnly(instance.getReadOnly()); - this.withVolumeAttributes(instance.getVolumeAttributes()); - } + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); + this.withReadOnly(instance.getReadOnly()); + this.withVolumeAttributes(instance.getVolumeAttributes()); + } } public String getDriver() { @@ -92,15 +95,15 @@ public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1LocalObje } public NodePublishSecretRefNested editNodePublishSecretRef() { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(null)); + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(null)); } public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } public NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1LocalObjectReference item) { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(item)); + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(item)); } public Boolean getReadOnly() { @@ -117,23 +120,47 @@ public boolean hasReadOnly() { } public A addToVolumeAttributes(String key,String value) { - if(this.volumeAttributes == null && key != null && value != null) { this.volumeAttributes = new LinkedHashMap(); } - if(key != null && value != null) {this.volumeAttributes.put(key, value);} return (A)this; + if (this.volumeAttributes == null && key != null && value != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (key != null && value != null) { + this.volumeAttributes.put(key, value); + } + return (A) this; } public A addToVolumeAttributes(Map map) { - if(this.volumeAttributes == null && map != null) { this.volumeAttributes = new LinkedHashMap(); } - if(map != null) { this.volumeAttributes.putAll(map);} return (A)this; + if (this.volumeAttributes == null && map != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (map != null) { + this.volumeAttributes.putAll(map); + } + return (A) this; } public A removeFromVolumeAttributes(String key) { - if(this.volumeAttributes == null) { return (A) this; } - if(key != null && this.volumeAttributes != null) {this.volumeAttributes.remove(key);} return (A)this; + if (this.volumeAttributes == null) { + return (A) this; + } + if (key != null && this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + return (A) this; } public A removeFromVolumeAttributes(Map map) { - if(this.volumeAttributes == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.volumeAttributes != null){this.volumeAttributes.remove(key);}}} return (A)this; + if (this.volumeAttributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + } + } + return (A) this; } public Map getVolumeAttributes() { @@ -154,30 +181,65 @@ public boolean hasVolumeAttributes() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CSIVolumeSourceFluent that = (V1CSIVolumeSourceFluent) o; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(volumeAttributes, that.volumeAttributes)) return false; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(volumeAttributes, that.volumeAttributes))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes, super.hashCode()); + return Objects.hash(driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (nodePublishSecretRef != null) { sb.append("nodePublishSecretRef:"); sb.append(nodePublishSecretRef + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (volumeAttributes != null && !volumeAttributes.isEmpty()) { sb.append("volumeAttributes:"); sb.append(volumeAttributes); } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(nodePublishSecretRef == null)) { + sb.append("nodePublishSecretRef:"); + sb.append(nodePublishSecretRef); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(volumeAttributes == null) && !(volumeAttributes.isEmpty())) { + sb.append("volumeAttributes:"); + sb.append(volumeAttributes); + } sb.append("}"); return sb.toString(); } 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 f445840273..6f0899d880 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CapabilitiesBuilder extends V1CapabilitiesFluent implements VisitableBuilder{ public V1CapabilitiesBuilder() { this(new V1Capabilities()); 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 8e1ad92a02..4ea5672b4d 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CapabilitiesFluent> extends BaseFluent{ +public class V1CapabilitiesFluent> extends BaseFluent{ public V1CapabilitiesFluent() { } @@ -24,42 +26,67 @@ public V1CapabilitiesFluent(V1Capabilities instance) { private List drop; protected void copyInstance(V1Capabilities instance) { - instance = (instance != null ? instance : new V1Capabilities()); + instance = instance != null ? instance : new V1Capabilities(); if (instance != null) { - this.withAdd(instance.getAdd()); - this.withDrop(instance.getDrop()); - } + this.withAdd(instance.getAdd()); + this.withDrop(instance.getDrop()); + } } public A addToAdd(int index,String item) { - if (this.add == null) {this.add = new ArrayList();} + if (this.add == null) { + this.add = new ArrayList(); + } this.add.add(index, item); - return (A)this; + return (A) this; } public A setToAdd(int index,String item) { - if (this.add == null) {this.add = new ArrayList();} - this.add.set(index, item); return (A)this; + if (this.add == null) { + this.add = new ArrayList(); + } + this.add.set(index, item); + return (A) this; } - public A addToAdd(java.lang.String... items) { - if (this.add == null) {this.add = new ArrayList();} - for (String item : items) {this.add.add(item);} return (A)this; + public A addToAdd(String... items) { + if (this.add == null) { + this.add = new ArrayList(); + } + for (String item : items) { + this.add.add(item); + } + return (A) this; } public A addAllToAdd(Collection items) { - if (this.add == null) {this.add = new ArrayList();} - for (String item : items) {this.add.add(item);} return (A)this; + if (this.add == null) { + this.add = new ArrayList(); + } + for (String item : items) { + this.add.add(item); + } + return (A) this; } - public A removeFromAdd(java.lang.String... items) { - if (this.add == null) return (A)this; - for (String item : items) { this.add.remove(item);} return (A)this; + public A removeFromAdd(String... items) { + if (this.add == null) { + return (A) this; + } + for (String item : items) { + this.add.remove(item); + } + return (A) this; } public A removeAllFromAdd(Collection items) { - if (this.add == null) return (A)this; - for (String item : items) { this.add.remove(item);} return (A)this; + if (this.add == null) { + return (A) this; + } + for (String item : items) { + this.add.remove(item); + } + return (A) this; } public List getAdd() { @@ -108,7 +135,7 @@ public A withAdd(List add) { return (A) this; } - public A withAdd(java.lang.String... add) { + public A withAdd(String... add) { if (this.add != null) { this.add.clear(); _visitables.remove("add"); @@ -122,38 +149,63 @@ public A withAdd(java.lang.String... add) { } public boolean hasAdd() { - return this.add != null && !this.add.isEmpty(); + return this.add != null && !(this.add.isEmpty()); } public A addToDrop(int index,String item) { - if (this.drop == null) {this.drop = new ArrayList();} + if (this.drop == null) { + this.drop = new ArrayList(); + } this.drop.add(index, item); - return (A)this; + return (A) this; } public A setToDrop(int index,String item) { - if (this.drop == null) {this.drop = new ArrayList();} - this.drop.set(index, item); return (A)this; + if (this.drop == null) { + this.drop = new ArrayList(); + } + this.drop.set(index, item); + return (A) this; } - public A addToDrop(java.lang.String... items) { - if (this.drop == null) {this.drop = new ArrayList();} - for (String item : items) {this.drop.add(item);} return (A)this; + public A addToDrop(String... items) { + if (this.drop == null) { + this.drop = new ArrayList(); + } + for (String item : items) { + this.drop.add(item); + } + return (A) this; } public A addAllToDrop(Collection items) { - if (this.drop == null) {this.drop = new ArrayList();} - for (String item : items) {this.drop.add(item);} return (A)this; + if (this.drop == null) { + this.drop = new ArrayList(); + } + for (String item : items) { + this.drop.add(item); + } + return (A) this; } - public A removeFromDrop(java.lang.String... items) { - if (this.drop == null) return (A)this; - for (String item : items) { this.drop.remove(item);} return (A)this; + public A removeFromDrop(String... items) { + if (this.drop == null) { + return (A) this; + } + for (String item : items) { + this.drop.remove(item); + } + return (A) this; } public A removeAllFromDrop(Collection items) { - if (this.drop == null) return (A)this; - for (String item : items) { this.drop.remove(item);} return (A)this; + if (this.drop == null) { + return (A) this; + } + for (String item : items) { + this.drop.remove(item); + } + return (A) this; } public List getDrop() { @@ -202,7 +254,7 @@ public A withDrop(List drop) { return (A) this; } - public A withDrop(java.lang.String... drop) { + public A withDrop(String... drop) { if (this.drop != null) { this.drop.clear(); _visitables.remove("drop"); @@ -216,28 +268,45 @@ public A withDrop(java.lang.String... drop) { } public boolean hasDrop() { - return this.drop != null && !this.drop.isEmpty(); + return this.drop != null && !(this.drop.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CapabilitiesFluent that = (V1CapabilitiesFluent) o; - if (!java.util.Objects.equals(add, that.add)) return false; - if (!java.util.Objects.equals(drop, that.drop)) return false; + if (!(Objects.equals(add, that.add))) { + return false; + } + if (!(Objects.equals(drop, that.drop))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(add, drop, super.hashCode()); + return Objects.hash(add, drop); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (add != null && !add.isEmpty()) { sb.append("add:"); sb.append(add + ","); } - if (drop != null && !drop.isEmpty()) { sb.append("drop:"); sb.append(drop); } + if (!(add == null) && !(add.isEmpty())) { + sb.append("add:"); + sb.append(add); + sb.append(","); + } + if (!(drop == null) && !(drop.isEmpty())) { + sb.append("drop:"); + sb.append(drop); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..081988b8d6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CapacityRequestPolicyBuilder extends V1CapacityRequestPolicyFluent implements VisitableBuilder{ + public V1CapacityRequestPolicyBuilder() { + this(new V1CapacityRequestPolicy()); + } + + public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicyFluent fluent) { + this(fluent, new V1CapacityRequestPolicy()); + } + + public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicyFluent fluent,V1CapacityRequestPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1CapacityRequestPolicyFluent fluent; + + public V1CapacityRequestPolicy build() { + V1CapacityRequestPolicy buildable = new V1CapacityRequestPolicy(); + buildable.setDefault(fluent.getDefault()); + buildable.setValidRange(fluent.buildValidRange()); + buildable.setValidValues(fluent.getValidValues()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..2cbd30ce0f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java @@ -0,0 +1,285 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CapacityRequestPolicyFluent> extends BaseFluent{ + public V1CapacityRequestPolicyFluent() { + } + + public V1CapacityRequestPolicyFluent(V1CapacityRequestPolicy instance) { + this.copyInstance(instance); + } + private Quantity _default; + private V1CapacityRequestPolicyRangeBuilder validRange; + private List validValues; + + protected void copyInstance(V1CapacityRequestPolicy instance) { + instance = instance != null ? instance : new V1CapacityRequestPolicy(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withValidRange(instance.getValidRange()); + this.withValidValues(instance.getValidValues()); + } + } + + public Quantity getDefault() { + return this._default; + } + + public A withDefault(Quantity _default) { + this._default = _default; + return (A) this; + } + + public boolean hasDefault() { + return this._default != null; + } + + public A withNewDefault(String value) { + return (A) this.withDefault(new Quantity(value)); + } + + public V1CapacityRequestPolicyRange buildValidRange() { + return this.validRange != null ? this.validRange.build() : null; + } + + public A withValidRange(V1CapacityRequestPolicyRange validRange) { + this._visitables.remove("validRange"); + if (validRange != null) { + this.validRange = new V1CapacityRequestPolicyRangeBuilder(validRange); + this._visitables.get("validRange").add(this.validRange); + } else { + this.validRange = null; + this._visitables.get("validRange").remove(this.validRange); + } + return (A) this; + } + + public boolean hasValidRange() { + return this.validRange != null; + } + + public ValidRangeNested withNewValidRange() { + return new ValidRangeNested(null); + } + + public ValidRangeNested withNewValidRangeLike(V1CapacityRequestPolicyRange item) { + return new ValidRangeNested(item); + } + + public ValidRangeNested editValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); + } + + public ValidRangeNested editOrNewValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(new V1CapacityRequestPolicyRangeBuilder().build())); + } + + public ValidRangeNested editOrNewValidRangeLike(V1CapacityRequestPolicyRange item) { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(item)); + } + + public A addToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.add(index, item); + return (A) this; + } + + public A setToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.set(index, item); + return (A) this; + } + + public A addToValidValues(Quantity... items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A addAllToValidValues(Collection items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A removeFromValidValues(Quantity... items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public A removeAllFromValidValues(Collection items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public List getValidValues() { + return this.validValues; + } + + public Quantity getValidValue(int index) { + return this.validValues.get(index); + } + + public Quantity getFirstValidValue() { + return this.validValues.get(0); + } + + public Quantity getLastValidValue() { + return this.validValues.get(validValues.size() - 1); + } + + public Quantity getMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withValidValues(List validValues) { + if (validValues != null) { + this.validValues = new ArrayList(); + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } else { + this.validValues = null; + } + return (A) this; + } + + public A withValidValues(Quantity... validValues) { + if (this.validValues != null) { + this.validValues.clear(); + _visitables.remove("validValues"); + } + if (validValues != null) { + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } + return (A) this; + } + + public boolean hasValidValues() { + return this.validValues != null && !(this.validValues.isEmpty()); + } + + public A addNewValidValue(String value) { + return (A) this.addToValidValues(new Quantity(value)); + } + + 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; + } + V1CapacityRequestPolicyFluent that = (V1CapacityRequestPolicyFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(validRange, that.validRange))) { + return false; + } + if (!(Objects.equals(validValues, that.validValues))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(_default, validRange, validValues); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(_default == null)) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(validRange == null)) { + sb.append("validRange:"); + sb.append(validRange); + sb.append(","); + } + if (!(validValues == null) && !(validValues.isEmpty())) { + sb.append("validValues:"); + sb.append(validValues); + } + sb.append("}"); + return sb.toString(); + } + public class ValidRangeNested extends V1CapacityRequestPolicyRangeFluent> implements Nested{ + ValidRangeNested(V1CapacityRequestPolicyRange item) { + this.builder = new V1CapacityRequestPolicyRangeBuilder(this, item); + } + V1CapacityRequestPolicyRangeBuilder builder; + + public N and() { + return (N) V1CapacityRequestPolicyFluent.this.withValidRange(builder.build()); + } + + public N endValidRange() { + return and(); + } + + + } + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..5c3774ba0c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CapacityRequestPolicyRangeBuilder extends V1CapacityRequestPolicyRangeFluent implements VisitableBuilder{ + public V1CapacityRequestPolicyRangeBuilder() { + this(new V1CapacityRequestPolicyRange()); + } + + public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRangeFluent fluent) { + this(fluent, new V1CapacityRequestPolicyRange()); + } + + public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRangeFluent fluent,V1CapacityRequestPolicyRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRange instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1CapacityRequestPolicyRangeFluent fluent; + + public V1CapacityRequestPolicyRange build() { + V1CapacityRequestPolicyRange buildable = new V1CapacityRequestPolicyRange(); + buildable.setMax(fluent.getMax()); + buildable.setMin(fluent.getMin()); + buildable.setStep(fluent.getStep()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..109909f7ae --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java @@ -0,0 +1,135 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CapacityRequestPolicyRangeFluent> extends BaseFluent{ + public V1CapacityRequestPolicyRangeFluent() { + } + + public V1CapacityRequestPolicyRangeFluent(V1CapacityRequestPolicyRange instance) { + this.copyInstance(instance); + } + private Quantity max; + private Quantity min; + private Quantity step; + + protected void copyInstance(V1CapacityRequestPolicyRange instance) { + instance = instance != null ? instance : new V1CapacityRequestPolicyRange(); + if (instance != null) { + this.withMax(instance.getMax()); + this.withMin(instance.getMin()); + this.withStep(instance.getStep()); + } + } + + public Quantity getMax() { + return this.max; + } + + public A withMax(Quantity max) { + this.max = max; + return (A) this; + } + + public boolean hasMax() { + return this.max != null; + } + + public A withNewMax(String value) { + return (A) this.withMax(new Quantity(value)); + } + + public Quantity getMin() { + return this.min; + } + + public A withMin(Quantity min) { + this.min = min; + return (A) this; + } + + public boolean hasMin() { + return this.min != null; + } + + public A withNewMin(String value) { + return (A) this.withMin(new Quantity(value)); + } + + public Quantity getStep() { + return this.step; + } + + public A withStep(Quantity step) { + this.step = step; + return (A) this; + } + + public boolean hasStep() { + return this.step != null; + } + + public A withNewStep(String value) { + return (A) this.withStep(new Quantity(value)); + } + + 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; + } + V1CapacityRequestPolicyRangeFluent that = (V1CapacityRequestPolicyRangeFluent) o; + if (!(Objects.equals(max, that.max))) { + return false; + } + if (!(Objects.equals(min, that.min))) { + return false; + } + if (!(Objects.equals(step, that.step))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(max, min, step); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(max == null)) { + sb.append("max:"); + sb.append(max); + sb.append(","); + } + if (!(min == null)) { + sb.append("min:"); + sb.append(min); + sb.append(","); + } + if (!(step == null)) { + sb.append("step:"); + sb.append(step); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..d577ceb525 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CapacityRequirementsBuilder extends V1CapacityRequirementsFluent implements VisitableBuilder{ + public V1CapacityRequirementsBuilder() { + this(new V1CapacityRequirements()); + } + + public V1CapacityRequirementsBuilder(V1CapacityRequirementsFluent fluent) { + this(fluent, new V1CapacityRequirements()); + } + + public V1CapacityRequirementsBuilder(V1CapacityRequirementsFluent fluent,V1CapacityRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CapacityRequirementsBuilder(V1CapacityRequirements instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1CapacityRequirementsFluent fluent; + + public V1CapacityRequirements build() { + V1CapacityRequirements buildable = new V1CapacityRequirements(); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..ae146751e7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java @@ -0,0 +1,127 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CapacityRequirementsFluent> extends BaseFluent{ + public V1CapacityRequirementsFluent() { + } + + public V1CapacityRequirementsFluent(V1CapacityRequirements instance) { + this.copyInstance(instance); + } + private Map requests; + + protected void copyInstance(V1CapacityRequirements instance) { + instance = instance != null ? instance : new V1CapacityRequirements(); + if (instance != null) { + this.withRequests(instance.getRequests()); + } + } + + public A addToRequests(String key,Quantity value) { + if (this.requests == null && key != null && value != null) { + this.requests = new LinkedHashMap(); + } + if (key != null && value != null) { + this.requests.put(key, value); + } + return (A) this; + } + + public A addToRequests(Map map) { + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); + } + if (map != null) { + this.requests.putAll(map); + } + return (A) this; + } + + public A removeFromRequests(String key) { + if (this.requests == null) { + return (A) this; + } + if (key != null && this.requests != null) { + this.requests.remove(key); + } + return (A) this; + } + + public A removeFromRequests(Map map) { + if (this.requests == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.requests != null) { + this.requests.remove(key); + } + } + } + return (A) this; + } + + public Map getRequests() { + return this.requests; + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != 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; + } + V1CapacityRequirementsFluent that = (V1CapacityRequirementsFluent) o; + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(requests); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java index 8debc4eddd..42e60a1e99 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CephFSPersistentVolumeSourceBuilder extends V1CephFSPersistentVolumeSourceFluent implements VisitableBuilder{ public V1CephFSPersistentVolumeSourceBuilder() { this(new V1CephFSPersistentVolumeSource()); 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 1f6f5ec51b..4a371c6bd6 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -15,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CephFSPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1CephFSPersistentVolumeSourceFluent> extends BaseFluent{ public V1CephFSPersistentVolumeSourceFluent() { } @@ -30,46 +33,71 @@ public V1CephFSPersistentVolumeSourceFluent(V1CephFSPersistentVolumeSource insta private String user; protected void copyInstance(V1CephFSPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1CephFSPersistentVolumeSource()); + instance = instance != null ? instance : new V1CephFSPersistentVolumeSource(); if (instance != null) { - this.withMonitors(instance.getMonitors()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretFile(instance.getSecretFile()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + this.withMonitors(instance.getMonitors()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretFile(instance.getSecretFile()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); + } } public A addToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} + if (this.monitors == null) { + this.monitors = new ArrayList(); + } this.monitors.add(index, item); - return (A)this; + return (A) this; } public A setToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.set(index, item); return (A)this; + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public A addToMonitors(String... items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } public A addAllToMonitors(Collection items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A removeFromMonitors(java.lang.String... items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; } public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; } public List getMonitors() { @@ -118,7 +146,7 @@ public A withMonitors(List monitors) { return (A) this; } - public A withMonitors(java.lang.String... monitors) { + public A withMonitors(String... monitors) { if (this.monitors != null) { this.monitors.clear(); _visitables.remove("monitors"); @@ -132,7 +160,7 @@ public A withMonitors(java.lang.String... monitors) { } public boolean hasMonitors() { - return this.monitors != null && !this.monitors.isEmpty(); + return this.monitors != null && !(this.monitors.isEmpty()); } public String getPath() { @@ -203,15 +231,15 @@ public SecretRefNested withNewSecretRefLike(V1SecretReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getUser() { @@ -228,32 +256,73 @@ public boolean hasUser() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CephFSPersistentVolumeSourceFluent that = (V1CephFSPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(monitors, that.monitors)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretFile, that.secretFile)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretFile, that.secretFile))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); + return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretFile != null) { sb.append("secretFile:"); sb.append(secretFile + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } + if (!(monitors == null) && !(monitors.isEmpty())) { + sb.append("monitors:"); + sb.append(monitors); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretFile == null)) { + sb.append("secretFile:"); + sb.append(secretFile); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } sb.append("}"); return sb.toString(); } 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 3d59580ee0..d82ca41679 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CephFSVolumeSourceBuilder extends V1CephFSVolumeSourceFluent implements VisitableBuilder{ public V1CephFSVolumeSourceBuilder() { this(new V1CephFSVolumeSource()); 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 05e3a71537..706d48b4e6 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -15,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CephFSVolumeSourceFluent> extends BaseFluent{ +public class V1CephFSVolumeSourceFluent> extends BaseFluent{ public V1CephFSVolumeSourceFluent() { } @@ -30,46 +33,71 @@ public V1CephFSVolumeSourceFluent(V1CephFSVolumeSource instance) { private String user; protected void copyInstance(V1CephFSVolumeSource instance) { - instance = (instance != null ? instance : new V1CephFSVolumeSource()); + instance = instance != null ? instance : new V1CephFSVolumeSource(); if (instance != null) { - this.withMonitors(instance.getMonitors()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretFile(instance.getSecretFile()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + this.withMonitors(instance.getMonitors()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretFile(instance.getSecretFile()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); + } } public A addToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} + if (this.monitors == null) { + this.monitors = new ArrayList(); + } this.monitors.add(index, item); - return (A)this; + return (A) this; } public A setToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.set(index, item); return (A)this; + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public A addToMonitors(String... items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } public A addAllToMonitors(Collection items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A removeFromMonitors(java.lang.String... items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; } public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; } public List getMonitors() { @@ -118,7 +146,7 @@ public A withMonitors(List monitors) { return (A) this; } - public A withMonitors(java.lang.String... monitors) { + public A withMonitors(String... monitors) { if (this.monitors != null) { this.monitors.clear(); _visitables.remove("monitors"); @@ -132,7 +160,7 @@ public A withMonitors(java.lang.String... monitors) { } public boolean hasMonitors() { - return this.monitors != null && !this.monitors.isEmpty(); + return this.monitors != null && !(this.monitors.isEmpty()); } public String getPath() { @@ -203,15 +231,15 @@ public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getUser() { @@ -228,32 +256,73 @@ public boolean hasUser() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CephFSVolumeSourceFluent that = (V1CephFSVolumeSourceFluent) o; - if (!java.util.Objects.equals(monitors, that.monitors)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretFile, that.secretFile)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretFile, that.secretFile))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); + return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretFile != null) { sb.append("secretFile:"); sb.append(secretFile + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } + if (!(monitors == null) && !(monitors.isEmpty())) { + sb.append("monitors:"); + sb.append(monitors); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretFile == null)) { + sb.append("secretFile:"); + sb.append(secretFile); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } sb.append("}"); return sb.toString(); } 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 985cc53ef4..a1d983461c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CertificateSigningRequestBuilder extends V1CertificateSigningRequestFluent implements VisitableBuilder{ public V1CertificateSigningRequestBuilder() { this(new V1CertificateSigningRequest()); 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 92f6f4175b..c96aa3df54 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CertificateSigningRequestConditionBuilder extends V1CertificateSigningRequestConditionFluent implements VisitableBuilder{ public V1CertificateSigningRequestConditionBuilder() { this(new V1CertificateSigningRequestCondition()); 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 1f732988e3..a89fed8255 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestConditionFluent> extends BaseFluent{ +public class V1CertificateSigningRequestConditionFluent> extends BaseFluent{ public V1CertificateSigningRequestConditionFluent() { } @@ -25,15 +27,15 @@ public V1CertificateSigningRequestConditionFluent(V1CertificateSigningRequestCon private String type; protected void copyInstance(V1CertificateSigningRequestCondition instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequestCondition()); + instance = instance != null ? instance : new V1CertificateSigningRequestCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withLastUpdateTime(instance.getLastUpdateTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withLastUpdateTime(instance.getLastUpdateTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -115,32 +117,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CertificateSigningRequestConditionFluent that = (V1CertificateSigningRequestConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(lastUpdateTime, that.lastUpdateTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(lastUpdateTime, that.lastUpdateTime))) { + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (lastUpdateTime != null) { sb.append("lastUpdateTime:"); sb.append(lastUpdateTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(lastUpdateTime == null)) { + sb.append("lastUpdateTime:"); + sb.append(lastUpdateTime); + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 aad4a2ae62..fe73d15192 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestFluent> extends BaseFluent{ +public class V1CertificateSigningRequestFluent> extends BaseFluent{ public V1CertificateSigningRequestFluent() { } @@ -24,14 +27,14 @@ public V1CertificateSigningRequestFluent(V1CertificateSigningRequest instance) { private V1CertificateSigningRequestStatusBuilder status; protected void copyInstance(V1CertificateSigningRequest instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequest()); + instance = instance != null ? instance : new V1CertificateSigningRequest(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1CertificateSigningRequestSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1CertificateSigningRequestSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1CertificateSigningRequestSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CertificateSigningRequestSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1CertificateSigningRequestSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1CertificateSigningRequestStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1CertificateSigningRequestStatus item) } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1CertificateSigningRequestStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CertificateSigningRequestStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1CertificateSigningRequestStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CertificateSigningRequestFluent that = (V1CertificateSigningRequestFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 3d7f9e30d7..44591df5d2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CertificateSigningRequestListBuilder extends V1CertificateSigningRequestListFluent implements VisitableBuilder{ public V1CertificateSigningRequestListBuilder() { this(new V1CertificateSigningRequestList()); 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 76d916cfa6..6080e1f05d 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestListFluent> extends BaseFluent{ +public class V1CertificateSigningRequestListFluent> extends BaseFluent{ public V1CertificateSigningRequestListFluent() { } @@ -29,13 +32,13 @@ public V1CertificateSigningRequestListFluent(V1CertificateSigningRequestList ins private V1ListMetaBuilder metadata; protected void copyInstance(V1CertificateSigningRequestList instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequestList()); + instance = instance != null ? instance : new V1CertificateSigningRequestList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1CertificateSigningRequest item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1CertificateSigningRequest item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1CertificateSigningRequest item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1CertificateSigningRequest item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1CertificateSigningRequest... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { - if (this.items == null) return (A)this; - for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1CertificateSigningRequest... items) { + if (this.items == null) { + return (A) this; + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1CertificateSigningRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CertificateSigningRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { + public A withItems(V1CertificateSigningRequest... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1CertificateSigningReque } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1CertificateSigningRequest item) } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CertificateSigningRequestListFluent that = (V1CertificateSigningRequestListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1CertificateSigningRequestFluent implements VisitableBuilder{ public V1CertificateSigningRequestSpecBuilder() { this(new V1CertificateSigningRequestSpec()); 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 3dbee21550..b17f3747f3 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 @@ -1,5 +1,6 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; import java.lang.String; @@ -8,6 +9,7 @@ import java.lang.Integer; import java.lang.Byte; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestSpecFluent> extends BaseFluent{ +public class V1CertificateSigningRequestSpecFluent> extends BaseFluent{ public V1CertificateSigningRequestSpecFluent() { } @@ -34,17 +36,17 @@ public V1CertificateSigningRequestSpecFluent(V1CertificateSigningRequestSpec ins private String username; protected void copyInstance(V1CertificateSigningRequestSpec instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequestSpec()); + instance = instance != null ? instance : new V1CertificateSigningRequestSpec(); if (instance != null) { - this.withExpirationSeconds(instance.getExpirationSeconds()); - this.withExtra(instance.getExtra()); - this.withGroups(instance.getGroups()); - this.withRequest(instance.getRequest()); - this.withSignerName(instance.getSignerName()); - this.withUid(instance.getUid()); - this.withUsages(instance.getUsages()); - this.withUsername(instance.getUsername()); - } + this.withExpirationSeconds(instance.getExpirationSeconds()); + this.withExtra(instance.getExtra()); + this.withGroups(instance.getGroups()); + this.withRequest(instance.getRequest()); + this.withSignerName(instance.getSignerName()); + this.withUid(instance.getUid()); + this.withUsages(instance.getUsages()); + this.withUsername(instance.getUsername()); + } } public Integer getExpirationSeconds() { @@ -61,23 +63,47 @@ public boolean hasExpirationSeconds() { } public A addToExtra(String key,List value) { - if(this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } - if(key != null && value != null) {this.extra.put(key, value);} return (A)this; + if (this.extra == null && key != null && value != null) { + this.extra = new LinkedHashMap(); + } + if (key != null && value != null) { + this.extra.put(key, value); + } + return (A) this; } public A addToExtra(Map> map) { - if(this.extra == null && map != null) { this.extra = new LinkedHashMap(); } - if(map != null) { this.extra.putAll(map);} return (A)this; + if (this.extra == null && map != null) { + this.extra = new LinkedHashMap(); + } + if (map != null) { + this.extra.putAll(map); + } + return (A) this; } public A removeFromExtra(String key) { - if(this.extra == null) { return (A) this; } - if(key != null && this.extra != null) {this.extra.remove(key);} return (A)this; + if (this.extra == null) { + return (A) this; + } + if (key != null && this.extra != null) { + this.extra.remove(key); + } + return (A) this; } public A removeFromExtra(Map> map) { - if(this.extra == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.extra != null){this.extra.remove(key);}}} return (A)this; + if (this.extra == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.extra != null) { + this.extra.remove(key); + } + } + } + return (A) this; } public Map> getExtra() { @@ -98,34 +124,59 @@ public boolean hasExtra() { } public A addToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} + if (this.groups == null) { + this.groups = new ArrayList(); + } this.groups.add(index, item); - return (A)this; + return (A) this; } public A setToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} - this.groups.set(index, item); return (A)this; + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.set(index, item); + return (A) this; } - public A addToGroups(java.lang.String... items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + public A addToGroups(String... items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } public A addAllToGroups(Collection items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } - public A removeFromGroups(java.lang.String... items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + public A removeFromGroups(String... items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; } public A removeAllFromGroups(Collection items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; } public List getGroups() { @@ -174,7 +225,7 @@ public A withGroups(List groups) { return (A) this; } - public A withGroups(java.lang.String... groups) { + public A withGroups(String... groups) { if (this.groups != null) { this.groups.clear(); _visitables.remove("groups"); @@ -188,7 +239,7 @@ public A withGroups(java.lang.String... groups) { } public boolean hasGroups() { - return this.groups != null && !this.groups.isEmpty(); + return this.groups != null && !(this.groups.isEmpty()); } public A withRequest(byte... request) { @@ -205,12 +256,12 @@ public A withRequest(byte... request) { } public byte[] getRequest() { - int size = request != null ? request.size() : 0;; - byte[] result = new byte[size];; + int size = request != null ? request.size() : 0; + byte[] result = new byte[size]; if (size == 0) { return result; } - int index = 0;; + int index = 0; for (byte item : request) { result[index++] = item; } @@ -218,38 +269,63 @@ public byte[] getRequest() { } public A addToRequest(int index,Byte item) { - if (this.request == null) {this.request = new ArrayList();} + if (this.request == null) { + this.request = new ArrayList(); + } this.request.add(index, item); - return (A)this; + return (A) this; } public A setToRequest(int index,Byte item) { - if (this.request == null) {this.request = new ArrayList();} - this.request.set(index, item); return (A)this; + if (this.request == null) { + this.request = new ArrayList(); + } + this.request.set(index, item); + return (A) this; } - public A addToRequest(java.lang.Byte... items) { - if (this.request == null) {this.request = new ArrayList();} - for (Byte item : items) {this.request.add(item);} return (A)this; + public A addToRequest(Byte... items) { + if (this.request == null) { + this.request = new ArrayList(); + } + for (Byte item : items) { + this.request.add(item); + } + return (A) this; } public A addAllToRequest(Collection items) { - if (this.request == null) {this.request = new ArrayList();} - for (Byte item : items) {this.request.add(item);} return (A)this; + if (this.request == null) { + this.request = new ArrayList(); + } + for (Byte item : items) { + this.request.add(item); + } + return (A) this; } - public A removeFromRequest(java.lang.Byte... items) { - if (this.request == null) return (A)this; - for (Byte item : items) { this.request.remove(item);} return (A)this; + public A removeFromRequest(Byte... items) { + if (this.request == null) { + return (A) this; + } + for (Byte item : items) { + this.request.remove(item); + } + return (A) this; } public A removeAllFromRequest(Collection items) { - if (this.request == null) return (A)this; - for (Byte item : items) { this.request.remove(item);} return (A)this; + if (this.request == null) { + return (A) this; + } + for (Byte item : items) { + this.request.remove(item); + } + return (A) this; } public boolean hasRequest() { - return this.request != null && !this.request.isEmpty(); + return this.request != null && !(this.request.isEmpty()); } public String getSignerName() { @@ -279,34 +355,59 @@ public boolean hasUid() { } public A addToUsages(int index,String item) { - if (this.usages == null) {this.usages = new ArrayList();} + if (this.usages == null) { + this.usages = new ArrayList(); + } this.usages.add(index, item); - return (A)this; + return (A) this; } public A setToUsages(int index,String item) { - if (this.usages == null) {this.usages = new ArrayList();} - this.usages.set(index, item); return (A)this; + if (this.usages == null) { + this.usages = new ArrayList(); + } + this.usages.set(index, item); + return (A) this; } - public A addToUsages(java.lang.String... items) { - if (this.usages == null) {this.usages = new ArrayList();} - for (String item : items) {this.usages.add(item);} return (A)this; + public A addToUsages(String... items) { + if (this.usages == null) { + this.usages = new ArrayList(); + } + for (String item : items) { + this.usages.add(item); + } + return (A) this; } public A addAllToUsages(Collection items) { - if (this.usages == null) {this.usages = new ArrayList();} - for (String item : items) {this.usages.add(item);} return (A)this; + if (this.usages == null) { + this.usages = new ArrayList(); + } + for (String item : items) { + this.usages.add(item); + } + return (A) this; } - public A removeFromUsages(java.lang.String... items) { - if (this.usages == null) return (A)this; - for (String item : items) { this.usages.remove(item);} return (A)this; + public A removeFromUsages(String... items) { + if (this.usages == null) { + return (A) this; + } + for (String item : items) { + this.usages.remove(item); + } + return (A) this; } public A removeAllFromUsages(Collection items) { - if (this.usages == null) return (A)this; - for (String item : items) { this.usages.remove(item);} return (A)this; + if (this.usages == null) { + return (A) this; + } + for (String item : items) { + this.usages.remove(item); + } + return (A) this; } public List getUsages() { @@ -355,7 +456,7 @@ public A withUsages(List usages) { return (A) this; } - public A withUsages(java.lang.String... usages) { + public A withUsages(String... usages) { if (this.usages != null) { this.usages.clear(); _visitables.remove("usages"); @@ -369,7 +470,7 @@ public A withUsages(java.lang.String... usages) { } public boolean hasUsages() { - return this.usages != null && !this.usages.isEmpty(); + return this.usages != null && !(this.usages.isEmpty()); } public String getUsername() { @@ -386,36 +487,89 @@ public boolean hasUsername() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CertificateSigningRequestSpecFluent that = (V1CertificateSigningRequestSpecFluent) o; - if (!java.util.Objects.equals(expirationSeconds, that.expirationSeconds)) return false; - if (!java.util.Objects.equals(extra, that.extra)) return false; - if (!java.util.Objects.equals(groups, that.groups)) return false; - if (!java.util.Objects.equals(request, that.request)) return false; - if (!java.util.Objects.equals(signerName, that.signerName)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - if (!java.util.Objects.equals(usages, that.usages)) return false; - if (!java.util.Objects.equals(username, that.username)) return false; + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } + if (!(Objects.equals(extra, that.extra))) { + return false; + } + if (!(Objects.equals(groups, that.groups))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + if (!(Objects.equals(usages, that.usages))) { + return false; + } + if (!(Objects.equals(username, that.username))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expirationSeconds, extra, groups, request, signerName, uid, usages, username, super.hashCode()); + return Objects.hash(expirationSeconds, extra, groups, request, signerName, uid, usages, username); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds + ","); } - if (extra != null && !extra.isEmpty()) { sb.append("extra:"); sb.append(extra + ","); } - if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } - if (request != null && !request.isEmpty()) { sb.append("request:"); sb.append(request + ","); } - if (signerName != null) { sb.append("signerName:"); sb.append(signerName + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid + ","); } - if (usages != null && !usages.isEmpty()) { sb.append("usages:"); sb.append(usages + ","); } - if (username != null) { sb.append("username:"); sb.append(username); } + if (!(expirationSeconds == null)) { + sb.append("expirationSeconds:"); + sb.append(expirationSeconds); + sb.append(","); + } + if (!(extra == null) && !(extra.isEmpty())) { + sb.append("extra:"); + sb.append(extra); + sb.append(","); + } + if (!(groups == null) && !(groups.isEmpty())) { + sb.append("groups:"); + sb.append(groups); + sb.append(","); + } + if (!(request == null) && !(request.isEmpty())) { + sb.append("request:"); + sb.append(request); + sb.append(","); + } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + sb.append(","); + } + if (!(usages == null) && !(usages.isEmpty())) { + sb.append("usages:"); + sb.append(usages); + sb.append(","); + } + if (!(username == null)) { + sb.append("username:"); + sb.append(username); + } sb.append("}"); return sb.toString(); } 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 61d2f62116..e061a17b08 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CertificateSigningRequestStatusBuilder extends V1CertificateSigningRequestStatusFluent implements VisitableBuilder{ public V1CertificateSigningRequestStatusBuilder() { this(new V1CertificateSigningRequestStatus()); 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 3942bb0428..1118398996 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import java.lang.Byte; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestStatusFluent> extends BaseFluent{ +public class V1CertificateSigningRequestStatusFluent> extends BaseFluent{ public V1CertificateSigningRequestStatusFluent() { } @@ -28,11 +30,11 @@ public V1CertificateSigningRequestStatusFluent(V1CertificateSigningRequestStatus private ArrayList conditions; protected void copyInstance(V1CertificateSigningRequestStatus instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequestStatus()); + instance = instance != null ? instance : new V1CertificateSigningRequestStatus(); if (instance != null) { - this.withCertificate(instance.getCertificate()); - this.withConditions(instance.getConditions()); - } + this.withCertificate(instance.getCertificate()); + this.withConditions(instance.getConditions()); + } } public A withCertificate(byte... certificate) { @@ -49,12 +51,12 @@ public A withCertificate(byte... certificate) { } public byte[] getCertificate() { - int size = certificate != null ? certificate.size() : 0;; - byte[] result = new byte[size];; + int size = certificate != null ? certificate.size() : 0; + byte[] result = new byte[size]; if (size == 0) { return result; } - int index = 0;; + int index = 0; for (byte item : certificate) { result[index++] = item; } @@ -62,42 +64,69 @@ public byte[] getCertificate() { } public A addToCertificate(int index,Byte item) { - if (this.certificate == null) {this.certificate = new ArrayList();} + if (this.certificate == null) { + this.certificate = new ArrayList(); + } this.certificate.add(index, item); - return (A)this; + return (A) this; } public A setToCertificate(int index,Byte item) { - if (this.certificate == null) {this.certificate = new ArrayList();} - this.certificate.set(index, item); return (A)this; + if (this.certificate == null) { + this.certificate = new ArrayList(); + } + this.certificate.set(index, item); + return (A) this; } - public A addToCertificate(java.lang.Byte... items) { - if (this.certificate == null) {this.certificate = new ArrayList();} - for (Byte item : items) {this.certificate.add(item);} return (A)this; + public A addToCertificate(Byte... items) { + if (this.certificate == null) { + this.certificate = new ArrayList(); + } + for (Byte item : items) { + this.certificate.add(item); + } + return (A) this; } public A addAllToCertificate(Collection items) { - if (this.certificate == null) {this.certificate = new ArrayList();} - for (Byte item : items) {this.certificate.add(item);} return (A)this; + if (this.certificate == null) { + this.certificate = new ArrayList(); + } + for (Byte item : items) { + this.certificate.add(item); + } + return (A) this; } - public A removeFromCertificate(java.lang.Byte... items) { - if (this.certificate == null) return (A)this; - for (Byte item : items) { this.certificate.remove(item);} return (A)this; + public A removeFromCertificate(Byte... items) { + if (this.certificate == null) { + return (A) this; + } + for (Byte item : items) { + this.certificate.remove(item); + } + return (A) this; } public A removeAllFromCertificate(Collection items) { - if (this.certificate == null) return (A)this; - for (Byte item : items) { this.certificate.remove(item);} return (A)this; + if (this.certificate == null) { + return (A) this; + } + for (Byte item : items) { + this.certificate.remove(item); + } + return (A) this; } public boolean hasCertificate() { - return this.certificate != null && !this.certificate.isEmpty(); + return this.certificate != null && !(this.certificate.isEmpty()); } public A addToConditions(int index,V1CertificateSigningRequestCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -106,11 +135,13 @@ public A addToConditions(int index,V1CertificateSigningRequestCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1CertificateSigningRequestCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -119,41 +150,71 @@ public A setToConditions(int index,V1CertificateSigningRequestCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1CertificateSigningRequestCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items) { - if (this.conditions == null) return (A)this; - for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1CertificateSigningRequestCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1CertificateSigningRequestConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CertificateSigningRequestConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -205,7 +266,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... conditions) { + public A withConditions(V1CertificateSigningRequestCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -219,7 +280,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1CertificateSigning } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -235,49 +296,77 @@ public ConditionsNested setNewConditionLike(int index,V1CertificateSigningReq } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1CertificateSigningRequestConditionFlu int index; public N and() { - return (N) V1CertificateSigningRequestStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1CertificateSigningRequestStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 cc8cca8a00..16685ab82b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CinderPersistentVolumeSourceBuilder extends V1CinderPersistentVolumeSourceFluent implements VisitableBuilder{ public V1CinderPersistentVolumeSourceBuilder() { this(new V1CinderPersistentVolumeSource()); 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 77b7d41e5f..d79b8dd1b9 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 @@ -1,9 +1,12 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; @@ -11,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CinderPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1CinderPersistentVolumeSourceFluent> extends BaseFluent{ public V1CinderPersistentVolumeSourceFluent() { } @@ -24,13 +27,13 @@ public V1CinderPersistentVolumeSourceFluent(V1CinderPersistentVolumeSource insta private String volumeID; protected void copyInstance(V1CinderPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1CinderPersistentVolumeSource()); + instance = instance != null ? instance : new V1CinderPersistentVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withVolumeID(instance.getVolumeID()); - } + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withVolumeID(instance.getVolumeID()); + } } public String getFsType() { @@ -88,15 +91,15 @@ public SecretRefNested withNewSecretRefLike(V1SecretReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getVolumeID() { @@ -113,28 +116,57 @@ public boolean hasVolumeID() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CinderPersistentVolumeSourceFluent that = (V1CinderPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(volumeID, that.volumeID)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(volumeID, that.volumeID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); + return Objects.hash(fsType, readOnly, secretRef, volumeID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(volumeID == null)) { + sb.append("volumeID:"); + sb.append(volumeID); + } sb.append("}"); return sb.toString(); } 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 7e8bef0d80..30d8ab339b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CinderVolumeSourceBuilder extends V1CinderVolumeSourceFluent implements VisitableBuilder{ public V1CinderVolumeSourceBuilder() { this(new V1CinderVolumeSource()); 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 f55af79f5b..8bff787f8c 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 @@ -1,9 +1,12 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; @@ -11,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CinderVolumeSourceFluent> extends BaseFluent{ +public class V1CinderVolumeSourceFluent> extends BaseFluent{ public V1CinderVolumeSourceFluent() { } @@ -24,13 +27,13 @@ public V1CinderVolumeSourceFluent(V1CinderVolumeSource instance) { private String volumeID; protected void copyInstance(V1CinderVolumeSource instance) { - instance = (instance != null ? instance : new V1CinderVolumeSource()); + instance = instance != null ? instance : new V1CinderVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withVolumeID(instance.getVolumeID()); - } + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withVolumeID(instance.getVolumeID()); + } } public String getFsType() { @@ -88,15 +91,15 @@ public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getVolumeID() { @@ -113,28 +116,57 @@ public boolean hasVolumeID() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CinderVolumeSourceFluent that = (V1CinderVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(volumeID, that.volumeID)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(volumeID, that.volumeID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); + return Objects.hash(fsType, readOnly, secretRef, volumeID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(volumeID == null)) { + sb.append("volumeID:"); + sb.append(volumeID); + } sb.append("}"); return sb.toString(); } 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 739a65c16c..b825446a34 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClientIPConfigBuilder extends V1ClientIPConfigFluent implements VisitableBuilder{ public V1ClientIPConfigBuilder() { this(new V1ClientIPConfig()); 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 79f9bde607..945245f2b6 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ClientIPConfigFluent> extends BaseFluent{ +public class V1ClientIPConfigFluent> extends BaseFluent{ public V1ClientIPConfigFluent() { } @@ -20,10 +22,10 @@ public V1ClientIPConfigFluent(V1ClientIPConfig instance) { private Integer timeoutSeconds; protected void copyInstance(V1ClientIPConfig instance) { - instance = (instance != null ? instance : new V1ClientIPConfig()); + instance = instance != null ? instance : new V1ClientIPConfig(); if (instance != null) { - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + this.withTimeoutSeconds(instance.getTimeoutSeconds()); + } } public Integer getTimeoutSeconds() { @@ -40,22 +42,33 @@ public boolean hasTimeoutSeconds() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ClientIPConfigFluent that = (V1ClientIPConfigFluent) o; - if (!java.util.Objects.equals(timeoutSeconds, that.timeoutSeconds)) return false; + if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(timeoutSeconds, super.hashCode()); + return Objects.hash(timeoutSeconds); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (timeoutSeconds != null) { sb.append("timeoutSeconds:"); sb.append(timeoutSeconds); } + if (!(timeoutSeconds == null)) { + sb.append("timeoutSeconds:"); + sb.append(timeoutSeconds); + } sb.append("}"); return sb.toString(); } 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 96f566833f..4dca02b4eb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterRoleBindingBuilder extends V1ClusterRoleBindingFluent implements VisitableBuilder{ public V1ClusterRoleBindingBuilder() { this(new V1ClusterRoleBinding()); 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 2d85140561..3f3b3b30f5 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterRoleBindingFluent> extends BaseFluent{ +public class V1ClusterRoleBindingFluent> extends BaseFluent{ public V1ClusterRoleBindingFluent() { } @@ -30,14 +33,14 @@ public V1ClusterRoleBindingFluent(V1ClusterRoleBinding instance) { private ArrayList subjects; protected void copyInstance(V1ClusterRoleBinding instance) { - instance = (instance != null ? instance : new V1ClusterRoleBinding()); + instance = instance != null ? instance : new V1ClusterRoleBinding(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRoleRef(instance.getRoleRef()); - this.withSubjects(instance.getSubjects()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRoleRef(instance.getRoleRef()); + this.withSubjects(instance.getSubjects()); + } } public String getApiVersion() { @@ -95,15 +98,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1RoleRef buildRoleRef() { @@ -135,19 +138,21 @@ public RoleRefNested withNewRoleRefLike(V1RoleRef item) { } public RoleRefNested editRoleRef() { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(null)); + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(null)); } public RoleRefNested editOrNewRoleRef() { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(new V1RoleRefBuilder().build())); + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(new V1RoleRefBuilder().build())); } public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(item)); + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(item)); } public A addToSubjects(int index,RbacV1Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} + if (this.subjects == null) { + this.subjects = new ArrayList(); + } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); @@ -156,11 +161,13 @@ public A addToSubjects(int index,RbacV1Subject item) { _visitables.get("subjects").add(builder); subjects.add(index, builder); } - return (A)this; + return (A) this; } public A setToSubjects(int index,RbacV1Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} + if (this.subjects == null) { + this.subjects = new ArrayList(); + } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); @@ -169,41 +176,71 @@ public A setToSubjects(int index,RbacV1Subject item) { _visitables.get("subjects").add(builder); subjects.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + public A addToSubjects(RbacV1Subject... items) { + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").add(builder); + this.subjects.add(builder); + } + return (A) this; } public A addAllToSubjects(Collection items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").add(builder); + this.subjects.add(builder); + } + return (A) this; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { - if (this.subjects == null) return (A)this; - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + public A removeFromSubjects(RbacV1Subject... items) { + if (this.subjects == null) { + return (A) this; + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; } public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) return (A)this; - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + if (this.subjects == null) { + return (A) this; + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; } public A removeMatchingFromSubjects(Predicate predicate) { - if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); - final List visitables = _visitables.get("subjects"); + if (subjects == null) { + return (A) this; + } + Iterator each = subjects.iterator(); + List visitables = _visitables.get("subjects"); while (each.hasNext()) { - RbacV1SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + RbacV1SubjectBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSubjects() { @@ -255,7 +292,7 @@ public A withSubjects(List subjects) { return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subjects) { + public A withSubjects(RbacV1Subject... subjects) { if (this.subjects != null) { this.subjects.clear(); _visitables.remove("subjects"); @@ -269,7 +306,7 @@ public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subje } public boolean hasSubjects() { - return this.subjects != null && !this.subjects.isEmpty(); + return this.subjects != null && !(this.subjects.isEmpty()); } public SubjectsNested addNewSubject() { @@ -285,55 +322,101 @@ public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { } public SubjectsNested editSubject(int index) { - if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); - return setNewSubjectLike(index, buildSubject(index)); + if (index <= subjects.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } public SubjectsNested editFirstSubject() { - if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); - return setNewSubjectLike(0, buildSubject(0)); + if (subjects.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(0, this.buildSubject(0)); } public SubjectsNested editLastSubject() { int index = subjects.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); - return setNewSubjectLike(index, buildSubject(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } public SubjectsNested editMatchingSubject(Predicate predicate) { int index = -1; - for (int i=0;i extends RbacV1SubjectFluent> im int index; public N and() { - return (N) V1ClusterRoleBindingFluent.this.setToSubjects(index,builder.build()); + return (N) V1ClusterRoleBindingFluent.this.setToSubjects(index, builder.build()); } public N endSubject() { 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 0eea4fdf1e..560331ebb5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterRoleBindingListBuilder extends V1ClusterRoleBindingListFluent implements VisitableBuilder{ public V1ClusterRoleBindingListBuilder() { this(new V1ClusterRoleBindingList()); 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 c78dd852d6..90bad118ae 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterRoleBindingListFluent> extends BaseFluent{ +public class V1ClusterRoleBindingListFluent> extends BaseFluent{ public V1ClusterRoleBindingListFluent() { } @@ -29,13 +32,13 @@ public V1ClusterRoleBindingListFluent(V1ClusterRoleBindingList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ClusterRoleBindingList instance) { - instance = (instance != null ? instance : new V1ClusterRoleBindingList()); + instance = instance != null ? instance : new V1ClusterRoleBindingList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ClusterRoleBinding item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ClusterRoleBinding item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ClusterRoleBinding item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ClusterRoleBinding item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ClusterRoleBinding... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { - if (this.items == null) return (A)this; - for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ClusterRoleBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ClusterRoleBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ClusterRoleBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { + public A withItems(V1ClusterRoleBinding... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... i } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ClusterRoleBinding item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ClusterRoleBindingListFluent that = (V1ClusterRoleBindingListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ClusterRoleBindingFluent> i int index; public N and() { - return (N) V1ClusterRoleBindingListFluent.this.setToItems(index,builder.build()); + return (N) V1ClusterRoleBindingListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 6f10dc2fde..735902cc02 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterRoleBuilder extends V1ClusterRoleFluent implements VisitableBuilder{ public V1ClusterRoleBuilder() { this(new V1ClusterRole()); 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 d46ff852ea..33bdbc12c1 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterRoleFluent> extends BaseFluent{ +public class V1ClusterRoleFluent> extends BaseFluent{ public V1ClusterRoleFluent() { } @@ -30,14 +33,14 @@ public V1ClusterRoleFluent(V1ClusterRole instance) { private ArrayList rules; protected void copyInstance(V1ClusterRole instance) { - instance = (instance != null ? instance : new V1ClusterRole()); + instance = instance != null ? instance : new V1ClusterRole(); if (instance != null) { - this.withAggregationRule(instance.getAggregationRule()); - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRules(instance.getRules()); - } + this.withAggregationRule(instance.getAggregationRule()); + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRules(instance.getRules()); + } } public V1AggregationRule buildAggregationRule() { @@ -69,15 +72,15 @@ public AggregationRuleNested withNewAggregationRuleLike(V1AggregationRule ite } public AggregationRuleNested editAggregationRule() { - return withNewAggregationRuleLike(java.util.Optional.ofNullable(buildAggregationRule()).orElse(null)); + return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(null)); } public AggregationRuleNested editOrNewAggregationRule() { - return withNewAggregationRuleLike(java.util.Optional.ofNullable(buildAggregationRule()).orElse(new V1AggregationRuleBuilder().build())); + return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(new V1AggregationRuleBuilder().build())); } public AggregationRuleNested editOrNewAggregationRuleLike(V1AggregationRule item) { - return withNewAggregationRuleLike(java.util.Optional.ofNullable(buildAggregationRule()).orElse(item)); + return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(item)); } public String getApiVersion() { @@ -135,19 +138,21 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public A addToRules(int index,V1PolicyRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -156,11 +161,13 @@ public A addToRules(int index,V1PolicyRule item) { _visitables.get("rules").add(builder); rules.add(index, builder); } - return (A)this; + return (A) this; } public A setToRules(int index,V1PolicyRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -169,41 +176,71 @@ public A setToRules(int index,V1PolicyRule item) { _visitables.get("rules").add(builder); rules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public A addToRules(V1PolicyRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - if (this.rules == null) return (A)this; - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A removeFromRules(V1PolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1PolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRules() { @@ -255,7 +292,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { + public A withRules(V1PolicyRule... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -269,7 +306,7 @@ public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { } public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + return this.rules != null && !(this.rules.isEmpty()); } public RulesNested addNewRule() { @@ -285,55 +322,101 @@ public RulesNested setNewRuleLike(int index,V1PolicyRule item) { } public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); + if (index <= rules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } public RulesNested editLastRule() { int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1PolicyRuleFluent> implement int index; public N and() { - return (N) V1ClusterRoleFluent.this.setToRules(index,builder.build()); + return (N) V1ClusterRoleFluent.this.setToRules(index, builder.build()); } public N endRule() { 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 4216823371..8cbadf2e39 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterRoleListBuilder extends V1ClusterRoleListFluent implements VisitableBuilder{ public V1ClusterRoleListBuilder() { this(new V1ClusterRoleList()); 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 5a3817bff3..22a450b697 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterRoleListFluent> extends BaseFluent{ +public class V1ClusterRoleListFluent> extends BaseFluent{ public V1ClusterRoleListFluent() { } @@ -29,13 +32,13 @@ public V1ClusterRoleListFluent(V1ClusterRoleList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ClusterRoleList instance) { - instance = (instance != null ? instance : new V1ClusterRoleList()); + instance = instance != null ? instance : new V1ClusterRoleList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ClusterRole item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ClusterRole item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ClusterRole item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ClusterRole item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ClusterRole... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { - if (this.items == null) return (A)this; - for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ClusterRole... items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ClusterRoleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ClusterRoleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { + public A withItems(V1ClusterRole... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ClusterRole item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ClusterRoleListFluent that = (V1ClusterRoleListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ClusterRoleFluent> implemen int index; public N and() { - return (N) V1ClusterRoleListFluent.this.setToItems(index,builder.build()); + return (N) V1ClusterRoleListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 0d359a231f..ace91ef70c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterTrustBundleProjectionBuilder extends V1ClusterTrustBundleProjectionFluent implements VisitableBuilder{ public V1ClusterTrustBundleProjectionBuilder() { this(new V1ClusterTrustBundleProjection()); 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 5fdc3effec..dd1813ab82 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 @@ -1,9 +1,12 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; @@ -11,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterTrustBundleProjectionFluent> extends BaseFluent{ +public class V1ClusterTrustBundleProjectionFluent> extends BaseFluent{ public V1ClusterTrustBundleProjectionFluent() { } @@ -25,14 +28,14 @@ public V1ClusterTrustBundleProjectionFluent(V1ClusterTrustBundleProjection insta private String signerName; protected void copyInstance(V1ClusterTrustBundleProjection instance) { - instance = (instance != null ? instance : new V1ClusterTrustBundleProjection()); + instance = instance != null ? instance : new V1ClusterTrustBundleProjection(); if (instance != null) { - this.withLabelSelector(instance.getLabelSelector()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - this.withPath(instance.getPath()); - this.withSignerName(instance.getSignerName()); - } + this.withLabelSelector(instance.getLabelSelector()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + this.withPath(instance.getPath()); + this.withSignerName(instance.getSignerName()); + } } public V1LabelSelector buildLabelSelector() { @@ -64,15 +67,15 @@ public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { } public LabelSelectorNested editLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(null)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } public LabelSelectorNested editOrNewLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); } public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(item)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } public String getName() { @@ -128,30 +131,65 @@ public boolean hasSignerName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ClusterTrustBundleProjectionFluent that = (V1ClusterTrustBundleProjectionFluent) o; - if (!java.util.Objects.equals(labelSelector, that.labelSelector)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(signerName, that.signerName)) return false; + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(labelSelector, name, optional, path, signerName, super.hashCode()); + return Objects.hash(labelSelector, name, optional, path, signerName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (signerName != null) { sb.append("signerName:"); sb.append(signerName); } + if (!(labelSelector == null)) { + sb.append("labelSelector:"); + sb.append(labelSelector); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + } sb.append("}"); return sb.toString(); } 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 4bc06643f8..c42c0de336 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ComponentConditionBuilder extends V1ComponentConditionFluent implements VisitableBuilder{ public V1ComponentConditionBuilder() { this(new V1ComponentCondition()); 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 5ee80030d3..3180682ba7 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ComponentConditionFluent> extends BaseFluent{ +public class V1ComponentConditionFluent> extends BaseFluent{ public V1ComponentConditionFluent() { } @@ -22,13 +24,13 @@ public V1ComponentConditionFluent(V1ComponentCondition instance) { private String type; protected void copyInstance(V1ComponentCondition instance) { - instance = (instance != null ? instance : new V1ComponentCondition()); + instance = instance != null ? instance : new V1ComponentCondition(); if (instance != null) { - this.withError(instance.getError()); - this.withMessage(instance.getMessage()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withError(instance.getError()); + this.withMessage(instance.getMessage()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public String getError() { @@ -84,28 +86,57 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ComponentConditionFluent that = (V1ComponentConditionFluent) o; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(error, message, status, type, super.hashCode()); + return Objects.hash(error, message, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 cf1ef2e483..65bfd14ad4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ComponentStatusBuilder extends V1ComponentStatusFluent implements VisitableBuilder{ public V1ComponentStatusBuilder() { this(new V1ComponentStatus()); 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 37afe668ca..bde5958c11 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ComponentStatusFluent> extends BaseFluent{ +public class V1ComponentStatusFluent> extends BaseFluent{ public V1ComponentStatusFluent() { } @@ -29,13 +32,13 @@ public V1ComponentStatusFluent(V1ComponentStatus instance) { private V1ObjectMetaBuilder metadata; protected void copyInstance(V1ComponentStatus instance) { - instance = (instance != null ? instance : new V1ComponentStatus()); + instance = instance != null ? instance : new V1ComponentStatus(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withConditions(instance.getConditions()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withConditions(instance.getConditions()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToConditions(int index,V1ComponentCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -61,11 +66,13 @@ public A addToConditions(int index,V1ComponentCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1ComponentCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -74,41 +81,71 @@ public A setToConditions(int index,V1ComponentCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1ComponentCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items) { - if (this.conditions == null) return (A)this; - for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1ComponentCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ComponentConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ComponentConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -160,7 +197,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... conditions) { + public A withConditions(V1ComponentCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -174,7 +211,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1ComponentCondition } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -190,28 +227,39 @@ public ConditionsNested setNewConditionLike(int index,V1ComponentCondition it } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ComponentStatusFluent that = (V1ComponentStatusFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, conditions, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, conditions, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + 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(); } @@ -302,7 +379,7 @@ public class ConditionsNested extends V1ComponentConditionFluent implements VisitableBuilder{ public V1ComponentStatusListBuilder() { this(new V1ComponentStatusList()); 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 2b3dde4692..4e18625e3f 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ComponentStatusListFluent> extends BaseFluent{ +public class V1ComponentStatusListFluent> extends BaseFluent{ public V1ComponentStatusListFluent() { } @@ -29,13 +32,13 @@ public V1ComponentStatusListFluent(V1ComponentStatusList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ComponentStatusList instance) { - instance = (instance != null ? instance : new V1ComponentStatusList()); + instance = instance != null ? instance : new V1ComponentStatusList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ComponentStatus item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ComponentStatus item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ComponentStatus item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ComponentStatus item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ComponentStatus... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { - if (this.items == null) return (A)this; - for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ComponentStatus... items) { + if (this.items == null) { + return (A) this; + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ComponentStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ComponentStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { + public A withItems(V1ComponentStatus... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ComponentStatus... item } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ComponentStatus item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ComponentStatusListFluent that = (V1ComponentStatusListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ComponentStatusFluent> impl int index; public N and() { - return (N) V1ComponentStatusListFluent.this.setToItems(index,builder.build()); + return (N) V1ComponentStatusListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 0df0e4e609..eade4d2599 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConditionBuilder extends V1ConditionFluent implements VisitableBuilder{ public V1ConditionBuilder() { this(new V1Condition()); 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 6d2e490b4f..d873266cfa 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ConditionFluent> extends BaseFluent{ +public class V1ConditionFluent> extends BaseFluent{ public V1ConditionFluent() { } @@ -26,15 +28,15 @@ public V1ConditionFluent(V1Condition instance) { private String type; protected void copyInstance(V1Condition instance) { - instance = (instance != null ? instance : new V1Condition()); + instance = instance != null ? instance : new V1Condition(); 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()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -116,32 +118,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ConditionFluent that = (V1ConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + 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); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 48b9dcc705..fe5d3c9057 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapBuilder extends V1ConfigMapFluent implements VisitableBuilder{ public V1ConfigMapBuilder() { this(new V1ConfigMap()); 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 fa4a049340..ec213315d6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapEnvSourceBuilder extends V1ConfigMapEnvSourceFluent implements VisitableBuilder{ public V1ConfigMapEnvSourceBuilder() { this(new V1ConfigMapEnvSource()); 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 e00cb38f58..38ee0d5da9 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapEnvSourceFluent> extends BaseFluent{ +public class V1ConfigMapEnvSourceFluent> extends BaseFluent{ public V1ConfigMapEnvSourceFluent() { } @@ -21,11 +23,11 @@ public V1ConfigMapEnvSourceFluent(V1ConfigMapEnvSource instance) { private Boolean optional; protected void copyInstance(V1ConfigMapEnvSource instance) { - instance = (instance != null ? instance : new V1ConfigMapEnvSource()); + instance = instance != null ? instance : new V1ConfigMapEnvSource(); if (instance != null) { - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } public String getName() { @@ -55,24 +57,41 @@ public boolean hasOptional() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ConfigMapEnvSourceFluent that = (V1ConfigMapEnvSourceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, optional, super.hashCode()); + return Objects.hash(name, optional); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } sb.append("}"); return sb.toString(); } 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 473267acc3..18b883c189 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 @@ -1,10 +1,13 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; import java.util.Map; @@ -13,7 +16,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapFluent> extends BaseFluent{ +public class V1ConfigMapFluent> extends BaseFluent{ public V1ConfigMapFluent() { } @@ -28,15 +31,15 @@ public V1ConfigMapFluent(V1ConfigMap instance) { private V1ObjectMetaBuilder metadata; protected void copyInstance(V1ConfigMap instance) { - instance = (instance != null ? instance : new V1ConfigMap()); + instance = instance != null ? instance : new V1ConfigMap(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withBinaryData(instance.getBinaryData()); - this.withData(instance.getData()); - this.withImmutable(instance.getImmutable()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withBinaryData(instance.getBinaryData()); + this.withData(instance.getData()); + this.withImmutable(instance.getImmutable()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -53,23 +56,47 @@ public boolean hasApiVersion() { } public A addToBinaryData(String key,byte[] value) { - if(this.binaryData == null && key != null && value != null) { this.binaryData = new LinkedHashMap(); } - if(key != null && value != null) {this.binaryData.put(key, value);} return (A)this; + if (this.binaryData == null && key != null && value != null) { + this.binaryData = new LinkedHashMap(); + } + if (key != null && value != null) { + this.binaryData.put(key, value); + } + return (A) this; } public A addToBinaryData(Map map) { - if(this.binaryData == null && map != null) { this.binaryData = new LinkedHashMap(); } - if(map != null) { this.binaryData.putAll(map);} return (A)this; + if (this.binaryData == null && map != null) { + this.binaryData = new LinkedHashMap(); + } + if (map != null) { + this.binaryData.putAll(map); + } + return (A) this; } public A removeFromBinaryData(String key) { - if(this.binaryData == null) { return (A) this; } - if(key != null && this.binaryData != null) {this.binaryData.remove(key);} return (A)this; + if (this.binaryData == null) { + return (A) this; + } + if (key != null && this.binaryData != null) { + this.binaryData.remove(key); + } + return (A) this; } public A removeFromBinaryData(Map map) { - if(this.binaryData == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.binaryData != null){this.binaryData.remove(key);}}} return (A)this; + if (this.binaryData == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.binaryData != null) { + this.binaryData.remove(key); + } + } + } + return (A) this; } public Map getBinaryData() { @@ -90,23 +117,47 @@ public boolean hasBinaryData() { } public A addToData(String key,String value) { - if(this.data == null && key != null && value != null) { this.data = new LinkedHashMap(); } - if(key != null && value != null) {this.data.put(key, value);} return (A)this; + if (this.data == null && key != null && value != null) { + this.data = new LinkedHashMap(); + } + if (key != null && value != null) { + this.data.put(key, value); + } + return (A) this; } public A addToData(Map map) { - if(this.data == null && map != null) { this.data = new LinkedHashMap(); } - if(map != null) { this.data.putAll(map);} return (A)this; + if (this.data == null && map != null) { + this.data = new LinkedHashMap(); + } + if (map != null) { + this.data.putAll(map); + } + return (A) this; } public A removeFromData(String key) { - if(this.data == null) { return (A) this; } - if(key != null && this.data != null) {this.data.remove(key);} return (A)this; + if (this.data == null) { + return (A) this; + } + if (key != null && this.data != null) { + this.data.remove(key); + } + return (A) this; } public A removeFromData(Map map) { - if(this.data == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.data != null){this.data.remove(key);}}} return (A)this; + if (this.data == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.data != null) { + this.data.remove(key); + } + } + } + return (A) this; } public Map getData() { @@ -181,44 +232,85 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ConfigMapFluent that = (V1ConfigMapFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(binaryData, that.binaryData)) return false; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(immutable, that.immutable)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(binaryData, that.binaryData))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(immutable, that.immutable))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, binaryData, data, immutable, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, binaryData, data, immutable, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (binaryData != null && !binaryData.isEmpty()) { sb.append("binaryData:"); sb.append(binaryData + ","); } - if (data != null && !data.isEmpty()) { sb.append("data:"); sb.append(data + ","); } - if (immutable != null) { sb.append("immutable:"); sb.append(immutable + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(binaryData == null) && !(binaryData.isEmpty())) { + sb.append("binaryData:"); + sb.append(binaryData); + sb.append(","); + } + if (!(data == null) && !(data.isEmpty())) { + sb.append("data:"); + sb.append(data); + sb.append(","); + } + if (!(immutable == null)) { + sb.append("immutable:"); + sb.append(immutable); + 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(); } 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 9e612d3ed7..be1f035c29 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapKeySelectorBuilder extends V1ConfigMapKeySelectorFluent implements VisitableBuilder{ public V1ConfigMapKeySelectorBuilder() { this(new V1ConfigMapKeySelector()); 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 11cdd6d52e..b0f0fb5a7d 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapKeySelectorFluent> extends BaseFluent{ +public class V1ConfigMapKeySelectorFluent> extends BaseFluent{ public V1ConfigMapKeySelectorFluent() { } @@ -22,12 +24,12 @@ public V1ConfigMapKeySelectorFluent(V1ConfigMapKeySelector instance) { private Boolean optional; protected void copyInstance(V1ConfigMapKeySelector instance) { - instance = (instance != null ? instance : new V1ConfigMapKeySelector()); + instance = instance != null ? instance : new V1ConfigMapKeySelector(); if (instance != null) { - this.withKey(instance.getKey()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + this.withKey(instance.getKey()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } public String getKey() { @@ -70,26 +72,49 @@ public boolean hasOptional() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ConfigMapKeySelectorFluent that = (V1ConfigMapKeySelectorFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(key, name, optional, super.hashCode()); + return Objects.hash(key, name, optional); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } sb.append("}"); return sb.toString(); } 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 0c3a54bc96..9657aaae33 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapListBuilder extends V1ConfigMapListFluent implements VisitableBuilder{ public V1ConfigMapListBuilder() { this(new V1ConfigMapList()); 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 b57b7107a5..aa25b9b822 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapListFluent> extends BaseFluent{ +public class V1ConfigMapListFluent> extends BaseFluent{ public V1ConfigMapListFluent() { } @@ -29,13 +32,13 @@ public V1ConfigMapListFluent(V1ConfigMapList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ConfigMapList instance) { - instance = (instance != null ? instance : new V1ConfigMapList()); + instance = instance != null ? instance : new V1ConfigMapList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ConfigMap item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ConfigMap item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ConfigMap item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ConfigMap item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ConfigMap... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { - if (this.items == null) return (A)this; - for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ConfigMap... items) { + if (this.items == null) { + return (A) this; + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ConfigMapBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ConfigMapBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { + public A withItems(V1ConfigMap... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ConfigMap item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ConfigMapListFluent that = (V1ConfigMapListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ConfigMapFluent> implements int index; public N and() { - return (N) V1ConfigMapListFluent.this.setToItems(index,builder.build()); + return (N) V1ConfigMapListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 f97c83f156..a729cb548d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapNodeConfigSourceBuilder extends V1ConfigMapNodeConfigSourceFluent implements VisitableBuilder{ public V1ConfigMapNodeConfigSourceBuilder() { this(new V1ConfigMapNodeConfigSource()); 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 6f26c2348d..669ebe904e 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapNodeConfigSourceFluent> extends BaseFluent{ +public class V1ConfigMapNodeConfigSourceFluent> extends BaseFluent{ public V1ConfigMapNodeConfigSourceFluent() { } @@ -23,14 +25,14 @@ public V1ConfigMapNodeConfigSourceFluent(V1ConfigMapNodeConfigSource instance) { private String uid; protected void copyInstance(V1ConfigMapNodeConfigSource instance) { - instance = (instance != null ? instance : new V1ConfigMapNodeConfigSource()); + instance = instance != null ? instance : new V1ConfigMapNodeConfigSource(); if (instance != null) { - this.withKubeletConfigKey(instance.getKubeletConfigKey()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResourceVersion(instance.getResourceVersion()); - this.withUid(instance.getUid()); - } + this.withKubeletConfigKey(instance.getKubeletConfigKey()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResourceVersion(instance.getResourceVersion()); + this.withUid(instance.getUid()); + } } public String getKubeletConfigKey() { @@ -99,30 +101,65 @@ public boolean hasUid() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ConfigMapNodeConfigSourceFluent that = (V1ConfigMapNodeConfigSourceFluent) o; - if (!java.util.Objects.equals(kubeletConfigKey, that.kubeletConfigKey)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(resourceVersion, that.resourceVersion)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; + if (!(Objects.equals(kubeletConfigKey, that.kubeletConfigKey))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(kubeletConfigKey, name, namespace, resourceVersion, uid, super.hashCode()); + return Objects.hash(kubeletConfigKey, name, namespace, resourceVersion, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (kubeletConfigKey != null) { sb.append("kubeletConfigKey:"); sb.append(kubeletConfigKey + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(kubeletConfigKey == null)) { + sb.append("kubeletConfigKey:"); + sb.append(kubeletConfigKey); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } sb.append("}"); return sb.toString(); } 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 9c6b26c9b8..0f90a4c3e5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapProjectionBuilder extends V1ConfigMapProjectionFluent implements VisitableBuilder{ public V1ConfigMapProjectionBuilder() { this(new V1ConfigMapProjection()); 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 790ccebd72..a1f459884f 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapProjectionFluent> extends BaseFluent{ +public class V1ConfigMapProjectionFluent> extends BaseFluent{ public V1ConfigMapProjectionFluent() { } @@ -29,16 +31,18 @@ public V1ConfigMapProjectionFluent(V1ConfigMapProjection instance) { private Boolean optional; protected void copyInstance(V1ConfigMapProjection instance) { - instance = (instance != null ? instance : new V1ConfigMapProjection()); + instance = instance != null ? instance : new V1ConfigMapProjection(); if (instance != null) { - this.withItems(instance.getItems()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + this.withItems(instance.getItems()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } public A addToItems(int index,V1KeyToPath item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -47,11 +51,13 @@ public A addToItems(int index,V1KeyToPath item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1KeyToPath item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -60,41 +66,71 @@ public A setToItems(int index,V1KeyToPath item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1KeyToPath... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -146,7 +182,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { + public A withItems(V1KeyToPath... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -160,7 +196,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -176,28 +212,39 @@ public ItemsNested setNewItemLike(int index,V1KeyToPath item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 extends V1KeyToPathFluent> implements int index; public N and() { - return (N) V1ConfigMapProjectionFluent.this.setToItems(index,builder.build()); + return (N) V1ConfigMapProjectionFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 3c9fbefe1f..e06b351ca3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapVolumeSourceBuilder extends V1ConfigMapVolumeSourceFluent implements VisitableBuilder{ public V1ConfigMapVolumeSourceBuilder() { this(new V1ConfigMapVolumeSource()); 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 24e3717a68..8c519e0377 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapVolumeSourceFluent> extends BaseFluent{ +public class V1ConfigMapVolumeSourceFluent> extends BaseFluent{ public V1ConfigMapVolumeSourceFluent() { } @@ -31,13 +33,13 @@ public V1ConfigMapVolumeSourceFluent(V1ConfigMapVolumeSource instance) { private Boolean optional; protected void copyInstance(V1ConfigMapVolumeSource instance) { - instance = (instance != null ? instance : new V1ConfigMapVolumeSource()); + instance = instance != null ? instance : new V1ConfigMapVolumeSource(); if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withItems(instance.getItems()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + this.withDefaultMode(instance.getDefaultMode()); + this.withItems(instance.getItems()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } public Integer getDefaultMode() { @@ -54,7 +56,9 @@ public boolean hasDefaultMode() { } public A addToItems(int index,V1KeyToPath item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -63,11 +67,13 @@ public A addToItems(int index,V1KeyToPath item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1KeyToPath item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -76,41 +82,71 @@ public A setToItems(int index,V1KeyToPath item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1KeyToPath... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -162,7 +198,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { + public A withItems(V1KeyToPath... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -176,7 +212,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -192,28 +228,39 @@ public ItemsNested setNewItemLike(int index,V1KeyToPath item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 extends V1KeyToPathFluent> implements int index; public N and() { - return (N) V1ConfigMapVolumeSourceFluent.this.setToItems(index,builder.build()); + return (N) V1ConfigMapVolumeSourceFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 d8dc7e5333..55d53b2d97 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerBuilder extends V1ContainerFluent implements VisitableBuilder{ public V1ContainerBuilder() { this(new V1Container()); @@ -37,6 +38,7 @@ public V1Container build() { buildable.setResizePolicy(fluent.buildResizePolicy()); buildable.setResources(fluent.buildResources()); buildable.setRestartPolicy(fluent.getRestartPolicy()); + buildable.setRestartPolicyRules(fluent.buildRestartPolicyRules()); buildable.setSecurityContext(fluent.buildSecurityContext()); buildable.setStartupProbe(fluent.buildStartupProbe()); buildable.setStdin(fluent.getStdin()); 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 new file mode 100644 index 0000000000..45474bdee3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ContainerExtendedResourceRequestBuilder extends V1ContainerExtendedResourceRequestFluent implements VisitableBuilder{ + public V1ContainerExtendedResourceRequestBuilder() { + this(new V1ContainerExtendedResourceRequest()); + } + + public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequestFluent fluent) { + this(fluent, new V1ContainerExtendedResourceRequest()); + } + + public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequestFluent fluent,V1ContainerExtendedResourceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ContainerExtendedResourceRequestFluent fluent; + + public V1ContainerExtendedResourceRequest build() { + V1ContainerExtendedResourceRequest buildable = new V1ContainerExtendedResourceRequest(); + buildable.setContainerName(fluent.getContainerName()); + buildable.setRequestName(fluent.getRequestName()); + buildable.setResourceName(fluent.getResourceName()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..ede0897290 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ContainerExtendedResourceRequestFluent> extends BaseFluent{ + public V1ContainerExtendedResourceRequestFluent() { + } + + public V1ContainerExtendedResourceRequestFluent(V1ContainerExtendedResourceRequest instance) { + this.copyInstance(instance); + } + private String containerName; + private String requestName; + private String resourceName; + + protected void copyInstance(V1ContainerExtendedResourceRequest instance) { + instance = instance != null ? instance : new V1ContainerExtendedResourceRequest(); + if (instance != null) { + this.withContainerName(instance.getContainerName()); + this.withRequestName(instance.getRequestName()); + this.withResourceName(instance.getResourceName()); + } + } + + public String getContainerName() { + return this.containerName; + } + + public A withContainerName(String containerName) { + this.containerName = containerName; + return (A) this; + } + + public boolean hasContainerName() { + return this.containerName != null; + } + + public String getRequestName() { + return this.requestName; + } + + public A withRequestName(String requestName) { + this.requestName = requestName; + return (A) this; + } + + public boolean hasRequestName() { + return this.requestName != null; + } + + public String getResourceName() { + return this.resourceName; + } + + public A withResourceName(String resourceName) { + this.resourceName = resourceName; + return (A) this; + } + + public boolean hasResourceName() { + return this.resourceName != 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; + } + V1ContainerExtendedResourceRequestFluent that = (V1ContainerExtendedResourceRequestFluent) o; + if (!(Objects.equals(containerName, that.containerName))) { + return false; + } + if (!(Objects.equals(requestName, that.requestName))) { + return false; + } + if (!(Objects.equals(resourceName, that.resourceName))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(containerName, requestName, resourceName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(containerName == null)) { + sb.append("containerName:"); + sb.append(containerName); + sb.append(","); + } + if (!(requestName == null)) { + sb.append("requestName:"); + sb.append(requestName); + sb.append(","); + } + if (!(resourceName == null)) { + sb.append("resourceName:"); + sb.append(resourceName); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file 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 4f9eeb9558..e01127f070 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 @@ -1,23 +1,26 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.RuntimeException; import java.util.Iterator; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerFluent> extends BaseFluent{ +public class V1ContainerFluent> extends BaseFluent{ public V1ContainerFluent() { } @@ -38,6 +41,7 @@ public V1ContainerFluent(V1Container instance) { private ArrayList resizePolicy; private V1ResourceRequirementsBuilder resources; private String restartPolicy; + private ArrayList restartPolicyRules; private V1SecurityContextBuilder securityContext; private V1ProbeBuilder startupProbe; private Boolean stdin; @@ -50,64 +54,90 @@ public V1ContainerFluent(V1Container instance) { private String workingDir; protected void copyInstance(V1Container instance) { - instance = (instance != null ? instance : new V1Container()); + instance = instance != null ? instance : new V1Container(); if (instance != null) { - this.withArgs(instance.getArgs()); - this.withCommand(instance.getCommand()); - this.withEnv(instance.getEnv()); - this.withEnvFrom(instance.getEnvFrom()); - this.withImage(instance.getImage()); - this.withImagePullPolicy(instance.getImagePullPolicy()); - this.withLifecycle(instance.getLifecycle()); - this.withLivenessProbe(instance.getLivenessProbe()); - this.withName(instance.getName()); - this.withPorts(instance.getPorts()); - this.withReadinessProbe(instance.getReadinessProbe()); - this.withResizePolicy(instance.getResizePolicy()); - this.withResources(instance.getResources()); - this.withRestartPolicy(instance.getRestartPolicy()); - this.withSecurityContext(instance.getSecurityContext()); - this.withStartupProbe(instance.getStartupProbe()); - this.withStdin(instance.getStdin()); - this.withStdinOnce(instance.getStdinOnce()); - this.withTerminationMessagePath(instance.getTerminationMessagePath()); - this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); - this.withTty(instance.getTty()); - this.withVolumeDevices(instance.getVolumeDevices()); - this.withVolumeMounts(instance.getVolumeMounts()); - this.withWorkingDir(instance.getWorkingDir()); - } + this.withArgs(instance.getArgs()); + this.withCommand(instance.getCommand()); + this.withEnv(instance.getEnv()); + this.withEnvFrom(instance.getEnvFrom()); + this.withImage(instance.getImage()); + this.withImagePullPolicy(instance.getImagePullPolicy()); + this.withLifecycle(instance.getLifecycle()); + this.withLivenessProbe(instance.getLivenessProbe()); + this.withName(instance.getName()); + this.withPorts(instance.getPorts()); + this.withReadinessProbe(instance.getReadinessProbe()); + this.withResizePolicy(instance.getResizePolicy()); + this.withResources(instance.getResources()); + this.withRestartPolicy(instance.getRestartPolicy()); + this.withRestartPolicyRules(instance.getRestartPolicyRules()); + this.withSecurityContext(instance.getSecurityContext()); + this.withStartupProbe(instance.getStartupProbe()); + this.withStdin(instance.getStdin()); + this.withStdinOnce(instance.getStdinOnce()); + this.withTerminationMessagePath(instance.getTerminationMessagePath()); + this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); + this.withTty(instance.getTty()); + this.withVolumeDevices(instance.getVolumeDevices()); + this.withVolumeMounts(instance.getVolumeMounts()); + this.withWorkingDir(instance.getWorkingDir()); + } } public A addToArgs(int index,String item) { - if (this.args == null) {this.args = new ArrayList();} + if (this.args == null) { + this.args = new ArrayList(); + } this.args.add(index, item); - return (A)this; + return (A) this; } public A setToArgs(int index,String item) { - if (this.args == null) {this.args = new ArrayList();} - this.args.set(index, item); return (A)this; + if (this.args == null) { + this.args = new ArrayList(); + } + this.args.set(index, item); + return (A) this; } - public A addToArgs(java.lang.String... items) { - if (this.args == null) {this.args = new ArrayList();} - for (String item : items) {this.args.add(item);} return (A)this; + public A addToArgs(String... items) { + if (this.args == null) { + this.args = new ArrayList(); + } + for (String item : items) { + this.args.add(item); + } + return (A) this; } public A addAllToArgs(Collection items) { - if (this.args == null) {this.args = new ArrayList();} - for (String item : items) {this.args.add(item);} return (A)this; + if (this.args == null) { + this.args = new ArrayList(); + } + for (String item : items) { + this.args.add(item); + } + return (A) this; } - public A removeFromArgs(java.lang.String... items) { - if (this.args == null) return (A)this; - for (String item : items) { this.args.remove(item);} return (A)this; + public A removeFromArgs(String... items) { + if (this.args == null) { + return (A) this; + } + for (String item : items) { + this.args.remove(item); + } + return (A) this; } public A removeAllFromArgs(Collection items) { - if (this.args == null) return (A)this; - for (String item : items) { this.args.remove(item);} return (A)this; + if (this.args == null) { + return (A) this; + } + for (String item : items) { + this.args.remove(item); + } + return (A) this; } public List getArgs() { @@ -156,7 +186,7 @@ public A withArgs(List args) { return (A) this; } - public A withArgs(java.lang.String... args) { + public A withArgs(String... args) { if (this.args != null) { this.args.clear(); _visitables.remove("args"); @@ -170,38 +200,63 @@ public A withArgs(java.lang.String... args) { } public boolean hasArgs() { - return this.args != null && !this.args.isEmpty(); + return this.args != null && !(this.args.isEmpty()); } public A addToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} + if (this.command == null) { + this.command = new ArrayList(); + } this.command.add(index, item); - return (A)this; + return (A) this; } public A setToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} - this.command.set(index, item); return (A)this; + if (this.command == null) { + this.command = new ArrayList(); + } + this.command.set(index, item); + return (A) this; } - public A addToCommand(java.lang.String... items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + public A addToCommand(String... items) { + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; } public A addAllToCommand(Collection items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; } - public A removeFromCommand(java.lang.String... items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + public A removeFromCommand(String... items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; } public A removeAllFromCommand(Collection items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; } public List getCommand() { @@ -250,7 +305,7 @@ public A withCommand(List command) { return (A) this; } - public A withCommand(java.lang.String... command) { + public A withCommand(String... command) { if (this.command != null) { this.command.clear(); _visitables.remove("command"); @@ -264,11 +319,13 @@ public A withCommand(java.lang.String... command) { } public boolean hasCommand() { - return this.command != null && !this.command.isEmpty(); + return this.command != null && !(this.command.isEmpty()); } public A addToEnv(int index,V1EnvVar item) { - if (this.env == null) {this.env = new ArrayList();} + if (this.env == null) { + this.env = new ArrayList(); + } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); @@ -277,11 +334,13 @@ public A addToEnv(int index,V1EnvVar item) { _visitables.get("env").add(builder); env.add(index, builder); } - return (A)this; + return (A) this; } public A setToEnv(int index,V1EnvVar item) { - if (this.env == null) {this.env = new ArrayList();} + if (this.env == null) { + this.env = new ArrayList(); + } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); @@ -290,41 +349,71 @@ public A setToEnv(int index,V1EnvVar item) { _visitables.get("env").add(builder); env.set(index, builder); } - return (A)this; + return (A) this; } - public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) {this.env = new ArrayList();} - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; + public A addToEnv(V1EnvVar... items) { + if (this.env == null) { + this.env = new ArrayList(); + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); + } + return (A) this; } public A addAllToEnv(Collection items) { - if (this.env == null) {this.env = new ArrayList();} - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; + if (this.env == null) { + this.env = new ArrayList(); + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); + } + return (A) this; } - public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) return (A)this; - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this; + public A removeFromEnv(V1EnvVar... items) { + if (this.env == null) { + return (A) this; + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); + } + return (A) this; } public A removeAllFromEnv(Collection items) { - if (this.env == null) return (A)this; - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this; + if (this.env == null) { + return (A) this; + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); + } + return (A) this; } public A removeMatchingFromEnv(Predicate predicate) { - if (env == null) return (A) this; - final Iterator each = env.iterator(); - final List visitables = _visitables.get("env"); + if (env == null) { + return (A) this; + } + Iterator each = env.iterator(); + List visitables = _visitables.get("env"); while (each.hasNext()) { - V1EnvVarBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EnvVarBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildEnv() { @@ -376,7 +465,7 @@ public A withEnv(List env) { return (A) this; } - public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { + public A withEnv(V1EnvVar... env) { if (this.env != null) { this.env.clear(); _visitables.remove("env"); @@ -390,7 +479,7 @@ public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { } public boolean hasEnv() { - return this.env != null && !this.env.isEmpty(); + return this.env != null && !(this.env.isEmpty()); } public EnvNested addNewEnv() { @@ -406,32 +495,45 @@ public EnvNested setNewEnvLike(int index,V1EnvVar item) { } public EnvNested editEnv(int index) { - if (env.size() <= index) throw new RuntimeException("Can't edit env. Index exceeds size."); - return setNewEnvLike(index, buildEnv(index)); + if (index <= env.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } public EnvNested editFirstEnv() { - if (env.size() == 0) throw new RuntimeException("Can't edit first env. The list is empty."); - return setNewEnvLike(0, buildEnv(0)); + if (env.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "env")); + } + return this.setNewEnvLike(0, this.buildEnv(0)); } public EnvNested editLastEnv() { int index = env.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last env. The list is empty."); - return setNewEnvLike(index, buildEnv(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } public EnvNested editMatchingEnv(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); @@ -440,11 +542,13 @@ public A addToEnvFrom(int index,V1EnvFromSource item) { _visitables.get("envFrom").add(builder); envFrom.add(index, builder); } - return (A)this; + return (A) this; } public A setToEnvFrom(int index,V1EnvFromSource item) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); @@ -453,41 +557,71 @@ public A setToEnvFrom(int index,V1EnvFromSource item) { _visitables.get("envFrom").add(builder); envFrom.set(index, builder); } - return (A)this; + return (A) this; } - public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; + public A addToEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); + } + return (A) this; } public A addAllToEnvFrom(Collection items) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); + } + return (A) this; } - public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) return (A)this; - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this; + public A removeFromEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + return (A) this; + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); + } + return (A) this; } public A removeAllFromEnvFrom(Collection items) { - if (this.envFrom == null) return (A)this; - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this; + if (this.envFrom == null) { + return (A) this; + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); + } + return (A) this; } public A removeMatchingFromEnvFrom(Predicate predicate) { - if (envFrom == null) return (A) this; - final Iterator each = envFrom.iterator(); - final List visitables = _visitables.get("envFrom"); + if (envFrom == null) { + return (A) this; + } + Iterator each = envFrom.iterator(); + List visitables = _visitables.get("envFrom"); while (each.hasNext()) { - V1EnvFromSourceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EnvFromSourceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildEnvFrom() { @@ -539,7 +673,7 @@ public A withEnvFrom(List envFrom) { return (A) this; } - public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom) { + public A withEnvFrom(V1EnvFromSource... envFrom) { if (this.envFrom != null) { this.envFrom.clear(); _visitables.remove("envFrom"); @@ -553,7 +687,7 @@ public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envF } public boolean hasEnvFrom() { - return this.envFrom != null && !this.envFrom.isEmpty(); + return this.envFrom != null && !(this.envFrom.isEmpty()); } public EnvFromNested addNewEnvFrom() { @@ -569,28 +703,39 @@ public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { } public EnvFromNested editEnvFrom(int index) { - if (envFrom.size() <= index) throw new RuntimeException("Can't edit envFrom. Index exceeds size."); - return setNewEnvFromLike(index, buildEnvFrom(index)); + if (index <= envFrom.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } public EnvFromNested editFirstEnvFrom() { - if (envFrom.size() == 0) throw new RuntimeException("Can't edit first envFrom. The list is empty."); - return setNewEnvFromLike(0, buildEnvFrom(0)); + if (envFrom.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(0, this.buildEnvFrom(0)); } public EnvFromNested editLastEnvFrom() { int index = envFrom.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last envFrom. The list is empty."); - return setNewEnvFromLike(index, buildEnvFrom(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } public EnvFromNested editMatchingEnvFrom(Predicate predicate) { int index = -1; - for (int i=0;i withNewLifecycleLike(V1Lifecycle item) { } public LifecycleNested editLifecycle() { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(null)); + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(null)); } public LifecycleNested editOrNewLifecycle() { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(new V1LifecycleBuilder().build())); + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(new V1LifecycleBuilder().build())); } public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(item)); + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(item)); } public V1Probe buildLivenessProbe() { @@ -688,15 +833,15 @@ public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { } public LivenessProbeNested editLivenessProbe() { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(null)); + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(null)); } public LivenessProbeNested editOrNewLivenessProbe() { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); } public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(item)); + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(item)); } public String getName() { @@ -713,7 +858,9 @@ public boolean hasName() { } public A addToPorts(int index,V1ContainerPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -722,11 +869,13 @@ public A addToPorts(int index,V1ContainerPort item) { _visitables.get("ports").add(builder); ports.add(index, builder); } - return (A)this; + return (A) this; } public A setToPorts(int index,V1ContainerPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -735,41 +884,71 @@ public A setToPorts(int index,V1ContainerPort item) { _visitables.get("ports").add(builder); ports.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A addToPorts(V1ContainerPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) return (A)this; - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeFromPorts(V1ContainerPort... items) { + if (this.ports == null) { + return (A) this; + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - V1ContainerPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPorts() { @@ -821,7 +1000,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) { + public A withPorts(V1ContainerPort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -835,7 +1014,7 @@ public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) } public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + return this.ports != null && !(this.ports.isEmpty()); } public PortsNested addNewPort() { @@ -851,28 +1030,39 @@ public PortsNested setNewPortLike(int index,V1ContainerPort item) { } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (index <= ports.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public PortsNested editLastPort() { int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i=0;i withNewReadinessProbeLike(V1Probe item) { } public ReadinessProbeNested editReadinessProbe() { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(null)); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(null)); } public ReadinessProbeNested editOrNewReadinessProbe() { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(new V1ProbeBuilder().build())); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(new V1ProbeBuilder().build())); } public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(item)); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(item)); } public A addToResizePolicy(int index,V1ContainerResizePolicy item) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); @@ -925,11 +1117,13 @@ public A addToResizePolicy(int index,V1ContainerResizePolicy item) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(index, builder); } - return (A)this; + return (A) this; } public A setToResizePolicy(int index,V1ContainerResizePolicy item) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); @@ -938,41 +1132,71 @@ public A setToResizePolicy(int index,V1ContainerResizePolicy item) { _visitables.get("resizePolicy").add(builder); resizePolicy.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this; + public A addToResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); + } + return (A) this; } public A addAllToResizePolicy(Collection items) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this; + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); + } + return (A) this; } - public A removeFromResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) return (A)this; - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this; + public A removeFromResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + return (A) this; + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); + } + return (A) this; } public A removeAllFromResizePolicy(Collection items) { - if (this.resizePolicy == null) return (A)this; - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this; + if (this.resizePolicy == null) { + return (A) this; + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); + } + return (A) this; } public A removeMatchingFromResizePolicy(Predicate predicate) { - if (resizePolicy == null) return (A) this; - final Iterator each = resizePolicy.iterator(); - final List visitables = _visitables.get("resizePolicy"); + if (resizePolicy == null) { + return (A) this; + } + Iterator each = resizePolicy.iterator(); + List visitables = _visitables.get("resizePolicy"); while (each.hasNext()) { - V1ContainerResizePolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerResizePolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResizePolicy() { @@ -1024,7 +1248,7 @@ public A withResizePolicy(List resizePolicy) { return (A) this; } - public A withResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... resizePolicy) { + public A withResizePolicy(V1ContainerResizePolicy... resizePolicy) { if (this.resizePolicy != null) { this.resizePolicy.clear(); _visitables.remove("resizePolicy"); @@ -1038,7 +1262,7 @@ public A withResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizeP } public boolean hasResizePolicy() { - return this.resizePolicy != null && !this.resizePolicy.isEmpty(); + return this.resizePolicy != null && !(this.resizePolicy.isEmpty()); } public ResizePolicyNested addNewResizePolicy() { @@ -1054,28 +1278,39 @@ public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizeP } public ResizePolicyNested editResizePolicy(int index) { - if (resizePolicy.size() <= index) throw new RuntimeException("Can't edit resizePolicy. Index exceeds size."); - return setNewResizePolicyLike(index, buildResizePolicy(index)); + if (index <= resizePolicy.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } public ResizePolicyNested editFirstResizePolicy() { - if (resizePolicy.size() == 0) throw new RuntimeException("Can't edit first resizePolicy. The list is empty."); - return setNewResizePolicyLike(0, buildResizePolicy(0)); + if (resizePolicy.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resizePolicy")); + } + return this.setNewResizePolicyLike(0, this.buildResizePolicy(0)); } public ResizePolicyNested editLastResizePolicy() { int index = resizePolicy.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resizePolicy. The list is empty."); - return setNewResizePolicyLike(index, buildResizePolicy(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { int index = -1; - for (int i=0;i withNewResourcesLike(V1ResourceRequirements item) { } public ResourcesNested editResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } public ResourcesNested editOrNewResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } public String getRestartPolicy() { @@ -1131,6 +1366,214 @@ public boolean hasRestartPolicy() { return this.restartPolicy != null; } + public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(index, builder); + } + return (A) this; + } + + public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.set(index, builder); + } + return (A) this; + } + + public A addToRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); + } + return (A) this; + } + + public A addAllToRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); + } + return (A) this; + } + + public A removeFromRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + return (A) this; + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); + } + return (A) this; + } + + public A removeAllFromRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + return (A) this; + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRestartPolicyRules(Predicate predicate) { + if (restartPolicyRules == null) { + return (A) this; + } + Iterator each = restartPolicyRules.iterator(); + List visitables = _visitables.get("restartPolicyRules"); + while (each.hasNext()) { + V1ContainerRestartRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildRestartPolicyRules() { + return this.restartPolicyRules != null ? build(restartPolicyRules) : null; + } + + public V1ContainerRestartRule buildRestartPolicyRule(int index) { + return this.restartPolicyRules.get(index).build(); + } + + public V1ContainerRestartRule buildFirstRestartPolicyRule() { + return this.restartPolicyRules.get(0).build(); + } + + public V1ContainerRestartRule buildLastRestartPolicyRule() { + return this.restartPolicyRules.get(restartPolicyRules.size() - 1).build(); + } + + public V1ContainerRestartRule buildMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRestartPolicyRules(List restartPolicyRules) { + if (this.restartPolicyRules != null) { + this._visitables.get("restartPolicyRules").clear(); + } + if (restartPolicyRules != null) { + this.restartPolicyRules = new ArrayList(); + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } + } else { + this.restartPolicyRules = null; + } + return (A) this; + } + + public A withRestartPolicyRules(V1ContainerRestartRule... restartPolicyRules) { + if (this.restartPolicyRules != null) { + this.restartPolicyRules.clear(); + _visitables.remove("restartPolicyRules"); + } + if (restartPolicyRules != null) { + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } + } + return (A) this; + } + + public boolean hasRestartPolicyRules() { + return this.restartPolicyRules != null && !(this.restartPolicyRules.isEmpty()); + } + + public RestartPolicyRulesNested addNewRestartPolicyRule() { + return new RestartPolicyRulesNested(-1, null); + } + + public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(-1, item); + } + + public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(index, item); + } + + public RestartPolicyRulesNested editRestartPolicyRule(int index) { + if (index <= restartPolicyRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + } + + public RestartPolicyRulesNested editFirstRestartPolicyRule() { + if (restartPolicyRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(0, this.buildRestartPolicyRule(0)); + } + + public RestartPolicyRulesNested editLastRestartPolicyRule() { + int index = restartPolicyRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + } + + public RestartPolicyRulesNested editMatchingRestartPolicyRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < restartPolicyRules.size();i++) { + if (predicate.test(restartPolicyRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + } + public V1SecurityContext buildSecurityContext() { return this.securityContext != null ? this.securityContext.build() : null; } @@ -1160,15 +1603,15 @@ public SecurityContextNested withNewSecurityContextLike(V1SecurityContext ite } public SecurityContextNested editSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(null)); + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } public SecurityContextNested editOrNewSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); } public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(item)); + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } public V1Probe buildStartupProbe() { @@ -1200,15 +1643,15 @@ public StartupProbeNested withNewStartupProbeLike(V1Probe item) { } public StartupProbeNested editStartupProbe() { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(null)); + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(null)); } public StartupProbeNested editOrNewStartupProbe() { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(new V1ProbeBuilder().build())); + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(new V1ProbeBuilder().build())); } public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(item)); + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(item)); } public Boolean getStdin() { @@ -1277,7 +1720,9 @@ public boolean hasTty() { } public A addToVolumeDevices(int index,V1VolumeDevice item) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); @@ -1286,11 +1731,13 @@ public A addToVolumeDevices(int index,V1VolumeDevice item) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(index, builder); } - return (A)this; + return (A) this; } public A setToVolumeDevices(int index,V1VolumeDevice item) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); @@ -1299,41 +1746,71 @@ public A setToVolumeDevices(int index,V1VolumeDevice item) { _visitables.get("volumeDevices").add(builder); volumeDevices.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; + public A addToVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); + } + return (A) this; } public A addAllToVolumeDevices(Collection items) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); + } + return (A) this; } - public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) return (A)this; - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this; + public A removeFromVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + return (A) this; + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); + } + return (A) this; } public A removeAllFromVolumeDevices(Collection items) { - if (this.volumeDevices == null) return (A)this; - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this; + if (this.volumeDevices == null) { + return (A) this; + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); + } + return (A) this; } public A removeMatchingFromVolumeDevices(Predicate predicate) { - if (volumeDevices == null) return (A) this; - final Iterator each = volumeDevices.iterator(); - final List visitables = _visitables.get("volumeDevices"); + if (volumeDevices == null) { + return (A) this; + } + Iterator each = volumeDevices.iterator(); + List visitables = _visitables.get("volumeDevices"); while (each.hasNext()) { - V1VolumeDeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VolumeDeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVolumeDevices() { @@ -1385,7 +1862,7 @@ public A withVolumeDevices(List volumeDevices) { return (A) this; } - public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices) { + public A withVolumeDevices(V1VolumeDevice... volumeDevices) { if (this.volumeDevices != null) { this.volumeDevices.clear(); _visitables.remove("volumeDevices"); @@ -1399,7 +1876,7 @@ public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... } public boolean hasVolumeDevices() { - return this.volumeDevices != null && !this.volumeDevices.isEmpty(); + return this.volumeDevices != null && !(this.volumeDevices.isEmpty()); } public VolumeDevicesNested addNewVolumeDevice() { @@ -1415,32 +1892,45 @@ public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice it } public VolumeDevicesNested editVolumeDevice(int index) { - if (volumeDevices.size() <= index) throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); - return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); + if (index <= volumeDevices.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } public VolumeDevicesNested editFirstVolumeDevice() { - if (volumeDevices.size() == 0) throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); - return setNewVolumeDeviceLike(0, buildVolumeDevice(0)); + if (volumeDevices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(0, this.buildVolumeDevice(0)); } public VolumeDevicesNested editLastVolumeDevice() { int index = volumeDevices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumeDevices. The list is empty."); - return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } public VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); @@ -1449,11 +1939,13 @@ public A addToVolumeMounts(int index,V1VolumeMount item) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(index, builder); } - return (A)this; + return (A) this; } public A setToVolumeMounts(int index,V1VolumeMount item) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); @@ -1462,41 +1954,71 @@ public A setToVolumeMounts(int index,V1VolumeMount item) { _visitables.get("volumeMounts").add(builder); volumeMounts.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + public A addToVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); + } + return (A) this; } public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); + } + return (A) this; } - public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + public A removeFromVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; } public A removeAllFromVolumeMounts(Collection items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; } public A removeMatchingFromVolumeMounts(Predicate predicate) { - if (volumeMounts == null) return (A) this; - final Iterator each = volumeMounts.iterator(); - final List visitables = _visitables.get("volumeMounts"); + if (volumeMounts == null) { + return (A) this; + } + Iterator each = volumeMounts.iterator(); + List visitables = _visitables.get("volumeMounts"); while (each.hasNext()) { - V1VolumeMountBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VolumeMountBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVolumeMounts() { @@ -1548,7 +2070,7 @@ public A withVolumeMounts(List volumeMounts) { return (A) this; } - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts) { + public A withVolumeMounts(V1VolumeMount... volumeMounts) { if (this.volumeMounts != null) { this.volumeMounts.clear(); _visitables.remove("volumeMounts"); @@ -1562,7 +2084,7 @@ public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... v } public boolean hasVolumeMounts() { - return this.volumeMounts != null && !this.volumeMounts.isEmpty(); + return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); } public VolumeMountsNested addNewVolumeMount() { @@ -1578,28 +2100,39 @@ public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount item) } public VolumeMountsNested editVolumeMount(int index) { - if (volumeMounts.size() <= index) throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); - return setNewVolumeMountLike(index, buildVolumeMount(index)); + if (index <= volumeMounts.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } public VolumeMountsNested editFirstVolumeMount() { - if (volumeMounts.size() == 0) throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); - return setNewVolumeMountLike(0, buildVolumeMount(0)); + if (volumeMounts.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); } public VolumeMountsNested editLastVolumeMount() { int index = volumeMounts.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumeMounts. The list is empty."); - return setNewVolumeMountLike(index, buildVolumeMount(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { int index = -1; - for (int i=0;i extends V1EnvVarFluent> implements Nested int index; public N and() { - return (N) V1ContainerFluent.this.setToEnv(index,builder.build()); + return (N) V1ContainerFluent.this.setToEnv(index, builder.build()); } public N endEnv() { @@ -1720,7 +2410,7 @@ public class EnvFromNested extends V1EnvFromSourceFluent> im int index; public N and() { - return (N) V1ContainerFluent.this.setToEnvFrom(index,builder.build()); + return (N) V1ContainerFluent.this.setToEnvFrom(index, builder.build()); } public N endEnvFrom() { @@ -1770,7 +2460,7 @@ public class PortsNested extends V1ContainerPortFluent> implem int index; public N and() { - return (N) V1ContainerFluent.this.setToPorts(index,builder.build()); + return (N) V1ContainerFluent.this.setToPorts(index, builder.build()); } public N endPort() { @@ -1804,7 +2494,7 @@ public class ResizePolicyNested extends V1ContainerResizePolicyFluent extends V1ContainerRestartRuleFluent> implements Nested{ + RestartPolicyRulesNested(int index,V1ContainerRestartRule item) { + this.index = index; + this.builder = new V1ContainerRestartRuleBuilder(this, item); + } + V1ContainerRestartRuleBuilder builder; + int index; + + public N and() { + return (N) V1ContainerFluent.this.setToRestartPolicyRules(index, builder.build()); + } + + public N endRestartPolicyRule() { + return and(); + } + + } public class SecurityContextNested extends V1SecurityContextFluent> implements Nested{ SecurityContextNested(V1SecurityContext item) { @@ -1870,7 +2578,7 @@ public class VolumeDevicesNested extends V1VolumeDeviceFluent extends V1VolumeMountFluent implements VisitableBuilder{ public V1ContainerImageBuilder() { this(new V1ContainerImage()); 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 d6dc942188..88219f8993 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 @@ -1,20 +1,22 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; -import java.lang.String; -import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerImageFluent> extends BaseFluent{ +public class V1ContainerImageFluent> extends BaseFluent{ public V1ContainerImageFluent() { } @@ -25,42 +27,67 @@ public V1ContainerImageFluent(V1ContainerImage instance) { private Long sizeBytes; protected void copyInstance(V1ContainerImage instance) { - instance = (instance != null ? instance : new V1ContainerImage()); + instance = instance != null ? instance : new V1ContainerImage(); if (instance != null) { - this.withNames(instance.getNames()); - this.withSizeBytes(instance.getSizeBytes()); - } + this.withNames(instance.getNames()); + this.withSizeBytes(instance.getSizeBytes()); + } } public A addToNames(int index,String item) { - if (this.names == null) {this.names = new ArrayList();} + if (this.names == null) { + this.names = new ArrayList(); + } this.names.add(index, item); - return (A)this; + return (A) this; } public A setToNames(int index,String item) { - if (this.names == null) {this.names = new ArrayList();} - this.names.set(index, item); return (A)this; + if (this.names == null) { + this.names = new ArrayList(); + } + this.names.set(index, item); + return (A) this; } - public A addToNames(java.lang.String... items) { - if (this.names == null) {this.names = new ArrayList();} - for (String item : items) {this.names.add(item);} return (A)this; + public A addToNames(String... items) { + if (this.names == null) { + this.names = new ArrayList(); + } + for (String item : items) { + this.names.add(item); + } + return (A) this; } public A addAllToNames(Collection items) { - if (this.names == null) {this.names = new ArrayList();} - for (String item : items) {this.names.add(item);} return (A)this; + if (this.names == null) { + this.names = new ArrayList(); + } + for (String item : items) { + this.names.add(item); + } + return (A) this; } - public A removeFromNames(java.lang.String... items) { - if (this.names == null) return (A)this; - for (String item : items) { this.names.remove(item);} return (A)this; + public A removeFromNames(String... items) { + if (this.names == null) { + return (A) this; + } + for (String item : items) { + this.names.remove(item); + } + return (A) this; } public A removeAllFromNames(Collection items) { - if (this.names == null) return (A)this; - for (String item : items) { this.names.remove(item);} return (A)this; + if (this.names == null) { + return (A) this; + } + for (String item : items) { + this.names.remove(item); + } + return (A) this; } public List getNames() { @@ -109,7 +136,7 @@ public A withNames(List names) { return (A) this; } - public A withNames(java.lang.String... names) { + public A withNames(String... names) { if (this.names != null) { this.names.clear(); _visitables.remove("names"); @@ -123,7 +150,7 @@ public A withNames(java.lang.String... names) { } public boolean hasNames() { - return this.names != null && !this.names.isEmpty(); + return this.names != null && !(this.names.isEmpty()); } public Long getSizeBytes() { @@ -140,24 +167,41 @@ public boolean hasSizeBytes() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ContainerImageFluent that = (V1ContainerImageFluent) o; - if (!java.util.Objects.equals(names, that.names)) return false; - if (!java.util.Objects.equals(sizeBytes, that.sizeBytes)) return false; + if (!(Objects.equals(names, that.names))) { + return false; + } + if (!(Objects.equals(sizeBytes, that.sizeBytes))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(names, sizeBytes, super.hashCode()); + return Objects.hash(names, sizeBytes); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (names != null && !names.isEmpty()) { sb.append("names:"); sb.append(names + ","); } - if (sizeBytes != null) { sb.append("sizeBytes:"); sb.append(sizeBytes); } + if (!(names == null) && !(names.isEmpty())) { + sb.append("names:"); + sb.append(names); + sb.append(","); + } + if (!(sizeBytes == null)) { + sb.append("sizeBytes:"); + sb.append(sizeBytes); + } sb.append("}"); return sb.toString(); } 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 274716d8d9..bdcc978c2f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerPortBuilder extends V1ContainerPortFluent implements VisitableBuilder{ public V1ContainerPortBuilder() { this(new V1ContainerPort()); 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 3091526b16..1e0506e7aa 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerPortFluent> extends BaseFluent{ +public class V1ContainerPortFluent> extends BaseFluent{ public V1ContainerPortFluent() { } @@ -24,14 +26,14 @@ public V1ContainerPortFluent(V1ContainerPort instance) { private String protocol; protected void copyInstance(V1ContainerPort instance) { - instance = (instance != null ? instance : new V1ContainerPort()); + instance = instance != null ? instance : new V1ContainerPort(); if (instance != null) { - this.withContainerPort(instance.getContainerPort()); - this.withHostIP(instance.getHostIP()); - this.withHostPort(instance.getHostPort()); - this.withName(instance.getName()); - this.withProtocol(instance.getProtocol()); - } + this.withContainerPort(instance.getContainerPort()); + this.withHostIP(instance.getHostIP()); + this.withHostPort(instance.getHostPort()); + this.withName(instance.getName()); + this.withProtocol(instance.getProtocol()); + } } public Integer getContainerPort() { @@ -100,30 +102,65 @@ public boolean hasProtocol() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ContainerPortFluent that = (V1ContainerPortFluent) o; - if (!java.util.Objects.equals(containerPort, that.containerPort)) return false; - if (!java.util.Objects.equals(hostIP, that.hostIP)) return false; - if (!java.util.Objects.equals(hostPort, that.hostPort)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; + if (!(Objects.equals(containerPort, that.containerPort))) { + return false; + } + if (!(Objects.equals(hostIP, that.hostIP))) { + return false; + } + if (!(Objects.equals(hostPort, that.hostPort))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(containerPort, hostIP, hostPort, name, protocol, super.hashCode()); + return Objects.hash(containerPort, hostIP, hostPort, name, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerPort != null) { sb.append("containerPort:"); sb.append(containerPort + ","); } - if (hostIP != null) { sb.append("hostIP:"); sb.append(hostIP + ","); } - if (hostPort != null) { sb.append("hostPort:"); sb.append(hostPort + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(containerPort == null)) { + sb.append("containerPort:"); + sb.append(containerPort); + sb.append(","); + } + if (!(hostIP == null)) { + sb.append("hostIP:"); + sb.append(hostIP); + sb.append(","); + } + if (!(hostPort == null)) { + sb.append("hostPort:"); + sb.append(hostPort); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } 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 40723cd8e1..78ac453a42 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerResizePolicyBuilder extends V1ContainerResizePolicyFluent implements VisitableBuilder{ public V1ContainerResizePolicyBuilder() { this(new V1ContainerResizePolicy()); 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 06a5367829..bf4ab81265 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerResizePolicyFluent> extends BaseFluent{ +public class V1ContainerResizePolicyFluent> extends BaseFluent{ public V1ContainerResizePolicyFluent() { } @@ -20,11 +22,11 @@ public V1ContainerResizePolicyFluent(V1ContainerResizePolicy instance) { private String restartPolicy; protected void copyInstance(V1ContainerResizePolicy instance) { - instance = (instance != null ? instance : new V1ContainerResizePolicy()); + instance = instance != null ? instance : new V1ContainerResizePolicy(); if (instance != null) { - this.withResourceName(instance.getResourceName()); - this.withRestartPolicy(instance.getRestartPolicy()); - } + this.withResourceName(instance.getResourceName()); + this.withRestartPolicy(instance.getRestartPolicy()); + } } public String getResourceName() { @@ -54,24 +56,41 @@ public boolean hasRestartPolicy() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ContainerResizePolicyFluent that = (V1ContainerResizePolicyFluent) o; - if (!java.util.Objects.equals(resourceName, that.resourceName)) return false; - if (!java.util.Objects.equals(restartPolicy, that.restartPolicy)) return false; + if (!(Objects.equals(resourceName, that.resourceName))) { + return false; + } + if (!(Objects.equals(restartPolicy, that.restartPolicy))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(resourceName, restartPolicy, super.hashCode()); + return Objects.hash(resourceName, restartPolicy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (resourceName != null) { sb.append("resourceName:"); sb.append(resourceName + ","); } - if (restartPolicy != null) { sb.append("restartPolicy:"); sb.append(restartPolicy); } + if (!(resourceName == null)) { + sb.append("resourceName:"); + sb.append(resourceName); + sb.append(","); + } + if (!(restartPolicy == null)) { + sb.append("restartPolicy:"); + sb.append(restartPolicy); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..c30e1d57f0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ContainerRestartRuleBuilder extends V1ContainerRestartRuleFluent implements VisitableBuilder{ + public V1ContainerRestartRuleBuilder() { + this(new V1ContainerRestartRule()); + } + + public V1ContainerRestartRuleBuilder(V1ContainerRestartRuleFluent fluent) { + this(fluent, new V1ContainerRestartRule()); + } + + public V1ContainerRestartRuleBuilder(V1ContainerRestartRuleFluent fluent,V1ContainerRestartRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ContainerRestartRuleBuilder(V1ContainerRestartRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ContainerRestartRuleFluent fluent; + + public V1ContainerRestartRule build() { + V1ContainerRestartRule buildable = new V1ContainerRestartRule(); + buildable.setAction(fluent.getAction()); + buildable.setExitCodes(fluent.buildExitCodes()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..00766f0eb7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java @@ -0,0 +1,143 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ContainerRestartRuleFluent> extends BaseFluent{ + public V1ContainerRestartRuleFluent() { + } + + public V1ContainerRestartRuleFluent(V1ContainerRestartRule instance) { + this.copyInstance(instance); + } + private String action; + private V1ContainerRestartRuleOnExitCodesBuilder exitCodes; + + protected void copyInstance(V1ContainerRestartRule instance) { + instance = instance != null ? instance : new V1ContainerRestartRule(); + if (instance != null) { + this.withAction(instance.getAction()); + this.withExitCodes(instance.getExitCodes()); + } + } + + public String getAction() { + return this.action; + } + + public A withAction(String action) { + this.action = action; + return (A) this; + } + + public boolean hasAction() { + return this.action != null; + } + + public V1ContainerRestartRuleOnExitCodes buildExitCodes() { + return this.exitCodes != null ? this.exitCodes.build() : null; + } + + public A withExitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) { + this._visitables.remove("exitCodes"); + if (exitCodes != null) { + this.exitCodes = new V1ContainerRestartRuleOnExitCodesBuilder(exitCodes); + this._visitables.get("exitCodes").add(this.exitCodes); + } else { + this.exitCodes = null; + this._visitables.get("exitCodes").remove(this.exitCodes); + } + return (A) this; + } + + public boolean hasExitCodes() { + return this.exitCodes != null; + } + + public ExitCodesNested withNewExitCodes() { + return new ExitCodesNested(null); + } + + public ExitCodesNested withNewExitCodesLike(V1ContainerRestartRuleOnExitCodes item) { + return new ExitCodesNested(item); + } + + public ExitCodesNested editExitCodes() { + return this.withNewExitCodesLike(Optional.ofNullable(this.buildExitCodes()).orElse(null)); + } + + public ExitCodesNested editOrNewExitCodes() { + return this.withNewExitCodesLike(Optional.ofNullable(this.buildExitCodes()).orElse(new V1ContainerRestartRuleOnExitCodesBuilder().build())); + } + + public ExitCodesNested editOrNewExitCodesLike(V1ContainerRestartRuleOnExitCodes item) { + return this.withNewExitCodesLike(Optional.ofNullable(this.buildExitCodes()).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; + } + V1ContainerRestartRuleFluent that = (V1ContainerRestartRuleFluent) o; + if (!(Objects.equals(action, that.action))) { + return false; + } + if (!(Objects.equals(exitCodes, that.exitCodes))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(action, exitCodes); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(action == null)) { + sb.append("action:"); + sb.append(action); + sb.append(","); + } + if (!(exitCodes == null)) { + sb.append("exitCodes:"); + sb.append(exitCodes); + } + sb.append("}"); + return sb.toString(); + } + public class ExitCodesNested extends V1ContainerRestartRuleOnExitCodesFluent> implements Nested{ + ExitCodesNested(V1ContainerRestartRuleOnExitCodes item) { + this.builder = new V1ContainerRestartRuleOnExitCodesBuilder(this, item); + } + V1ContainerRestartRuleOnExitCodesBuilder builder; + + public N and() { + return (N) V1ContainerRestartRuleFluent.this.withExitCodes(builder.build()); + } + + public N endExitCodes() { + return and(); + } + + + } + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..23aa669175 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ContainerRestartRuleOnExitCodesBuilder extends V1ContainerRestartRuleOnExitCodesFluent implements VisitableBuilder{ + public V1ContainerRestartRuleOnExitCodesBuilder() { + this(new V1ContainerRestartRuleOnExitCodes()); + } + + public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCodesFluent fluent) { + this(fluent, new V1ContainerRestartRuleOnExitCodes()); + } + + public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCodesFluent fluent,V1ContainerRestartRuleOnExitCodes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCodes instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ContainerRestartRuleOnExitCodesFluent fluent; + + public V1ContainerRestartRuleOnExitCodes build() { + V1ContainerRestartRuleOnExitCodes buildable = new V1ContainerRestartRuleOnExitCodes(); + buildable.setOperator(fluent.getOperator()); + buildable.setValues(fluent.getValues()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..345286b978 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java @@ -0,0 +1,210 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ContainerRestartRuleOnExitCodesFluent> extends BaseFluent{ + public V1ContainerRestartRuleOnExitCodesFluent() { + } + + public V1ContainerRestartRuleOnExitCodesFluent(V1ContainerRestartRuleOnExitCodes instance) { + this.copyInstance(instance); + } + private String operator; + private List values; + + protected void copyInstance(V1ContainerRestartRuleOnExitCodes instance) { + instance = instance != null ? instance : new V1ContainerRestartRuleOnExitCodes(); + if (instance != null) { + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } + } + + public String getOperator() { + return this.operator; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public A addToValues(int index,Integer item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(index, item); + return (A) this; + } + + public A setToValues(int index,Integer item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; + } + + public A addToValues(Integer... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (Integer item : items) { + this.values.add(item); + } + return (A) this; + } + + public A addAllToValues(Collection items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (Integer item : items) { + this.values.add(item); + } + return (A) this; + } + + public A removeFromValues(Integer... items) { + if (this.values == null) { + return (A) this; + } + for (Integer item : items) { + this.values.remove(item); + } + return (A) this; + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; + } + for (Integer item : items) { + this.values.remove(item); + } + return (A) this; + } + + public List getValues() { + return this.values; + } + + public Integer getValue(int index) { + return this.values.get(index); + } + + public Integer getFirstValue() { + return this.values.get(0); + } + + public Integer getLastValue() { + return this.values.get(values.size() - 1); + } + + public Integer getMatchingValue(Predicate predicate) { + for (Integer item : values) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingValue(Predicate predicate) { + for (Integer item : values) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (Integer item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(Integer... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (Integer item : values) { + this.addToValues(item); + } + } + return (A) this; + } + + public boolean hasValues() { + return this.values != null && !(this.values.isEmpty()); + } + + 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; + } + V1ContainerRestartRuleOnExitCodesFluent that = (V1ContainerRestartRuleOnExitCodesFluent) o; + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(operator, values); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file 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 d30560c4f6..285786f7c5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStateBuilder extends V1ContainerStateFluent implements VisitableBuilder{ public V1ContainerStateBuilder() { this(new V1ContainerState()); 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 72b5df0b25..0fa3e92414 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStateFluent> extends BaseFluent{ +public class V1ContainerStateFluent> extends BaseFluent{ public V1ContainerStateFluent() { } @@ -22,12 +25,12 @@ public V1ContainerStateFluent(V1ContainerState instance) { private V1ContainerStateWaitingBuilder waiting; protected void copyInstance(V1ContainerState instance) { - instance = (instance != null ? instance : new V1ContainerState()); + instance = instance != null ? instance : new V1ContainerState(); if (instance != null) { - this.withRunning(instance.getRunning()); - this.withTerminated(instance.getTerminated()); - this.withWaiting(instance.getWaiting()); - } + this.withRunning(instance.getRunning()); + this.withTerminated(instance.getTerminated()); + this.withWaiting(instance.getWaiting()); + } } public V1ContainerStateRunning buildRunning() { @@ -59,15 +62,15 @@ public RunningNested withNewRunningLike(V1ContainerStateRunning item) { } public RunningNested editRunning() { - return withNewRunningLike(java.util.Optional.ofNullable(buildRunning()).orElse(null)); + return this.withNewRunningLike(Optional.ofNullable(this.buildRunning()).orElse(null)); } public RunningNested editOrNewRunning() { - return withNewRunningLike(java.util.Optional.ofNullable(buildRunning()).orElse(new V1ContainerStateRunningBuilder().build())); + return this.withNewRunningLike(Optional.ofNullable(this.buildRunning()).orElse(new V1ContainerStateRunningBuilder().build())); } public RunningNested editOrNewRunningLike(V1ContainerStateRunning item) { - return withNewRunningLike(java.util.Optional.ofNullable(buildRunning()).orElse(item)); + return this.withNewRunningLike(Optional.ofNullable(this.buildRunning()).orElse(item)); } public V1ContainerStateTerminated buildTerminated() { @@ -99,15 +102,15 @@ public TerminatedNested withNewTerminatedLike(V1ContainerStateTerminated item } public TerminatedNested editTerminated() { - return withNewTerminatedLike(java.util.Optional.ofNullable(buildTerminated()).orElse(null)); + return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(null)); } public TerminatedNested editOrNewTerminated() { - return withNewTerminatedLike(java.util.Optional.ofNullable(buildTerminated()).orElse(new V1ContainerStateTerminatedBuilder().build())); + return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(new V1ContainerStateTerminatedBuilder().build())); } public TerminatedNested editOrNewTerminatedLike(V1ContainerStateTerminated item) { - return withNewTerminatedLike(java.util.Optional.ofNullable(buildTerminated()).orElse(item)); + return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(item)); } public V1ContainerStateWaiting buildWaiting() { @@ -139,38 +142,61 @@ public WaitingNested withNewWaitingLike(V1ContainerStateWaiting item) { } public WaitingNested editWaiting() { - return withNewWaitingLike(java.util.Optional.ofNullable(buildWaiting()).orElse(null)); + return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(null)); } public WaitingNested editOrNewWaiting() { - return withNewWaitingLike(java.util.Optional.ofNullable(buildWaiting()).orElse(new V1ContainerStateWaitingBuilder().build())); + return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(new V1ContainerStateWaitingBuilder().build())); } public WaitingNested editOrNewWaitingLike(V1ContainerStateWaiting item) { - return withNewWaitingLike(java.util.Optional.ofNullable(buildWaiting()).orElse(item)); + return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ContainerStateFluent that = (V1ContainerStateFluent) o; - if (!java.util.Objects.equals(running, that.running)) return false; - if (!java.util.Objects.equals(terminated, that.terminated)) return false; - if (!java.util.Objects.equals(waiting, that.waiting)) return false; + if (!(Objects.equals(running, that.running))) { + return false; + } + if (!(Objects.equals(terminated, that.terminated))) { + return false; + } + if (!(Objects.equals(waiting, that.waiting))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(running, terminated, waiting, super.hashCode()); + return Objects.hash(running, terminated, waiting); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (running != null) { sb.append("running:"); sb.append(running + ","); } - if (terminated != null) { sb.append("terminated:"); sb.append(terminated + ","); } - if (waiting != null) { sb.append("waiting:"); sb.append(waiting); } + if (!(running == null)) { + sb.append("running:"); + sb.append(running); + sb.append(","); + } + if (!(terminated == null)) { + sb.append("terminated:"); + sb.append(terminated); + sb.append(","); + } + if (!(waiting == null)) { + sb.append("waiting:"); + sb.append(waiting); + } sb.append("}"); return sb.toString(); } 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 b6d6ec884c..752dcaade2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStateRunningBuilder extends V1ContainerStateRunningFluent implements VisitableBuilder{ public V1ContainerStateRunningBuilder() { this(new V1ContainerStateRunning()); 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 2c3d4bdc9f..a4178b68e1 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStateRunningFluent> extends BaseFluent{ +public class V1ContainerStateRunningFluent> extends BaseFluent{ public V1ContainerStateRunningFluent() { } @@ -20,10 +22,10 @@ public V1ContainerStateRunningFluent(V1ContainerStateRunning instance) { private OffsetDateTime startedAt; protected void copyInstance(V1ContainerStateRunning instance) { - instance = (instance != null ? instance : new V1ContainerStateRunning()); + instance = instance != null ? instance : new V1ContainerStateRunning(); if (instance != null) { - this.withStartedAt(instance.getStartedAt()); - } + this.withStartedAt(instance.getStartedAt()); + } } public OffsetDateTime getStartedAt() { @@ -40,22 +42,33 @@ public boolean hasStartedAt() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ContainerStateRunningFluent that = (V1ContainerStateRunningFluent) o; - if (!java.util.Objects.equals(startedAt, that.startedAt)) return false; + if (!(Objects.equals(startedAt, that.startedAt))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(startedAt, super.hashCode()); + return Objects.hash(startedAt); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (startedAt != null) { sb.append("startedAt:"); sb.append(startedAt); } + if (!(startedAt == null)) { + sb.append("startedAt:"); + sb.append(startedAt); + } sb.append("}"); return sb.toString(); } 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 6fbe9a76d2..3de3f860e6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStateTerminatedBuilder extends V1ContainerStateTerminatedFluent implements VisitableBuilder{ public V1ContainerStateTerminatedBuilder() { this(new V1ContainerStateTerminated()); 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 13748d0bf5..70df01fd82 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStateTerminatedFluent> extends BaseFluent{ +public class V1ContainerStateTerminatedFluent> extends BaseFluent{ public V1ContainerStateTerminatedFluent() { } @@ -27,16 +29,16 @@ public V1ContainerStateTerminatedFluent(V1ContainerStateTerminated instance) { private OffsetDateTime startedAt; protected void copyInstance(V1ContainerStateTerminated instance) { - instance = (instance != null ? instance : new V1ContainerStateTerminated()); + instance = instance != null ? instance : new V1ContainerStateTerminated(); if (instance != null) { - this.withContainerID(instance.getContainerID()); - this.withExitCode(instance.getExitCode()); - this.withFinishedAt(instance.getFinishedAt()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withSignal(instance.getSignal()); - this.withStartedAt(instance.getStartedAt()); - } + this.withContainerID(instance.getContainerID()); + this.withExitCode(instance.getExitCode()); + this.withFinishedAt(instance.getFinishedAt()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withSignal(instance.getSignal()); + this.withStartedAt(instance.getStartedAt()); + } } public String getContainerID() { @@ -131,34 +133,81 @@ public boolean hasStartedAt() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ContainerStateTerminatedFluent that = (V1ContainerStateTerminatedFluent) o; - if (!java.util.Objects.equals(containerID, that.containerID)) return false; - if (!java.util.Objects.equals(exitCode, that.exitCode)) return false; - if (!java.util.Objects.equals(finishedAt, that.finishedAt)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(signal, that.signal)) return false; - if (!java.util.Objects.equals(startedAt, that.startedAt)) return false; + if (!(Objects.equals(containerID, that.containerID))) { + return false; + } + if (!(Objects.equals(exitCode, that.exitCode))) { + return false; + } + if (!(Objects.equals(finishedAt, that.finishedAt))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(signal, that.signal))) { + return false; + } + if (!(Objects.equals(startedAt, that.startedAt))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(containerID, exitCode, finishedAt, message, reason, signal, startedAt, super.hashCode()); + return Objects.hash(containerID, exitCode, finishedAt, message, reason, signal, startedAt); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerID != null) { sb.append("containerID:"); sb.append(containerID + ","); } - if (exitCode != null) { sb.append("exitCode:"); sb.append(exitCode + ","); } - if (finishedAt != null) { sb.append("finishedAt:"); sb.append(finishedAt + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (signal != null) { sb.append("signal:"); sb.append(signal + ","); } - if (startedAt != null) { sb.append("startedAt:"); sb.append(startedAt); } + if (!(containerID == null)) { + sb.append("containerID:"); + sb.append(containerID); + sb.append(","); + } + if (!(exitCode == null)) { + sb.append("exitCode:"); + sb.append(exitCode); + sb.append(","); + } + if (!(finishedAt == null)) { + sb.append("finishedAt:"); + sb.append(finishedAt); + 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 (!(signal == null)) { + sb.append("signal:"); + sb.append(signal); + sb.append(","); + } + if (!(startedAt == null)) { + sb.append("startedAt:"); + sb.append(startedAt); + } sb.append("}"); return sb.toString(); } 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 35092f661b..1f543054cd 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStateWaitingBuilder extends V1ContainerStateWaitingFluent implements VisitableBuilder{ public V1ContainerStateWaitingBuilder() { this(new V1ContainerStateWaiting()); 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 83ae3604ab..5c0e60cb88 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStateWaitingFluent> extends BaseFluent{ +public class V1ContainerStateWaitingFluent> extends BaseFluent{ public V1ContainerStateWaitingFluent() { } @@ -20,11 +22,11 @@ public V1ContainerStateWaitingFluent(V1ContainerStateWaiting instance) { private String reason; protected void copyInstance(V1ContainerStateWaiting instance) { - instance = (instance != null ? instance : new V1ContainerStateWaiting()); + instance = instance != null ? instance : new V1ContainerStateWaiting(); if (instance != null) { - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - } + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + } } public String getMessage() { @@ -54,24 +56,41 @@ public boolean hasReason() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ContainerStateWaitingFluent that = (V1ContainerStateWaitingFluent) o; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(message, reason, super.hashCode()); + return Objects.hash(message, reason); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } 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 4d45d1c1b3..d78236fe3b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStatusBuilder extends V1ContainerStatusFluent implements VisitableBuilder{ public V1ContainerStatusBuilder() { this(new V1ContainerStatus()); 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 6a3ceaad8d..7e36af15a6 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 @@ -1,27 +1,30 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; import java.util.List; import java.lang.Boolean; -import io.kubernetes.client.custom.Quantity; -import java.lang.Integer; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.RuntimeException; +import java.util.Iterator; +import io.kubernetes.client.custom.Quantity; +import java.lang.Integer; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStatusFluent> extends BaseFluent{ +public class V1ContainerStatusFluent> extends BaseFluent{ public V1ContainerStatusFluent() { } @@ -45,44 +48,68 @@ public V1ContainerStatusFluent(V1ContainerStatus instance) { private ArrayList volumeMounts; protected void copyInstance(V1ContainerStatus instance) { - instance = (instance != null ? instance : new V1ContainerStatus()); + instance = instance != null ? instance : new V1ContainerStatus(); if (instance != null) { - this.withAllocatedResources(instance.getAllocatedResources()); - this.withAllocatedResourcesStatus(instance.getAllocatedResourcesStatus()); - this.withContainerID(instance.getContainerID()); - this.withImage(instance.getImage()); - this.withImageID(instance.getImageID()); - this.withLastState(instance.getLastState()); - this.withName(instance.getName()); - this.withReady(instance.getReady()); - this.withResources(instance.getResources()); - this.withRestartCount(instance.getRestartCount()); - this.withStarted(instance.getStarted()); - this.withState(instance.getState()); - this.withStopSignal(instance.getStopSignal()); - this.withUser(instance.getUser()); - this.withVolumeMounts(instance.getVolumeMounts()); - } + this.withAllocatedResources(instance.getAllocatedResources()); + this.withAllocatedResourcesStatus(instance.getAllocatedResourcesStatus()); + this.withContainerID(instance.getContainerID()); + this.withImage(instance.getImage()); + this.withImageID(instance.getImageID()); + this.withLastState(instance.getLastState()); + this.withName(instance.getName()); + this.withReady(instance.getReady()); + this.withResources(instance.getResources()); + this.withRestartCount(instance.getRestartCount()); + this.withStarted(instance.getStarted()); + this.withState(instance.getState()); + this.withStopSignal(instance.getStopSignal()); + this.withUser(instance.getUser()); + this.withVolumeMounts(instance.getVolumeMounts()); + } } public A addToAllocatedResources(String key,Quantity value) { - if(this.allocatedResources == null && key != null && value != null) { this.allocatedResources = new LinkedHashMap(); } - if(key != null && value != null) {this.allocatedResources.put(key, value);} return (A)this; + if (this.allocatedResources == null && key != null && value != null) { + this.allocatedResources = new LinkedHashMap(); + } + if (key != null && value != null) { + this.allocatedResources.put(key, value); + } + return (A) this; } public A addToAllocatedResources(Map map) { - if(this.allocatedResources == null && map != null) { this.allocatedResources = new LinkedHashMap(); } - if(map != null) { this.allocatedResources.putAll(map);} return (A)this; + if (this.allocatedResources == null && map != null) { + this.allocatedResources = new LinkedHashMap(); + } + if (map != null) { + this.allocatedResources.putAll(map); + } + return (A) this; } public A removeFromAllocatedResources(String key) { - if(this.allocatedResources == null) { return (A) this; } - if(key != null && this.allocatedResources != null) {this.allocatedResources.remove(key);} return (A)this; + if (this.allocatedResources == null) { + return (A) this; + } + if (key != null && this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + return (A) this; } public A removeFromAllocatedResources(Map map) { - if(this.allocatedResources == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.allocatedResources != null){this.allocatedResources.remove(key);}}} return (A)this; + if (this.allocatedResources == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + } + } + return (A) this; } public Map getAllocatedResources() { @@ -103,7 +130,9 @@ public boolean hasAllocatedResources() { } public A addToAllocatedResourcesStatus(int index,V1ResourceStatus item) { - if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} + if (this.allocatedResourcesStatus == null) { + this.allocatedResourcesStatus = new ArrayList(); + } V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); if (index < 0 || index >= allocatedResourcesStatus.size()) { _visitables.get("allocatedResourcesStatus").add(builder); @@ -112,11 +141,13 @@ public A addToAllocatedResourcesStatus(int index,V1ResourceStatus item) { _visitables.get("allocatedResourcesStatus").add(builder); allocatedResourcesStatus.add(index, builder); } - return (A)this; + return (A) this; } public A setToAllocatedResourcesStatus(int index,V1ResourceStatus item) { - if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} + if (this.allocatedResourcesStatus == null) { + this.allocatedResourcesStatus = new ArrayList(); + } V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); if (index < 0 || index >= allocatedResourcesStatus.size()) { _visitables.get("allocatedResourcesStatus").add(builder); @@ -125,41 +156,71 @@ public A setToAllocatedResourcesStatus(int index,V1ResourceStatus item) { _visitables.get("allocatedResourcesStatus").add(builder); allocatedResourcesStatus.set(index, builder); } - return (A)this; + return (A) this; } - public A addToAllocatedResourcesStatus(io.kubernetes.client.openapi.models.V1ResourceStatus... items) { - if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} - for (V1ResourceStatus item : items) {V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item);_visitables.get("allocatedResourcesStatus").add(builder);this.allocatedResourcesStatus.add(builder);} return (A)this; + public A addToAllocatedResourcesStatus(V1ResourceStatus... items) { + if (this.allocatedResourcesStatus == null) { + this.allocatedResourcesStatus = new ArrayList(); + } + for (V1ResourceStatus item : items) { + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + _visitables.get("allocatedResourcesStatus").add(builder); + this.allocatedResourcesStatus.add(builder); + } + return (A) this; } public A addAllToAllocatedResourcesStatus(Collection items) { - if (this.allocatedResourcesStatus == null) {this.allocatedResourcesStatus = new ArrayList();} - for (V1ResourceStatus item : items) {V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item);_visitables.get("allocatedResourcesStatus").add(builder);this.allocatedResourcesStatus.add(builder);} return (A)this; + if (this.allocatedResourcesStatus == null) { + this.allocatedResourcesStatus = new ArrayList(); + } + for (V1ResourceStatus item : items) { + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + _visitables.get("allocatedResourcesStatus").add(builder); + this.allocatedResourcesStatus.add(builder); + } + return (A) this; } - public A removeFromAllocatedResourcesStatus(io.kubernetes.client.openapi.models.V1ResourceStatus... items) { - if (this.allocatedResourcesStatus == null) return (A)this; - for (V1ResourceStatus item : items) {V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item);_visitables.get("allocatedResourcesStatus").remove(builder); this.allocatedResourcesStatus.remove(builder);} return (A)this; + public A removeFromAllocatedResourcesStatus(V1ResourceStatus... items) { + if (this.allocatedResourcesStatus == null) { + return (A) this; + } + for (V1ResourceStatus item : items) { + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + _visitables.get("allocatedResourcesStatus").remove(builder); + this.allocatedResourcesStatus.remove(builder); + } + return (A) this; } public A removeAllFromAllocatedResourcesStatus(Collection items) { - if (this.allocatedResourcesStatus == null) return (A)this; - for (V1ResourceStatus item : items) {V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item);_visitables.get("allocatedResourcesStatus").remove(builder); this.allocatedResourcesStatus.remove(builder);} return (A)this; + if (this.allocatedResourcesStatus == null) { + return (A) this; + } + for (V1ResourceStatus item : items) { + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + _visitables.get("allocatedResourcesStatus").remove(builder); + this.allocatedResourcesStatus.remove(builder); + } + return (A) this; } public A removeMatchingFromAllocatedResourcesStatus(Predicate predicate) { - if (allocatedResourcesStatus == null) return (A) this; - final Iterator each = allocatedResourcesStatus.iterator(); - final List visitables = _visitables.get("allocatedResourcesStatus"); + if (allocatedResourcesStatus == null) { + return (A) this; + } + Iterator each = allocatedResourcesStatus.iterator(); + List visitables = _visitables.get("allocatedResourcesStatus"); while (each.hasNext()) { - V1ResourceStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ResourceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildAllocatedResourcesStatus() { @@ -211,7 +272,7 @@ public A withAllocatedResourcesStatus(List allocatedResourcesS return (A) this; } - public A withAllocatedResourcesStatus(io.kubernetes.client.openapi.models.V1ResourceStatus... allocatedResourcesStatus) { + public A withAllocatedResourcesStatus(V1ResourceStatus... allocatedResourcesStatus) { if (this.allocatedResourcesStatus != null) { this.allocatedResourcesStatus.clear(); _visitables.remove("allocatedResourcesStatus"); @@ -225,7 +286,7 @@ public A withAllocatedResourcesStatus(io.kubernetes.client.openapi.models.V1Reso } public boolean hasAllocatedResourcesStatus() { - return this.allocatedResourcesStatus != null && !this.allocatedResourcesStatus.isEmpty(); + return this.allocatedResourcesStatus != null && !(this.allocatedResourcesStatus.isEmpty()); } public AllocatedResourcesStatusNested addNewAllocatedResourcesStatus() { @@ -241,28 +302,39 @@ public AllocatedResourcesStatusNested setNewAllocatedResourcesStatusLike(int } public AllocatedResourcesStatusNested editAllocatedResourcesStatus(int index) { - if (allocatedResourcesStatus.size() <= index) throw new RuntimeException("Can't edit allocatedResourcesStatus. Index exceeds size."); - return setNewAllocatedResourcesStatusLike(index, buildAllocatedResourcesStatus(index)); + if (index <= allocatedResourcesStatus.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allocatedResourcesStatus")); + } + return this.setNewAllocatedResourcesStatusLike(index, this.buildAllocatedResourcesStatus(index)); } public AllocatedResourcesStatusNested editFirstAllocatedResourcesStatus() { - if (allocatedResourcesStatus.size() == 0) throw new RuntimeException("Can't edit first allocatedResourcesStatus. The list is empty."); - return setNewAllocatedResourcesStatusLike(0, buildAllocatedResourcesStatus(0)); + if (allocatedResourcesStatus.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "allocatedResourcesStatus")); + } + return this.setNewAllocatedResourcesStatusLike(0, this.buildAllocatedResourcesStatus(0)); } public AllocatedResourcesStatusNested editLastAllocatedResourcesStatus() { int index = allocatedResourcesStatus.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last allocatedResourcesStatus. The list is empty."); - return setNewAllocatedResourcesStatusLike(index, buildAllocatedResourcesStatus(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "allocatedResourcesStatus")); + } + return this.setNewAllocatedResourcesStatusLike(index, this.buildAllocatedResourcesStatus(index)); } public AllocatedResourcesStatusNested editMatchingAllocatedResourcesStatus(Predicate predicate) { int index = -1; - for (int i=0;i withNewLastStateLike(V1ContainerState item) { } public LastStateNested editLastState() { - return withNewLastStateLike(java.util.Optional.ofNullable(buildLastState()).orElse(null)); + return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(null)); } public LastStateNested editOrNewLastState() { - return withNewLastStateLike(java.util.Optional.ofNullable(buildLastState()).orElse(new V1ContainerStateBuilder().build())); + return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(new V1ContainerStateBuilder().build())); } public LastStateNested editOrNewLastStateLike(V1ContainerState item) { - return withNewLastStateLike(java.util.Optional.ofNullable(buildLastState()).orElse(item)); + return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(item)); } public String getName() { @@ -399,15 +471,15 @@ public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { } public ResourcesNested editResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } public ResourcesNested editOrNewResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } public Integer getRestartCount() { @@ -465,15 +537,15 @@ public StateNested withNewStateLike(V1ContainerState item) { } public StateNested editState() { - return withNewStateLike(java.util.Optional.ofNullable(buildState()).orElse(null)); + return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(null)); } public StateNested editOrNewState() { - return withNewStateLike(java.util.Optional.ofNullable(buildState()).orElse(new V1ContainerStateBuilder().build())); + return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(new V1ContainerStateBuilder().build())); } public StateNested editOrNewStateLike(V1ContainerState item) { - return withNewStateLike(java.util.Optional.ofNullable(buildState()).orElse(item)); + return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(item)); } public String getStopSignal() { @@ -518,19 +590,21 @@ public UserNested withNewUserLike(V1ContainerUser item) { } public UserNested editUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(null)); + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); } public UserNested editOrNewUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1ContainerUserBuilder().build())); + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1ContainerUserBuilder().build())); } public UserNested editOrNewUserLike(V1ContainerUser item) { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item)); + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); } public A addToVolumeMounts(int index,V1VolumeMountStatus item) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); @@ -539,11 +613,13 @@ public A addToVolumeMounts(int index,V1VolumeMountStatus item) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(index, builder); } - return (A)this; + return (A) this; } public A setToVolumeMounts(int index,V1VolumeMountStatus item) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); @@ -552,41 +628,71 @@ public A setToVolumeMounts(int index,V1VolumeMountStatus item) { _visitables.get("volumeMounts").add(builder); volumeMounts.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMountStatus... items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMountStatus item : items) {V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + public A addToVolumeMounts(V1VolumeMountStatus... items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } + for (V1VolumeMountStatus item : items) { + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); + } + return (A) this; } public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMountStatus item : items) {V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } + for (V1VolumeMountStatus item : items) { + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); + } + return (A) this; } - public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMountStatus... items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMountStatus item : items) {V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + public A removeFromVolumeMounts(V1VolumeMountStatus... items) { + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMountStatus item : items) { + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; } public A removeAllFromVolumeMounts(Collection items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMountStatus item : items) {V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMountStatus item : items) { + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; } public A removeMatchingFromVolumeMounts(Predicate predicate) { - if (volumeMounts == null) return (A) this; - final Iterator each = volumeMounts.iterator(); - final List visitables = _visitables.get("volumeMounts"); + if (volumeMounts == null) { + return (A) this; + } + Iterator each = volumeMounts.iterator(); + List visitables = _visitables.get("volumeMounts"); while (each.hasNext()) { - V1VolumeMountStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VolumeMountStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVolumeMounts() { @@ -638,7 +744,7 @@ public A withVolumeMounts(List volumeMounts) { return (A) this; } - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMountStatus... volumeMounts) { + public A withVolumeMounts(V1VolumeMountStatus... volumeMounts) { if (this.volumeMounts != null) { this.volumeMounts.clear(); _visitables.remove("volumeMounts"); @@ -652,7 +758,7 @@ public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMountStatu } public boolean hasVolumeMounts() { - return this.volumeMounts != null && !this.volumeMounts.isEmpty(); + return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); } public VolumeMountsNested addNewVolumeMount() { @@ -668,75 +774,181 @@ public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMountStatus } public VolumeMountsNested editVolumeMount(int index) { - if (volumeMounts.size() <= index) throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); - return setNewVolumeMountLike(index, buildVolumeMount(index)); + if (index <= volumeMounts.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } public VolumeMountsNested editFirstVolumeMount() { - if (volumeMounts.size() == 0) throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); - return setNewVolumeMountLike(0, buildVolumeMount(0)); + if (volumeMounts.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); } public VolumeMountsNested editLastVolumeMount() { int index = volumeMounts.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumeMounts. The list is empty."); - return setNewVolumeMountLike(index, buildVolumeMount(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ResourceStatusFluent extends V1VolumeMountStatusFluent implements VisitableBuilder{ public V1ContainerUserBuilder() { this(new V1ContainerUser()); 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 548c27eb76..70ad48e0be 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerUserFluent> extends BaseFluent{ +public class V1ContainerUserFluent> extends BaseFluent{ public V1ContainerUserFluent() { } @@ -20,10 +23,10 @@ public V1ContainerUserFluent(V1ContainerUser instance) { private V1LinuxContainerUserBuilder linux; protected void copyInstance(V1ContainerUser instance) { - instance = (instance != null ? instance : new V1ContainerUser()); + instance = instance != null ? instance : new V1ContainerUser(); if (instance != null) { - this.withLinux(instance.getLinux()); - } + this.withLinux(instance.getLinux()); + } } public V1LinuxContainerUser buildLinux() { @@ -55,34 +58,45 @@ public LinuxNested withNewLinuxLike(V1LinuxContainerUser item) { } public LinuxNested editLinux() { - return withNewLinuxLike(java.util.Optional.ofNullable(buildLinux()).orElse(null)); + return this.withNewLinuxLike(Optional.ofNullable(this.buildLinux()).orElse(null)); } public LinuxNested editOrNewLinux() { - return withNewLinuxLike(java.util.Optional.ofNullable(buildLinux()).orElse(new V1LinuxContainerUserBuilder().build())); + return this.withNewLinuxLike(Optional.ofNullable(this.buildLinux()).orElse(new V1LinuxContainerUserBuilder().build())); } public LinuxNested editOrNewLinuxLike(V1LinuxContainerUser item) { - return withNewLinuxLike(java.util.Optional.ofNullable(buildLinux()).orElse(item)); + return this.withNewLinuxLike(Optional.ofNullable(this.buildLinux()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ContainerUserFluent that = (V1ContainerUserFluent) o; - if (!java.util.Objects.equals(linux, that.linux)) return false; + if (!(Objects.equals(linux, that.linux))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(linux, super.hashCode()); + return Objects.hash(linux); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (linux != null) { sb.append("linux:"); sb.append(linux); } + if (!(linux == null)) { + sb.append("linux:"); + sb.append(linux); + } sb.append("}"); return sb.toString(); } 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 4cecd514e4..0e64e2eb04 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ControllerRevisionBuilder extends V1ControllerRevisionFluent implements VisitableBuilder{ public V1ControllerRevisionBuilder() { this(new V1ControllerRevision()); 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 217789a3ee..b3c4fcf2e9 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ControllerRevisionFluent> extends BaseFluent{ +public class V1ControllerRevisionFluent> extends BaseFluent{ public V1ControllerRevisionFluent() { } @@ -25,14 +28,14 @@ public V1ControllerRevisionFluent(V1ControllerRevision instance) { private Long revision; protected void copyInstance(V1ControllerRevision instance) { - instance = (instance != null ? instance : new V1ControllerRevision()); + instance = instance != null ? instance : new V1ControllerRevision(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withData(instance.getData()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRevision(instance.getRevision()); - } + this.withApiVersion(instance.getApiVersion()); + this.withData(instance.getData()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRevision(instance.getRevision()); + } } public String getApiVersion() { @@ -103,15 +106,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public Long getRevision() { @@ -128,30 +131,65 @@ public boolean hasRevision() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ControllerRevisionFluent that = (V1ControllerRevisionFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(revision, that.revision)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(revision, that.revision))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, data, kind, metadata, revision, super.hashCode()); + return Objects.hash(apiVersion, data, kind, metadata, revision); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (data != null) { sb.append("data:"); sb.append(data + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (revision != null) { sb.append("revision:"); sb.append(revision); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(data == null)) { + sb.append("data:"); + sb.append(data); + 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 (!(revision == null)) { + sb.append("revision:"); + sb.append(revision); + } sb.append("}"); return sb.toString(); } 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 6d8fbc6ad8..83b76525c3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ControllerRevisionListBuilder extends V1ControllerRevisionListFluent implements VisitableBuilder{ public V1ControllerRevisionListBuilder() { this(new V1ControllerRevisionList()); 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 056e791efe..841b90997a 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ControllerRevisionListFluent> extends BaseFluent{ +public class V1ControllerRevisionListFluent> extends BaseFluent{ public V1ControllerRevisionListFluent() { } @@ -29,13 +32,13 @@ public V1ControllerRevisionListFluent(V1ControllerRevisionList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ControllerRevisionList instance) { - instance = (instance != null ? instance : new V1ControllerRevisionList()); + instance = instance != null ? instance : new V1ControllerRevisionList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ControllerRevision item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ControllerRevision item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ControllerRevision item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ControllerRevision item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ControllerRevision... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { - if (this.items == null) return (A)this; - for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ControllerRevision... items) { + if (this.items == null) { + return (A) this; + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ControllerRevisionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ControllerRevisionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { + public A withItems(V1ControllerRevision... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ControllerRevision... i } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ControllerRevision item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ControllerRevisionListFluent that = (V1ControllerRevisionListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ControllerRevisionFluent> i int index; public N and() { - return (N) V1ControllerRevisionListFluent.this.setToItems(index,builder.build()); + return (N) V1ControllerRevisionListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 new file mode 100644 index 0000000000..6a5bbad809 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CounterBuilder extends V1CounterFluent implements VisitableBuilder{ + public V1CounterBuilder() { + this(new V1Counter()); + } + + public V1CounterBuilder(V1CounterFluent fluent) { + this(fluent, new V1Counter()); + } + + public V1CounterBuilder(V1CounterFluent fluent,V1Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CounterBuilder(V1Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1CounterFluent fluent; + + public V1Counter build() { + V1Counter buildable = new V1Counter(); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..bae3d97b7d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java @@ -0,0 +1,81 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CounterFluent> extends BaseFluent{ + public V1CounterFluent() { + } + + public V1CounterFluent(V1Counter instance) { + this.copyInstance(instance); + } + private Quantity value; + + protected void copyInstance(V1Counter instance) { + instance = instance != null ? instance : new V1Counter(); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + 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; + } + V1CounterFluent that = (V1CounterFluent) o; + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java new file mode 100644 index 0000000000..a2c723c8e5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CounterSetBuilder extends V1CounterSetFluent implements VisitableBuilder{ + public V1CounterSetBuilder() { + this(new V1CounterSet()); + } + + public V1CounterSetBuilder(V1CounterSetFluent fluent) { + this(fluent, new V1CounterSet()); + } + + public V1CounterSetBuilder(V1CounterSetFluent fluent,V1CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CounterSetBuilder(V1CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1CounterSetFluent fluent; + + public V1CounterSet build() { + V1CounterSet buildable = new V1CounterSet(); + buildable.setCounters(fluent.getCounters()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java new file mode 100644 index 0000000000..45d9190aa0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java @@ -0,0 +1,149 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CounterSetFluent> extends BaseFluent{ + public V1CounterSetFluent() { + } + + public V1CounterSetFluent(V1CounterSet instance) { + this.copyInstance(instance); + } + private Map counters; + private String name; + + protected void copyInstance(V1CounterSet instance) { + instance = instance != null ? instance : new V1CounterSet(); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public A addToCounters(String key,V1Counter value) { + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.counters.put(key, value); + } + return (A) this; + } + + public A addToCounters(Map map) { + if (this.counters == null && map != null) { + this.counters = new LinkedHashMap(); + } + if (map != null) { + this.counters.putAll(map); + } + return (A) this; + } + + public A removeFromCounters(String key) { + if (this.counters == null) { + return (A) this; + } + if (key != null && this.counters != null) { + this.counters.remove(key); + } + return (A) this; + } + + public A removeFromCounters(Map map) { + if (this.counters == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.counters != null) { + this.counters.remove(key); + } + } + } + return (A) this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CounterSetFluent that = (V1CounterSetFluent) o; + if (!(Objects.equals(counters, that.counters))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(counters, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java index 2c54a4f38a..6421dab9cb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CronJobBuilder extends V1CronJobFluent implements VisitableBuilder{ public V1CronJobBuilder() { this(new V1CronJob()); 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 e844c9cf43..8ff1fe54a7 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CronJobFluent> extends BaseFluent{ +public class V1CronJobFluent> extends BaseFluent{ public V1CronJobFluent() { } @@ -24,14 +27,14 @@ public V1CronJobFluent(V1CronJob instance) { private V1CronJobStatusBuilder status; protected void copyInstance(V1CronJob instance) { - instance = (instance != null ? instance : new V1CronJob()); + instance = instance != null ? instance : new V1CronJob(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1CronJobSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1CronJobSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1CronJobSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CronJobSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1CronJobSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1CronJobStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1CronJobStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1CronJobStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CronJobStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1CronJobStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CronJobFluent that = (V1CronJobFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 fcf8733c1d..64a6a016d8 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CronJobListBuilder extends V1CronJobListFluent implements VisitableBuilder{ public V1CronJobListBuilder() { this(new V1CronJobList()); 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 888611c026..ee7f8efc55 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CronJobListFluent> extends BaseFluent{ +public class V1CronJobListFluent> extends BaseFluent{ public V1CronJobListFluent() { } @@ -29,13 +32,13 @@ public V1CronJobListFluent(V1CronJobList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1CronJobList instance) { - instance = (instance != null ? instance : new V1CronJobList()); + instance = instance != null ? instance : new V1CronJobList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1CronJob item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CronJobBuilder builder = new V1CronJobBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1CronJob item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1CronJob item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CronJobBuilder builder = new V1CronJobBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1CronJob item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CronJob... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1CronJob... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CronJob... items) { - if (this.items == null) return (A)this; - for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1CronJob... items) { + if (this.items == null) { + return (A) this; + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1CronJobBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CronJobBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CronJob... items) { + public A withItems(V1CronJob... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1CronJob... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1CronJob item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CronJobListFluent that = (V1CronJobListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1CronJobFluent> implements N int index; public N and() { - return (N) V1CronJobListFluent.this.setToItems(index,builder.build()); + return (N) V1CronJobListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 74cfe0198d..6104ae9eb8 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CronJobSpecBuilder extends V1CronJobSpecFluent implements VisitableBuilder{ public V1CronJobSpecBuilder() { this(new V1CronJobSpec()); 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 8957e6c0ec..e949237292 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; @@ -13,7 +16,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CronJobSpecFluent> extends BaseFluent{ +public class V1CronJobSpecFluent> extends BaseFluent{ public V1CronJobSpecFluent() { } @@ -30,17 +33,17 @@ public V1CronJobSpecFluent(V1CronJobSpec instance) { private String timeZone; protected void copyInstance(V1CronJobSpec instance) { - instance = (instance != null ? instance : new V1CronJobSpec()); + instance = instance != null ? instance : new V1CronJobSpec(); if (instance != null) { - this.withConcurrencyPolicy(instance.getConcurrencyPolicy()); - this.withFailedJobsHistoryLimit(instance.getFailedJobsHistoryLimit()); - this.withJobTemplate(instance.getJobTemplate()); - this.withSchedule(instance.getSchedule()); - this.withStartingDeadlineSeconds(instance.getStartingDeadlineSeconds()); - this.withSuccessfulJobsHistoryLimit(instance.getSuccessfulJobsHistoryLimit()); - this.withSuspend(instance.getSuspend()); - this.withTimeZone(instance.getTimeZone()); - } + this.withConcurrencyPolicy(instance.getConcurrencyPolicy()); + this.withFailedJobsHistoryLimit(instance.getFailedJobsHistoryLimit()); + this.withJobTemplate(instance.getJobTemplate()); + this.withSchedule(instance.getSchedule()); + this.withStartingDeadlineSeconds(instance.getStartingDeadlineSeconds()); + this.withSuccessfulJobsHistoryLimit(instance.getSuccessfulJobsHistoryLimit()); + this.withSuspend(instance.getSuspend()); + this.withTimeZone(instance.getTimeZone()); + } } public String getConcurrencyPolicy() { @@ -98,15 +101,15 @@ public JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item) { } public JobTemplateNested editJobTemplate() { - return withNewJobTemplateLike(java.util.Optional.ofNullable(buildJobTemplate()).orElse(null)); + return this.withNewJobTemplateLike(Optional.ofNullable(this.buildJobTemplate()).orElse(null)); } public JobTemplateNested editOrNewJobTemplate() { - return withNewJobTemplateLike(java.util.Optional.ofNullable(buildJobTemplate()).orElse(new V1JobTemplateSpecBuilder().build())); + return this.withNewJobTemplateLike(Optional.ofNullable(this.buildJobTemplate()).orElse(new V1JobTemplateSpecBuilder().build())); } public JobTemplateNested editOrNewJobTemplateLike(V1JobTemplateSpec item) { - return withNewJobTemplateLike(java.util.Optional.ofNullable(buildJobTemplate()).orElse(item)); + return this.withNewJobTemplateLike(Optional.ofNullable(this.buildJobTemplate()).orElse(item)); } public String getSchedule() { @@ -175,36 +178,89 @@ public boolean hasTimeZone() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CronJobSpecFluent that = (V1CronJobSpecFluent) o; - if (!java.util.Objects.equals(concurrencyPolicy, that.concurrencyPolicy)) return false; - if (!java.util.Objects.equals(failedJobsHistoryLimit, that.failedJobsHistoryLimit)) return false; - if (!java.util.Objects.equals(jobTemplate, that.jobTemplate)) return false; - if (!java.util.Objects.equals(schedule, that.schedule)) return false; - if (!java.util.Objects.equals(startingDeadlineSeconds, that.startingDeadlineSeconds)) return false; - if (!java.util.Objects.equals(successfulJobsHistoryLimit, that.successfulJobsHistoryLimit)) return false; - if (!java.util.Objects.equals(suspend, that.suspend)) return false; - if (!java.util.Objects.equals(timeZone, that.timeZone)) return false; + if (!(Objects.equals(concurrencyPolicy, that.concurrencyPolicy))) { + return false; + } + if (!(Objects.equals(failedJobsHistoryLimit, that.failedJobsHistoryLimit))) { + return false; + } + if (!(Objects.equals(jobTemplate, that.jobTemplate))) { + return false; + } + if (!(Objects.equals(schedule, that.schedule))) { + return false; + } + if (!(Objects.equals(startingDeadlineSeconds, that.startingDeadlineSeconds))) { + return false; + } + if (!(Objects.equals(successfulJobsHistoryLimit, that.successfulJobsHistoryLimit))) { + return false; + } + if (!(Objects.equals(suspend, that.suspend))) { + return false; + } + if (!(Objects.equals(timeZone, that.timeZone))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(concurrencyPolicy, failedJobsHistoryLimit, jobTemplate, schedule, startingDeadlineSeconds, successfulJobsHistoryLimit, suspend, timeZone, super.hashCode()); + return Objects.hash(concurrencyPolicy, failedJobsHistoryLimit, jobTemplate, schedule, startingDeadlineSeconds, successfulJobsHistoryLimit, suspend, timeZone); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (concurrencyPolicy != null) { sb.append("concurrencyPolicy:"); sb.append(concurrencyPolicy + ","); } - if (failedJobsHistoryLimit != null) { sb.append("failedJobsHistoryLimit:"); sb.append(failedJobsHistoryLimit + ","); } - if (jobTemplate != null) { sb.append("jobTemplate:"); sb.append(jobTemplate + ","); } - if (schedule != null) { sb.append("schedule:"); sb.append(schedule + ","); } - if (startingDeadlineSeconds != null) { sb.append("startingDeadlineSeconds:"); sb.append(startingDeadlineSeconds + ","); } - if (successfulJobsHistoryLimit != null) { sb.append("successfulJobsHistoryLimit:"); sb.append(successfulJobsHistoryLimit + ","); } - if (suspend != null) { sb.append("suspend:"); sb.append(suspend + ","); } - if (timeZone != null) { sb.append("timeZone:"); sb.append(timeZone); } + if (!(concurrencyPolicy == null)) { + sb.append("concurrencyPolicy:"); + sb.append(concurrencyPolicy); + sb.append(","); + } + if (!(failedJobsHistoryLimit == null)) { + sb.append("failedJobsHistoryLimit:"); + sb.append(failedJobsHistoryLimit); + sb.append(","); + } + if (!(jobTemplate == null)) { + sb.append("jobTemplate:"); + sb.append(jobTemplate); + sb.append(","); + } + if (!(schedule == null)) { + sb.append("schedule:"); + sb.append(schedule); + sb.append(","); + } + if (!(startingDeadlineSeconds == null)) { + sb.append("startingDeadlineSeconds:"); + sb.append(startingDeadlineSeconds); + sb.append(","); + } + if (!(successfulJobsHistoryLimit == null)) { + sb.append("successfulJobsHistoryLimit:"); + sb.append(successfulJobsHistoryLimit); + sb.append(","); + } + if (!(suspend == null)) { + sb.append("suspend:"); + sb.append(suspend); + sb.append(","); + } + if (!(timeZone == null)) { + sb.append("timeZone:"); + sb.append(timeZone); + } sb.append("}"); return sb.toString(); } 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 5197779137..cef93bf350 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CronJobStatusBuilder extends V1CronJobStatusFluent implements VisitableBuilder{ public V1CronJobStatusBuilder() { this(new V1CronJobStatus()); 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 24d43de8fc..3df3b4d7b1 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import java.time.OffsetDateTime; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CronJobStatusFluent> extends BaseFluent{ +public class V1CronJobStatusFluent> extends BaseFluent{ public V1CronJobStatusFluent() { } @@ -29,16 +31,18 @@ public V1CronJobStatusFluent(V1CronJobStatus instance) { private OffsetDateTime lastSuccessfulTime; protected void copyInstance(V1CronJobStatus instance) { - instance = (instance != null ? instance : new V1CronJobStatus()); + instance = instance != null ? instance : new V1CronJobStatus(); if (instance != null) { - this.withActive(instance.getActive()); - this.withLastScheduleTime(instance.getLastScheduleTime()); - this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); - } + this.withActive(instance.getActive()); + this.withLastScheduleTime(instance.getLastScheduleTime()); + this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); + } } public A addToActive(int index,V1ObjectReference item) { - if (this.active == null) {this.active = new ArrayList();} + if (this.active == null) { + this.active = new ArrayList(); + } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= active.size()) { _visitables.get("active").add(builder); @@ -47,11 +51,13 @@ public A addToActive(int index,V1ObjectReference item) { _visitables.get("active").add(builder); active.add(index, builder); } - return (A)this; + return (A) this; } public A setToActive(int index,V1ObjectReference item) { - if (this.active == null) {this.active = new ArrayList();} + if (this.active == null) { + this.active = new ArrayList(); + } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= active.size()) { _visitables.get("active").add(builder); @@ -60,41 +66,71 @@ public A setToActive(int index,V1ObjectReference item) { _visitables.get("active").add(builder); active.set(index, builder); } - return (A)this; + return (A) this; } - public A addToActive(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.active == null) {this.active = new ArrayList();} - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").add(builder);this.active.add(builder);} return (A)this; + public A addToActive(V1ObjectReference... items) { + if (this.active == null) { + this.active = new ArrayList(); + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").add(builder); + this.active.add(builder); + } + return (A) this; } public A addAllToActive(Collection items) { - if (this.active == null) {this.active = new ArrayList();} - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").add(builder);this.active.add(builder);} return (A)this; + if (this.active == null) { + this.active = new ArrayList(); + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").add(builder); + this.active.add(builder); + } + return (A) this; } - public A removeFromActive(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.active == null) return (A)this; - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").remove(builder); this.active.remove(builder);} return (A)this; + public A removeFromActive(V1ObjectReference... items) { + if (this.active == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").remove(builder); + this.active.remove(builder); + } + return (A) this; } public A removeAllFromActive(Collection items) { - if (this.active == null) return (A)this; - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").remove(builder); this.active.remove(builder);} return (A)this; + if (this.active == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").remove(builder); + this.active.remove(builder); + } + return (A) this; } public A removeMatchingFromActive(Predicate predicate) { - if (active == null) return (A) this; - final Iterator each = active.iterator(); - final List visitables = _visitables.get("active"); + if (active == null) { + return (A) this; + } + Iterator each = active.iterator(); + List visitables = _visitables.get("active"); while (each.hasNext()) { - V1ObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildActive() { @@ -146,7 +182,7 @@ public A withActive(List active) { return (A) this; } - public A withActive(io.kubernetes.client.openapi.models.V1ObjectReference... active) { + public A withActive(V1ObjectReference... active) { if (this.active != null) { this.active.clear(); _visitables.remove("active"); @@ -160,7 +196,7 @@ public A withActive(io.kubernetes.client.openapi.models.V1ObjectReference... act } public boolean hasActive() { - return this.active != null && !this.active.isEmpty(); + return this.active != null && !(this.active.isEmpty()); } public ActiveNested addNewActive() { @@ -176,28 +212,39 @@ public ActiveNested setNewActiveLike(int index,V1ObjectReference item) { } public ActiveNested editActive(int index) { - if (active.size() <= index) throw new RuntimeException("Can't edit active. Index exceeds size."); - return setNewActiveLike(index, buildActive(index)); + if (index <= active.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "active")); + } + return this.setNewActiveLike(index, this.buildActive(index)); } public ActiveNested editFirstActive() { - if (active.size() == 0) throw new RuntimeException("Can't edit first active. The list is empty."); - return setNewActiveLike(0, buildActive(0)); + if (active.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "active")); + } + return this.setNewActiveLike(0, this.buildActive(0)); } public ActiveNested editLastActive() { int index = active.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last active. The list is empty."); - return setNewActiveLike(index, buildActive(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "active")); + } + return this.setNewActiveLike(index, this.buildActive(index)); } public ActiveNested editMatchingActive(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ObjectReferenceFluent> im int index; public N and() { - return (N) V1CronJobStatusFluent.this.setToActive(index,builder.build()); + return (N) V1CronJobStatusFluent.this.setToActive(index, builder.build()); } public N endActive() { 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 5a4d76f592..9564fb5f33 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CrossVersionObjectReferenceBuilder extends V1CrossVersionObjectReferenceFluent implements VisitableBuilder{ public V1CrossVersionObjectReferenceBuilder() { this(new V1CrossVersionObjectReference()); 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 eb1d854af1..0b3f4bc8b8 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CrossVersionObjectReferenceFluent> extends BaseFluent{ +public class V1CrossVersionObjectReferenceFluent> extends BaseFluent{ public V1CrossVersionObjectReferenceFluent() { } @@ -21,12 +23,12 @@ public V1CrossVersionObjectReferenceFluent(V1CrossVersionObjectReference instanc private String name; protected void copyInstance(V1CrossVersionObjectReference instance) { - instance = (instance != null ? instance : new V1CrossVersionObjectReference()); + instance = instance != null ? instance : new V1CrossVersionObjectReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } } public String getApiVersion() { @@ -69,26 +71,49 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CrossVersionObjectReferenceFluent that = (V1CrossVersionObjectReferenceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); + return Objects.hash(apiVersion, kind, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + 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(); } 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 d4dfcded8c..5440cd2615 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceColumnDefinitionBuilder extends V1CustomResourceColumnDefinitionFluent implements VisitableBuilder{ public V1CustomResourceColumnDefinitionBuilder() { this(new V1CustomResourceColumnDefinition()); 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 36ba127c7a..97c4c14611 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceColumnDefinitionFluent> extends BaseFluent{ +public class V1CustomResourceColumnDefinitionFluent> extends BaseFluent{ public V1CustomResourceColumnDefinitionFluent() { } @@ -25,15 +27,15 @@ public V1CustomResourceColumnDefinitionFluent(V1CustomResourceColumnDefinition i private String type; protected void copyInstance(V1CustomResourceColumnDefinition instance) { - instance = (instance != null ? instance : new V1CustomResourceColumnDefinition()); + instance = instance != null ? instance : new V1CustomResourceColumnDefinition(); if (instance != null) { - this.withDescription(instance.getDescription()); - this.withFormat(instance.getFormat()); - this.withJsonPath(instance.getJsonPath()); - this.withName(instance.getName()); - this.withPriority(instance.getPriority()); - this.withType(instance.getType()); - } + this.withDescription(instance.getDescription()); + this.withFormat(instance.getFormat()); + this.withJsonPath(instance.getJsonPath()); + this.withName(instance.getName()); + this.withPriority(instance.getPriority()); + this.withType(instance.getType()); + } } public String getDescription() { @@ -115,32 +117,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceColumnDefinitionFluent that = (V1CustomResourceColumnDefinitionFluent) o; - if (!java.util.Objects.equals(description, that.description)) return false; - if (!java.util.Objects.equals(format, that.format)) return false; - if (!java.util.Objects.equals(jsonPath, that.jsonPath)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(priority, that.priority)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(format, that.format))) { + return false; + } + if (!(Objects.equals(jsonPath, that.jsonPath))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(description, format, jsonPath, name, priority, type, super.hashCode()); + return Objects.hash(description, format, jsonPath, name, priority, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (description != null) { sb.append("description:"); sb.append(description + ","); } - if (format != null) { sb.append("format:"); sb.append(format + ","); } - if (jsonPath != null) { sb.append("jsonPath:"); sb.append(jsonPath + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (priority != null) { sb.append("priority:"); sb.append(priority + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(description == null)) { + sb.append("description:"); + sb.append(description); + sb.append(","); + } + if (!(format == null)) { + sb.append("format:"); + sb.append(format); + sb.append(","); + } + if (!(jsonPath == null)) { + sb.append("jsonPath:"); + sb.append(jsonPath); + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 c4c4d5387b..761173ddf4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceConversionBuilder extends V1CustomResourceConversionFluent implements VisitableBuilder{ public V1CustomResourceConversionBuilder() { this(new V1CustomResourceConversion()); 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 3098b6c21c..f0f9b4efee 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceConversionFluent> extends BaseFluent{ +public class V1CustomResourceConversionFluent> extends BaseFluent{ public V1CustomResourceConversionFluent() { } @@ -21,11 +24,11 @@ public V1CustomResourceConversionFluent(V1CustomResourceConversion instance) { private V1WebhookConversionBuilder webhook; protected void copyInstance(V1CustomResourceConversion instance) { - instance = (instance != null ? instance : new V1CustomResourceConversion()); + instance = instance != null ? instance : new V1CustomResourceConversion(); if (instance != null) { - this.withStrategy(instance.getStrategy()); - this.withWebhook(instance.getWebhook()); - } + this.withStrategy(instance.getStrategy()); + this.withWebhook(instance.getWebhook()); + } } public String getStrategy() { @@ -70,36 +73,53 @@ public WebhookNested withNewWebhookLike(V1WebhookConversion item) { } public WebhookNested editWebhook() { - return withNewWebhookLike(java.util.Optional.ofNullable(buildWebhook()).orElse(null)); + return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(null)); } public WebhookNested editOrNewWebhook() { - return withNewWebhookLike(java.util.Optional.ofNullable(buildWebhook()).orElse(new V1WebhookConversionBuilder().build())); + return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(new V1WebhookConversionBuilder().build())); } public WebhookNested editOrNewWebhookLike(V1WebhookConversion item) { - return withNewWebhookLike(java.util.Optional.ofNullable(buildWebhook()).orElse(item)); + return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceConversionFluent that = (V1CustomResourceConversionFluent) o; - if (!java.util.Objects.equals(strategy, that.strategy)) return false; - if (!java.util.Objects.equals(webhook, that.webhook)) return false; + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + if (!(Objects.equals(webhook, that.webhook))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(strategy, webhook, super.hashCode()); + return Objects.hash(strategy, webhook); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (strategy != null) { sb.append("strategy:"); sb.append(strategy + ","); } - if (webhook != null) { sb.append("webhook:"); sb.append(webhook); } + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + sb.append(","); + } + if (!(webhook == null)) { + sb.append("webhook:"); + sb.append(webhook); + } sb.append("}"); return sb.toString(); } 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 5a139b73a5..195e3e7683 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionBuilder extends V1CustomResourceDefinitionFluent implements VisitableBuilder{ public V1CustomResourceDefinitionBuilder() { this(new V1CustomResourceDefinition()); 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 e5636b6f3d..5a94c3c7a5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionConditionBuilder extends V1CustomResourceDefinitionConditionFluent implements VisitableBuilder{ public V1CustomResourceDefinitionConditionBuilder() { this(new V1CustomResourceDefinitionCondition()); 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 05bd26f945..af7ee391b0 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionConditionFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionConditionFluent> extends BaseFluent{ public V1CustomResourceDefinitionConditionFluent() { } @@ -24,14 +26,14 @@ public V1CustomResourceDefinitionConditionFluent(V1CustomResourceDefinitionCondi private String type; protected void copyInstance(V1CustomResourceDefinitionCondition instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionCondition()); + instance = instance != null ? instance : new V1CustomResourceDefinitionCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceDefinitionConditionFluent that = (V1CustomResourceDefinitionConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 5bccb78637..2ae66cf1cb 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionFluent> extends BaseFluent{ public V1CustomResourceDefinitionFluent() { } @@ -24,14 +27,14 @@ public V1CustomResourceDefinitionFluent(V1CustomResourceDefinition instance) { private V1CustomResourceDefinitionStatusBuilder status; protected void copyInstance(V1CustomResourceDefinition instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinition()); + instance = instance != null ? instance : new V1CustomResourceDefinition(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1CustomResourceDefinitionSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1CustomResourceDefinitionSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1CustomResourceDefinitionSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CustomResourceDefinitionSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1CustomResourceDefinitionSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1CustomResourceDefinitionStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1CustomResourceDefinitionStatus item) } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1CustomResourceDefinitionStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CustomResourceDefinitionStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1CustomResourceDefinitionStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceDefinitionFluent that = (V1CustomResourceDefinitionFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 ea759bba05..e44ce0214d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionListBuilder extends V1CustomResourceDefinitionListFluent implements VisitableBuilder{ public V1CustomResourceDefinitionListBuilder() { this(new V1CustomResourceDefinitionList()); 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 adac11c26c..6367823765 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionListFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionListFluent> extends BaseFluent{ public V1CustomResourceDefinitionListFluent() { } @@ -29,13 +32,13 @@ public V1CustomResourceDefinitionListFluent(V1CustomResourceDefinitionList insta private V1ListMetaBuilder metadata; protected void copyInstance(V1CustomResourceDefinitionList instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionList()); + instance = instance != null ? instance : new V1CustomResourceDefinitionList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1CustomResourceDefinition item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1CustomResourceDefinition item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1CustomResourceDefinition item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1CustomResourceDefinition item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1CustomResourceDefinition... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { - if (this.items == null) return (A)this; - for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1CustomResourceDefinition... items) { + if (this.items == null) { + return (A) this; + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1CustomResourceDefinitionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CustomResourceDefinitionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { + public A withItems(V1CustomResourceDefinition... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinitio } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1CustomResourceDefinition item) } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceDefinitionListFluent that = (V1CustomResourceDefinitionListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1CustomResourceDefinitionFluent implements VisitableBuilder{ public V1CustomResourceDefinitionNamesBuilder() { this(new V1CustomResourceDefinitionNames()); 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 03606e4b39..0d74b645fb 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionNamesFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionNamesFluent> extends BaseFluent{ public V1CustomResourceDefinitionNamesFluent() { } @@ -28,46 +30,71 @@ public V1CustomResourceDefinitionNamesFluent(V1CustomResourceDefinitionNames ins private String singular; protected void copyInstance(V1CustomResourceDefinitionNames instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionNames()); + instance = instance != null ? instance : new V1CustomResourceDefinitionNames(); if (instance != null) { - this.withCategories(instance.getCategories()); - this.withKind(instance.getKind()); - this.withListKind(instance.getListKind()); - this.withPlural(instance.getPlural()); - this.withShortNames(instance.getShortNames()); - this.withSingular(instance.getSingular()); - } + this.withCategories(instance.getCategories()); + this.withKind(instance.getKind()); + this.withListKind(instance.getListKind()); + this.withPlural(instance.getPlural()); + this.withShortNames(instance.getShortNames()); + this.withSingular(instance.getSingular()); + } } public A addToCategories(int index,String item) { - if (this.categories == null) {this.categories = new ArrayList();} + if (this.categories == null) { + this.categories = new ArrayList(); + } this.categories.add(index, item); - return (A)this; + return (A) this; } public A setToCategories(int index,String item) { - if (this.categories == null) {this.categories = new ArrayList();} - this.categories.set(index, item); return (A)this; + if (this.categories == null) { + this.categories = new ArrayList(); + } + this.categories.set(index, item); + return (A) this; } - public A addToCategories(java.lang.String... items) { - if (this.categories == null) {this.categories = new ArrayList();} - for (String item : items) {this.categories.add(item);} return (A)this; + public A addToCategories(String... items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; } public A addAllToCategories(Collection items) { - if (this.categories == null) {this.categories = new ArrayList();} - for (String item : items) {this.categories.add(item);} return (A)this; + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; } - public A removeFromCategories(java.lang.String... items) { - if (this.categories == null) return (A)this; - for (String item : items) { this.categories.remove(item);} return (A)this; + public A removeFromCategories(String... items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; } public A removeAllFromCategories(Collection items) { - if (this.categories == null) return (A)this; - for (String item : items) { this.categories.remove(item);} return (A)this; + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; } public List getCategories() { @@ -116,7 +143,7 @@ public A withCategories(List categories) { return (A) this; } - public A withCategories(java.lang.String... categories) { + public A withCategories(String... categories) { if (this.categories != null) { this.categories.clear(); _visitables.remove("categories"); @@ -130,7 +157,7 @@ public A withCategories(java.lang.String... categories) { } public boolean hasCategories() { - return this.categories != null && !this.categories.isEmpty(); + return this.categories != null && !(this.categories.isEmpty()); } public String getKind() { @@ -173,34 +200,59 @@ public boolean hasPlural() { } public A addToShortNames(int index,String item) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } this.shortNames.add(index, item); - return (A)this; + return (A) this; } public A setToShortNames(int index,String item) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - this.shortNames.set(index, item); return (A)this; + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.set(index, item); + return (A) this; } - public A addToShortNames(java.lang.String... items) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - for (String item : items) {this.shortNames.add(item);} return (A)this; + public A addToShortNames(String... items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; } public A addAllToShortNames(Collection items) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - for (String item : items) {this.shortNames.add(item);} return (A)this; + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; } - public A removeFromShortNames(java.lang.String... items) { - if (this.shortNames == null) return (A)this; - for (String item : items) { this.shortNames.remove(item);} return (A)this; + public A removeFromShortNames(String... items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; } public A removeAllFromShortNames(Collection items) { - if (this.shortNames == null) return (A)this; - for (String item : items) { this.shortNames.remove(item);} return (A)this; + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; } public List getShortNames() { @@ -249,7 +301,7 @@ public A withShortNames(List shortNames) { return (A) this; } - public A withShortNames(java.lang.String... shortNames) { + public A withShortNames(String... shortNames) { if (this.shortNames != null) { this.shortNames.clear(); _visitables.remove("shortNames"); @@ -263,7 +315,7 @@ public A withShortNames(java.lang.String... shortNames) { } public boolean hasShortNames() { - return this.shortNames != null && !this.shortNames.isEmpty(); + return this.shortNames != null && !(this.shortNames.isEmpty()); } public String getSingular() { @@ -280,32 +332,73 @@ public boolean hasSingular() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceDefinitionNamesFluent that = (V1CustomResourceDefinitionNamesFluent) o; - if (!java.util.Objects.equals(categories, that.categories)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(listKind, that.listKind)) return false; - if (!java.util.Objects.equals(plural, that.plural)) return false; - if (!java.util.Objects.equals(shortNames, that.shortNames)) return false; - if (!java.util.Objects.equals(singular, that.singular)) return false; + if (!(Objects.equals(categories, that.categories))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(listKind, that.listKind))) { + return false; + } + if (!(Objects.equals(plural, that.plural))) { + return false; + } + if (!(Objects.equals(shortNames, that.shortNames))) { + return false; + } + if (!(Objects.equals(singular, that.singular))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(categories, kind, listKind, plural, shortNames, singular, super.hashCode()); + return Objects.hash(categories, kind, listKind, plural, shortNames, singular); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (categories != null && !categories.isEmpty()) { sb.append("categories:"); sb.append(categories + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (listKind != null) { sb.append("listKind:"); sb.append(listKind + ","); } - if (plural != null) { sb.append("plural:"); sb.append(plural + ","); } - if (shortNames != null && !shortNames.isEmpty()) { sb.append("shortNames:"); sb.append(shortNames + ","); } - if (singular != null) { sb.append("singular:"); sb.append(singular); } + if (!(categories == null) && !(categories.isEmpty())) { + sb.append("categories:"); + sb.append(categories); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(listKind == null)) { + sb.append("listKind:"); + sb.append(listKind); + sb.append(","); + } + if (!(plural == null)) { + sb.append("plural:"); + sb.append(plural); + sb.append(","); + } + if (!(shortNames == null) && !(shortNames.isEmpty())) { + sb.append("shortNames:"); + sb.append(shortNames); + sb.append(","); + } + if (!(singular == null)) { + sb.append("singular:"); + sb.append(singular); + } sb.append("}"); return sb.toString(); } 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 0f008a3c5e..689f48c10b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionSpecBuilder extends V1CustomResourceDefinitionSpecFluent implements VisitableBuilder{ public V1CustomResourceDefinitionSpecBuilder() { this(new V1CustomResourceDefinitionSpec()); 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 1c96eea495..5d603390c8 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 @@ -1,15 +1,18 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionSpecFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionSpecFluent> extends BaseFluent{ public V1CustomResourceDefinitionSpecFluent() { } @@ -32,15 +35,15 @@ public V1CustomResourceDefinitionSpecFluent(V1CustomResourceDefinitionSpec insta private ArrayList versions; protected void copyInstance(V1CustomResourceDefinitionSpec instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionSpec()); + instance = instance != null ? instance : new V1CustomResourceDefinitionSpec(); if (instance != null) { - this.withConversion(instance.getConversion()); - this.withGroup(instance.getGroup()); - this.withNames(instance.getNames()); - this.withPreserveUnknownFields(instance.getPreserveUnknownFields()); - this.withScope(instance.getScope()); - this.withVersions(instance.getVersions()); - } + this.withConversion(instance.getConversion()); + this.withGroup(instance.getGroup()); + this.withNames(instance.getNames()); + this.withPreserveUnknownFields(instance.getPreserveUnknownFields()); + this.withScope(instance.getScope()); + this.withVersions(instance.getVersions()); + } } public V1CustomResourceConversion buildConversion() { @@ -72,15 +75,15 @@ public ConversionNested withNewConversionLike(V1CustomResourceConversion item } public ConversionNested editConversion() { - return withNewConversionLike(java.util.Optional.ofNullable(buildConversion()).orElse(null)); + return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(null)); } public ConversionNested editOrNewConversion() { - return withNewConversionLike(java.util.Optional.ofNullable(buildConversion()).orElse(new V1CustomResourceConversionBuilder().build())); + return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(new V1CustomResourceConversionBuilder().build())); } public ConversionNested editOrNewConversionLike(V1CustomResourceConversion item) { - return withNewConversionLike(java.util.Optional.ofNullable(buildConversion()).orElse(item)); + return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(item)); } public String getGroup() { @@ -125,15 +128,15 @@ public NamesNested withNewNamesLike(V1CustomResourceDefinitionNames item) { } public NamesNested editNames() { - return withNewNamesLike(java.util.Optional.ofNullable(buildNames()).orElse(null)); + return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(null)); } public NamesNested editOrNewNames() { - return withNewNamesLike(java.util.Optional.ofNullable(buildNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); + return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); } public NamesNested editOrNewNamesLike(V1CustomResourceDefinitionNames item) { - return withNewNamesLike(java.util.Optional.ofNullable(buildNames()).orElse(item)); + return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(item)); } public Boolean getPreserveUnknownFields() { @@ -163,7 +166,9 @@ public boolean hasScope() { } public A addToVersions(int index,V1CustomResourceDefinitionVersion item) { - if (this.versions == null) {this.versions = new ArrayList();} + if (this.versions == null) { + this.versions = new ArrayList(); + } V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); @@ -172,11 +177,13 @@ public A addToVersions(int index,V1CustomResourceDefinitionVersion item) { _visitables.get("versions").add(builder); versions.add(index, builder); } - return (A)this; + return (A) this; } public A setToVersions(int index,V1CustomResourceDefinitionVersion item) { - if (this.versions == null) {this.versions = new ArrayList();} + if (this.versions == null) { + this.versions = new ArrayList(); + } V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); @@ -185,41 +192,71 @@ public A setToVersions(int index,V1CustomResourceDefinitionVersion item) { _visitables.get("versions").add(builder); versions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; + public A addToVersions(V1CustomResourceDefinitionVersion... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; } public A addAllToVersions(Collection items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; } - public A removeFromVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { - if (this.versions == null) return (A)this; - for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").remove(builder); this.versions.remove(builder);} return (A)this; + public A removeFromVersions(V1CustomResourceDefinitionVersion... items) { + if (this.versions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; } public A removeAllFromVersions(Collection items) { - if (this.versions == null) return (A)this; - for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").remove(builder); this.versions.remove(builder);} return (A)this; + if (this.versions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; } public A removeMatchingFromVersions(Predicate predicate) { - if (versions == null) return (A) this; - final Iterator each = versions.iterator(); - final List visitables = _visitables.get("versions"); + if (versions == null) { + return (A) this; + } + Iterator each = versions.iterator(); + List visitables = _visitables.get("versions"); while (each.hasNext()) { - V1CustomResourceDefinitionVersionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CustomResourceDefinitionVersionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVersions() { @@ -271,7 +308,7 @@ public A withVersions(List versions) { return (A) this; } - public A withVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... versions) { + public A withVersions(V1CustomResourceDefinitionVersion... versions) { if (this.versions != null) { this.versions.clear(); _visitables.remove("versions"); @@ -285,7 +322,7 @@ public A withVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefini } public boolean hasVersions() { - return this.versions != null && !this.versions.isEmpty(); + return this.versions != null && !(this.versions.isEmpty()); } public VersionsNested addNewVersion() { @@ -301,57 +338,109 @@ public VersionsNested setNewVersionLike(int index,V1CustomResourceDefinitionV } public VersionsNested editVersion(int index) { - if (versions.size() <= index) throw new RuntimeException("Can't edit versions. Index exceeds size."); - return setNewVersionLike(index, buildVersion(index)); + if (index <= versions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); } public VersionsNested editFirstVersion() { - if (versions.size() == 0) throw new RuntimeException("Can't edit first versions. The list is empty."); - return setNewVersionLike(0, buildVersion(0)); + if (versions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(0, this.buildVersion(0)); } public VersionsNested editLastVersion() { int index = versions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last versions. The list is empty."); - return setNewVersionLike(index, buildVersion(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); } public VersionsNested editMatchingVersion(Predicate predicate) { int index = -1; - for (int i=0;i extends V1CustomResourceDefinitionVersionFluent implements VisitableBuilder{ public V1CustomResourceDefinitionStatusBuilder() { this(new V1CustomResourceDefinitionStatus()); 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 54c220a537..2b31ea9467 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionStatusFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionStatusFluent> extends BaseFluent{ public V1CustomResourceDefinitionStatusFluent() { } @@ -28,12 +31,12 @@ public V1CustomResourceDefinitionStatusFluent(V1CustomResourceDefinitionStatus i private List storedVersions; protected void copyInstance(V1CustomResourceDefinitionStatus instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionStatus()); + instance = instance != null ? instance : new V1CustomResourceDefinitionStatus(); if (instance != null) { - this.withAcceptedNames(instance.getAcceptedNames()); - this.withConditions(instance.getConditions()); - this.withStoredVersions(instance.getStoredVersions()); - } + this.withAcceptedNames(instance.getAcceptedNames()); + this.withConditions(instance.getConditions()); + this.withStoredVersions(instance.getStoredVersions()); + } } public V1CustomResourceDefinitionNames buildAcceptedNames() { @@ -65,19 +68,21 @@ public AcceptedNamesNested withNewAcceptedNamesLike(V1CustomResourceDefinitio } public AcceptedNamesNested editAcceptedNames() { - return withNewAcceptedNamesLike(java.util.Optional.ofNullable(buildAcceptedNames()).orElse(null)); + return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(null)); } public AcceptedNamesNested editOrNewAcceptedNames() { - return withNewAcceptedNamesLike(java.util.Optional.ofNullable(buildAcceptedNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); + return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); } public AcceptedNamesNested editOrNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { - return withNewAcceptedNamesLike(java.util.Optional.ofNullable(buildAcceptedNames()).orElse(item)); + return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(item)); } public A addToConditions(int index,V1CustomResourceDefinitionCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -86,11 +91,13 @@ public A addToConditions(int index,V1CustomResourceDefinitionCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -99,41 +106,71 @@ public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1CustomResourceDefinitionCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items) { - if (this.conditions == null) return (A)this; - for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1CustomResourceDefinitionCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1CustomResourceDefinitionConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CustomResourceDefinitionConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -185,7 +222,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... conditions) { + public A withConditions(V1CustomResourceDefinitionCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -199,7 +236,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -215,59 +252,95 @@ public ConditionsNested setNewConditionLike(int index,V1CustomResourceDefinit } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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();} + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } this.storedVersions.add(index, item); - return (A)this; + return (A) this; } public A setToStoredVersions(int index,String item) { - if (this.storedVersions == null) {this.storedVersions = new ArrayList();} - this.storedVersions.set(index, item); return (A)this; + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } + this.storedVersions.set(index, item); + return (A) this; } - public A addToStoredVersions(java.lang.String... items) { - if (this.storedVersions == null) {this.storedVersions = new ArrayList();} - for (String item : items) {this.storedVersions.add(item);} return (A)this; + public A addToStoredVersions(String... items) { + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } + for (String item : items) { + this.storedVersions.add(item); + } + return (A) this; } public A addAllToStoredVersions(Collection items) { - if (this.storedVersions == null) {this.storedVersions = new ArrayList();} - for (String item : items) {this.storedVersions.add(item);} return (A)this; + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } + for (String item : items) { + this.storedVersions.add(item); + } + return (A) this; } - public A removeFromStoredVersions(java.lang.String... items) { - if (this.storedVersions == null) return (A)this; - for (String item : items) { this.storedVersions.remove(item);} return (A)this; + public A removeFromStoredVersions(String... items) { + if (this.storedVersions == null) { + return (A) this; + } + for (String item : items) { + this.storedVersions.remove(item); + } + return (A) this; } public A removeAllFromStoredVersions(Collection items) { - if (this.storedVersions == null) return (A)this; - for (String item : items) { this.storedVersions.remove(item);} return (A)this; + if (this.storedVersions == null) { + return (A) this; + } + for (String item : items) { + this.storedVersions.remove(item); + } + return (A) this; } public List getStoredVersions() { @@ -316,7 +389,7 @@ public A withStoredVersions(List storedVersions) { return (A) this; } - public A withStoredVersions(java.lang.String... storedVersions) { + public A withStoredVersions(String... storedVersions) { if (this.storedVersions != null) { this.storedVersions.clear(); _visitables.remove("storedVersions"); @@ -330,30 +403,53 @@ public A withStoredVersions(java.lang.String... storedVersions) { } public boolean hasStoredVersions() { - return this.storedVersions != null && !this.storedVersions.isEmpty(); + return this.storedVersions != null && !(this.storedVersions.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceDefinitionStatusFluent that = (V1CustomResourceDefinitionStatusFluent) o; - if (!java.util.Objects.equals(acceptedNames, that.acceptedNames)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(storedVersions, that.storedVersions)) return false; + if (!(Objects.equals(acceptedNames, that.acceptedNames))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(storedVersions, that.storedVersions))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(acceptedNames, conditions, storedVersions, super.hashCode()); + return Objects.hash(acceptedNames, conditions, storedVersions); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (acceptedNames != null) { sb.append("acceptedNames:"); sb.append(acceptedNames + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (storedVersions != null && !storedVersions.isEmpty()) { sb.append("storedVersions:"); sb.append(storedVersions); } + if (!(acceptedNames == null)) { + sb.append("acceptedNames:"); + sb.append(acceptedNames); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(storedVersions == null) && !(storedVersions.isEmpty())) { + sb.append("storedVersions:"); + sb.append(storedVersions); + } sb.append("}"); return sb.toString(); } @@ -382,7 +478,7 @@ public class ConditionsNested extends V1CustomResourceDefinitionConditionFlue int index; public N and() { - return (N) V1CustomResourceDefinitionStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1CustomResourceDefinitionStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 63d4d3dab4..da72d64ed7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionVersionBuilder extends V1CustomResourceDefinitionVersionFluent implements VisitableBuilder{ public V1CustomResourceDefinitionVersionBuilder() { this(new V1CustomResourceDefinitionVersion()); 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 50e38b2beb..52de66e600 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 @@ -1,15 +1,18 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionVersionFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionVersionFluent> extends BaseFluent{ public V1CustomResourceDefinitionVersionFluent() { } @@ -35,22 +38,24 @@ public V1CustomResourceDefinitionVersionFluent(V1CustomResourceDefinitionVersion private V1CustomResourceSubresourcesBuilder subresources; protected void copyInstance(V1CustomResourceDefinitionVersion instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionVersion()); + instance = instance != null ? instance : new V1CustomResourceDefinitionVersion(); if (instance != null) { - this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); - this.withDeprecated(instance.getDeprecated()); - this.withDeprecationWarning(instance.getDeprecationWarning()); - this.withName(instance.getName()); - this.withSchema(instance.getSchema()); - this.withSelectableFields(instance.getSelectableFields()); - this.withServed(instance.getServed()); - this.withStorage(instance.getStorage()); - this.withSubresources(instance.getSubresources()); - } + this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); + this.withDeprecated(instance.getDeprecated()); + this.withDeprecationWarning(instance.getDeprecationWarning()); + this.withName(instance.getName()); + this.withSchema(instance.getSchema()); + this.withSelectableFields(instance.getSelectableFields()); + this.withServed(instance.getServed()); + this.withStorage(instance.getStorage()); + this.withSubresources(instance.getSubresources()); + } } public A addToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { - if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} + if (this.additionalPrinterColumns == null) { + this.additionalPrinterColumns = new ArrayList(); + } V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); if (index < 0 || index >= additionalPrinterColumns.size()) { _visitables.get("additionalPrinterColumns").add(builder); @@ -59,11 +64,13 @@ public A addToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinitio _visitables.get("additionalPrinterColumns").add(builder); additionalPrinterColumns.add(index, builder); } - return (A)this; + return (A) this; } public A setToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { - if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} + if (this.additionalPrinterColumns == null) { + this.additionalPrinterColumns = new ArrayList(); + } V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); if (index < 0 || index >= additionalPrinterColumns.size()) { _visitables.get("additionalPrinterColumns").add(builder); @@ -72,41 +79,71 @@ public A setToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinitio _visitables.get("additionalPrinterColumns").add(builder); additionalPrinterColumns.set(index, builder); } - return (A)this; + return (A) this; } - public A addToAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { - if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} - for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").add(builder);this.additionalPrinterColumns.add(builder);} return (A)this; + public A addToAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items) { + if (this.additionalPrinterColumns == null) { + this.additionalPrinterColumns = new ArrayList(); + } + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").add(builder); + this.additionalPrinterColumns.add(builder); + } + return (A) this; } public A addAllToAdditionalPrinterColumns(Collection items) { - if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} - for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").add(builder);this.additionalPrinterColumns.add(builder);} return (A)this; + if (this.additionalPrinterColumns == null) { + this.additionalPrinterColumns = new ArrayList(); + } + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").add(builder); + this.additionalPrinterColumns.add(builder); + } + return (A) this; } - public A removeFromAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { - if (this.additionalPrinterColumns == null) return (A)this; - for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").remove(builder); this.additionalPrinterColumns.remove(builder);} return (A)this; + public A removeFromAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items) { + if (this.additionalPrinterColumns == null) { + return (A) this; + } + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").remove(builder); + this.additionalPrinterColumns.remove(builder); + } + return (A) this; } public A removeAllFromAdditionalPrinterColumns(Collection items) { - if (this.additionalPrinterColumns == null) return (A)this; - for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").remove(builder); this.additionalPrinterColumns.remove(builder);} return (A)this; + if (this.additionalPrinterColumns == null) { + return (A) this; + } + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").remove(builder); + this.additionalPrinterColumns.remove(builder); + } + return (A) this; } public A removeMatchingFromAdditionalPrinterColumns(Predicate predicate) { - if (additionalPrinterColumns == null) return (A) this; - final Iterator each = additionalPrinterColumns.iterator(); - final List visitables = _visitables.get("additionalPrinterColumns"); + if (additionalPrinterColumns == null) { + return (A) this; + } + Iterator each = additionalPrinterColumns.iterator(); + List visitables = _visitables.get("additionalPrinterColumns"); while (each.hasNext()) { - V1CustomResourceColumnDefinitionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1CustomResourceColumnDefinitionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildAdditionalPrinterColumns() { @@ -158,7 +195,7 @@ public A withAdditionalPrinterColumns(List add return (A) this; } - public A withAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... additionalPrinterColumns) { + public A withAdditionalPrinterColumns(V1CustomResourceColumnDefinition... additionalPrinterColumns) { if (this.additionalPrinterColumns != null) { this.additionalPrinterColumns.clear(); _visitables.remove("additionalPrinterColumns"); @@ -172,7 +209,7 @@ public A withAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1Cust } public boolean hasAdditionalPrinterColumns() { - return this.additionalPrinterColumns != null && !this.additionalPrinterColumns.isEmpty(); + return this.additionalPrinterColumns != null && !(this.additionalPrinterColumns.isEmpty()); } public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumn() { @@ -188,28 +225,39 @@ public AdditionalPrinterColumnsNested setNewAdditionalPrinterColumnLike(int i } public AdditionalPrinterColumnsNested editAdditionalPrinterColumn(int index) { - if (additionalPrinterColumns.size() <= index) throw new RuntimeException("Can't edit additionalPrinterColumns. Index exceeds size."); - return setNewAdditionalPrinterColumnLike(index, buildAdditionalPrinterColumn(index)); + if (index <= additionalPrinterColumns.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "additionalPrinterColumns")); + } + return this.setNewAdditionalPrinterColumnLike(index, this.buildAdditionalPrinterColumn(index)); } public AdditionalPrinterColumnsNested editFirstAdditionalPrinterColumn() { - if (additionalPrinterColumns.size() == 0) throw new RuntimeException("Can't edit first additionalPrinterColumns. The list is empty."); - return setNewAdditionalPrinterColumnLike(0, buildAdditionalPrinterColumn(0)); + if (additionalPrinterColumns.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "additionalPrinterColumns")); + } + return this.setNewAdditionalPrinterColumnLike(0, this.buildAdditionalPrinterColumn(0)); } public AdditionalPrinterColumnsNested editLastAdditionalPrinterColumn() { int index = additionalPrinterColumns.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last additionalPrinterColumns. The list is empty."); - return setNewAdditionalPrinterColumnLike(index, buildAdditionalPrinterColumn(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "additionalPrinterColumns")); + } + return this.setNewAdditionalPrinterColumnLike(index, this.buildAdditionalPrinterColumn(index)); } public AdditionalPrinterColumnsNested editMatchingAdditionalPrinterColumn(Predicate predicate) { int index = -1; - for (int i=0;i withNewSchemaLike(V1CustomResourceValidation item) { } public SchemaNested editSchema() { - return withNewSchemaLike(java.util.Optional.ofNullable(buildSchema()).orElse(null)); + return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(null)); } public SchemaNested editOrNewSchema() { - return withNewSchemaLike(java.util.Optional.ofNullable(buildSchema()).orElse(new V1CustomResourceValidationBuilder().build())); + return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(new V1CustomResourceValidationBuilder().build())); } public SchemaNested editOrNewSchemaLike(V1CustomResourceValidation item) { - return withNewSchemaLike(java.util.Optional.ofNullable(buildSchema()).orElse(item)); + return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(item)); } public A addToSelectableFields(int index,V1SelectableField item) { - if (this.selectableFields == null) {this.selectableFields = new ArrayList();} + if (this.selectableFields == null) { + this.selectableFields = new ArrayList(); + } V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); if (index < 0 || index >= selectableFields.size()) { _visitables.get("selectableFields").add(builder); @@ -301,11 +351,13 @@ public A addToSelectableFields(int index,V1SelectableField item) { _visitables.get("selectableFields").add(builder); selectableFields.add(index, builder); } - return (A)this; + return (A) this; } public A setToSelectableFields(int index,V1SelectableField item) { - if (this.selectableFields == null) {this.selectableFields = new ArrayList();} + if (this.selectableFields == null) { + this.selectableFields = new ArrayList(); + } V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); if (index < 0 || index >= selectableFields.size()) { _visitables.get("selectableFields").add(builder); @@ -314,41 +366,71 @@ public A setToSelectableFields(int index,V1SelectableField item) { _visitables.get("selectableFields").add(builder); selectableFields.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSelectableFields(io.kubernetes.client.openapi.models.V1SelectableField... items) { - if (this.selectableFields == null) {this.selectableFields = new ArrayList();} - for (V1SelectableField item : items) {V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item);_visitables.get("selectableFields").add(builder);this.selectableFields.add(builder);} return (A)this; + public A addToSelectableFields(V1SelectableField... items) { + if (this.selectableFields == null) { + this.selectableFields = new ArrayList(); + } + for (V1SelectableField item : items) { + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + _visitables.get("selectableFields").add(builder); + this.selectableFields.add(builder); + } + return (A) this; } public A addAllToSelectableFields(Collection items) { - if (this.selectableFields == null) {this.selectableFields = new ArrayList();} - for (V1SelectableField item : items) {V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item);_visitables.get("selectableFields").add(builder);this.selectableFields.add(builder);} return (A)this; + if (this.selectableFields == null) { + this.selectableFields = new ArrayList(); + } + for (V1SelectableField item : items) { + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + _visitables.get("selectableFields").add(builder); + this.selectableFields.add(builder); + } + return (A) this; } - public A removeFromSelectableFields(io.kubernetes.client.openapi.models.V1SelectableField... items) { - if (this.selectableFields == null) return (A)this; - for (V1SelectableField item : items) {V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item);_visitables.get("selectableFields").remove(builder); this.selectableFields.remove(builder);} return (A)this; + public A removeFromSelectableFields(V1SelectableField... items) { + if (this.selectableFields == null) { + return (A) this; + } + for (V1SelectableField item : items) { + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + _visitables.get("selectableFields").remove(builder); + this.selectableFields.remove(builder); + } + return (A) this; } public A removeAllFromSelectableFields(Collection items) { - if (this.selectableFields == null) return (A)this; - for (V1SelectableField item : items) {V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item);_visitables.get("selectableFields").remove(builder); this.selectableFields.remove(builder);} return (A)this; + if (this.selectableFields == null) { + return (A) this; + } + for (V1SelectableField item : items) { + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + _visitables.get("selectableFields").remove(builder); + this.selectableFields.remove(builder); + } + return (A) this; } public A removeMatchingFromSelectableFields(Predicate predicate) { - if (selectableFields == null) return (A) this; - final Iterator each = selectableFields.iterator(); - final List visitables = _visitables.get("selectableFields"); + if (selectableFields == null) { + return (A) this; + } + Iterator each = selectableFields.iterator(); + List visitables = _visitables.get("selectableFields"); while (each.hasNext()) { - V1SelectableFieldBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1SelectableFieldBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSelectableFields() { @@ -400,7 +482,7 @@ public A withSelectableFields(List selectableFields) { return (A) this; } - public A withSelectableFields(io.kubernetes.client.openapi.models.V1SelectableField... selectableFields) { + public A withSelectableFields(V1SelectableField... selectableFields) { if (this.selectableFields != null) { this.selectableFields.clear(); _visitables.remove("selectableFields"); @@ -414,7 +496,7 @@ public A withSelectableFields(io.kubernetes.client.openapi.models.V1SelectableFi } public boolean hasSelectableFields() { - return this.selectableFields != null && !this.selectableFields.isEmpty(); + return this.selectableFields != null && !(this.selectableFields.isEmpty()); } public SelectableFieldsNested addNewSelectableField() { @@ -430,28 +512,39 @@ public SelectableFieldsNested setNewSelectableFieldLike(int index,V1Selectabl } public SelectableFieldsNested editSelectableField(int index) { - if (selectableFields.size() <= index) throw new RuntimeException("Can't edit selectableFields. Index exceeds size."); - return setNewSelectableFieldLike(index, buildSelectableField(index)); + if (index <= selectableFields.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectableFields")); + } + return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); } public SelectableFieldsNested editFirstSelectableField() { - if (selectableFields.size() == 0) throw new RuntimeException("Can't edit first selectableFields. The list is empty."); - return setNewSelectableFieldLike(0, buildSelectableField(0)); + if (selectableFields.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectableFields")); + } + return this.setNewSelectableFieldLike(0, this.buildSelectableField(0)); } public SelectableFieldsNested editLastSelectableField() { int index = selectableFields.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectableFields. The list is empty."); - return setNewSelectableFieldLike(index, buildSelectableField(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectableFields")); + } + return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); } public SelectableFieldsNested editMatchingSelectableField(Predicate predicate) { int index = -1; - for (int i=0;i withNewSubresourcesLike(V1CustomResourceSubresource } public SubresourcesNested editSubresources() { - return withNewSubresourcesLike(java.util.Optional.ofNullable(buildSubresources()).orElse(null)); + return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(null)); } public SubresourcesNested editOrNewSubresources() { - return withNewSubresourcesLike(java.util.Optional.ofNullable(buildSubresources()).orElse(new V1CustomResourceSubresourcesBuilder().build())); + return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(new V1CustomResourceSubresourcesBuilder().build())); } public SubresourcesNested editOrNewSubresourcesLike(V1CustomResourceSubresources item) { - return withNewSubresourcesLike(java.util.Optional.ofNullable(buildSubresources()).orElse(item)); + return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceDefinitionVersionFluent that = (V1CustomResourceDefinitionVersionFluent) o; - if (!java.util.Objects.equals(additionalPrinterColumns, that.additionalPrinterColumns)) return false; - if (!java.util.Objects.equals(deprecated, that.deprecated)) return false; - if (!java.util.Objects.equals(deprecationWarning, that.deprecationWarning)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(schema, that.schema)) return false; - if (!java.util.Objects.equals(selectableFields, that.selectableFields)) return false; - if (!java.util.Objects.equals(served, that.served)) return false; - if (!java.util.Objects.equals(storage, that.storage)) return false; - if (!java.util.Objects.equals(subresources, that.subresources)) return false; + if (!(Objects.equals(additionalPrinterColumns, that.additionalPrinterColumns))) { + return false; + } + if (!(Objects.equals(deprecated, that.deprecated))) { + return false; + } + if (!(Objects.equals(deprecationWarning, that.deprecationWarning))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(schema, that.schema))) { + return false; + } + if (!(Objects.equals(selectableFields, that.selectableFields))) { + return false; + } + if (!(Objects.equals(served, that.served))) { + return false; + } + if (!(Objects.equals(storage, that.storage))) { + return false; + } + if (!(Objects.equals(subresources, that.subresources))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, selectableFields, served, storage, subresources, super.hashCode()); + return Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, selectableFields, served, storage, subresources); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (additionalPrinterColumns != null && !additionalPrinterColumns.isEmpty()) { sb.append("additionalPrinterColumns:"); sb.append(additionalPrinterColumns + ","); } - if (deprecated != null) { sb.append("deprecated:"); sb.append(deprecated + ","); } - if (deprecationWarning != null) { sb.append("deprecationWarning:"); sb.append(deprecationWarning + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (schema != null) { sb.append("schema:"); sb.append(schema + ","); } - if (selectableFields != null && !selectableFields.isEmpty()) { sb.append("selectableFields:"); sb.append(selectableFields + ","); } - if (served != null) { sb.append("served:"); sb.append(served + ","); } - if (storage != null) { sb.append("storage:"); sb.append(storage + ","); } - if (subresources != null) { sb.append("subresources:"); sb.append(subresources); } + if (!(additionalPrinterColumns == null) && !(additionalPrinterColumns.isEmpty())) { + sb.append("additionalPrinterColumns:"); + sb.append(additionalPrinterColumns); + sb.append(","); + } + if (!(deprecated == null)) { + sb.append("deprecated:"); + sb.append(deprecated); + sb.append(","); + } + if (!(deprecationWarning == null)) { + sb.append("deprecationWarning:"); + sb.append(deprecationWarning); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(schema == null)) { + sb.append("schema:"); + sb.append(schema); + sb.append(","); + } + if (!(selectableFields == null) && !(selectableFields.isEmpty())) { + sb.append("selectableFields:"); + sb.append(selectableFields); + sb.append(","); + } + if (!(served == null)) { + sb.append("served:"); + sb.append(served); + sb.append(","); + } + if (!(storage == null)) { + sb.append("storage:"); + sb.append(storage); + sb.append(","); + } + if (!(subresources == null)) { + sb.append("subresources:"); + sb.append(subresources); + } sb.append("}"); return sb.toString(); } @@ -577,7 +729,7 @@ public class AdditionalPrinterColumnsNested extends V1CustomResourceColumnDef int index; public N and() { - return (N) V1CustomResourceDefinitionVersionFluent.this.setToAdditionalPrinterColumns(index,builder.build()); + return (N) V1CustomResourceDefinitionVersionFluent.this.setToAdditionalPrinterColumns(index, builder.build()); } public N endAdditionalPrinterColumn() { @@ -611,7 +763,7 @@ public class SelectableFieldsNested extends V1SelectableFieldFluent implements VisitableBuilder{ public V1CustomResourceSubresourceScaleBuilder() { this(new V1CustomResourceSubresourceScale()); 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 e1c1e459d4..03c256c85a 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceSubresourceScaleFluent> extends BaseFluent{ +public class V1CustomResourceSubresourceScaleFluent> extends BaseFluent{ public V1CustomResourceSubresourceScaleFluent() { } @@ -21,12 +23,12 @@ public V1CustomResourceSubresourceScaleFluent(V1CustomResourceSubresourceScale i private String statusReplicasPath; protected void copyInstance(V1CustomResourceSubresourceScale instance) { - instance = (instance != null ? instance : new V1CustomResourceSubresourceScale()); + instance = instance != null ? instance : new V1CustomResourceSubresourceScale(); if (instance != null) { - this.withLabelSelectorPath(instance.getLabelSelectorPath()); - this.withSpecReplicasPath(instance.getSpecReplicasPath()); - this.withStatusReplicasPath(instance.getStatusReplicasPath()); - } + this.withLabelSelectorPath(instance.getLabelSelectorPath()); + this.withSpecReplicasPath(instance.getSpecReplicasPath()); + this.withStatusReplicasPath(instance.getStatusReplicasPath()); + } } public String getLabelSelectorPath() { @@ -69,26 +71,49 @@ public boolean hasStatusReplicasPath() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceSubresourceScaleFluent that = (V1CustomResourceSubresourceScaleFluent) o; - if (!java.util.Objects.equals(labelSelectorPath, that.labelSelectorPath)) return false; - if (!java.util.Objects.equals(specReplicasPath, that.specReplicasPath)) return false; - if (!java.util.Objects.equals(statusReplicasPath, that.statusReplicasPath)) return false; + if (!(Objects.equals(labelSelectorPath, that.labelSelectorPath))) { + return false; + } + if (!(Objects.equals(specReplicasPath, that.specReplicasPath))) { + return false; + } + if (!(Objects.equals(statusReplicasPath, that.statusReplicasPath))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(labelSelectorPath, specReplicasPath, statusReplicasPath, super.hashCode()); + return Objects.hash(labelSelectorPath, specReplicasPath, statusReplicasPath); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (labelSelectorPath != null) { sb.append("labelSelectorPath:"); sb.append(labelSelectorPath + ","); } - if (specReplicasPath != null) { sb.append("specReplicasPath:"); sb.append(specReplicasPath + ","); } - if (statusReplicasPath != null) { sb.append("statusReplicasPath:"); sb.append(statusReplicasPath); } + if (!(labelSelectorPath == null)) { + sb.append("labelSelectorPath:"); + sb.append(labelSelectorPath); + sb.append(","); + } + if (!(specReplicasPath == null)) { + sb.append("specReplicasPath:"); + sb.append(specReplicasPath); + sb.append(","); + } + if (!(statusReplicasPath == null)) { + sb.append("statusReplicasPath:"); + sb.append(statusReplicasPath); + } sb.append("}"); return sb.toString(); } 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 76fb28a11b..eeddec1cd1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceSubresourcesBuilder extends V1CustomResourceSubresourcesFluent implements VisitableBuilder{ public V1CustomResourceSubresourcesBuilder() { this(new V1CustomResourceSubresources()); 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 d290d2d084..491e5515f7 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceSubresourcesFluent> extends BaseFluent{ +public class V1CustomResourceSubresourcesFluent> extends BaseFluent{ public V1CustomResourceSubresourcesFluent() { } @@ -21,11 +24,11 @@ public V1CustomResourceSubresourcesFluent(V1CustomResourceSubresources instance) private Object status; protected void copyInstance(V1CustomResourceSubresources instance) { - instance = (instance != null ? instance : new V1CustomResourceSubresources()); + instance = instance != null ? instance : new V1CustomResourceSubresources(); if (instance != null) { - this.withScale(instance.getScale()); - this.withStatus(instance.getStatus()); - } + this.withScale(instance.getScale()); + this.withStatus(instance.getStatus()); + } } public V1CustomResourceSubresourceScale buildScale() { @@ -57,15 +60,15 @@ public ScaleNested withNewScaleLike(V1CustomResourceSubresourceScale item) { } public ScaleNested editScale() { - return withNewScaleLike(java.util.Optional.ofNullable(buildScale()).orElse(null)); + return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(null)); } public ScaleNested editOrNewScale() { - return withNewScaleLike(java.util.Optional.ofNullable(buildScale()).orElse(new V1CustomResourceSubresourceScaleBuilder().build())); + return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(new V1CustomResourceSubresourceScaleBuilder().build())); } public ScaleNested editOrNewScaleLike(V1CustomResourceSubresourceScale item) { - return withNewScaleLike(java.util.Optional.ofNullable(buildScale()).orElse(item)); + return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(item)); } public Object getStatus() { @@ -82,24 +85,41 @@ public boolean hasStatus() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceSubresourcesFluent that = (V1CustomResourceSubresourcesFluent) o; - if (!java.util.Objects.equals(scale, that.scale)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + if (!(Objects.equals(scale, that.scale))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(scale, status, super.hashCode()); + return Objects.hash(scale, status); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (scale != null) { sb.append("scale:"); sb.append(scale + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + if (!(scale == null)) { + sb.append("scale:"); + sb.append(scale); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } sb.append("}"); return sb.toString(); } 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 bb3bfd17ba..185b570953 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceValidationBuilder extends V1CustomResourceValidationFluent implements VisitableBuilder{ public V1CustomResourceValidationBuilder() { this(new V1CustomResourceValidation()); 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 e2309e886f..7efe75475f 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceValidationFluent> extends BaseFluent{ +public class V1CustomResourceValidationFluent> extends BaseFluent{ public V1CustomResourceValidationFluent() { } @@ -20,10 +23,10 @@ public V1CustomResourceValidationFluent(V1CustomResourceValidation instance) { private V1JSONSchemaPropsBuilder openAPIV3Schema; protected void copyInstance(V1CustomResourceValidation instance) { - instance = (instance != null ? instance : new V1CustomResourceValidation()); + instance = instance != null ? instance : new V1CustomResourceValidation(); if (instance != null) { - this.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); - } + this.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); + } } public V1JSONSchemaProps buildOpenAPIV3Schema() { @@ -55,34 +58,45 @@ public OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike(V1JSONSchemaProps ite } public OpenAPIV3SchemaNested editOpenAPIV3Schema() { - return withNewOpenAPIV3SchemaLike(java.util.Optional.ofNullable(buildOpenAPIV3Schema()).orElse(null)); + return this.withNewOpenAPIV3SchemaLike(Optional.ofNullable(this.buildOpenAPIV3Schema()).orElse(null)); } public OpenAPIV3SchemaNested editOrNewOpenAPIV3Schema() { - return withNewOpenAPIV3SchemaLike(java.util.Optional.ofNullable(buildOpenAPIV3Schema()).orElse(new V1JSONSchemaPropsBuilder().build())); + return this.withNewOpenAPIV3SchemaLike(Optional.ofNullable(this.buildOpenAPIV3Schema()).orElse(new V1JSONSchemaPropsBuilder().build())); } public OpenAPIV3SchemaNested editOrNewOpenAPIV3SchemaLike(V1JSONSchemaProps item) { - return withNewOpenAPIV3SchemaLike(java.util.Optional.ofNullable(buildOpenAPIV3Schema()).orElse(item)); + return this.withNewOpenAPIV3SchemaLike(Optional.ofNullable(this.buildOpenAPIV3Schema()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceValidationFluent that = (V1CustomResourceValidationFluent) o; - if (!java.util.Objects.equals(openAPIV3Schema, that.openAPIV3Schema)) return false; + if (!(Objects.equals(openAPIV3Schema, that.openAPIV3Schema))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(openAPIV3Schema, super.hashCode()); + return Objects.hash(openAPIV3Schema); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (openAPIV3Schema != null) { sb.append("openAPIV3Schema:"); sb.append(openAPIV3Schema); } + if (!(openAPIV3Schema == null)) { + sb.append("openAPIV3Schema:"); + sb.append(openAPIV3Schema); + } sb.append("}"); return sb.toString(); } 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 89dd9e89cd..f4dfa66ea2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonEndpointBuilder extends V1DaemonEndpointFluent implements VisitableBuilder{ public V1DaemonEndpointBuilder() { this(new V1DaemonEndpoint()); 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 fb492cee62..d28aef6af1 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonEndpointFluent> extends BaseFluent{ +public class V1DaemonEndpointFluent> extends BaseFluent{ public V1DaemonEndpointFluent() { } @@ -20,10 +22,10 @@ public V1DaemonEndpointFluent(V1DaemonEndpoint instance) { private Integer port; protected void copyInstance(V1DaemonEndpoint instance) { - instance = (instance != null ? instance : new V1DaemonEndpoint()); + instance = instance != null ? instance : new V1DaemonEndpoint(); if (instance != null) { - this.withPort(instance.getPort()); - } + this.withPort(instance.getPort()); + } } public Integer getPort() { @@ -40,22 +42,33 @@ public boolean hasPort() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DaemonEndpointFluent that = (V1DaemonEndpointFluent) o; - if (!java.util.Objects.equals(port, that.port)) return false; + if (!(Objects.equals(port, that.port))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(port, super.hashCode()); + return Objects.hash(port); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } 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 7270afce11..81100fffde 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetBuilder extends V1DaemonSetFluent implements VisitableBuilder{ public V1DaemonSetBuilder() { this(new V1DaemonSet()); 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 b50e3a9b3e..9af3a5ca65 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetConditionBuilder extends V1DaemonSetConditionFluent implements VisitableBuilder{ public V1DaemonSetConditionBuilder() { this(new V1DaemonSetCondition()); 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 a2907a72e6..9d55361373 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetConditionFluent> extends BaseFluent{ +public class V1DaemonSetConditionFluent> extends BaseFluent{ public V1DaemonSetConditionFluent() { } @@ -24,14 +26,14 @@ public V1DaemonSetConditionFluent(V1DaemonSetCondition instance) { private String type; protected void copyInstance(V1DaemonSetCondition instance) { - instance = (instance != null ? instance : new V1DaemonSetCondition()); + instance = instance != null ? instance : new V1DaemonSetCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DaemonSetConditionFluent that = (V1DaemonSetConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 3882253525..dbde410f9d 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetFluent> extends BaseFluent{ +public class V1DaemonSetFluent> extends BaseFluent{ public V1DaemonSetFluent() { } @@ -24,14 +27,14 @@ public V1DaemonSetFluent(V1DaemonSet instance) { private V1DaemonSetStatusBuilder status; protected void copyInstance(V1DaemonSet instance) { - instance = (instance != null ? instance : new V1DaemonSet()); + instance = instance != null ? instance : new V1DaemonSet(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1DaemonSetSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1DaemonSetSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1DaemonSetSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DaemonSetSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1DaemonSetSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1DaemonSetStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1DaemonSetStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1DaemonSetStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1DaemonSetStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1DaemonSetStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DaemonSetFluent that = (V1DaemonSetFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 4d5a3c190d..cabb8bce83 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetListBuilder extends V1DaemonSetListFluent implements VisitableBuilder{ public V1DaemonSetListBuilder() { this(new V1DaemonSetList()); 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 cb151a6284..58e12487dc 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetListFluent> extends BaseFluent{ +public class V1DaemonSetListFluent> extends BaseFluent{ public V1DaemonSetListFluent() { } @@ -29,13 +32,13 @@ public V1DaemonSetListFluent(V1DaemonSetList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1DaemonSetList instance) { - instance = (instance != null ? instance : new V1DaemonSetList()); + instance = instance != null ? instance : new V1DaemonSetList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1DaemonSet item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1DaemonSet item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1DaemonSet item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1DaemonSet item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1DaemonSet... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { - if (this.items == null) return (A)this; - for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1DaemonSet... items) { + if (this.items == null) { + return (A) this; + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1DaemonSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DaemonSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { + public A withItems(V1DaemonSet... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1DaemonSet item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DaemonSetListFluent that = (V1DaemonSetListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1DaemonSetFluent> implements int index; public N and() { - return (N) V1DaemonSetListFluent.this.setToItems(index,builder.build()); + return (N) V1DaemonSetListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 8520507a12..cd13759a35 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetSpecBuilder extends V1DaemonSetSpecFluent implements VisitableBuilder{ public V1DaemonSetSpecBuilder() { this(new V1DaemonSetSpec()); 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 decce19786..ca856a5865 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; -import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.lang.Integer; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetSpecFluent> extends BaseFluent{ +public class V1DaemonSetSpecFluent> extends BaseFluent{ public V1DaemonSetSpecFluent() { } @@ -25,14 +28,14 @@ public V1DaemonSetSpecFluent(V1DaemonSetSpec instance) { private V1DaemonSetUpdateStrategyBuilder updateStrategy; protected void copyInstance(V1DaemonSetSpec instance) { - instance = (instance != null ? instance : new V1DaemonSetSpec()); + instance = instance != null ? instance : new V1DaemonSetSpec(); if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); - this.withSelector(instance.getSelector()); - this.withTemplate(instance.getTemplate()); - this.withUpdateStrategy(instance.getUpdateStrategy()); - } + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); + this.withSelector(instance.getSelector()); + this.withTemplate(instance.getTemplate()); + this.withUpdateStrategy(instance.getUpdateStrategy()); + } } public Integer getMinReadySeconds() { @@ -90,15 +93,15 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public V1PodTemplateSpec buildTemplate() { @@ -130,15 +133,15 @@ public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { } public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } public V1DaemonSetUpdateStrategy buildUpdateStrategy() { @@ -170,42 +173,77 @@ public UpdateStrategyNested withNewUpdateStrategyLike(V1DaemonSetUpdateStrate } public UpdateStrategyNested editUpdateStrategy() { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(null)); + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(null)); } public UpdateStrategyNested editOrNewUpdateStrategy() { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(new V1DaemonSetUpdateStrategyBuilder().build())); + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(new V1DaemonSetUpdateStrategyBuilder().build())); } public UpdateStrategyNested editOrNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(item)); + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DaemonSetSpecFluent that = (V1DaemonSetSpecFluent) o; - if (!java.util.Objects.equals(minReadySeconds, that.minReadySeconds)) return false; - if (!java.util.Objects.equals(revisionHistoryLimit, that.revisionHistoryLimit)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; - if (!java.util.Objects.equals(updateStrategy, that.updateStrategy)) return false; + if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { + return false; + } + if (!(Objects.equals(revisionHistoryLimit, that.revisionHistoryLimit))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + if (!(Objects.equals(updateStrategy, that.updateStrategy))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, updateStrategy, super.hashCode()); + return Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, updateStrategy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } - if (revisionHistoryLimit != null) { sb.append("revisionHistoryLimit:"); sb.append(revisionHistoryLimit + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (template != null) { sb.append("template:"); sb.append(template + ","); } - if (updateStrategy != null) { sb.append("updateStrategy:"); sb.append(updateStrategy); } + if (!(minReadySeconds == null)) { + sb.append("minReadySeconds:"); + sb.append(minReadySeconds); + sb.append(","); + } + if (!(revisionHistoryLimit == null)) { + sb.append("revisionHistoryLimit:"); + sb.append(revisionHistoryLimit); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + sb.append(","); + } + if (!(updateStrategy == null)) { + sb.append("updateStrategy:"); + sb.append(updateStrategy); + } sb.append("}"); return sb.toString(); } 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 1474f48365..dbbe7cd06d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetStatusBuilder extends V1DaemonSetStatusFluent implements VisitableBuilder{ public V1DaemonSetStatusBuilder() { this(new V1DaemonSetStatus()); 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 030c8417a7..7ef93f0f81 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 @@ -1,15 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetStatusFluent> extends BaseFluent{ +public class V1DaemonSetStatusFluent> extends BaseFluent{ public V1DaemonSetStatusFluent() { } @@ -37,19 +39,19 @@ public V1DaemonSetStatusFluent(V1DaemonSetStatus instance) { private Integer updatedNumberScheduled; protected void copyInstance(V1DaemonSetStatus instance) { - instance = (instance != null ? instance : new V1DaemonSetStatus()); + instance = instance != null ? instance : new V1DaemonSetStatus(); if (instance != null) { - this.withCollisionCount(instance.getCollisionCount()); - this.withConditions(instance.getConditions()); - this.withCurrentNumberScheduled(instance.getCurrentNumberScheduled()); - this.withDesiredNumberScheduled(instance.getDesiredNumberScheduled()); - this.withNumberAvailable(instance.getNumberAvailable()); - this.withNumberMisscheduled(instance.getNumberMisscheduled()); - this.withNumberReady(instance.getNumberReady()); - this.withNumberUnavailable(instance.getNumberUnavailable()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withUpdatedNumberScheduled(instance.getUpdatedNumberScheduled()); - } + this.withCollisionCount(instance.getCollisionCount()); + this.withConditions(instance.getConditions()); + this.withCurrentNumberScheduled(instance.getCurrentNumberScheduled()); + this.withDesiredNumberScheduled(instance.getDesiredNumberScheduled()); + this.withNumberAvailable(instance.getNumberAvailable()); + this.withNumberMisscheduled(instance.getNumberMisscheduled()); + this.withNumberReady(instance.getNumberReady()); + this.withNumberUnavailable(instance.getNumberUnavailable()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withUpdatedNumberScheduled(instance.getUpdatedNumberScheduled()); + } } public Integer getCollisionCount() { @@ -66,7 +68,9 @@ public boolean hasCollisionCount() { } public A addToConditions(int index,V1DaemonSetCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -75,11 +79,13 @@ public A addToConditions(int index,V1DaemonSetCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1DaemonSetCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -88,41 +94,71 @@ public A setToConditions(int index,V1DaemonSetCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1DaemonSetCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items) { - if (this.conditions == null) return (A)this; - for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1DaemonSetCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1DaemonSetConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DaemonSetConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -174,7 +210,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... conditions) { + public A withConditions(V1DaemonSetCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -188,7 +224,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -204,28 +240,39 @@ public ConditionsNested setNewConditionLike(int index,V1DaemonSetCondition it } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1DaemonSetConditionFluent implements VisitableBuilder{ public V1DaemonSetUpdateStrategyBuilder() { this(new V1DaemonSetUpdateStrategy()); 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 34629d81e4..e6e4db3bda 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetUpdateStrategyFluent> extends BaseFluent{ +public class V1DaemonSetUpdateStrategyFluent> extends BaseFluent{ public V1DaemonSetUpdateStrategyFluent() { } @@ -21,11 +24,11 @@ public V1DaemonSetUpdateStrategyFluent(V1DaemonSetUpdateStrategy instance) { private String type; protected void copyInstance(V1DaemonSetUpdateStrategy instance) { - instance = (instance != null ? instance : new V1DaemonSetUpdateStrategy()); + instance = instance != null ? instance : new V1DaemonSetUpdateStrategy(); if (instance != null) { - this.withRollingUpdate(instance.getRollingUpdate()); - this.withType(instance.getType()); - } + this.withRollingUpdate(instance.getRollingUpdate()); + this.withType(instance.getType()); + } } public V1RollingUpdateDaemonSet buildRollingUpdate() { @@ -57,15 +60,15 @@ public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDaemonSet } public RollingUpdateNested editRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(null)); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); } public RollingUpdateNested editOrNewRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(new V1RollingUpdateDaemonSetBuilder().build())); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(new V1RollingUpdateDaemonSetBuilder().build())); } public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(item)); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(item)); } public String getType() { @@ -82,24 +85,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DaemonSetUpdateStrategyFluent that = (V1DaemonSetUpdateStrategyFluent) o; - if (!java.util.Objects.equals(rollingUpdate, that.rollingUpdate)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(rollingUpdate, that.rollingUpdate))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); + return Objects.hash(rollingUpdate, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rollingUpdate != null) { sb.append("rollingUpdate:"); sb.append(rollingUpdate + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(rollingUpdate == null)) { + sb.append("rollingUpdate:"); + sb.append(rollingUpdate); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 8223cd5455..fc51475f26 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeleteOptionsBuilder extends V1DeleteOptionsFluent implements VisitableBuilder{ public V1DeleteOptionsBuilder() { this(new V1DeleteOptions()); 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 0c34bce462..43ce8d24dd 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 @@ -1,5 +1,7 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -7,6 +9,7 @@ import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1DeleteOptionsFluent> extends BaseFluent{ +public class V1DeleteOptionsFluent> extends BaseFluent{ public V1DeleteOptionsFluent() { } @@ -33,17 +36,17 @@ public V1DeleteOptionsFluent(V1DeleteOptions instance) { private String propagationPolicy; protected void copyInstance(V1DeleteOptions instance) { - instance = (instance != null ? instance : new V1DeleteOptions()); + instance = instance != null ? instance : new V1DeleteOptions(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDryRun(instance.getDryRun()); - this.withGracePeriodSeconds(instance.getGracePeriodSeconds()); - this.withIgnoreStoreReadErrorWithClusterBreakingPotential(instance.getIgnoreStoreReadErrorWithClusterBreakingPotential()); - this.withKind(instance.getKind()); - this.withOrphanDependents(instance.getOrphanDependents()); - this.withPreconditions(instance.getPreconditions()); - this.withPropagationPolicy(instance.getPropagationPolicy()); - } + this.withApiVersion(instance.getApiVersion()); + this.withDryRun(instance.getDryRun()); + this.withGracePeriodSeconds(instance.getGracePeriodSeconds()); + this.withIgnoreStoreReadErrorWithClusterBreakingPotential(instance.getIgnoreStoreReadErrorWithClusterBreakingPotential()); + this.withKind(instance.getKind()); + this.withOrphanDependents(instance.getOrphanDependents()); + this.withPreconditions(instance.getPreconditions()); + this.withPropagationPolicy(instance.getPropagationPolicy()); + } } public String getApiVersion() { @@ -60,34 +63,59 @@ public boolean hasApiVersion() { } public A addToDryRun(int index,String item) { - if (this.dryRun == null) {this.dryRun = new ArrayList();} + if (this.dryRun == null) { + this.dryRun = new ArrayList(); + } this.dryRun.add(index, item); - return (A)this; + return (A) this; } public A setToDryRun(int index,String item) { - if (this.dryRun == null) {this.dryRun = new ArrayList();} - this.dryRun.set(index, item); return (A)this; + if (this.dryRun == null) { + this.dryRun = new ArrayList(); + } + this.dryRun.set(index, item); + return (A) this; } - public A addToDryRun(java.lang.String... items) { - if (this.dryRun == null) {this.dryRun = new ArrayList();} - for (String item : items) {this.dryRun.add(item);} return (A)this; + public A addToDryRun(String... items) { + if (this.dryRun == null) { + this.dryRun = new ArrayList(); + } + for (String item : items) { + this.dryRun.add(item); + } + return (A) this; } public A addAllToDryRun(Collection items) { - if (this.dryRun == null) {this.dryRun = new ArrayList();} - for (String item : items) {this.dryRun.add(item);} return (A)this; + if (this.dryRun == null) { + this.dryRun = new ArrayList(); + } + for (String item : items) { + this.dryRun.add(item); + } + return (A) this; } - public A removeFromDryRun(java.lang.String... items) { - if (this.dryRun == null) return (A)this; - for (String item : items) { this.dryRun.remove(item);} return (A)this; + public A removeFromDryRun(String... items) { + if (this.dryRun == null) { + return (A) this; + } + for (String item : items) { + this.dryRun.remove(item); + } + return (A) this; } public A removeAllFromDryRun(Collection items) { - if (this.dryRun == null) return (A)this; - for (String item : items) { this.dryRun.remove(item);} return (A)this; + if (this.dryRun == null) { + return (A) this; + } + for (String item : items) { + this.dryRun.remove(item); + } + return (A) this; } public List getDryRun() { @@ -136,7 +164,7 @@ public A withDryRun(List dryRun) { return (A) this; } - public A withDryRun(java.lang.String... dryRun) { + public A withDryRun(String... dryRun) { if (this.dryRun != null) { this.dryRun.clear(); _visitables.remove("dryRun"); @@ -150,7 +178,7 @@ public A withDryRun(java.lang.String... dryRun) { } public boolean hasDryRun() { - return this.dryRun != null && !this.dryRun.isEmpty(); + return this.dryRun != null && !(this.dryRun.isEmpty()); } public Long getGracePeriodSeconds() { @@ -234,15 +262,15 @@ public PreconditionsNested withNewPreconditionsLike(V1Preconditions item) { } public PreconditionsNested editPreconditions() { - return withNewPreconditionsLike(java.util.Optional.ofNullable(buildPreconditions()).orElse(null)); + return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(null)); } public PreconditionsNested editOrNewPreconditions() { - return withNewPreconditionsLike(java.util.Optional.ofNullable(buildPreconditions()).orElse(new V1PreconditionsBuilder().build())); + return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(new V1PreconditionsBuilder().build())); } public PreconditionsNested editOrNewPreconditionsLike(V1Preconditions item) { - return withNewPreconditionsLike(java.util.Optional.ofNullable(buildPreconditions()).orElse(item)); + return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(item)); } public String getPropagationPolicy() { @@ -259,36 +287,89 @@ public boolean hasPropagationPolicy() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DeleteOptionsFluent that = (V1DeleteOptionsFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(dryRun, that.dryRun)) return false; - if (!java.util.Objects.equals(gracePeriodSeconds, that.gracePeriodSeconds)) return false; - if (!java.util.Objects.equals(ignoreStoreReadErrorWithClusterBreakingPotential, that.ignoreStoreReadErrorWithClusterBreakingPotential)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(orphanDependents, that.orphanDependents)) return false; - if (!java.util.Objects.equals(preconditions, that.preconditions)) return false; - if (!java.util.Objects.equals(propagationPolicy, that.propagationPolicy)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(dryRun, that.dryRun))) { + return false; + } + if (!(Objects.equals(gracePeriodSeconds, that.gracePeriodSeconds))) { + return false; + } + if (!(Objects.equals(ignoreStoreReadErrorWithClusterBreakingPotential, that.ignoreStoreReadErrorWithClusterBreakingPotential))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(orphanDependents, that.orphanDependents))) { + return false; + } + if (!(Objects.equals(preconditions, that.preconditions))) { + return false; + } + if (!(Objects.equals(propagationPolicy, that.propagationPolicy))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, kind, orphanDependents, preconditions, propagationPolicy, super.hashCode()); + return Objects.hash(apiVersion, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, kind, orphanDependents, preconditions, propagationPolicy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (dryRun != null && !dryRun.isEmpty()) { sb.append("dryRun:"); sb.append(dryRun + ","); } - if (gracePeriodSeconds != null) { sb.append("gracePeriodSeconds:"); sb.append(gracePeriodSeconds + ","); } - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { sb.append("ignoreStoreReadErrorWithClusterBreakingPotential:"); sb.append(ignoreStoreReadErrorWithClusterBreakingPotential + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (orphanDependents != null) { sb.append("orphanDependents:"); sb.append(orphanDependents + ","); } - if (preconditions != null) { sb.append("preconditions:"); sb.append(preconditions + ","); } - if (propagationPolicy != null) { sb.append("propagationPolicy:"); sb.append(propagationPolicy); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(dryRun == null) && !(dryRun.isEmpty())) { + sb.append("dryRun:"); + sb.append(dryRun); + sb.append(","); + } + if (!(gracePeriodSeconds == null)) { + sb.append("gracePeriodSeconds:"); + sb.append(gracePeriodSeconds); + sb.append(","); + } + if (!(ignoreStoreReadErrorWithClusterBreakingPotential == null)) { + sb.append("ignoreStoreReadErrorWithClusterBreakingPotential:"); + sb.append(ignoreStoreReadErrorWithClusterBreakingPotential); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(orphanDependents == null)) { + sb.append("orphanDependents:"); + sb.append(orphanDependents); + sb.append(","); + } + if (!(preconditions == null)) { + sb.append("preconditions:"); + sb.append(preconditions); + sb.append(","); + } + if (!(propagationPolicy == null)) { + sb.append("propagationPolicy:"); + sb.append(propagationPolicy); + } sb.append("}"); return sb.toString(); } 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 535605aa31..4e638f925e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentBuilder extends V1DeploymentFluent implements VisitableBuilder{ public V1DeploymentBuilder() { this(new V1Deployment()); 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 b5572b3ed6..2a84cd9a6e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentConditionBuilder extends V1DeploymentConditionFluent implements VisitableBuilder{ public V1DeploymentConditionBuilder() { this(new V1DeploymentCondition()); 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 11731803bf..c3953c3d4f 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentConditionFluent> extends BaseFluent{ +public class V1DeploymentConditionFluent> extends BaseFluent{ public V1DeploymentConditionFluent() { } @@ -25,15 +27,15 @@ public V1DeploymentConditionFluent(V1DeploymentCondition instance) { private String type; protected void copyInstance(V1DeploymentCondition instance) { - instance = (instance != null ? instance : new V1DeploymentCondition()); + instance = instance != null ? instance : new V1DeploymentCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withLastUpdateTime(instance.getLastUpdateTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withLastUpdateTime(instance.getLastUpdateTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -115,32 +117,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DeploymentConditionFluent that = (V1DeploymentConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(lastUpdateTime, that.lastUpdateTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(lastUpdateTime, that.lastUpdateTime))) { + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (lastUpdateTime != null) { sb.append("lastUpdateTime:"); sb.append(lastUpdateTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(lastUpdateTime == null)) { + sb.append("lastUpdateTime:"); + sb.append(lastUpdateTime); + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 cd0636c906..bd137b399c 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentFluent> extends BaseFluent{ +public class V1DeploymentFluent> extends BaseFluent{ public V1DeploymentFluent() { } @@ -24,14 +27,14 @@ public V1DeploymentFluent(V1Deployment instance) { private V1DeploymentStatusBuilder status; protected void copyInstance(V1Deployment instance) { - instance = (instance != null ? instance : new V1Deployment()); + instance = instance != null ? instance : new V1Deployment(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1DeploymentSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1DeploymentSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1DeploymentSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DeploymentSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1DeploymentSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1DeploymentStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1DeploymentStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1DeploymentStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1DeploymentStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1DeploymentStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DeploymentFluent that = (V1DeploymentFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 3b651459e1..d20cd554d7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentListBuilder extends V1DeploymentListFluent implements VisitableBuilder{ public V1DeploymentListBuilder() { this(new V1DeploymentList()); 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 e34e5030ac..da241c3057 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentListFluent> extends BaseFluent{ +public class V1DeploymentListFluent> extends BaseFluent{ public V1DeploymentListFluent() { } @@ -29,13 +32,13 @@ public V1DeploymentListFluent(V1DeploymentList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1DeploymentList instance) { - instance = (instance != null ? instance : new V1DeploymentList()); + instance = instance != null ? instance : new V1DeploymentList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Deployment item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1DeploymentBuilder builder = new V1DeploymentBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Deployment item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Deployment item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1DeploymentBuilder builder = new V1DeploymentBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Deployment item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Deployment... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Deployment... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Deployment... items) { - if (this.items == null) return (A)this; - for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Deployment... items) { + if (this.items == null) { + return (A) this; + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1DeploymentBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DeploymentBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Deployment... items) { + public A withItems(V1Deployment... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Deployment... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Deployment item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DeploymentListFluent that = (V1DeploymentListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1DeploymentFluent> implement int index; public N and() { - return (N) V1DeploymentListFluent.this.setToItems(index,builder.build()); + return (N) V1DeploymentListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 50fed738bd..8f9591fc74 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentSpecBuilder extends V1DeploymentSpecFluent implements VisitableBuilder{ public V1DeploymentSpecBuilder() { this(new V1DeploymentSpec()); 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 275838e508..4cccc59c7c 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 @@ -1,18 +1,21 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; -import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; import java.lang.Boolean; +import java.util.Optional; +import java.lang.Integer; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentSpecFluent> extends BaseFluent{ +public class V1DeploymentSpecFluent> extends BaseFluent{ public V1DeploymentSpecFluent() { } @@ -29,17 +32,17 @@ public V1DeploymentSpecFluent(V1DeploymentSpec instance) { private V1PodTemplateSpecBuilder template; protected void copyInstance(V1DeploymentSpec instance) { - instance = (instance != null ? instance : new V1DeploymentSpec()); + instance = instance != null ? instance : new V1DeploymentSpec(); if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withPaused(instance.getPaused()); - this.withProgressDeadlineSeconds(instance.getProgressDeadlineSeconds()); - this.withReplicas(instance.getReplicas()); - this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); - this.withSelector(instance.getSelector()); - this.withStrategy(instance.getStrategy()); - this.withTemplate(instance.getTemplate()); - } + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withPaused(instance.getPaused()); + this.withProgressDeadlineSeconds(instance.getProgressDeadlineSeconds()); + this.withReplicas(instance.getReplicas()); + this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); + this.withSelector(instance.getSelector()); + this.withStrategy(instance.getStrategy()); + this.withTemplate(instance.getTemplate()); + } } public Integer getMinReadySeconds() { @@ -136,15 +139,15 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public V1DeploymentStrategy buildStrategy() { @@ -176,15 +179,15 @@ public StrategyNested withNewStrategyLike(V1DeploymentStrategy item) { } public StrategyNested editStrategy() { - return withNewStrategyLike(java.util.Optional.ofNullable(buildStrategy()).orElse(null)); + return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(null)); } public StrategyNested editOrNewStrategy() { - return withNewStrategyLike(java.util.Optional.ofNullable(buildStrategy()).orElse(new V1DeploymentStrategyBuilder().build())); + return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(new V1DeploymentStrategyBuilder().build())); } public StrategyNested editOrNewStrategyLike(V1DeploymentStrategy item) { - return withNewStrategyLike(java.util.Optional.ofNullable(buildStrategy()).orElse(item)); + return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(item)); } public V1PodTemplateSpec buildTemplate() { @@ -216,48 +219,101 @@ public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { } public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DeploymentSpecFluent that = (V1DeploymentSpecFluent) o; - if (!java.util.Objects.equals(minReadySeconds, that.minReadySeconds)) return false; - if (!java.util.Objects.equals(paused, that.paused)) return false; - if (!java.util.Objects.equals(progressDeadlineSeconds, that.progressDeadlineSeconds)) return false; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; - if (!java.util.Objects.equals(revisionHistoryLimit, that.revisionHistoryLimit)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(strategy, that.strategy)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; + if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { + return false; + } + if (!(Objects.equals(paused, that.paused))) { + return false; + } + if (!(Objects.equals(progressDeadlineSeconds, that.progressDeadlineSeconds))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(revisionHistoryLimit, that.revisionHistoryLimit))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, selector, strategy, template, super.hashCode()); + return Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, selector, strategy, template); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } - if (paused != null) { sb.append("paused:"); sb.append(paused + ","); } - if (progressDeadlineSeconds != null) { sb.append("progressDeadlineSeconds:"); sb.append(progressDeadlineSeconds + ","); } - if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } - if (revisionHistoryLimit != null) { sb.append("revisionHistoryLimit:"); sb.append(revisionHistoryLimit + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (strategy != null) { sb.append("strategy:"); sb.append(strategy + ","); } - if (template != null) { sb.append("template:"); sb.append(template); } + if (!(minReadySeconds == null)) { + sb.append("minReadySeconds:"); + sb.append(minReadySeconds); + sb.append(","); + } + if (!(paused == null)) { + sb.append("paused:"); + sb.append(paused); + sb.append(","); + } + if (!(progressDeadlineSeconds == null)) { + sb.append("progressDeadlineSeconds:"); + sb.append(progressDeadlineSeconds); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(revisionHistoryLimit == null)) { + sb.append("revisionHistoryLimit:"); + sb.append(revisionHistoryLimit); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + } sb.append("}"); return sb.toString(); } 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 8a0a746a05..5bc656dc1b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentStatusBuilder extends V1DeploymentStatusFluent implements VisitableBuilder{ public V1DeploymentStatusBuilder() { this(new V1DeploymentStatus()); 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 9adadb9a59..3343a3573c 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 @@ -1,15 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentStatusFluent> extends BaseFluent{ +public class V1DeploymentStatusFluent> extends BaseFluent{ public V1DeploymentStatusFluent() { } @@ -36,18 +38,18 @@ public V1DeploymentStatusFluent(V1DeploymentStatus instance) { private Integer updatedReplicas; protected void copyInstance(V1DeploymentStatus instance) { - instance = (instance != null ? instance : new V1DeploymentStatus()); + instance = instance != null ? instance : new V1DeploymentStatus(); if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withCollisionCount(instance.getCollisionCount()); - this.withConditions(instance.getConditions()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - this.withTerminatingReplicas(instance.getTerminatingReplicas()); - this.withUnavailableReplicas(instance.getUnavailableReplicas()); - this.withUpdatedReplicas(instance.getUpdatedReplicas()); - } + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withCollisionCount(instance.getCollisionCount()); + this.withConditions(instance.getConditions()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); + this.withUnavailableReplicas(instance.getUnavailableReplicas()); + this.withUpdatedReplicas(instance.getUpdatedReplicas()); + } } public Integer getAvailableReplicas() { @@ -77,7 +79,9 @@ public boolean hasCollisionCount() { } public A addToConditions(int index,V1DeploymentCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -86,11 +90,13 @@ public A addToConditions(int index,V1DeploymentCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1DeploymentCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -99,41 +105,71 @@ public A setToConditions(int index,V1DeploymentCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1DeploymentCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items) { - if (this.conditions == null) return (A)this; - for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1DeploymentCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1DeploymentConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DeploymentConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -185,7 +221,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... conditions) { + public A withConditions(V1DeploymentCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -199,7 +235,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1DeploymentConditio } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -215,28 +251,39 @@ public ConditionsNested setNewConditionLike(int index,V1DeploymentCondition i } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1DeploymentConditionFluent implements VisitableBuilder{ public V1DeploymentStrategyBuilder() { this(new V1DeploymentStrategy()); 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 3efd0adf52..7d03192e4b 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentStrategyFluent> extends BaseFluent{ +public class V1DeploymentStrategyFluent> extends BaseFluent{ public V1DeploymentStrategyFluent() { } @@ -21,11 +24,11 @@ public V1DeploymentStrategyFluent(V1DeploymentStrategy instance) { private String type; protected void copyInstance(V1DeploymentStrategy instance) { - instance = (instance != null ? instance : new V1DeploymentStrategy()); + instance = instance != null ? instance : new V1DeploymentStrategy(); if (instance != null) { - this.withRollingUpdate(instance.getRollingUpdate()); - this.withType(instance.getType()); - } + this.withRollingUpdate(instance.getRollingUpdate()); + this.withType(instance.getType()); + } } public V1RollingUpdateDeployment buildRollingUpdate() { @@ -57,15 +60,15 @@ public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDeployment } public RollingUpdateNested editRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(null)); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); } public RollingUpdateNested editOrNewRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(new V1RollingUpdateDeploymentBuilder().build())); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(new V1RollingUpdateDeploymentBuilder().build())); } public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDeployment item) { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(item)); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(item)); } public String getType() { @@ -82,24 +85,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DeploymentStrategyFluent that = (V1DeploymentStrategyFluent) o; - if (!java.util.Objects.equals(rollingUpdate, that.rollingUpdate)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(rollingUpdate, that.rollingUpdate))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); + return Objects.hash(rollingUpdate, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rollingUpdate != null) { sb.append("rollingUpdate:"); sb.append(rollingUpdate + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(rollingUpdate == null)) { + sb.append("rollingUpdate:"); + sb.append(rollingUpdate); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..71f1d58258 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceAllocationConfigurationBuilder extends V1DeviceAllocationConfigurationFluent implements VisitableBuilder{ + public V1DeviceAllocationConfigurationBuilder() { + this(new V1DeviceAllocationConfiguration()); + } + + public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfigurationFluent fluent) { + this(fluent, new V1DeviceAllocationConfiguration()); + } + + public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfigurationFluent fluent,V1DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceAllocationConfigurationFluent fluent; + + public V1DeviceAllocationConfiguration build() { + V1DeviceAllocationConfiguration buildable = new V1DeviceAllocationConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + buildable.setSource(fluent.getSource()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java new file mode 100644 index 0000000000..6691b0b032 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java @@ -0,0 +1,276 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceAllocationConfigurationFluent> extends BaseFluent{ + public V1DeviceAllocationConfigurationFluent() { + } + + public V1DeviceAllocationConfigurationFluent(V1DeviceAllocationConfiguration instance) { + this.copyInstance(instance); + } + private V1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + + protected void copyInstance(V1DeviceAllocationConfiguration instance) { + instance = instance != null ? instance : new V1DeviceAllocationConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } + } + + public V1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; + } + + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public String getSource() { + return this.source; + } + + public A withSource(String source) { + this.source = source; + return (A) this; + } + + public boolean hasSource() { + return this.source != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceAllocationConfigurationFluent that = (V1DeviceAllocationConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(opaque, requests, source); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1OpaqueDeviceConfiguration item) { + this.builder = new V1OpaqueDeviceConfigurationBuilder(this, item); + } + V1OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1DeviceAllocationConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java new file mode 100644 index 0000000000..cf035a9344 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceAllocationResultBuilder extends V1DeviceAllocationResultFluent implements VisitableBuilder{ + public V1DeviceAllocationResultBuilder() { + this(new V1DeviceAllocationResult()); + } + + public V1DeviceAllocationResultBuilder(V1DeviceAllocationResultFluent fluent) { + this(fluent, new V1DeviceAllocationResult()); + } + + public V1DeviceAllocationResultBuilder(V1DeviceAllocationResultFluent fluent,V1DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceAllocationResultBuilder(V1DeviceAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceAllocationResultFluent fluent; + + public V1DeviceAllocationResult build() { + V1DeviceAllocationResult buildable = new V1DeviceAllocationResult(); + buildable.setConfig(fluent.buildConfig()); + buildable.setResults(fluent.buildResults()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java new file mode 100644 index 0000000000..4fe89db1e0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java @@ -0,0 +1,531 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceAllocationResultFluent> extends BaseFluent{ + public V1DeviceAllocationResultFluent() { + } + + public V1DeviceAllocationResultFluent(V1DeviceAllocationResult instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList results; + + protected void copyInstance(V1DeviceAllocationResult instance) { + instance = instance != null ? instance : new V1DeviceAllocationResult(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } + } + + public A addToConfig(int index,V1DeviceAllocationConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A) this; + } + + public A setToConfig(int index,V1DeviceAllocationConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A) this; + } + + public A addToConfig(V1DeviceAllocationConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A removeFromConfig(V1DeviceAllocationConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1DeviceAllocationConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1DeviceAllocationConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1DeviceAllocationConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { + for (V1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1DeviceAllocationConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (index <= config.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public A addToResults(int index,V1DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); + } + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); + } + return (A) this; + } + + public A setToResults(int index,V1DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); + } + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } + return (A) this; + } + + public A addToResults(V1DeviceRequestAllocationResult... items) { + if (this.results == null) { + this.results = new ArrayList(); + } + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); + } + return (A) this; + } + + public A addAllToResults(Collection items) { + if (this.results == null) { + this.results = new ArrayList(); + } + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); + } + return (A) this; + } + + public A removeFromResults(V1DeviceRequestAllocationResult... items) { + if (this.results == null) { + return (A) this; + } + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").remove(builder); + this.results.remove(builder); + } + return (A) this; + } + + public A removeAllFromResults(Collection items) { + if (this.results == null) { + return (A) this; + } + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").remove(builder); + this.results.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResults(Predicate predicate) { + if (results == null) { + return (A) this; + } + Iterator each = results.iterator(); + List visitables = _visitables.get("results"); + while (each.hasNext()) { + V1DeviceRequestAllocationResultBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildResults() { + return this.results != null ? build(results) : null; + } + + public V1DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); + } + + public V1DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + + public V1DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + + public V1DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withResults(List results) { + if (this.results != null) { + this._visitables.get("results").clear(); + } + if (results != null) { + this.results = new ArrayList(); + for (V1DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } else { + this.results = null; + } + return (A) this; + } + + public A withResults(V1DeviceRequestAllocationResult... results) { + if (this.results != null) { + this.results.clear(); + _visitables.remove("results"); + } + if (results != null) { + for (V1DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } + return (A) this; + } + + public boolean hasResults() { + return this.results != null && !(this.results.isEmpty()); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + + public ResultsNested setNewResultLike(int index,V1DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); + } + + public ResultsNested editResult(int index) { + if (index <= results.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public ResultsNested editFirstResult() { + if (results.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); + } + return this.setNewResultLike(0, this.buildResult(0)); + } + + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public ResultsNested editMatchingResult(Predicate predicate) { + int index = -1; + for (int i = 0;i < results.size();i++) { + if (predicate.test(results.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); + } + return this.setNewResultLike(index, this.buildResult(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; + } + V1DeviceAllocationResultFluent that = (V1DeviceAllocationResultFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(results, that.results))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(config, results); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(results == null) && !(results.isEmpty())) { + sb.append("results:"); + sb.append(results); + } + sb.append("}"); + return sb.toString(); + } + public class ConfigNested extends V1DeviceAllocationConfigurationFluent> implements Nested{ + ConfigNested(int index,V1DeviceAllocationConfiguration item) { + this.index = index; + this.builder = new V1DeviceAllocationConfigurationBuilder(this, item); + } + V1DeviceAllocationConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1DeviceAllocationResultFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ResultsNested extends V1DeviceRequestAllocationResultFluent> implements Nested{ + ResultsNested(int index,V1DeviceRequestAllocationResult item) { + this.index = index; + this.builder = new V1DeviceRequestAllocationResultBuilder(this, item); + } + V1DeviceRequestAllocationResultBuilder builder; + int index; + + public N and() { + return (N) V1DeviceAllocationResultFluent.this.setToResults(index, builder.build()); + } + + public N endResult() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java new file mode 100644 index 0000000000..308e61c005 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceAttributeBuilder extends V1DeviceAttributeFluent implements VisitableBuilder{ + public V1DeviceAttributeBuilder() { + this(new V1DeviceAttribute()); + } + + public V1DeviceAttributeBuilder(V1DeviceAttributeFluent fluent) { + this(fluent, new V1DeviceAttribute()); + } + + public V1DeviceAttributeBuilder(V1DeviceAttributeFluent fluent,V1DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceAttributeBuilder(V1DeviceAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceAttributeFluent fluent; + + public V1DeviceAttribute build() { + V1DeviceAttribute buildable = new V1DeviceAttribute(); + buildable.setBool(fluent.getBool()); + buildable.setInt(fluent.getInt()); + buildable.setString(fluent.getString()); + buildable.setVersion(fluent.getVersion()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java new file mode 100644 index 0000000000..f8742c2db8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java @@ -0,0 +1,151 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceAttributeFluent> extends BaseFluent{ + public V1DeviceAttributeFluent() { + } + + public V1DeviceAttributeFluent(V1DeviceAttribute instance) { + this.copyInstance(instance); + } + private Boolean bool; + private Long _int; + private String string; + private String version; + + protected void copyInstance(V1DeviceAttribute instance) { + instance = instance != null ? instance : new V1DeviceAttribute(); + if (instance != null) { + this.withBool(instance.getBool()); + this.withInt(instance.getInt()); + this.withString(instance.getString()); + this.withVersion(instance.getVersion()); + } + } + + public Boolean getBool() { + return this.bool; + } + + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public boolean hasBool() { + return this.bool != null; + } + + public Long getInt() { + return this._int; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public boolean hasInt() { + return this._int != null; + } + + public String getString() { + return this.string; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public boolean hasString() { + return this.string != null; + } + + public String getVersion() { + return this.version; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + + public boolean hasVersion() { + return this.version != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceAttributeFluent that = (V1DeviceAttributeFluent) o; + if (!(Objects.equals(bool, that.bool))) { + return false; + } + if (!(Objects.equals(_int, that._int))) { + return false; + } + if (!(Objects.equals(string, that.string))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(bool, _int, string, version); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(bool == null)) { + sb.append("bool:"); + sb.append(bool); + sb.append(","); + } + if (!(_int == null)) { + sb.append("_int:"); + sb.append(_int); + sb.append(","); + } + if (!(string == null)) { + sb.append("string:"); + sb.append(string); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } + sb.append("}"); + return sb.toString(); + } + + public A withBool() { + return withBool(true); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java new file mode 100644 index 0000000000..229f34bdbc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java @@ -0,0 +1,43 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceBuilder extends V1DeviceFluent implements VisitableBuilder{ + public V1DeviceBuilder() { + this(new V1Device()); + } + + public V1DeviceBuilder(V1DeviceFluent fluent) { + this(fluent, new V1Device()); + } + + public V1DeviceBuilder(V1DeviceFluent fluent,V1Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceBuilder(V1Device instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceFluent fluent; + + public V1Device build() { + V1Device buildable = new V1Device(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAllowMultipleAllocations(fluent.getAllowMultipleAllocations()); + buildable.setAttributes(fluent.getAttributes()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setBindsToNode(fluent.getBindsToNode()); + buildable.setCapacity(fluent.getCapacity()); + buildable.setConsumesCounters(fluent.buildConsumesCounters()); + buildable.setName(fluent.getName()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setTaints(fluent.buildTaints()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java new file mode 100644 index 0000000000..ea92be48f1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceCapacityBuilder extends V1DeviceCapacityFluent implements VisitableBuilder{ + public V1DeviceCapacityBuilder() { + this(new V1DeviceCapacity()); + } + + public V1DeviceCapacityBuilder(V1DeviceCapacityFluent fluent) { + this(fluent, new V1DeviceCapacity()); + } + + public V1DeviceCapacityBuilder(V1DeviceCapacityFluent fluent,V1DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceCapacityBuilder(V1DeviceCapacity instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceCapacityFluent fluent; + + public V1DeviceCapacity build() { + V1DeviceCapacity buildable = new V1DeviceCapacity(); + buildable.setRequestPolicy(fluent.buildRequestPolicy()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..3a2c7db360 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java @@ -0,0 +1,148 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceCapacityFluent> extends BaseFluent{ + public V1DeviceCapacityFluent() { + } + + public V1DeviceCapacityFluent(V1DeviceCapacity instance) { + this.copyInstance(instance); + } + private V1CapacityRequestPolicyBuilder requestPolicy; + private Quantity value; + + protected void copyInstance(V1DeviceCapacity instance) { + instance = instance != null ? instance : new V1DeviceCapacity(); + if (instance != null) { + this.withRequestPolicy(instance.getRequestPolicy()); + this.withValue(instance.getValue()); + } + } + + public V1CapacityRequestPolicy buildRequestPolicy() { + return this.requestPolicy != null ? this.requestPolicy.build() : null; + } + + public A withRequestPolicy(V1CapacityRequestPolicy requestPolicy) { + this._visitables.remove("requestPolicy"); + if (requestPolicy != null) { + this.requestPolicy = new V1CapacityRequestPolicyBuilder(requestPolicy); + this._visitables.get("requestPolicy").add(this.requestPolicy); + } else { + this.requestPolicy = null; + this._visitables.get("requestPolicy").remove(this.requestPolicy); + } + return (A) this; + } + + public boolean hasRequestPolicy() { + return this.requestPolicy != null; + } + + public RequestPolicyNested withNewRequestPolicy() { + return new RequestPolicyNested(null); + } + + public RequestPolicyNested withNewRequestPolicyLike(V1CapacityRequestPolicy item) { + return new RequestPolicyNested(item); + } + + public RequestPolicyNested editRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); + } + + public RequestPolicyNested editOrNewRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(new V1CapacityRequestPolicyBuilder().build())); + } + + public RequestPolicyNested editOrNewRequestPolicyLike(V1CapacityRequestPolicy item) { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(item)); + } + + public Quantity getValue() { + return this.value; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + 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; + } + V1DeviceCapacityFluent that = (V1DeviceCapacityFluent) o; + if (!(Objects.equals(requestPolicy, that.requestPolicy))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(requestPolicy, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requestPolicy == null)) { + sb.append("requestPolicy:"); + sb.append(requestPolicy); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + public class RequestPolicyNested extends V1CapacityRequestPolicyFluent> implements Nested{ + RequestPolicyNested(V1CapacityRequestPolicy item) { + this.builder = new V1CapacityRequestPolicyBuilder(this, item); + } + V1CapacityRequestPolicyBuilder builder; + + public N and() { + return (N) V1DeviceCapacityFluent.this.withRequestPolicy(builder.build()); + } + + public N endRequestPolicy() { + return and(); + } + + + } + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..5f7cfdbb23 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClaimBuilder extends V1DeviceClaimFluent implements VisitableBuilder{ + public V1DeviceClaimBuilder() { + this(new V1DeviceClaim()); + } + + public V1DeviceClaimBuilder(V1DeviceClaimFluent fluent) { + this(fluent, new V1DeviceClaim()); + } + + public V1DeviceClaimBuilder(V1DeviceClaimFluent fluent,V1DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClaimBuilder(V1DeviceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceClaimFluent fluent; + + public V1DeviceClaim build() { + V1DeviceClaim buildable = new V1DeviceClaim(); + buildable.setConfig(fluent.buildConfig()); + buildable.setConstraints(fluent.buildConstraints()); + buildable.setRequests(fluent.buildRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java new file mode 100644 index 0000000000..00cdab0bd3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClaimConfigurationBuilder extends V1DeviceClaimConfigurationFluent implements VisitableBuilder{ + public V1DeviceClaimConfigurationBuilder() { + this(new V1DeviceClaimConfiguration()); + } + + public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfigurationFluent fluent) { + this(fluent, new V1DeviceClaimConfiguration()); + } + + public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfigurationFluent fluent,V1DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceClaimConfigurationFluent fluent; + + public V1DeviceClaimConfiguration build() { + V1DeviceClaimConfiguration buildable = new V1DeviceClaimConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java new file mode 100644 index 0000000000..403c0f0b4f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java @@ -0,0 +1,253 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClaimConfigurationFluent> extends BaseFluent{ + public V1DeviceClaimConfigurationFluent() { + } + + public V1DeviceClaimConfigurationFluent(V1DeviceClaimConfiguration instance) { + this.copyInstance(instance); + } + private V1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + + protected void copyInstance(V1DeviceClaimConfiguration instance) { + instance = instance != null ? instance : new V1DeviceClaimConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } + } + + public V1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; + } + + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClaimConfigurationFluent that = (V1DeviceClaimConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(opaque, requests); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1OpaqueDeviceConfiguration item) { + this.builder = new V1OpaqueDeviceConfigurationBuilder(this, item); + } + V1OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1DeviceClaimConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java new file mode 100644 index 0000000000..dc2472670d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java @@ -0,0 +1,767 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClaimFluent> extends BaseFluent{ + public V1DeviceClaimFluent() { + } + + public V1DeviceClaimFluent(V1DeviceClaim instance) { + this.copyInstance(instance); + } + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + + protected void copyInstance(V1DeviceClaim instance) { + instance = instance != null ? instance : new V1DeviceClaim(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } + } + + public A addToConfig(int index,V1DeviceClaimConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A) this; + } + + public A setToConfig(int index,V1DeviceClaimConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A) this; + } + + public A addToConfig(V1DeviceClaimConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A removeFromConfig(V1DeviceClaimConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1DeviceClaimConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1DeviceClaimConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1DeviceClaimConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1DeviceClaimConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { + for (V1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1DeviceClaimConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1DeviceClaimConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (index <= config.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public A addToConstraints(int index,V1DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); + } + return (A) this; + } + + public A setToConstraints(int index,V1DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.set(index, builder); + } + return (A) this; + } + + public A addToConstraints(V1DeviceConstraint... items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; + } + + public A addAllToConstraints(Collection items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; + } + + public A removeFromConstraints(V1DeviceConstraint... items) { + if (this.constraints == null) { + return (A) this; + } + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); + } + return (A) this; + } + + public A removeAllFromConstraints(Collection items) { + if (this.constraints == null) { + return (A) this; + } + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) { + return (A) this; + } + Iterator each = constraints.iterator(); + List visitables = _visitables.get("constraints"); + while (each.hasNext()) { + V1DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + + public V1DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public V1DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConstraints(List constraints) { + if (this.constraints != null) { + this._visitables.get("constraints").clear(); + } + if (constraints != null) { + this.constraints = new ArrayList(); + for (V1DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } else { + this.constraints = null; + } + return (A) this; + } + + public A withConstraints(V1DeviceConstraint... constraints) { + if (this.constraints != null) { + this.constraints.clear(); + _visitables.remove("constraints"); + } + if (constraints != null) { + for (V1DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } + return (A) this; + } + + public boolean hasConstraints() { + return this.constraints != null && !(this.constraints.isEmpty()); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public ConstraintsNested setNewConstraintLike(int index,V1DeviceConstraint item) { + return new ConstraintsNested(index, item); + } + + public ConstraintsNested editConstraint(int index) { + if (index <= constraints.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(0, this.buildConstraint(0)); + } + + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public ConstraintsNested editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i = 0;i < constraints.size();i++) { + if (predicate.test(constraints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public A addToRequests(int index,V1DeviceRequest item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); + } + return (A) this; + } + + public A setToRequests(int index,V1DeviceRequest item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.set(index, builder); + } + return (A) this; + } + + public A addToRequests(V1DeviceRequest... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; + } + + public A removeFromRequests(V1DeviceRequest... items) { + if (this.requests == null) { + return (A) this; + } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) { + return (A) this; + } + Iterator each = requests.iterator(); + List visitables = _visitables.get("requests"); + while (each.hasNext()) { + V1DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildRequests() { + return this.requests != null ? build(requests) : null; + } + + public V1DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); + } + + public V1DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + + public V1DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + + public V1DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (this.requests != null) { + this._visitables.get("requests").clear(); + } + if (requests != null) { + this.requests = new ArrayList(); + for (V1DeviceRequest item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(V1DeviceRequest... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (V1DeviceRequest item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1DeviceRequest item) { + return new RequestsNested(-1, item); + } + + public RequestsNested setNewRequestLike(int index,V1DeviceRequest item) { + return new RequestsNested(index, item); + } + + public RequestsNested editRequest(int index) { + if (index <= requests.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(0, this.buildRequest(0)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i = 0;i < requests.size();i++) { + if (predicate.test(requests.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(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; + } + V1DeviceClaimFluent that = (V1DeviceClaimFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(constraints, that.constraints))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(config, constraints, requests); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(constraints == null) && !(constraints.isEmpty())) { + sb.append("constraints:"); + sb.append(constraints); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + public class ConfigNested extends V1DeviceClaimConfigurationFluent> implements Nested{ + ConfigNested(int index,V1DeviceClaimConfiguration item) { + this.index = index; + this.builder = new V1DeviceClaimConfigurationBuilder(this, item); + } + V1DeviceClaimConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1DeviceClaimFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class ConstraintsNested extends V1DeviceConstraintFluent> implements Nested{ + ConstraintsNested(int index,V1DeviceConstraint item) { + this.index = index; + this.builder = new V1DeviceConstraintBuilder(this, item); + } + V1DeviceConstraintBuilder builder; + int index; + + public N and() { + return (N) V1DeviceClaimFluent.this.setToConstraints(index, builder.build()); + } + + public N endConstraint() { + return and(); + } + + + } + public class RequestsNested extends V1DeviceRequestFluent> implements Nested{ + RequestsNested(int index,V1DeviceRequest item) { + this.index = index; + this.builder = new V1DeviceRequestBuilder(this, item); + } + V1DeviceRequestBuilder builder; + int index; + + public N and() { + return (N) V1DeviceClaimFluent.this.setToRequests(index, builder.build()); + } + + public N endRequest() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java new file mode 100644 index 0000000000..d1a6e7689f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClassBuilder extends V1DeviceClassFluent implements VisitableBuilder{ + public V1DeviceClassBuilder() { + this(new V1DeviceClass()); + } + + public V1DeviceClassBuilder(V1DeviceClassFluent fluent) { + this(fluent, new V1DeviceClass()); + } + + public V1DeviceClassBuilder(V1DeviceClassFluent fluent,V1DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClassBuilder(V1DeviceClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceClassFluent fluent; + + public V1DeviceClass build() { + V1DeviceClass buildable = new V1DeviceClass(); + 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/V1DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java new file mode 100644 index 0000000000..63a9cb9929 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClassConfigurationBuilder extends V1DeviceClassConfigurationFluent implements VisitableBuilder{ + public V1DeviceClassConfigurationBuilder() { + this(new V1DeviceClassConfiguration()); + } + + public V1DeviceClassConfigurationBuilder(V1DeviceClassConfigurationFluent fluent) { + this(fluent, new V1DeviceClassConfiguration()); + } + + public V1DeviceClassConfigurationBuilder(V1DeviceClassConfigurationFluent fluent,V1DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClassConfigurationBuilder(V1DeviceClassConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceClassConfigurationFluent fluent; + + public V1DeviceClassConfiguration build() { + V1DeviceClassConfiguration buildable = new V1DeviceClassConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..6454b70682 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java @@ -0,0 +1,120 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClassConfigurationFluent> extends BaseFluent{ + public V1DeviceClassConfigurationFluent() { + } + + public V1DeviceClassConfigurationFluent(V1DeviceClassConfiguration instance) { + this.copyInstance(instance); + } + private V1OpaqueDeviceConfigurationBuilder opaque; + + protected void copyInstance(V1DeviceClassConfiguration instance) { + instance = instance != null ? instance : new V1DeviceClassConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + } + } + + public V1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + public A withOpaque(V1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).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; + } + V1DeviceClassConfigurationFluent that = (V1DeviceClassConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(opaque); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + } + sb.append("}"); + return sb.toString(); + } + public class OpaqueNested extends V1OpaqueDeviceConfigurationFluent> implements Nested{ + OpaqueNested(V1OpaqueDeviceConfiguration item) { + this.builder = new V1OpaqueDeviceConfigurationBuilder(this, item); + } + V1OpaqueDeviceConfigurationBuilder builder; + + public N and() { + return (N) V1DeviceClassConfigurationFluent.this.withOpaque(builder.build()); + } + + public N endOpaque() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java similarity index 54% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java index 47898d23ce..28ca48e148 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java @@ -1,35 +1,38 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3DeviceClassFluent> extends BaseFluent{ - public V1alpha3DeviceClassFluent() { +public class V1DeviceClassFluent> extends BaseFluent{ + public V1DeviceClassFluent() { } - public V1alpha3DeviceClassFluent(V1alpha3DeviceClass instance) { + public V1DeviceClassFluent(V1DeviceClass instance) { this.copyInstance(instance); } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1alpha3DeviceClassSpecBuilder spec; + private V1DeviceClassSpecBuilder spec; - protected void copyInstance(V1alpha3DeviceClass instance) { - instance = (instance != null ? instance : new V1alpha3DeviceClass()); + protected void copyInstance(V1DeviceClass instance) { + instance = instance != null ? instance : new V1DeviceClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,25 +90,25 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha3DeviceClassSpec buildSpec() { + public V1DeviceClassSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(V1alpha3DeviceClassSpec spec) { + public A withSpec(V1DeviceClassSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1alpha3DeviceClassSpecBuilder(spec); + this.spec = new V1DeviceClassSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { this.spec = null; @@ -122,45 +125,74 @@ public SpecNested withNewSpec() { return new SpecNested(null); } - public SpecNested withNewSpecLike(V1alpha3DeviceClassSpec item) { + public SpecNested withNewSpecLike(V1DeviceClassSpec item) { return new SpecNested(item); } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3DeviceClassSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DeviceClassSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1alpha3DeviceClassSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + public SpecNested editOrNewSpecLike(V1DeviceClassSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceClassFluent that = (V1alpha3DeviceClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClassFluent that = (V1DeviceClassFluent) 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } @@ -171,7 +203,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp V1ObjectMetaBuilder builder; public N and() { - return (N) V1alpha3DeviceClassFluent.this.withMetadata(builder.build()); + return (N) V1DeviceClassFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -180,14 +212,14 @@ public N endMetadata() { } - public class SpecNested extends V1alpha3DeviceClassSpecFluent> implements Nested{ - SpecNested(V1alpha3DeviceClassSpec item) { - this.builder = new V1alpha3DeviceClassSpecBuilder(this, item); + public class SpecNested extends V1DeviceClassSpecFluent> implements Nested{ + SpecNested(V1DeviceClassSpec item) { + this.builder = new V1DeviceClassSpecBuilder(this, item); } - V1alpha3DeviceClassSpecBuilder builder; + V1DeviceClassSpecBuilder builder; public N and() { - return (N) V1alpha3DeviceClassFluent.this.withSpec(builder.build()); + return (N) V1DeviceClassFluent.this.withSpec(builder.build()); } public N endSpec() { 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 new file mode 100644 index 0000000000..0e3dcc7545 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClassListBuilder extends V1DeviceClassListFluent implements VisitableBuilder{ + public V1DeviceClassListBuilder() { + this(new V1DeviceClassList()); + } + + public V1DeviceClassListBuilder(V1DeviceClassListFluent fluent) { + this(fluent, new V1DeviceClassList()); + } + + public V1DeviceClassListBuilder(V1DeviceClassListFluent fluent,V1DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClassListBuilder(V1DeviceClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceClassListFluent fluent; + + public V1DeviceClassList build() { + V1DeviceClassList buildable = new V1DeviceClassList(); + 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/V1DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java new file mode 100644 index 0000000000..5cb7a6da6d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java @@ -0,0 +1,408 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClassListFluent> extends BaseFluent{ + public V1DeviceClassListFluent() { + } + + public V1DeviceClassListFluent(V1DeviceClassList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1DeviceClassList instance) { + instance = instance != null ? instance : new V1DeviceClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1DeviceClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A) this; + } + + public A setToItems(int index,V1DeviceClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public A addToItems(V1DeviceClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A removeFromItems(V1DeviceClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(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 = _visitables.get("items"); + while (each.hasNext()) { + V1DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1DeviceClass buildItem(int index) { + return this.items.get(index).build(); + } + + public V1DeviceClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1DeviceClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1DeviceClass buildMatchingItem(Predicate predicate) { + for (V1DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1DeviceClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1DeviceClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1DeviceClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1DeviceClass item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1DeviceClass item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + 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 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 String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + 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; + } + V1DeviceClassListFluent that = (V1DeviceClassListFluent) 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 int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 class ItemsNested extends V1DeviceClassFluent> implements Nested{ + ItemsNested(int index,V1DeviceClass item) { + this.index = index; + this.builder = new V1DeviceClassBuilder(this, item); + } + V1DeviceClassBuilder builder; + int index; + + public N and() { + return (N) V1DeviceClassListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1DeviceClassListFluent.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/V1DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java new file mode 100644 index 0000000000..e6c4c8297f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClassSpecBuilder extends V1DeviceClassSpecFluent implements VisitableBuilder{ + public V1DeviceClassSpecBuilder() { + this(new V1DeviceClassSpec()); + } + + public V1DeviceClassSpecBuilder(V1DeviceClassSpecFluent fluent) { + this(fluent, new V1DeviceClassSpec()); + } + + public V1DeviceClassSpecBuilder(V1DeviceClassSpecFluent fluent,V1DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClassSpecBuilder(V1DeviceClassSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceClassSpecFluent fluent; + + public V1DeviceClassSpec build() { + V1DeviceClassSpec buildable = new V1DeviceClassSpec(); + buildable.setConfig(fluent.buildConfig()); + buildable.setExtendedResourceName(fluent.getExtendedResourceName()); + buildable.setSelectors(fluent.buildSelectors()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..d2879758dd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java @@ -0,0 +1,554 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClassSpecFluent> extends BaseFluent{ + public V1DeviceClassSpecFluent() { + } + + public V1DeviceClassSpecFluent(V1DeviceClassSpec instance) { + this.copyInstance(instance); + } + private ArrayList config; + private String extendedResourceName; + private ArrayList selectors; + + protected void copyInstance(V1DeviceClassSpec instance) { + instance = instance != null ? instance : new V1DeviceClassSpec(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withExtendedResourceName(instance.getExtendedResourceName()); + this.withSelectors(instance.getSelectors()); + } + } + + public A addToConfig(int index,V1DeviceClassConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); + } + return (A) this; + } + + public A setToConfig(int index,V1DeviceClassConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A) this; + } + + public A addToConfig(V1DeviceClassConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A addAllToConfig(Collection items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A removeFromConfig(V1DeviceClassConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1DeviceClassConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1DeviceClassConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1DeviceClassConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { + for (V1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1DeviceClassConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConfigNested setNewConfigLike(int index,V1DeviceClassConfiguration item) { + return new ConfigNested(index, item); + } + + public ConfigNested editConfig(int index) { + if (index <= config.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public String getExtendedResourceName() { + return this.extendedResourceName; + } + + public A withExtendedResourceName(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + return (A) this; + } + + public boolean hasExtendedResourceName() { + return this.extendedResourceName != null; + } + + public A addToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A) this; + } + + public A setToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A) this; + } + + public A addToSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(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; + } + V1DeviceClassSpecFluent that = (V1DeviceClassSpecFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(config, extendedResourceName, selectors); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(extendedResourceName == null)) { + sb.append("extendedResourceName:"); + sb.append(extendedResourceName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + } + sb.append("}"); + return sb.toString(); + } + public class ConfigNested extends V1DeviceClassConfigurationFluent> implements Nested{ + ConfigNested(int index,V1DeviceClassConfiguration item) { + this.index = index; + this.builder = new V1DeviceClassConfigurationBuilder(this, item); + } + V1DeviceClassConfigurationBuilder builder; + int index; + + public N and() { + return (N) V1DeviceClassSpecFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + + } + public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1DeviceSelector item) { + this.index = index; + this.builder = new V1DeviceSelectorBuilder(this, item); + } + V1DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1DeviceClassSpecFluent.this.setToSelectors(index, builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java new file mode 100644 index 0000000000..93a9ad57b5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceConstraintBuilder extends V1DeviceConstraintFluent implements VisitableBuilder{ + public V1DeviceConstraintBuilder() { + this(new V1DeviceConstraint()); + } + + public V1DeviceConstraintBuilder(V1DeviceConstraintFluent fluent) { + this(fluent, new V1DeviceConstraint()); + } + + public V1DeviceConstraintBuilder(V1DeviceConstraintFluent fluent,V1DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceConstraintBuilder(V1DeviceConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceConstraintFluent fluent; + + public V1DeviceConstraint build() { + V1DeviceConstraint buildable = new V1DeviceConstraint(); + buildable.setDistinctAttribute(fluent.getDistinctAttribute()); + buildable.setMatchAttribute(fluent.getMatchAttribute()); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java new file mode 100644 index 0000000000..39482ff115 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java @@ -0,0 +1,232 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; +import java.lang.String; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceConstraintFluent> extends BaseFluent{ + public V1DeviceConstraintFluent() { + } + + public V1DeviceConstraintFluent(V1DeviceConstraint instance) { + this.copyInstance(instance); + } + private String distinctAttribute; + private String matchAttribute; + private List requests; + + protected void copyInstance(V1DeviceConstraint instance) { + instance = instance != null ? instance : new V1DeviceConstraint(); + if (instance != null) { + this.withDistinctAttribute(instance.getDistinctAttribute()); + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public String getDistinctAttribute() { + return this.distinctAttribute; + } + + public A withDistinctAttribute(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return (A) this; + } + + public boolean hasDistinctAttribute() { + return this.distinctAttribute != null; + } + + public String getMatchAttribute() { + return this.matchAttribute; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; + } + + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public List getRequests() { + return this.requests; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceConstraintFluent that = (V1DeviceConstraintFluent) o; + if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { + return false; + } + if (!(Objects.equals(matchAttribute, that.matchAttribute))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(distinctAttribute, matchAttribute, requests); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(distinctAttribute == null)) { + sb.append("distinctAttribute:"); + sb.append(distinctAttribute); + sb.append(","); + } + if (!(matchAttribute == null)) { + sb.append("matchAttribute:"); + sb.append(matchAttribute); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java new file mode 100644 index 0000000000..96e3866229 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceCounterConsumptionBuilder extends V1DeviceCounterConsumptionFluent implements VisitableBuilder{ + public V1DeviceCounterConsumptionBuilder() { + this(new V1DeviceCounterConsumption()); + } + + public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1DeviceCounterConsumption()); + } + + public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumptionFluent fluent,V1DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceCounterConsumptionFluent fluent; + + public V1DeviceCounterConsumption build() { + V1DeviceCounterConsumption buildable = new V1DeviceCounterConsumption(); + buildable.setCounterSet(fluent.getCounterSet()); + buildable.setCounters(fluent.getCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java new file mode 100644 index 0000000000..fe6ecc29af --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java @@ -0,0 +1,149 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceCounterConsumptionFluent> extends BaseFluent{ + public V1DeviceCounterConsumptionFluent() { + } + + public V1DeviceCounterConsumptionFluent(V1DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + private String counterSet; + private Map counters; + + protected void copyInstance(V1DeviceCounterConsumption instance) { + instance = instance != null ? instance : new V1DeviceCounterConsumption(); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public String getCounterSet() { + return this.counterSet; + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public A addToCounters(String key,V1Counter value) { + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.counters.put(key, value); + } + return (A) this; + } + + public A addToCounters(Map map) { + if (this.counters == null && map != null) { + this.counters = new LinkedHashMap(); + } + if (map != null) { + this.counters.putAll(map); + } + return (A) this; + } + + public A removeFromCounters(String key) { + if (this.counters == null) { + return (A) this; + } + if (key != null && this.counters != null) { + this.counters.remove(key); + } + return (A) this; + } + + public A removeFromCounters(Map map) { + if (this.counters == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.counters != null) { + this.counters.remove(key); + } + } + } + return (A) this; + } + + public Map getCounters() { + return this.counters; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceCounterConsumptionFluent that = (V1DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(counterSet, that.counterSet))) { + return false; + } + if (!(Objects.equals(counters, that.counters))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(counterSet, counters); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(counterSet == null)) { + sb.append("counterSet:"); + sb.append(counterSet); + sb.append(","); + } + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java new file mode 100644 index 0000000000..4d8ce904b4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java @@ -0,0 +1,1128 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.Map; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceFluent> extends BaseFluent{ + public V1DeviceFluent() { + } + + public V1DeviceFluent(V1Device instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private Boolean allowMultipleAllocations; + private Map attributes; + private List bindingConditions; + private List bindingFailureConditions; + private Boolean bindsToNode; + private Map capacity; + private ArrayList consumesCounters; + private String name; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; + + protected void copyInstance(V1Device instance) { + instance = instance != null ? instance : new V1Device(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); + this.withAttributes(instance.getAttributes()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withBindsToNode(instance.getBindsToNode()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withName(instance.getName()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public Boolean getAllowMultipleAllocations() { + return this.allowMultipleAllocations; + } + + public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return (A) this; + } + + public boolean hasAllowMultipleAllocations() { + return this.allowMultipleAllocations != null; + } + + public A addToAttributes(String key,V1DeviceAttribute value) { + if (this.attributes == null && key != null && value != null) { + this.attributes = new LinkedHashMap(); + } + if (key != null && value != null) { + this.attributes.put(key, value); + } + return (A) this; + } + + public A addToAttributes(Map map) { + if (this.attributes == null && map != null) { + this.attributes = new LinkedHashMap(); + } + if (map != null) { + this.attributes.putAll(map); + } + return (A) this; + } + + public A removeFromAttributes(String key) { + if (this.attributes == null) { + return (A) this; + } + if (key != null && this.attributes != null) { + this.attributes.remove(key); + } + return (A) this; + } + + public A removeFromAttributes(Map map) { + if (this.attributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attributes != null) { + this.attributes.remove(key); + } + } + } + return (A) this; + } + + public Map getAttributes() { + return this.attributes; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public boolean hasAttributes() { + return this.attributes != null; + } + + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public Boolean getBindsToNode() { + return this.bindsToNode; + } + + public A withBindsToNode(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return (A) this; + } + + public boolean hasBindsToNode() { + return this.bindsToNode != null; + } + + public A addToCapacity(String key,V1DeviceCapacity value) { + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.capacity.put(key, value); + } + return (A) this; + } + + public A addToCapacity(Map map) { + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); + } + return (A) this; + } + + public A removeFromCapacity(String key) { + if (this.capacity == null) { + return (A) this; + } + if (key != null && this.capacity != null) { + this.capacity.remove(key); + } + return (A) this; + } + + public A removeFromCapacity(Map map) { + if (this.capacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } + } + } + return (A) this; + } + + public Map getCapacity() { + return this.capacity; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public A addToConsumesCounters(int index,V1DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); + } + return (A) this; + } + + public A setToConsumesCounters(int index,V1DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); + } + return (A) this; + } + + public A addToConsumesCounters(V1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } + return (A) this; + } + + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } + return (A) this; + } + + public A removeFromConsumesCounters(V1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + return (A) this; + } + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); + } + return (A) this; + } + + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) { + return (A) this; + } + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) { + return (A) this; + } + Iterator each = consumesCounters.iterator(); + List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public V1DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(V1DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); + } + + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public ConsumesCountersNested editConsumesCounter(int index) { + if (index <= consumesCounters.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < consumesCounters.size();i++) { + if (predicate.test(consumesCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getNodeName() { + return this.nodeName; + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public A addToTaints(int index,V1DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); + } + return (A) this; + } + + public A setToTaints(int index,V1DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A) this; + } + + public A addToTaints(V1DeviceTaint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; + } + + public A addAllToTaints(Collection items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; + } + + public A removeFromTaints(V1DeviceTaint... items) { + if (this.taints == null) { + return (A) this; + } + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; + } + + public A removeAllFromTaints(Collection items) { + if (this.taints == null) { + return (A) this; + } + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) { + return (A) this; + } + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + public V1DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public V1DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(V1DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } + + public boolean hasTaints() { + return this.taints != null && !(this.taints.isEmpty()); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1DeviceTaint item) { + return new TaintsNested(-1, item); + } + + public TaintsNested setNewTaintLike(int index,V1DeviceTaint item) { + return new TaintsNested(index, item); + } + + public TaintsNested editTaint(int index) { + if (index <= taints.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(0, this.buildTaint(0)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i = 0;i < taints.size();i++) { + if (predicate.test(taints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(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; + } + V1DeviceFluent that = (V1DeviceFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { + return false; + } + if (!(Objects.equals(attributes, that.attributes))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(bindsToNode, that.bindsToNode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(consumesCounters, that.consumesCounters))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(taints, that.taints))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allNodes == null)) { + sb.append("allNodes:"); + sb.append(allNodes); + sb.append(","); + } + if (!(allowMultipleAllocations == null)) { + sb.append("allowMultipleAllocations:"); + sb.append(allowMultipleAllocations); + sb.append(","); + } + if (!(attributes == null) && !(attributes.isEmpty())) { + sb.append("attributes:"); + sb.append(attributes); + sb.append(","); + } + if (!(bindingConditions == null) && !(bindingConditions.isEmpty())) { + sb.append("bindingConditions:"); + sb.append(bindingConditions); + sb.append(","); + } + if (!(bindingFailureConditions == null) && !(bindingFailureConditions.isEmpty())) { + sb.append("bindingFailureConditions:"); + sb.append(bindingFailureConditions); + sb.append(","); + } + if (!(bindsToNode == null)) { + sb.append("bindsToNode:"); + sb.append(bindsToNode); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(consumesCounters == null) && !(consumesCounters.isEmpty())) { + sb.append("consumesCounters:"); + sb.append(consumesCounters); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(taints == null) && !(taints.isEmpty())) { + sb.append("taints:"); + sb.append(taints); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllNodes() { + return withAllNodes(true); + } + + public A withAllowMultipleAllocations() { + return withAllowMultipleAllocations(true); + } + + public A withBindsToNode() { + return withBindsToNode(true); + } + public class ConsumesCountersNested extends V1DeviceCounterConsumptionFluent> implements Nested{ + ConsumesCountersNested(int index,V1DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1DeviceCounterConsumptionBuilder(this, item); + } + V1DeviceCounterConsumptionBuilder builder; + int index; + + public N and() { + return (N) V1DeviceFluent.this.setToConsumesCounters(index, builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1DeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class TaintsNested extends V1DeviceTaintFluent> implements Nested{ + TaintsNested(int index,V1DeviceTaint item) { + this.index = index; + this.builder = new V1DeviceTaintBuilder(this, item); + } + V1DeviceTaintBuilder builder; + int index; + + public N and() { + return (N) V1DeviceFluent.this.setToTaints(index, builder.build()); + } + + public N endTaint() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java new file mode 100644 index 0000000000..cc85bc59a0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java @@ -0,0 +1,41 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceRequestAllocationResultBuilder extends V1DeviceRequestAllocationResultFluent implements VisitableBuilder{ + public V1DeviceRequestAllocationResultBuilder() { + this(new V1DeviceRequestAllocationResult()); + } + + public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResultFluent fluent) { + this(fluent, new V1DeviceRequestAllocationResult()); + } + + public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResultFluent fluent,V1DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceRequestAllocationResultFluent fluent; + + public V1DeviceRequestAllocationResult build() { + V1DeviceRequestAllocationResult buildable = new V1DeviceRequestAllocationResult(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setConsumedCapacity(fluent.getConsumedCapacity()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setRequest(fluent.getRequest()); + buildable.setShareID(fluent.getShareID()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..78ef520924 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java @@ -0,0 +1,770 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import io.kubernetes.client.custom.Quantity; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.Map; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceRequestAllocationResultFluent> extends BaseFluent{ + public V1DeviceRequestAllocationResultFluent() { + } + + public V1DeviceRequestAllocationResultFluent(V1DeviceRequestAllocationResult instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private List bindingConditions; + private List bindingFailureConditions; + private Map consumedCapacity; + private String device; + private String driver; + private String pool; + private String request; + private String shareID; + private ArrayList tolerations; + + protected void copyInstance(V1DeviceRequestAllocationResult instance) { + instance = instance != null ? instance : new V1DeviceRequestAllocationResult(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withConsumedCapacity(instance.getConsumedCapacity()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withShareID(instance.getShareID()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public A addToConsumedCapacity(String key,Quantity value) { + if (this.consumedCapacity == null && key != null && value != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.consumedCapacity.put(key, value); + } + return (A) this; + } + + public A addToConsumedCapacity(Map map) { + if (this.consumedCapacity == null && map != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (map != null) { + this.consumedCapacity.putAll(map); + } + return (A) this; + } + + public A removeFromConsumedCapacity(String key) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (key != null && this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + return (A) this; + } + + public A removeFromConsumedCapacity(Map map) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + } + } + return (A) this; + } + + public Map getConsumedCapacity() { + return this.consumedCapacity; + } + + public A withConsumedCapacity(Map consumedCapacity) { + if (consumedCapacity == null) { + this.consumedCapacity = null; + } else { + this.consumedCapacity = new LinkedHashMap(consumedCapacity); + } + return (A) this; + } + + public boolean hasConsumedCapacity() { + return this.consumedCapacity != null; + } + + public String getDevice() { + return this.device; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public boolean hasDevice() { + return this.device != null; + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public String getPool() { + return this.pool; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public String getRequest() { + return this.request; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public boolean hasRequest() { + return this.request != null; + } + + public String getShareID() { + return this.shareID; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public boolean hasShareID() { + return this.shareID != null; + } + + public A addToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A) this; + } + + public A setToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A) this; + } + + public A addToTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(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; + } + V1DeviceRequestAllocationResultFluent that = (V1DeviceRequestAllocationResultFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(adminAccess == null)) { + sb.append("adminAccess:"); + sb.append(adminAccess); + sb.append(","); + } + if (!(bindingConditions == null) && !(bindingConditions.isEmpty())) { + sb.append("bindingConditions:"); + sb.append(bindingConditions); + sb.append(","); + } + if (!(bindingFailureConditions == null) && !(bindingFailureConditions.isEmpty())) { + sb.append("bindingFailureConditions:"); + sb.append(bindingFailureConditions); + sb.append(","); + } + if (!(consumedCapacity == null) && !(consumedCapacity.isEmpty())) { + sb.append("consumedCapacity:"); + sb.append(consumedCapacity); + 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(","); + } + if (!(request == null)) { + sb.append("request:"); + sb.append(request); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdminAccess() { + return withAdminAccess(true); + } + public class TolerationsNested extends V1DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1DeviceToleration item) { + this.index = index; + this.builder = new V1DeviceTolerationBuilder(this, item); + } + V1DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1DeviceRequestAllocationResultFluent.this.setToTolerations(index, builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java new file mode 100644 index 0000000000..d74f8a1cf4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceRequestBuilder extends V1DeviceRequestFluent implements VisitableBuilder{ + public V1DeviceRequestBuilder() { + this(new V1DeviceRequest()); + } + + public V1DeviceRequestBuilder(V1DeviceRequestFluent fluent) { + this(fluent, new V1DeviceRequest()); + } + + public V1DeviceRequestBuilder(V1DeviceRequestFluent fluent,V1DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceRequestBuilder(V1DeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceRequestFluent fluent; + + public V1DeviceRequest build() { + V1DeviceRequest buildable = new V1DeviceRequest(); + buildable.setExactly(fluent.buildExactly()); + buildable.setFirstAvailable(fluent.buildFirstAvailable()); + buildable.setName(fluent.getName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java new file mode 100644 index 0000000000..514a60103c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java @@ -0,0 +1,385 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceRequestFluent> extends BaseFluent{ + public V1DeviceRequestFluent() { + } + + public V1DeviceRequestFluent(V1DeviceRequest instance) { + this.copyInstance(instance); + } + private V1ExactDeviceRequestBuilder exactly; + private ArrayList firstAvailable; + private String name; + + protected void copyInstance(V1DeviceRequest instance) { + instance = instance != null ? instance : new V1DeviceRequest(); + if (instance != null) { + this.withExactly(instance.getExactly()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); + } + } + + public V1ExactDeviceRequest buildExactly() { + return this.exactly != null ? this.exactly.build() : null; + } + + public A withExactly(V1ExactDeviceRequest exactly) { + this._visitables.remove("exactly"); + if (exactly != null) { + this.exactly = new V1ExactDeviceRequestBuilder(exactly); + this._visitables.get("exactly").add(this.exactly); + } else { + this.exactly = null; + this._visitables.get("exactly").remove(this.exactly); + } + return (A) this; + } + + public boolean hasExactly() { + return this.exactly != null; + } + + public ExactlyNested withNewExactly() { + return new ExactlyNested(null); + } + + public ExactlyNested withNewExactlyLike(V1ExactDeviceRequest item) { + return new ExactlyNested(item); + } + + public ExactlyNested editExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(null)); + } + + public ExactlyNested editOrNewExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(new V1ExactDeviceRequestBuilder().build())); + } + + public ExactlyNested editOrNewExactlyLike(V1ExactDeviceRequest item) { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(item)); + } + + public A addToFirstAvailable(int index,V1DeviceSubRequest item) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(index, builder); + } + return (A) this; + } + + public A setToFirstAvailable(int index,V1DeviceSubRequest item) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); + } + return (A) this; + } + + public A addToFirstAvailable(V1DeviceSubRequest... items) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); + } + return (A) this; + } + + public A addAllToFirstAvailable(Collection items) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); + } + return (A) this; + } + + public A removeFromFirstAvailable(V1DeviceSubRequest... items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; + } + + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) { + return (A) this; + } + Iterator each = firstAvailable.iterator(); + List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildFirstAvailable() { + return this.firstAvailable != null ? build(firstAvailable) : null; + } + + public V1DeviceSubRequest buildFirstAvailable(int index) { + return this.firstAvailable.get(index).build(); + } + + public V1DeviceSubRequest buildFirstFirstAvailable() { + return this.firstAvailable.get(0).build(); + } + + public V1DeviceSubRequest buildLastFirstAvailable() { + return this.firstAvailable.get(firstAvailable.size() - 1).build(); + } + + public V1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(V1DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); + } + + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (index <= firstAvailable.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(0, this.buildFirstAvailable(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i = 0;i < firstAvailable.size();i++) { + if (predicate.test(firstAvailable.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceRequestFluent that = (V1DeviceRequestFluent) o; + if (!(Objects.equals(exactly, that.exactly))) { + return false; + } + if (!(Objects.equals(firstAvailable, that.firstAvailable))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(exactly, firstAvailable, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(exactly == null)) { + sb.append("exactly:"); + sb.append(exactly); + sb.append(","); + } + if (!(firstAvailable == null) && !(firstAvailable.isEmpty())) { + sb.append("firstAvailable:"); + sb.append(firstAvailable); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + public class ExactlyNested extends V1ExactDeviceRequestFluent> implements Nested{ + ExactlyNested(V1ExactDeviceRequest item) { + this.builder = new V1ExactDeviceRequestBuilder(this, item); + } + V1ExactDeviceRequestBuilder builder; + + public N and() { + return (N) V1DeviceRequestFluent.this.withExactly(builder.build()); + } + + public N endExactly() { + return and(); + } + + + } + public class FirstAvailableNested extends V1DeviceSubRequestFluent> implements Nested{ + FirstAvailableNested(int index,V1DeviceSubRequest item) { + this.index = index; + this.builder = new V1DeviceSubRequestBuilder(this, item); + } + V1DeviceSubRequestBuilder builder; + int index; + + public N and() { + return (N) V1DeviceRequestFluent.this.setToFirstAvailable(index, builder.build()); + } + + public N endFirstAvailable() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java new file mode 100644 index 0000000000..560595bfb6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceSelectorBuilder extends V1DeviceSelectorFluent implements VisitableBuilder{ + public V1DeviceSelectorBuilder() { + this(new V1DeviceSelector()); + } + + public V1DeviceSelectorBuilder(V1DeviceSelectorFluent fluent) { + this(fluent, new V1DeviceSelector()); + } + + public V1DeviceSelectorBuilder(V1DeviceSelectorFluent fluent,V1DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceSelectorBuilder(V1DeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceSelectorFluent fluent; + + public V1DeviceSelector build() { + V1DeviceSelector buildable = new V1DeviceSelector(); + buildable.setCel(fluent.buildCel()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..ae134da03a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java @@ -0,0 +1,120 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceSelectorFluent> extends BaseFluent{ + public V1DeviceSelectorFluent() { + } + + public V1DeviceSelectorFluent(V1DeviceSelector instance) { + this.copyInstance(instance); + } + private V1CELDeviceSelectorBuilder cel; + + protected void copyInstance(V1DeviceSelector instance) { + instance = instance != null ? instance : new V1DeviceSelector(); + if (instance != null) { + this.withCel(instance.getCel()); + } + } + + public V1CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } + + public A withCel(V1CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public boolean hasCel() { + return this.cel != null; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1CELDeviceSelector item) { + return new CelNested(item); + } + + public CelNested editCel() { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); + } + + public CelNested editOrNewCel() { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(new V1CELDeviceSelectorBuilder().build())); + } + + public CelNested editOrNewCelLike(V1CELDeviceSelector item) { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).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; + } + V1DeviceSelectorFluent that = (V1DeviceSelectorFluent) o; + if (!(Objects.equals(cel, that.cel))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(cel); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cel == null)) { + sb.append("cel:"); + sb.append(cel); + } + sb.append("}"); + return sb.toString(); + } + public class CelNested extends V1CELDeviceSelectorFluent> implements Nested{ + CelNested(V1CELDeviceSelector item) { + this.builder = new V1CELDeviceSelectorBuilder(this, item); + } + V1CELDeviceSelectorBuilder builder; + + public N and() { + return (N) V1DeviceSelectorFluent.this.withCel(builder.build()); + } + + public N endCel() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java new file mode 100644 index 0000000000..12a9f15527 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceSubRequestBuilder extends V1DeviceSubRequestFluent implements VisitableBuilder{ + public V1DeviceSubRequestBuilder() { + this(new V1DeviceSubRequest()); + } + + public V1DeviceSubRequestBuilder(V1DeviceSubRequestFluent fluent) { + this(fluent, new V1DeviceSubRequest()); + } + + public V1DeviceSubRequestBuilder(V1DeviceSubRequestFluent fluent,V1DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceSubRequestBuilder(V1DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceSubRequestFluent fluent; + + public V1DeviceSubRequest build() { + V1DeviceSubRequest buildable = new V1DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setName(fluent.getName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java new file mode 100644 index 0000000000..493efe1c5f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java @@ -0,0 +1,691 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.lang.Long; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceSubRequestFluent> extends BaseFluent{ + public V1DeviceSubRequestFluent() { + } + + public V1DeviceSubRequestFluent(V1DeviceSubRequest instance) { + this.copyInstance(instance); + } + private String allocationMode; + private V1CapacityRequirementsBuilder capacity; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1DeviceSubRequest instance) { + instance = instance != null ? instance : new V1DeviceSubRequest(); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public V1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public A withCapacity(V1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { + return new CapacityNested(item); + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public A addToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A) this; + } + + public A setToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A) this; + } + + public A addToSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public A addToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A) this; + } + + public A setToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A) this; + } + + public A addToTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(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; + } + V1DeviceSubRequestFluent that = (V1DeviceSubRequestFluent) o; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationMode == null)) { + sb.append("allocationMode:"); + sb.append(allocationMode); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(deviceClassName == null)) { + sb.append("deviceClassName:"); + sb.append(deviceClassName); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + public class CapacityNested extends V1CapacityRequirementsFluent> implements Nested{ + CapacityNested(V1CapacityRequirements item) { + this.builder = new V1CapacityRequirementsBuilder(this, item); + } + V1CapacityRequirementsBuilder builder; + + public N and() { + return (N) V1DeviceSubRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + + } + public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1DeviceSelector item) { + this.index = index; + this.builder = new V1DeviceSelectorBuilder(this, item); + } + V1DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1DeviceSubRequestFluent.this.setToSelectors(index, builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1DeviceToleration item) { + this.index = index; + this.builder = new V1DeviceTolerationBuilder(this, item); + } + V1DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1DeviceSubRequestFluent.this.setToTolerations(index, builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java new file mode 100644 index 0000000000..68f6103939 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceTaintBuilder extends V1DeviceTaintFluent implements VisitableBuilder{ + public V1DeviceTaintBuilder() { + this(new V1DeviceTaint()); + } + + public V1DeviceTaintBuilder(V1DeviceTaintFluent fluent) { + this(fluent, new V1DeviceTaint()); + } + + public V1DeviceTaintBuilder(V1DeviceTaintFluent fluent,V1DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceTaintBuilder(V1DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceTaintFluent fluent; + + public V1DeviceTaint build() { + V1DeviceTaint buildable = new V1DeviceTaint(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setTimeAdded(fluent.getTimeAdded()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java new file mode 100644 index 0000000000..9fa0e98f64 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java @@ -0,0 +1,146 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.time.OffsetDateTime; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceTaintFluent> extends BaseFluent{ + public V1DeviceTaintFluent() { + } + + public V1DeviceTaintFluent(V1DeviceTaint instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + protected void copyInstance(V1DeviceTaint instance) { + instance = instance != null ? instance : new V1DeviceTaint(); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceTaintFluent that = (V1DeviceTaintFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(effect, key, timeAdded, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java new file mode 100644 index 0000000000..b3cd2966d6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceTolerationBuilder extends V1DeviceTolerationFluent implements VisitableBuilder{ + public V1DeviceTolerationBuilder() { + this(new V1DeviceToleration()); + } + + public V1DeviceTolerationBuilder(V1DeviceTolerationFluent fluent) { + this(fluent, new V1DeviceToleration()); + } + + public V1DeviceTolerationBuilder(V1DeviceTolerationFluent fluent,V1DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceTolerationBuilder(V1DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1DeviceTolerationFluent fluent; + + public V1DeviceToleration build() { + V1DeviceToleration buildable = new V1DeviceToleration(); + buildable.setEffect(fluent.getEffect()); + buildable.setKey(fluent.getKey()); + buildable.setOperator(fluent.getOperator()); + buildable.setTolerationSeconds(fluent.getTolerationSeconds()); + buildable.setValue(fluent.getValue()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java new file mode 100644 index 0000000000..2c94ac2304 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java @@ -0,0 +1,169 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceTolerationFluent> extends BaseFluent{ + public V1DeviceTolerationFluent() { + } + + public V1DeviceTolerationFluent(V1DeviceToleration instance) { + this.copyInstance(instance); + } + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + protected void copyInstance(V1DeviceToleration instance) { + instance = instance != null ? instance : new V1DeviceToleration(); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } + } + + public String getEffect() { + return this.effect; + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public String getOperator() { + return this.operator; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public String getValue() { + return this.value; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceTolerationFluent that = (V1DeviceTolerationFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(tolerationSeconds, that.tolerationSeconds))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(effect, key, operator, tolerationSeconds, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(tolerationSeconds == null)) { + sb.append("tolerationSeconds:"); + sb.append(tolerationSeconds); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java index 7dc4c576f7..29eaaacec1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DownwardAPIProjectionBuilder extends V1DownwardAPIProjectionFluent implements VisitableBuilder{ public V1DownwardAPIProjectionBuilder() { this(new V1DownwardAPIProjection()); 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 aed47a02e2..29dd105794 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1DownwardAPIProjectionFluent> extends BaseFluent{ +public class V1DownwardAPIProjectionFluent> extends BaseFluent{ public V1DownwardAPIProjectionFluent() { } @@ -26,14 +28,16 @@ public V1DownwardAPIProjectionFluent(V1DownwardAPIProjection instance) { private ArrayList items; protected void copyInstance(V1DownwardAPIProjection instance) { - instance = (instance != null ? instance : new V1DownwardAPIProjection()); + instance = instance != null ? instance : new V1DownwardAPIProjection(); if (instance != null) { - this.withItems(instance.getItems()); - } + this.withItems(instance.getItems()); + } } public A addToItems(int index,V1DownwardAPIVolumeFile item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -42,11 +46,13 @@ public A addToItems(int index,V1DownwardAPIVolumeFile item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1DownwardAPIVolumeFile item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -55,41 +61,71 @@ public A setToItems(int index,V1DownwardAPIVolumeFile item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1DownwardAPIVolumeFile... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) return (A)this; - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1DownwardAPIVolumeFile... items) { + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1DownwardAPIVolumeFileBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DownwardAPIVolumeFileBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -141,7 +177,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { + public A withItems(V1DownwardAPIVolumeFile... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -155,7 +191,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile.. } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -171,47 +207,69 @@ public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 extends V1DownwardAPIVolumeFileFluent int index; public N and() { - return (N) V1DownwardAPIProjectionFluent.this.setToItems(index,builder.build()); + return (N) V1DownwardAPIProjectionFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 6d89ac752d..a77f97b553 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DownwardAPIVolumeFileBuilder extends V1DownwardAPIVolumeFileFluent implements VisitableBuilder{ public V1DownwardAPIVolumeFileBuilder() { this(new V1DownwardAPIVolumeFile()); 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 3a115a0dc4..78e04c0c68 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DownwardAPIVolumeFileFluent> extends BaseFluent{ +public class V1DownwardAPIVolumeFileFluent> extends BaseFluent{ public V1DownwardAPIVolumeFileFluent() { } @@ -24,13 +27,13 @@ public V1DownwardAPIVolumeFileFluent(V1DownwardAPIVolumeFile instance) { private V1ResourceFieldSelectorBuilder resourceFieldRef; protected void copyInstance(V1DownwardAPIVolumeFile instance) { - instance = (instance != null ? instance : new V1DownwardAPIVolumeFile()); + instance = instance != null ? instance : new V1DownwardAPIVolumeFile(); if (instance != null) { - this.withFieldRef(instance.getFieldRef()); - this.withMode(instance.getMode()); - this.withPath(instance.getPath()); - this.withResourceFieldRef(instance.getResourceFieldRef()); - } + this.withFieldRef(instance.getFieldRef()); + this.withMode(instance.getMode()); + this.withPath(instance.getPath()); + this.withResourceFieldRef(instance.getResourceFieldRef()); + } } public V1ObjectFieldSelector buildFieldRef() { @@ -62,15 +65,15 @@ public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { } public FieldRefNested editFieldRef() { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(null)); + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(null)); } public FieldRefNested editOrNewFieldRef() { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(new V1ObjectFieldSelectorBuilder().build())); + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(new V1ObjectFieldSelectorBuilder().build())); } public FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(item)); + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(item)); } public Integer getMode() { @@ -128,40 +131,69 @@ public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSele } public ResourceFieldRefNested editResourceFieldRef() { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(null)); + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(null)); } public ResourceFieldRefNested editOrNewResourceFieldRef() { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); } public ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(item)); + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1DownwardAPIVolumeFileFluent that = (V1DownwardAPIVolumeFileFluent) o; - if (!java.util.Objects.equals(fieldRef, that.fieldRef)) return false; - if (!java.util.Objects.equals(mode, that.mode)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(resourceFieldRef, that.resourceFieldRef)) return false; + if (!(Objects.equals(fieldRef, that.fieldRef))) { + return false; + } + if (!(Objects.equals(mode, that.mode))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(resourceFieldRef, that.resourceFieldRef))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fieldRef, mode, path, resourceFieldRef, super.hashCode()); + return Objects.hash(fieldRef, mode, path, resourceFieldRef); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } - if (mode != null) { sb.append("mode:"); sb.append(mode + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (resourceFieldRef != null) { sb.append("resourceFieldRef:"); sb.append(resourceFieldRef); } + if (!(fieldRef == null)) { + sb.append("fieldRef:"); + sb.append(fieldRef); + sb.append(","); + } + if (!(mode == null)) { + sb.append("mode:"); + sb.append(mode); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(resourceFieldRef == null)) { + sb.append("resourceFieldRef:"); + sb.append(resourceFieldRef); + } sb.append("}"); return sb.toString(); } 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 38161d4c7c..401c6634c6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DownwardAPIVolumeSourceBuilder extends V1DownwardAPIVolumeSourceFluent implements VisitableBuilder{ public V1DownwardAPIVolumeSourceBuilder() { this(new V1DownwardAPIVolumeSource()); 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 74f6f08cee..a3dc08d1a9 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1DownwardAPIVolumeSourceFluent> extends BaseFluent{ +public class V1DownwardAPIVolumeSourceFluent> extends BaseFluent{ public V1DownwardAPIVolumeSourceFluent() { } @@ -28,11 +30,11 @@ public V1DownwardAPIVolumeSourceFluent(V1DownwardAPIVolumeSource instance) { private ArrayList items; protected void copyInstance(V1DownwardAPIVolumeSource instance) { - instance = (instance != null ? instance : new V1DownwardAPIVolumeSource()); + instance = instance != null ? instance : new V1DownwardAPIVolumeSource(); if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withItems(instance.getItems()); - } + this.withDefaultMode(instance.getDefaultMode()); + this.withItems(instance.getItems()); + } } public Integer getDefaultMode() { @@ -49,7 +51,9 @@ public boolean hasDefaultMode() { } public A addToItems(int index,V1DownwardAPIVolumeFile item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -58,11 +62,13 @@ public A addToItems(int index,V1DownwardAPIVolumeFile item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1DownwardAPIVolumeFile item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -71,41 +77,71 @@ public A setToItems(int index,V1DownwardAPIVolumeFile item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1DownwardAPIVolumeFile... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) return (A)this; - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1DownwardAPIVolumeFile... items) { + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1DownwardAPIVolumeFileBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DownwardAPIVolumeFileBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -157,7 +193,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { + public A withItems(V1DownwardAPIVolumeFile... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -171,7 +207,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile.. } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -187,49 +223,77 @@ public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 extends V1DownwardAPIVolumeFileFluent int index; public N and() { - return (N) V1DownwardAPIVolumeSourceFluent.this.setToItems(index,builder.build()); + return (N) V1DownwardAPIVolumeSourceFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 9804834195..db597a7c5d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EmptyDirVolumeSourceBuilder extends V1EmptyDirVolumeSourceFluent implements VisitableBuilder{ public V1EmptyDirVolumeSourceBuilder() { this(new V1EmptyDirVolumeSource()); 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 8324dda51d..5e2e407f05 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1EmptyDirVolumeSourceFluent> extends BaseFluent{ +public class V1EmptyDirVolumeSourceFluent> extends BaseFluent{ public V1EmptyDirVolumeSourceFluent() { } @@ -21,11 +23,11 @@ public V1EmptyDirVolumeSourceFluent(V1EmptyDirVolumeSource instance) { private Quantity sizeLimit; protected void copyInstance(V1EmptyDirVolumeSource instance) { - instance = (instance != null ? instance : new V1EmptyDirVolumeSource()); + instance = instance != null ? instance : new V1EmptyDirVolumeSource(); if (instance != null) { - this.withMedium(instance.getMedium()); - this.withSizeLimit(instance.getSizeLimit()); - } + this.withMedium(instance.getMedium()); + this.withSizeLimit(instance.getSizeLimit()); + } } public String getMedium() { @@ -55,28 +57,45 @@ public boolean hasSizeLimit() { } public A withNewSizeLimit(String value) { - return (A)withSizeLimit(new Quantity(value)); + return (A) this.withSizeLimit(new Quantity(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EmptyDirVolumeSourceFluent that = (V1EmptyDirVolumeSourceFluent) o; - if (!java.util.Objects.equals(medium, that.medium)) return false; - if (!java.util.Objects.equals(sizeLimit, that.sizeLimit)) return false; + if (!(Objects.equals(medium, that.medium))) { + return false; + } + if (!(Objects.equals(sizeLimit, that.sizeLimit))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(medium, sizeLimit, super.hashCode()); + return Objects.hash(medium, sizeLimit); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (medium != null) { sb.append("medium:"); sb.append(medium + ","); } - if (sizeLimit != null) { sb.append("sizeLimit:"); sb.append(sizeLimit); } + if (!(medium == null)) { + sb.append("medium:"); + sb.append(medium); + sb.append(","); + } + if (!(sizeLimit == null)) { + sb.append("sizeLimit:"); + sb.append(sizeLimit); + } sb.append("}"); return sb.toString(); } 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 5ff4651730..1a03af84e2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointAddressBuilder extends V1EndpointAddressFluent implements VisitableBuilder{ public V1EndpointAddressBuilder() { this(new V1EndpointAddress()); 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 58a723d32e..44d6c4329c 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointAddressFluent> extends BaseFluent{ +public class V1EndpointAddressFluent> extends BaseFluent{ public V1EndpointAddressFluent() { } @@ -23,13 +26,13 @@ public V1EndpointAddressFluent(V1EndpointAddress instance) { private V1ObjectReferenceBuilder targetRef; protected void copyInstance(V1EndpointAddress instance) { - instance = (instance != null ? instance : new V1EndpointAddress()); + instance = instance != null ? instance : new V1EndpointAddress(); if (instance != null) { - this.withHostname(instance.getHostname()); - this.withIp(instance.getIp()); - this.withNodeName(instance.getNodeName()); - this.withTargetRef(instance.getTargetRef()); - } + this.withHostname(instance.getHostname()); + this.withIp(instance.getIp()); + this.withNodeName(instance.getNodeName()); + this.withTargetRef(instance.getTargetRef()); + } } public String getHostname() { @@ -100,40 +103,69 @@ public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { } public TargetRefNested editTargetRef() { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(null)); + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(null)); } public TargetRefNested editOrNewTargetRef() { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); } public TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(item)); + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EndpointAddressFluent that = (V1EndpointAddressFluent) o; - if (!java.util.Objects.equals(hostname, that.hostname)) return false; - if (!java.util.Objects.equals(ip, that.ip)) return false; - if (!java.util.Objects.equals(nodeName, that.nodeName)) return false; - if (!java.util.Objects.equals(targetRef, that.targetRef)) return false; + if (!(Objects.equals(hostname, that.hostname))) { + return false; + } + if (!(Objects.equals(ip, that.ip))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(targetRef, that.targetRef))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(hostname, ip, nodeName, targetRef, super.hashCode()); + return Objects.hash(hostname, ip, nodeName, targetRef); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hostname != null) { sb.append("hostname:"); sb.append(hostname + ","); } - if (ip != null) { sb.append("ip:"); sb.append(ip + ","); } - if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName + ","); } - if (targetRef != null) { sb.append("targetRef:"); sb.append(targetRef); } + if (!(hostname == null)) { + sb.append("hostname:"); + sb.append(hostname); + sb.append(","); + } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(targetRef == null)) { + sb.append("targetRef:"); + sb.append(targetRef); + } sb.append("}"); return sb.toString(); } 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 9175c40dd6..c94aca47df 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointBuilder extends V1EndpointFluent implements VisitableBuilder{ public V1EndpointBuilder() { this(new V1Endpoint()); 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 d208ada8ce..092bfce42a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointConditionsBuilder extends V1EndpointConditionsFluent implements VisitableBuilder{ public V1EndpointConditionsBuilder() { this(new V1EndpointConditions()); 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 6d25454f51..6c9534df1b 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointConditionsFluent> extends BaseFluent{ +public class V1EndpointConditionsFluent> extends BaseFluent{ public V1EndpointConditionsFluent() { } @@ -22,12 +24,12 @@ public V1EndpointConditionsFluent(V1EndpointConditions instance) { private Boolean terminating; protected void copyInstance(V1EndpointConditions instance) { - instance = (instance != null ? instance : new V1EndpointConditions()); + instance = instance != null ? instance : new V1EndpointConditions(); if (instance != null) { - this.withReady(instance.getReady()); - this.withServing(instance.getServing()); - this.withTerminating(instance.getTerminating()); - } + this.withReady(instance.getReady()); + this.withServing(instance.getServing()); + this.withTerminating(instance.getTerminating()); + } } public Boolean getReady() { @@ -70,26 +72,49 @@ public boolean hasTerminating() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EndpointConditionsFluent that = (V1EndpointConditionsFluent) o; - if (!java.util.Objects.equals(ready, that.ready)) return false; - if (!java.util.Objects.equals(serving, that.serving)) return false; - if (!java.util.Objects.equals(terminating, that.terminating)) return false; + if (!(Objects.equals(ready, that.ready))) { + return false; + } + if (!(Objects.equals(serving, that.serving))) { + return false; + } + if (!(Objects.equals(terminating, that.terminating))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(ready, serving, terminating, super.hashCode()); + return Objects.hash(ready, serving, terminating); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ready != null) { sb.append("ready:"); sb.append(ready + ","); } - if (serving != null) { sb.append("serving:"); sb.append(serving + ","); } - if (terminating != null) { sb.append("terminating:"); sb.append(terminating); } + if (!(ready == null)) { + sb.append("ready:"); + sb.append(ready); + sb.append(","); + } + if (!(serving == null)) { + sb.append("serving:"); + sb.append(serving); + sb.append(","); + } + if (!(terminating == null)) { + sb.append("terminating:"); + sb.append(terminating); + } sb.append("}"); return sb.toString(); } 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 835e17a843..7ef30c0f89 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 @@ -1,5 +1,6 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -8,6 +9,8 @@ import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointFluent> extends BaseFluent{ +public class V1EndpointFluent> extends BaseFluent{ public V1EndpointFluent() { } @@ -33,48 +36,73 @@ public V1EndpointFluent(V1Endpoint instance) { private String zone; protected void copyInstance(V1Endpoint instance) { - instance = (instance != null ? instance : new V1Endpoint()); + instance = instance != null ? instance : new V1Endpoint(); if (instance != null) { - this.withAddresses(instance.getAddresses()); - this.withConditions(instance.getConditions()); - this.withDeprecatedTopology(instance.getDeprecatedTopology()); - this.withHints(instance.getHints()); - this.withHostname(instance.getHostname()); - this.withNodeName(instance.getNodeName()); - this.withTargetRef(instance.getTargetRef()); - this.withZone(instance.getZone()); - } + this.withAddresses(instance.getAddresses()); + this.withConditions(instance.getConditions()); + this.withDeprecatedTopology(instance.getDeprecatedTopology()); + this.withHints(instance.getHints()); + this.withHostname(instance.getHostname()); + this.withNodeName(instance.getNodeName()); + this.withTargetRef(instance.getTargetRef()); + this.withZone(instance.getZone()); + } } public A addToAddresses(int index,String item) { - if (this.addresses == null) {this.addresses = new ArrayList();} + if (this.addresses == null) { + this.addresses = new ArrayList(); + } this.addresses.add(index, item); - return (A)this; + return (A) this; } public A setToAddresses(int index,String item) { - if (this.addresses == null) {this.addresses = new ArrayList();} - this.addresses.set(index, item); return (A)this; + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + this.addresses.set(index, item); + return (A) this; } - public A addToAddresses(java.lang.String... items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (String item : items) {this.addresses.add(item);} return (A)this; + public A addToAddresses(String... items) { + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (String item : items) { + this.addresses.add(item); + } + return (A) this; } public A addAllToAddresses(Collection items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (String item : items) {this.addresses.add(item);} return (A)this; + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (String item : items) { + this.addresses.add(item); + } + return (A) this; } - public A removeFromAddresses(java.lang.String... items) { - if (this.addresses == null) return (A)this; - for (String item : items) { this.addresses.remove(item);} return (A)this; + public A removeFromAddresses(String... items) { + if (this.addresses == null) { + return (A) this; + } + for (String item : items) { + this.addresses.remove(item); + } + return (A) this; } public A removeAllFromAddresses(Collection items) { - if (this.addresses == null) return (A)this; - for (String item : items) { this.addresses.remove(item);} return (A)this; + if (this.addresses == null) { + return (A) this; + } + for (String item : items) { + this.addresses.remove(item); + } + return (A) this; } public List getAddresses() { @@ -123,7 +151,7 @@ public A withAddresses(List addresses) { return (A) this; } - public A withAddresses(java.lang.String... addresses) { + public A withAddresses(String... addresses) { if (this.addresses != null) { this.addresses.clear(); _visitables.remove("addresses"); @@ -137,7 +165,7 @@ public A withAddresses(java.lang.String... addresses) { } public boolean hasAddresses() { - return this.addresses != null && !this.addresses.isEmpty(); + return this.addresses != null && !(this.addresses.isEmpty()); } public V1EndpointConditions buildConditions() { @@ -169,35 +197,59 @@ public ConditionsNested withNewConditionsLike(V1EndpointConditions item) { } public ConditionsNested editConditions() { - return withNewConditionsLike(java.util.Optional.ofNullable(buildConditions()).orElse(null)); + return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(null)); } public ConditionsNested editOrNewConditions() { - return withNewConditionsLike(java.util.Optional.ofNullable(buildConditions()).orElse(new V1EndpointConditionsBuilder().build())); + return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(new V1EndpointConditionsBuilder().build())); } public ConditionsNested editOrNewConditionsLike(V1EndpointConditions item) { - return withNewConditionsLike(java.util.Optional.ofNullable(buildConditions()).orElse(item)); + return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(item)); } public A addToDeprecatedTopology(String key,String value) { - if(this.deprecatedTopology == null && key != null && value != null) { this.deprecatedTopology = new LinkedHashMap(); } - if(key != null && value != null) {this.deprecatedTopology.put(key, value);} return (A)this; + if (this.deprecatedTopology == null && key != null && value != null) { + this.deprecatedTopology = new LinkedHashMap(); + } + if (key != null && value != null) { + this.deprecatedTopology.put(key, value); + } + return (A) this; } public A addToDeprecatedTopology(Map map) { - if(this.deprecatedTopology == null && map != null) { this.deprecatedTopology = new LinkedHashMap(); } - if(map != null) { this.deprecatedTopology.putAll(map);} return (A)this; + if (this.deprecatedTopology == null && map != null) { + this.deprecatedTopology = new LinkedHashMap(); + } + if (map != null) { + this.deprecatedTopology.putAll(map); + } + return (A) this; } public A removeFromDeprecatedTopology(String key) { - if(this.deprecatedTopology == null) { return (A) this; } - if(key != null && this.deprecatedTopology != null) {this.deprecatedTopology.remove(key);} return (A)this; + if (this.deprecatedTopology == null) { + return (A) this; + } + if (key != null && this.deprecatedTopology != null) { + this.deprecatedTopology.remove(key); + } + return (A) this; } public A removeFromDeprecatedTopology(Map map) { - if(this.deprecatedTopology == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.deprecatedTopology != null){this.deprecatedTopology.remove(key);}}} return (A)this; + if (this.deprecatedTopology == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.deprecatedTopology != null) { + this.deprecatedTopology.remove(key); + } + } + } + return (A) this; } public Map getDeprecatedTopology() { @@ -246,15 +298,15 @@ public HintsNested withNewHintsLike(V1EndpointHints item) { } public HintsNested editHints() { - return withNewHintsLike(java.util.Optional.ofNullable(buildHints()).orElse(null)); + return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(null)); } public HintsNested editOrNewHints() { - return withNewHintsLike(java.util.Optional.ofNullable(buildHints()).orElse(new V1EndpointHintsBuilder().build())); + return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(new V1EndpointHintsBuilder().build())); } public HintsNested editOrNewHintsLike(V1EndpointHints item) { - return withNewHintsLike(java.util.Optional.ofNullable(buildHints()).orElse(item)); + return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(item)); } public String getHostname() { @@ -312,15 +364,15 @@ public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { } public TargetRefNested editTargetRef() { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(null)); + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(null)); } public TargetRefNested editOrNewTargetRef() { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); } public TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(item)); + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(item)); } public String getZone() { @@ -337,36 +389,89 @@ public boolean hasZone() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EndpointFluent that = (V1EndpointFluent) o; - if (!java.util.Objects.equals(addresses, that.addresses)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(deprecatedTopology, that.deprecatedTopology)) return false; - if (!java.util.Objects.equals(hints, that.hints)) return false; - if (!java.util.Objects.equals(hostname, that.hostname)) return false; - if (!java.util.Objects.equals(nodeName, that.nodeName)) return false; - if (!java.util.Objects.equals(targetRef, that.targetRef)) return false; - if (!java.util.Objects.equals(zone, that.zone)) return false; + if (!(Objects.equals(addresses, that.addresses))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(deprecatedTopology, that.deprecatedTopology))) { + return false; + } + if (!(Objects.equals(hints, that.hints))) { + return false; + } + if (!(Objects.equals(hostname, that.hostname))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(targetRef, that.targetRef))) { + return false; + } + if (!(Objects.equals(zone, that.zone))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(addresses, conditions, deprecatedTopology, hints, hostname, nodeName, targetRef, zone, super.hashCode()); + return Objects.hash(addresses, conditions, deprecatedTopology, hints, hostname, nodeName, targetRef, zone); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (addresses != null && !addresses.isEmpty()) { sb.append("addresses:"); sb.append(addresses + ","); } - if (conditions != null) { sb.append("conditions:"); sb.append(conditions + ","); } - if (deprecatedTopology != null && !deprecatedTopology.isEmpty()) { sb.append("deprecatedTopology:"); sb.append(deprecatedTopology + ","); } - if (hints != null) { sb.append("hints:"); sb.append(hints + ","); } - if (hostname != null) { sb.append("hostname:"); sb.append(hostname + ","); } - if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName + ","); } - if (targetRef != null) { sb.append("targetRef:"); sb.append(targetRef + ","); } - if (zone != null) { sb.append("zone:"); sb.append(zone); } + if (!(addresses == null) && !(addresses.isEmpty())) { + sb.append("addresses:"); + sb.append(addresses); + sb.append(","); + } + if (!(conditions == null)) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(deprecatedTopology == null) && !(deprecatedTopology.isEmpty())) { + sb.append("deprecatedTopology:"); + sb.append(deprecatedTopology); + sb.append(","); + } + if (!(hints == null)) { + sb.append("hints:"); + sb.append(hints); + sb.append(","); + } + if (!(hostname == null)) { + sb.append("hostname:"); + sb.append(hostname); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(targetRef == null)) { + sb.append("targetRef:"); + sb.append(targetRef); + sb.append(","); + } + if (!(zone == null)) { + sb.append("zone:"); + sb.append(zone); + } sb.append("}"); return sb.toString(); } 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 1819048478..de931f41c8 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointHintsBuilder extends V1EndpointHintsFluent implements VisitableBuilder{ public V1EndpointHintsBuilder() { this(new V1EndpointHints()); 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 1e75b0ab8d..df27cfc8c5 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointHintsFluent> extends BaseFluent{ +public class V1EndpointHintsFluent> extends BaseFluent{ public V1EndpointHintsFluent() { } @@ -27,15 +29,17 @@ public V1EndpointHintsFluent(V1EndpointHints instance) { private ArrayList forZones; protected void copyInstance(V1EndpointHints instance) { - instance = (instance != null ? instance : new V1EndpointHints()); + instance = instance != null ? instance : new V1EndpointHints(); if (instance != null) { - this.withForNodes(instance.getForNodes()); - this.withForZones(instance.getForZones()); - } + this.withForNodes(instance.getForNodes()); + this.withForZones(instance.getForZones()); + } } public A addToForNodes(int index,V1ForNode item) { - if (this.forNodes == null) {this.forNodes = new ArrayList();} + if (this.forNodes == null) { + this.forNodes = new ArrayList(); + } V1ForNodeBuilder builder = new V1ForNodeBuilder(item); if (index < 0 || index >= forNodes.size()) { _visitables.get("forNodes").add(builder); @@ -44,11 +48,13 @@ public A addToForNodes(int index,V1ForNode item) { _visitables.get("forNodes").add(builder); forNodes.add(index, builder); } - return (A)this; + return (A) this; } public A setToForNodes(int index,V1ForNode item) { - if (this.forNodes == null) {this.forNodes = new ArrayList();} + if (this.forNodes == null) { + this.forNodes = new ArrayList(); + } V1ForNodeBuilder builder = new V1ForNodeBuilder(item); if (index < 0 || index >= forNodes.size()) { _visitables.get("forNodes").add(builder); @@ -57,41 +63,71 @@ public A setToForNodes(int index,V1ForNode item) { _visitables.get("forNodes").add(builder); forNodes.set(index, builder); } - return (A)this; + return (A) this; } - public A addToForNodes(io.kubernetes.client.openapi.models.V1ForNode... items) { - if (this.forNodes == null) {this.forNodes = new ArrayList();} - for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").add(builder);this.forNodes.add(builder);} return (A)this; + public A addToForNodes(V1ForNode... items) { + if (this.forNodes == null) { + this.forNodes = new ArrayList(); + } + for (V1ForNode item : items) { + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + _visitables.get("forNodes").add(builder); + this.forNodes.add(builder); + } + return (A) this; } public A addAllToForNodes(Collection items) { - if (this.forNodes == null) {this.forNodes = new ArrayList();} - for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").add(builder);this.forNodes.add(builder);} return (A)this; + if (this.forNodes == null) { + this.forNodes = new ArrayList(); + } + for (V1ForNode item : items) { + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + _visitables.get("forNodes").add(builder); + this.forNodes.add(builder); + } + return (A) this; } - public A removeFromForNodes(io.kubernetes.client.openapi.models.V1ForNode... items) { - if (this.forNodes == null) return (A)this; - for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").remove(builder); this.forNodes.remove(builder);} return (A)this; + public A removeFromForNodes(V1ForNode... items) { + if (this.forNodes == null) { + return (A) this; + } + for (V1ForNode item : items) { + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + _visitables.get("forNodes").remove(builder); + this.forNodes.remove(builder); + } + return (A) this; } public A removeAllFromForNodes(Collection items) { - if (this.forNodes == null) return (A)this; - for (V1ForNode item : items) {V1ForNodeBuilder builder = new V1ForNodeBuilder(item);_visitables.get("forNodes").remove(builder); this.forNodes.remove(builder);} return (A)this; + if (this.forNodes == null) { + return (A) this; + } + for (V1ForNode item : items) { + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + _visitables.get("forNodes").remove(builder); + this.forNodes.remove(builder); + } + return (A) this; } public A removeMatchingFromForNodes(Predicate predicate) { - if (forNodes == null) return (A) this; - final Iterator each = forNodes.iterator(); - final List visitables = _visitables.get("forNodes"); + if (forNodes == null) { + return (A) this; + } + Iterator each = forNodes.iterator(); + List visitables = _visitables.get("forNodes"); while (each.hasNext()) { - V1ForNodeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ForNodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildForNodes() { @@ -143,7 +179,7 @@ public A withForNodes(List forNodes) { return (A) this; } - public A withForNodes(io.kubernetes.client.openapi.models.V1ForNode... forNodes) { + public A withForNodes(V1ForNode... forNodes) { if (this.forNodes != null) { this.forNodes.clear(); _visitables.remove("forNodes"); @@ -157,7 +193,7 @@ public A withForNodes(io.kubernetes.client.openapi.models.V1ForNode... forNodes) } public boolean hasForNodes() { - return this.forNodes != null && !this.forNodes.isEmpty(); + return this.forNodes != null && !(this.forNodes.isEmpty()); } public ForNodesNested addNewForNode() { @@ -173,32 +209,45 @@ public ForNodesNested setNewForNodeLike(int index,V1ForNode item) { } public ForNodesNested editForNode(int index) { - if (forNodes.size() <= index) throw new RuntimeException("Can't edit forNodes. Index exceeds size."); - return setNewForNodeLike(index, buildForNode(index)); + if (index <= forNodes.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "forNodes")); + } + return this.setNewForNodeLike(index, this.buildForNode(index)); } public ForNodesNested editFirstForNode() { - if (forNodes.size() == 0) throw new RuntimeException("Can't edit first forNodes. The list is empty."); - return setNewForNodeLike(0, buildForNode(0)); + if (forNodes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "forNodes")); + } + return this.setNewForNodeLike(0, this.buildForNode(0)); } public ForNodesNested editLastForNode() { int index = forNodes.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last forNodes. The list is empty."); - return setNewForNodeLike(index, buildForNode(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "forNodes")); + } + return this.setNewForNodeLike(index, this.buildForNode(index)); } public ForNodesNested editMatchingForNode(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.forZones == null) { + this.forZones = new ArrayList(); + } V1ForZoneBuilder builder = new V1ForZoneBuilder(item); if (index < 0 || index >= forZones.size()) { _visitables.get("forZones").add(builder); @@ -207,11 +256,13 @@ public A addToForZones(int index,V1ForZone item) { _visitables.get("forZones").add(builder); forZones.add(index, builder); } - return (A)this; + return (A) this; } public A setToForZones(int index,V1ForZone item) { - if (this.forZones == null) {this.forZones = new ArrayList();} + if (this.forZones == null) { + this.forZones = new ArrayList(); + } V1ForZoneBuilder builder = new V1ForZoneBuilder(item); if (index < 0 || index >= forZones.size()) { _visitables.get("forZones").add(builder); @@ -220,41 +271,71 @@ public A setToForZones(int index,V1ForZone item) { _visitables.get("forZones").add(builder); forZones.set(index, builder); } - return (A)this; + return (A) this; } - public A addToForZones(io.kubernetes.client.openapi.models.V1ForZone... items) { - if (this.forZones == null) {this.forZones = new ArrayList();} - for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").add(builder);this.forZones.add(builder);} return (A)this; + public A addToForZones(V1ForZone... items) { + if (this.forZones == null) { + this.forZones = new ArrayList(); + } + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").add(builder); + this.forZones.add(builder); + } + return (A) this; } public A addAllToForZones(Collection items) { - if (this.forZones == null) {this.forZones = new ArrayList();} - for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").add(builder);this.forZones.add(builder);} return (A)this; + if (this.forZones == null) { + this.forZones = new ArrayList(); + } + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").add(builder); + this.forZones.add(builder); + } + return (A) this; } - public A removeFromForZones(io.kubernetes.client.openapi.models.V1ForZone... items) { - if (this.forZones == null) return (A)this; - for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").remove(builder); this.forZones.remove(builder);} return (A)this; + public A removeFromForZones(V1ForZone... items) { + if (this.forZones == null) { + return (A) this; + } + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").remove(builder); + this.forZones.remove(builder); + } + return (A) this; } public A removeAllFromForZones(Collection items) { - if (this.forZones == null) return (A)this; - for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").remove(builder); this.forZones.remove(builder);} return (A)this; + if (this.forZones == null) { + return (A) this; + } + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").remove(builder); + this.forZones.remove(builder); + } + return (A) this; } public A removeMatchingFromForZones(Predicate predicate) { - if (forZones == null) return (A) this; - final Iterator each = forZones.iterator(); - final List visitables = _visitables.get("forZones"); + if (forZones == null) { + return (A) this; + } + Iterator each = forZones.iterator(); + List visitables = _visitables.get("forZones"); while (each.hasNext()) { - V1ForZoneBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ForZoneBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildForZones() { @@ -306,7 +387,7 @@ public A withForZones(List forZones) { return (A) this; } - public A withForZones(io.kubernetes.client.openapi.models.V1ForZone... forZones) { + public A withForZones(V1ForZone... forZones) { if (this.forZones != null) { this.forZones.clear(); _visitables.remove("forZones"); @@ -320,7 +401,7 @@ public A withForZones(io.kubernetes.client.openapi.models.V1ForZone... forZones) } public boolean hasForZones() { - return this.forZones != null && !this.forZones.isEmpty(); + return this.forZones != null && !(this.forZones.isEmpty()); } public ForZonesNested addNewForZone() { @@ -336,49 +417,77 @@ public ForZonesNested setNewForZoneLike(int index,V1ForZone item) { } public ForZonesNested editForZone(int index) { - if (forZones.size() <= index) throw new RuntimeException("Can't edit forZones. Index exceeds size."); - return setNewForZoneLike(index, buildForZone(index)); + if (index <= forZones.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "forZones")); + } + return this.setNewForZoneLike(index, this.buildForZone(index)); } public ForZonesNested editFirstForZone() { - if (forZones.size() == 0) throw new RuntimeException("Can't edit first forZones. The list is empty."); - return setNewForZoneLike(0, buildForZone(0)); + if (forZones.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "forZones")); + } + return this.setNewForZoneLike(0, this.buildForZone(0)); } public ForZonesNested editLastForZone() { int index = forZones.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last forZones. The list is empty."); - return setNewForZoneLike(index, buildForZone(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "forZones")); + } + return this.setNewForZoneLike(index, this.buildForZone(index)); } public ForZonesNested editMatchingForZone(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ForNodeFluent> implem int index; public N and() { - return (N) V1EndpointHintsFluent.this.setToForNodes(index,builder.build()); + return (N) V1EndpointHintsFluent.this.setToForNodes(index, builder.build()); } public N endForNode() { @@ -409,7 +518,7 @@ public class ForZonesNested extends V1ForZoneFluent> implem int index; public N and() { - return (N) V1EndpointHintsFluent.this.setToForZones(index,builder.build()); + return (N) V1EndpointHintsFluent.this.setToForZones(index, builder.build()); } public N endForZone() { 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 73f8627813..fb177fcacc 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointSliceBuilder extends V1EndpointSliceFluent implements VisitableBuilder{ public V1EndpointSliceBuilder() { this(new V1EndpointSlice()); 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 31552415d2..efcfc3bd9d 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointSliceFluent> extends BaseFluent{ +public class V1EndpointSliceFluent> extends BaseFluent{ public V1EndpointSliceFluent() { } @@ -31,15 +34,15 @@ public V1EndpointSliceFluent(V1EndpointSlice instance) { private ArrayList ports; protected void copyInstance(V1EndpointSlice instance) { - instance = (instance != null ? instance : new V1EndpointSlice()); + instance = instance != null ? instance : new V1EndpointSlice(); if (instance != null) { - this.withAddressType(instance.getAddressType()); - this.withApiVersion(instance.getApiVersion()); - this.withEndpoints(instance.getEndpoints()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withPorts(instance.getPorts()); - } + this.withAddressType(instance.getAddressType()); + this.withApiVersion(instance.getApiVersion()); + this.withEndpoints(instance.getEndpoints()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withPorts(instance.getPorts()); + } } public String getAddressType() { @@ -69,7 +72,9 @@ public boolean hasApiVersion() { } public A addToEndpoints(int index,V1Endpoint item) { - if (this.endpoints == null) {this.endpoints = new ArrayList();} + if (this.endpoints == null) { + this.endpoints = new ArrayList(); + } V1EndpointBuilder builder = new V1EndpointBuilder(item); if (index < 0 || index >= endpoints.size()) { _visitables.get("endpoints").add(builder); @@ -78,11 +83,13 @@ public A addToEndpoints(int index,V1Endpoint item) { _visitables.get("endpoints").add(builder); endpoints.add(index, builder); } - return (A)this; + return (A) this; } public A setToEndpoints(int index,V1Endpoint item) { - if (this.endpoints == null) {this.endpoints = new ArrayList();} + if (this.endpoints == null) { + this.endpoints = new ArrayList(); + } V1EndpointBuilder builder = new V1EndpointBuilder(item); if (index < 0 || index >= endpoints.size()) { _visitables.get("endpoints").add(builder); @@ -91,41 +98,71 @@ public A setToEndpoints(int index,V1Endpoint item) { _visitables.get("endpoints").add(builder); endpoints.set(index, builder); } - return (A)this; + return (A) this; } - public A addToEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items) { - if (this.endpoints == null) {this.endpoints = new ArrayList();} - for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").add(builder);this.endpoints.add(builder);} return (A)this; + public A addToEndpoints(V1Endpoint... items) { + if (this.endpoints == null) { + this.endpoints = new ArrayList(); + } + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").add(builder); + this.endpoints.add(builder); + } + return (A) this; } public A addAllToEndpoints(Collection items) { - if (this.endpoints == null) {this.endpoints = new ArrayList();} - for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").add(builder);this.endpoints.add(builder);} return (A)this; + if (this.endpoints == null) { + this.endpoints = new ArrayList(); + } + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").add(builder); + this.endpoints.add(builder); + } + return (A) this; } - public A removeFromEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items) { - if (this.endpoints == null) return (A)this; - for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").remove(builder); this.endpoints.remove(builder);} return (A)this; + public A removeFromEndpoints(V1Endpoint... items) { + if (this.endpoints == null) { + return (A) this; + } + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").remove(builder); + this.endpoints.remove(builder); + } + return (A) this; } public A removeAllFromEndpoints(Collection items) { - if (this.endpoints == null) return (A)this; - for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").remove(builder); this.endpoints.remove(builder);} return (A)this; + if (this.endpoints == null) { + return (A) this; + } + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").remove(builder); + this.endpoints.remove(builder); + } + return (A) this; } public A removeMatchingFromEndpoints(Predicate predicate) { - if (endpoints == null) return (A) this; - final Iterator each = endpoints.iterator(); - final List visitables = _visitables.get("endpoints"); + if (endpoints == null) { + return (A) this; + } + Iterator each = endpoints.iterator(); + List visitables = _visitables.get("endpoints"); while (each.hasNext()) { - V1EndpointBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EndpointBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildEndpoints() { @@ -177,7 +214,7 @@ public A withEndpoints(List endpoints) { return (A) this; } - public A withEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... endpoints) { + public A withEndpoints(V1Endpoint... endpoints) { if (this.endpoints != null) { this.endpoints.clear(); _visitables.remove("endpoints"); @@ -191,7 +228,7 @@ public A withEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... endpoin } public boolean hasEndpoints() { - return this.endpoints != null && !this.endpoints.isEmpty(); + return this.endpoints != null && !(this.endpoints.isEmpty()); } public EndpointsNested addNewEndpoint() { @@ -207,28 +244,39 @@ public EndpointsNested setNewEndpointLike(int index,V1Endpoint item) { } public EndpointsNested editEndpoint(int index) { - if (endpoints.size() <= index) throw new RuntimeException("Can't edit endpoints. Index exceeds size."); - return setNewEndpointLike(index, buildEndpoint(index)); + if (index <= endpoints.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "endpoints")); + } + return this.setNewEndpointLike(index, this.buildEndpoint(index)); } public EndpointsNested editFirstEndpoint() { - if (endpoints.size() == 0) throw new RuntimeException("Can't edit first endpoints. The list is empty."); - return setNewEndpointLike(0, buildEndpoint(0)); + if (endpoints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "endpoints")); + } + return this.setNewEndpointLike(0, this.buildEndpoint(0)); } public EndpointsNested editLastEndpoint() { int index = endpoints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last endpoints. The list is empty."); - return setNewEndpointLike(index, buildEndpoint(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "endpoints")); + } + return this.setNewEndpointLike(index, this.buildEndpoint(index)); } public EndpointsNested editMatchingEndpoint(Predicate predicate) { int index = -1; - for (int i=0;i withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public A addToPorts(int index,DiscoveryV1EndpointPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -294,11 +344,13 @@ public A addToPorts(int index,DiscoveryV1EndpointPort item) { _visitables.get("ports").add(builder); ports.add(index, builder); } - return (A)this; + return (A) this; } public A setToPorts(int index,DiscoveryV1EndpointPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -307,41 +359,71 @@ public A setToPorts(int index,DiscoveryV1EndpointPort item) { _visitables.get("ports").add(builder); ports.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A addToPorts(DiscoveryV1EndpointPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items) { - if (this.ports == null) return (A)this; - for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeFromPorts(DiscoveryV1EndpointPort... items) { + if (this.ports == null) { + return (A) this; + } + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - DiscoveryV1EndpointPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + DiscoveryV1EndpointPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPorts() { @@ -393,7 +475,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... ports) { + public A withPorts(DiscoveryV1EndpointPort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -407,7 +489,7 @@ public A withPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort.. } public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + return this.ports != null && !(this.ports.isEmpty()); } public PortsNested addNewPort() { @@ -423,57 +505,109 @@ public PortsNested setNewPortLike(int index,DiscoveryV1EndpointPort item) { } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (index <= ports.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public PortsNested editLastPort() { int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i=0;i extends V1EndpointFluent> imp int index; public N and() { - return (N) V1EndpointSliceFluent.this.setToEndpoints(index,builder.build()); + return (N) V1EndpointSliceFluent.this.setToEndpoints(index, builder.build()); } public N endEndpoint() { @@ -520,7 +654,7 @@ public class PortsNested extends DiscoveryV1EndpointPortFluent int index; public N and() { - return (N) V1EndpointSliceFluent.this.setToPorts(index,builder.build()); + return (N) V1EndpointSliceFluent.this.setToPorts(index, builder.build()); } public N endPort() { 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 928d69b92e..e438476d3f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointSliceListBuilder extends V1EndpointSliceListFluent implements VisitableBuilder{ public V1EndpointSliceListBuilder() { this(new V1EndpointSliceList()); 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 d4eb7fa430..f45dfc9362 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointSliceListFluent> extends BaseFluent{ +public class V1EndpointSliceListFluent> extends BaseFluent{ public V1EndpointSliceListFluent() { } @@ -29,13 +32,13 @@ public V1EndpointSliceListFluent(V1EndpointSliceList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1EndpointSliceList instance) { - instance = (instance != null ? instance : new V1EndpointSliceList()); + instance = instance != null ? instance : new V1EndpointSliceList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1EndpointSlice item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1EndpointSlice item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1EndpointSlice item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1EndpointSlice item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1EndpointSlice... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { - if (this.items == null) return (A)this; - for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1EndpointSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1EndpointSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EndpointSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { + public A withItems(V1EndpointSlice... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1EndpointSlice item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EndpointSliceListFluent that = (V1EndpointSliceListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1EndpointSliceFluent> implem int index; public N and() { - return (N) V1EndpointSliceListFluent.this.setToItems(index,builder.build()); + return (N) V1EndpointSliceListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 fdfb3d0bc0..939fa0e0f3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointSubsetBuilder extends V1EndpointSubsetFluent implements VisitableBuilder{ public V1EndpointSubsetBuilder() { this(new V1EndpointSubset()); 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 a3809c477c..90825de178 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointSubsetFluent> extends BaseFluent{ +public class V1EndpointSubsetFluent> extends BaseFluent{ public V1EndpointSubsetFluent() { } @@ -28,16 +30,18 @@ public V1EndpointSubsetFluent(V1EndpointSubset instance) { private ArrayList ports; protected void copyInstance(V1EndpointSubset instance) { - instance = (instance != null ? instance : new V1EndpointSubset()); + instance = instance != null ? instance : new V1EndpointSubset(); if (instance != null) { - this.withAddresses(instance.getAddresses()); - this.withNotReadyAddresses(instance.getNotReadyAddresses()); - this.withPorts(instance.getPorts()); - } + this.withAddresses(instance.getAddresses()); + this.withNotReadyAddresses(instance.getNotReadyAddresses()); + this.withPorts(instance.getPorts()); + } } public A addToAddresses(int index,V1EndpointAddress item) { - if (this.addresses == null) {this.addresses = new ArrayList();} + if (this.addresses == null) { + this.addresses = new ArrayList(); + } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); @@ -46,11 +50,13 @@ public A addToAddresses(int index,V1EndpointAddress item) { _visitables.get("addresses").add(builder); addresses.add(index, builder); } - return (A)this; + return (A) this; } public A setToAddresses(int index,V1EndpointAddress item) { - if (this.addresses == null) {this.addresses = new ArrayList();} + if (this.addresses == null) { + this.addresses = new ArrayList(); + } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); @@ -59,41 +65,71 @@ public A setToAddresses(int index,V1EndpointAddress item) { _visitables.get("addresses").add(builder); addresses.set(index, builder); } - return (A)this; + return (A) this; } - public A addToAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; + public A addToAddresses(V1EndpointAddress... items) { + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("addresses").add(builder); + this.addresses.add(builder); + } + return (A) this; } public A addAllToAddresses(Collection items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("addresses").add(builder); + this.addresses.add(builder); + } + return (A) this; } - public A removeFromAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.addresses == null) return (A)this; - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").remove(builder); this.addresses.remove(builder);} return (A)this; + public A removeFromAddresses(V1EndpointAddress... items) { + if (this.addresses == null) { + return (A) this; + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); + } + return (A) this; } public A removeAllFromAddresses(Collection items) { - if (this.addresses == null) return (A)this; - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").remove(builder); this.addresses.remove(builder);} return (A)this; + if (this.addresses == null) { + return (A) this; + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); + } + return (A) this; } public A removeMatchingFromAddresses(Predicate predicate) { - if (addresses == null) return (A) this; - final Iterator each = addresses.iterator(); - final List visitables = _visitables.get("addresses"); + if (addresses == null) { + return (A) this; + } + Iterator each = addresses.iterator(); + List visitables = _visitables.get("addresses"); while (each.hasNext()) { - V1EndpointAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EndpointAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildAddresses() { @@ -145,7 +181,7 @@ public A withAddresses(List addresses) { return (A) this; } - public A withAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... addresses) { + public A withAddresses(V1EndpointAddress... addresses) { if (this.addresses != null) { this.addresses.clear(); _visitables.remove("addresses"); @@ -159,7 +195,7 @@ public A withAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... } public boolean hasAddresses() { - return this.addresses != null && !this.addresses.isEmpty(); + return this.addresses != null && !(this.addresses.isEmpty()); } public AddressesNested addNewAddress() { @@ -175,32 +211,45 @@ public AddressesNested setNewAddressLike(int index,V1EndpointAddress item) { } public AddressesNested editAddress(int index) { - if (addresses.size() <= index) throw new RuntimeException("Can't edit addresses. Index exceeds size."); - return setNewAddressLike(index, buildAddress(index)); + if (index <= addresses.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } public AddressesNested editFirstAddress() { - if (addresses.size() == 0) throw new RuntimeException("Can't edit first addresses. The list is empty."); - return setNewAddressLike(0, buildAddress(0)); + if (addresses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(0, this.buildAddress(0)); } public AddressesNested editLastAddress() { int index = addresses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last addresses. The list is empty."); - return setNewAddressLike(index, buildAddress(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } public AddressesNested editMatchingAddress(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); + } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= notReadyAddresses.size()) { _visitables.get("notReadyAddresses").add(builder); @@ -209,11 +258,13 @@ public A addToNotReadyAddresses(int index,V1EndpointAddress item) { _visitables.get("notReadyAddresses").add(builder); notReadyAddresses.add(index, builder); } - return (A)this; + return (A) this; } public A setToNotReadyAddresses(int index,V1EndpointAddress item) { - if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); + } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= notReadyAddresses.size()) { _visitables.get("notReadyAddresses").add(builder); @@ -222,41 +273,71 @@ public A setToNotReadyAddresses(int index,V1EndpointAddress item) { _visitables.get("notReadyAddresses").add(builder); notReadyAddresses.set(index, builder); } - return (A)this; + return (A) this; } - public A addToNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").add(builder);this.notReadyAddresses.add(builder);} return (A)this; + public A addToNotReadyAddresses(V1EndpointAddress... items) { + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.add(builder); + } + return (A) this; } public A addAllToNotReadyAddresses(Collection items) { - if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").add(builder);this.notReadyAddresses.add(builder);} return (A)this; + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.add(builder); + } + return (A) this; } - public A removeFromNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.notReadyAddresses == null) return (A)this; - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").remove(builder); this.notReadyAddresses.remove(builder);} return (A)this; + public A removeFromNotReadyAddresses(V1EndpointAddress... items) { + if (this.notReadyAddresses == null) { + return (A) this; + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("notReadyAddresses").remove(builder); + this.notReadyAddresses.remove(builder); + } + return (A) this; } public A removeAllFromNotReadyAddresses(Collection items) { - if (this.notReadyAddresses == null) return (A)this; - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").remove(builder); this.notReadyAddresses.remove(builder);} return (A)this; + if (this.notReadyAddresses == null) { + return (A) this; + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("notReadyAddresses").remove(builder); + this.notReadyAddresses.remove(builder); + } + return (A) this; } public A removeMatchingFromNotReadyAddresses(Predicate predicate) { - if (notReadyAddresses == null) return (A) this; - final Iterator each = notReadyAddresses.iterator(); - final List visitables = _visitables.get("notReadyAddresses"); + if (notReadyAddresses == null) { + return (A) this; + } + Iterator each = notReadyAddresses.iterator(); + List visitables = _visitables.get("notReadyAddresses"); while (each.hasNext()) { - V1EndpointAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EndpointAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildNotReadyAddresses() { @@ -308,7 +389,7 @@ public A withNotReadyAddresses(List notReadyAddresses) { return (A) this; } - public A withNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... notReadyAddresses) { + public A withNotReadyAddresses(V1EndpointAddress... notReadyAddresses) { if (this.notReadyAddresses != null) { this.notReadyAddresses.clear(); _visitables.remove("notReadyAddresses"); @@ -322,7 +403,7 @@ public A withNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAdd } public boolean hasNotReadyAddresses() { - return this.notReadyAddresses != null && !this.notReadyAddresses.isEmpty(); + return this.notReadyAddresses != null && !(this.notReadyAddresses.isEmpty()); } public NotReadyAddressesNested addNewNotReadyAddress() { @@ -338,32 +419,45 @@ public NotReadyAddressesNested setNewNotReadyAddressLike(int index,V1Endpoint } public NotReadyAddressesNested editNotReadyAddress(int index) { - if (notReadyAddresses.size() <= index) throw new RuntimeException("Can't edit notReadyAddresses. Index exceeds size."); - return setNewNotReadyAddressLike(index, buildNotReadyAddress(index)); + if (index <= notReadyAddresses.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "notReadyAddresses")); + } + return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); } public NotReadyAddressesNested editFirstNotReadyAddress() { - if (notReadyAddresses.size() == 0) throw new RuntimeException("Can't edit first notReadyAddresses. The list is empty."); - return setNewNotReadyAddressLike(0, buildNotReadyAddress(0)); + if (notReadyAddresses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "notReadyAddresses")); + } + return this.setNewNotReadyAddressLike(0, this.buildNotReadyAddress(0)); } public NotReadyAddressesNested editLastNotReadyAddress() { int index = notReadyAddresses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last notReadyAddresses. The list is empty."); - return setNewNotReadyAddressLike(index, buildNotReadyAddress(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "notReadyAddresses")); + } + return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); } public NotReadyAddressesNested editMatchingNotReadyAddress(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.ports == null) { + this.ports = new ArrayList(); + } CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -372,11 +466,13 @@ public A addToPorts(int index,CoreV1EndpointPort item) { _visitables.get("ports").add(builder); ports.add(index, builder); } - return (A)this; + return (A) this; } public A setToPorts(int index,CoreV1EndpointPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -385,41 +481,71 @@ public A setToPorts(int index,CoreV1EndpointPort item) { _visitables.get("ports").add(builder); ports.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A addToPorts(CoreV1EndpointPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items) { - if (this.ports == null) return (A)this; - for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeFromPorts(CoreV1EndpointPort... items) { + if (this.ports == null) { + return (A) this; + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - CoreV1EndpointPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + CoreV1EndpointPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPorts() { @@ -471,7 +597,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... ports) { + public A withPorts(CoreV1EndpointPort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -485,7 +611,7 @@ public A withPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... por } public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + return this.ports != null && !(this.ports.isEmpty()); } public PortsNested addNewPort() { @@ -501,51 +627,85 @@ public PortsNested setNewPortLike(int index,CoreV1EndpointPort item) { } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (index <= ports.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public PortsNested editLastPort() { int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i=0;i extends V1EndpointAddressFluent extends V1EndpointAddressFluent extends CoreV1EndpointPortFluent> imp int index; public N and() { - return (N) V1EndpointSubsetFluent.this.setToPorts(index,builder.build()); + return (N) V1EndpointSubsetFluent.this.setToPorts(index, builder.build()); } public N endPort() { 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 13ce826163..6ce37f19a2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointsBuilder extends V1EndpointsFluent implements VisitableBuilder{ public V1EndpointsBuilder() { this(new V1Endpoints()); 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 5089ceeaa1..c657fd7895 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointsFluent> extends BaseFluent{ +public class V1EndpointsFluent> extends BaseFluent{ public V1EndpointsFluent() { } @@ -29,13 +32,13 @@ public V1EndpointsFluent(V1Endpoints instance) { private ArrayList subsets; protected void copyInstance(V1Endpoints instance) { - instance = (instance != null ? instance : new V1Endpoints()); + instance = instance != null ? instance : new V1Endpoints(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSubsets(instance.getSubsets()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSubsets(instance.getSubsets()); + } } public String getApiVersion() { @@ -93,19 +96,21 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public A addToSubsets(int index,V1EndpointSubset item) { - if (this.subsets == null) {this.subsets = new ArrayList();} + if (this.subsets == null) { + this.subsets = new ArrayList(); + } V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); if (index < 0 || index >= subsets.size()) { _visitables.get("subsets").add(builder); @@ -114,11 +119,13 @@ public A addToSubsets(int index,V1EndpointSubset item) { _visitables.get("subsets").add(builder); subsets.add(index, builder); } - return (A)this; + return (A) this; } public A setToSubsets(int index,V1EndpointSubset item) { - if (this.subsets == null) {this.subsets = new ArrayList();} + if (this.subsets == null) { + this.subsets = new ArrayList(); + } V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); if (index < 0 || index >= subsets.size()) { _visitables.get("subsets").add(builder); @@ -127,41 +134,71 @@ public A setToSubsets(int index,V1EndpointSubset item) { _visitables.get("subsets").add(builder); subsets.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items) { - if (this.subsets == null) {this.subsets = new ArrayList();} - for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").add(builder);this.subsets.add(builder);} return (A)this; + public A addToSubsets(V1EndpointSubset... items) { + if (this.subsets == null) { + this.subsets = new ArrayList(); + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").add(builder); + this.subsets.add(builder); + } + return (A) this; } public A addAllToSubsets(Collection items) { - if (this.subsets == null) {this.subsets = new ArrayList();} - for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").add(builder);this.subsets.add(builder);} return (A)this; + if (this.subsets == null) { + this.subsets = new ArrayList(); + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").add(builder); + this.subsets.add(builder); + } + return (A) this; } - public A removeFromSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items) { - if (this.subsets == null) return (A)this; - for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").remove(builder); this.subsets.remove(builder);} return (A)this; + public A removeFromSubsets(V1EndpointSubset... items) { + if (this.subsets == null) { + return (A) this; + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").remove(builder); + this.subsets.remove(builder); + } + return (A) this; } public A removeAllFromSubsets(Collection items) { - if (this.subsets == null) return (A)this; - for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").remove(builder); this.subsets.remove(builder);} return (A)this; + if (this.subsets == null) { + return (A) this; + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").remove(builder); + this.subsets.remove(builder); + } + return (A) this; } public A removeMatchingFromSubsets(Predicate predicate) { - if (subsets == null) return (A) this; - final Iterator each = subsets.iterator(); - final List visitables = _visitables.get("subsets"); + if (subsets == null) { + return (A) this; + } + Iterator each = subsets.iterator(); + List visitables = _visitables.get("subsets"); while (each.hasNext()) { - V1EndpointSubsetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EndpointSubsetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSubsets() { @@ -213,7 +250,7 @@ public A withSubsets(List subsets) { return (A) this; } - public A withSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... subsets) { + public A withSubsets(V1EndpointSubset... subsets) { if (this.subsets != null) { this.subsets.clear(); _visitables.remove("subsets"); @@ -227,7 +264,7 @@ public A withSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... sub } public boolean hasSubsets() { - return this.subsets != null && !this.subsets.isEmpty(); + return this.subsets != null && !(this.subsets.isEmpty()); } public SubsetsNested addNewSubset() { @@ -243,53 +280,93 @@ public SubsetsNested setNewSubsetLike(int index,V1EndpointSubset item) { } public SubsetsNested editSubset(int index) { - if (subsets.size() <= index) throw new RuntimeException("Can't edit subsets. Index exceeds size."); - return setNewSubsetLike(index, buildSubset(index)); + if (index <= subsets.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subsets")); + } + return this.setNewSubsetLike(index, this.buildSubset(index)); } public SubsetsNested editFirstSubset() { - if (subsets.size() == 0) throw new RuntimeException("Can't edit first subsets. The list is empty."); - return setNewSubsetLike(0, buildSubset(0)); + if (subsets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subsets")); + } + return this.setNewSubsetLike(0, this.buildSubset(0)); } public SubsetsNested editLastSubset() { int index = subsets.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last subsets. The list is empty."); - return setNewSubsetLike(index, buildSubset(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subsets")); + } + return this.setNewSubsetLike(index, this.buildSubset(index)); } public SubsetsNested editMatchingSubset(Predicate predicate) { int index = -1; - for (int i=0;i extends V1EndpointSubsetFluent> i int index; public N and() { - return (N) V1EndpointsFluent.this.setToSubsets(index,builder.build()); + return (N) V1EndpointsFluent.this.setToSubsets(index, builder.build()); } public N endSubset() { 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 be4b775d3f..b5eb916b57 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointsListBuilder extends V1EndpointsListFluent implements VisitableBuilder{ public V1EndpointsListBuilder() { this(new V1EndpointsList()); 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 04bb39aad3..a9246d8691 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointsListFluent> extends BaseFluent{ +public class V1EndpointsListFluent> extends BaseFluent{ public V1EndpointsListFluent() { } @@ -29,13 +32,13 @@ public V1EndpointsListFluent(V1EndpointsList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1EndpointsList instance) { - instance = (instance != null ? instance : new V1EndpointsList()); + instance = instance != null ? instance : new V1EndpointsList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Endpoints item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1EndpointsBuilder builder = new V1EndpointsBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Endpoints item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Endpoints item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1EndpointsBuilder builder = new V1EndpointsBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Endpoints item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Endpoints... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { - if (this.items == null) return (A)this; - for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Endpoints... items) { + if (this.items == null) { + return (A) this; + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1EndpointsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EndpointsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { + public A withItems(V1Endpoints... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Endpoints item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EndpointsListFluent that = (V1EndpointsListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1EndpointsFluent> implements int index; public N and() { - return (N) V1EndpointsListFluent.this.setToItems(index,builder.build()); + return (N) V1EndpointsListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 e9bab8f133..5324432a8d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EnvFromSourceBuilder extends V1EnvFromSourceFluent implements VisitableBuilder{ public V1EnvFromSourceBuilder() { this(new V1EnvFromSource()); 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 cd2c31fd09..8cecc5e915 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EnvFromSourceFluent> extends BaseFluent{ +public class V1EnvFromSourceFluent> extends BaseFluent{ public V1EnvFromSourceFluent() { } @@ -22,12 +25,12 @@ public V1EnvFromSourceFluent(V1EnvFromSource instance) { private V1SecretEnvSourceBuilder secretRef; protected void copyInstance(V1EnvFromSource instance) { - instance = (instance != null ? instance : new V1EnvFromSource()); + instance = instance != null ? instance : new V1EnvFromSource(); if (instance != null) { - this.withConfigMapRef(instance.getConfigMapRef()); - this.withPrefix(instance.getPrefix()); - this.withSecretRef(instance.getSecretRef()); - } + this.withConfigMapRef(instance.getConfigMapRef()); + this.withPrefix(instance.getPrefix()); + this.withSecretRef(instance.getSecretRef()); + } } public V1ConfigMapEnvSource buildConfigMapRef() { @@ -59,15 +62,15 @@ public ConfigMapRefNested withNewConfigMapRefLike(V1ConfigMapEnvSource item) } public ConfigMapRefNested editConfigMapRef() { - return withNewConfigMapRefLike(java.util.Optional.ofNullable(buildConfigMapRef()).orElse(null)); + return this.withNewConfigMapRefLike(Optional.ofNullable(this.buildConfigMapRef()).orElse(null)); } public ConfigMapRefNested editOrNewConfigMapRef() { - return withNewConfigMapRefLike(java.util.Optional.ofNullable(buildConfigMapRef()).orElse(new V1ConfigMapEnvSourceBuilder().build())); + return this.withNewConfigMapRefLike(Optional.ofNullable(this.buildConfigMapRef()).orElse(new V1ConfigMapEnvSourceBuilder().build())); } public ConfigMapRefNested editOrNewConfigMapRefLike(V1ConfigMapEnvSource item) { - return withNewConfigMapRefLike(java.util.Optional.ofNullable(buildConfigMapRef()).orElse(item)); + return this.withNewConfigMapRefLike(Optional.ofNullable(this.buildConfigMapRef()).orElse(item)); } public String getPrefix() { @@ -112,38 +115,61 @@ public SecretRefNested withNewSecretRefLike(V1SecretEnvSource item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretEnvSourceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretEnvSourceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1SecretEnvSource item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EnvFromSourceFluent that = (V1EnvFromSourceFluent) o; - if (!java.util.Objects.equals(configMapRef, that.configMapRef)) return false; - if (!java.util.Objects.equals(prefix, that.prefix)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; + if (!(Objects.equals(configMapRef, that.configMapRef))) { + return false; + } + if (!(Objects.equals(prefix, that.prefix))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(configMapRef, prefix, secretRef, super.hashCode()); + return Objects.hash(configMapRef, prefix, secretRef); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (configMapRef != null) { sb.append("configMapRef:"); sb.append(configMapRef + ","); } - if (prefix != null) { sb.append("prefix:"); sb.append(prefix + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); } + if (!(configMapRef == null)) { + sb.append("configMapRef:"); + sb.append(configMapRef); + sb.append(","); + } + if (!(prefix == null)) { + sb.append("prefix:"); + sb.append(prefix); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + } sb.append("}"); return sb.toString(); } 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 e1251cdec7..ef5b29c857 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EnvVarBuilder extends V1EnvVarFluent implements VisitableBuilder{ public V1EnvVarBuilder() { this(new V1EnvVar()); 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 363943a8de..3ee723e4b7 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EnvVarFluent> extends BaseFluent{ +public class V1EnvVarFluent> extends BaseFluent{ public V1EnvVarFluent() { } @@ -22,12 +25,12 @@ public V1EnvVarFluent(V1EnvVar instance) { private V1EnvVarSourceBuilder valueFrom; protected void copyInstance(V1EnvVar instance) { - instance = (instance != null ? instance : new V1EnvVar()); + instance = instance != null ? instance : new V1EnvVar(); if (instance != null) { - this.withName(instance.getName()); - this.withValue(instance.getValue()); - this.withValueFrom(instance.getValueFrom()); - } + this.withName(instance.getName()); + this.withValue(instance.getValue()); + this.withValueFrom(instance.getValueFrom()); + } } public String getName() { @@ -85,38 +88,61 @@ public ValueFromNested withNewValueFromLike(V1EnvVarSource item) { } public ValueFromNested editValueFrom() { - return withNewValueFromLike(java.util.Optional.ofNullable(buildValueFrom()).orElse(null)); + return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(null)); } public ValueFromNested editOrNewValueFrom() { - return withNewValueFromLike(java.util.Optional.ofNullable(buildValueFrom()).orElse(new V1EnvVarSourceBuilder().build())); + return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(new V1EnvVarSourceBuilder().build())); } public ValueFromNested editOrNewValueFromLike(V1EnvVarSource item) { - return withNewValueFromLike(java.util.Optional.ofNullable(buildValueFrom()).orElse(item)); + return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EnvVarFluent that = (V1EnvVarFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - if (!java.util.Objects.equals(valueFrom, that.valueFrom)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + if (!(Objects.equals(valueFrom, that.valueFrom))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, value, valueFrom, super.hashCode()); + return Objects.hash(name, value, valueFrom); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (value != null) { sb.append("value:"); sb.append(value + ","); } - if (valueFrom != null) { sb.append("valueFrom:"); sb.append(valueFrom); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + sb.append(","); + } + if (!(valueFrom == null)) { + sb.append("valueFrom:"); + sb.append(valueFrom); + } sb.append("}"); return sb.toString(); } 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 ff8139d518..c853066051 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EnvVarSourceBuilder extends V1EnvVarSourceFluent implements VisitableBuilder{ public V1EnvVarSourceBuilder() { this(new V1EnvVarSource()); @@ -25,6 +26,7 @@ public V1EnvVarSource build() { V1EnvVarSource buildable = new V1EnvVarSource(); buildable.setConfigMapKeyRef(fluent.buildConfigMapKeyRef()); buildable.setFieldRef(fluent.buildFieldRef()); + buildable.setFileKeyRef(fluent.buildFileKeyRef()); buildable.setResourceFieldRef(fluent.buildResourceFieldRef()); buildable.setSecretKeyRef(fluent.buildSecretKeyRef()); return buildable; 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 b3ff98ef5d..2b6f100c0b 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EnvVarSourceFluent> extends BaseFluent{ +public class V1EnvVarSourceFluent> extends BaseFluent{ public V1EnvVarSourceFluent() { } @@ -19,17 +22,19 @@ public V1EnvVarSourceFluent(V1EnvVarSource instance) { } private V1ConfigMapKeySelectorBuilder configMapKeyRef; private V1ObjectFieldSelectorBuilder fieldRef; + private V1FileKeySelectorBuilder fileKeyRef; private V1ResourceFieldSelectorBuilder resourceFieldRef; private V1SecretKeySelectorBuilder secretKeyRef; protected void copyInstance(V1EnvVarSource instance) { - instance = (instance != null ? instance : new V1EnvVarSource()); + instance = instance != null ? instance : new V1EnvVarSource(); if (instance != null) { - this.withConfigMapKeyRef(instance.getConfigMapKeyRef()); - this.withFieldRef(instance.getFieldRef()); - this.withResourceFieldRef(instance.getResourceFieldRef()); - this.withSecretKeyRef(instance.getSecretKeyRef()); - } + this.withConfigMapKeyRef(instance.getConfigMapKeyRef()); + this.withFieldRef(instance.getFieldRef()); + this.withFileKeyRef(instance.getFileKeyRef()); + this.withResourceFieldRef(instance.getResourceFieldRef()); + this.withSecretKeyRef(instance.getSecretKeyRef()); + } } public V1ConfigMapKeySelector buildConfigMapKeyRef() { @@ -61,15 +66,15 @@ public ConfigMapKeyRefNested withNewConfigMapKeyRefLike(V1ConfigMapKeySelecto } public ConfigMapKeyRefNested editConfigMapKeyRef() { - return withNewConfigMapKeyRefLike(java.util.Optional.ofNullable(buildConfigMapKeyRef()).orElse(null)); + return this.withNewConfigMapKeyRefLike(Optional.ofNullable(this.buildConfigMapKeyRef()).orElse(null)); } public ConfigMapKeyRefNested editOrNewConfigMapKeyRef() { - return withNewConfigMapKeyRefLike(java.util.Optional.ofNullable(buildConfigMapKeyRef()).orElse(new V1ConfigMapKeySelectorBuilder().build())); + return this.withNewConfigMapKeyRefLike(Optional.ofNullable(this.buildConfigMapKeyRef()).orElse(new V1ConfigMapKeySelectorBuilder().build())); } public ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { - return withNewConfigMapKeyRefLike(java.util.Optional.ofNullable(buildConfigMapKeyRef()).orElse(item)); + return this.withNewConfigMapKeyRefLike(Optional.ofNullable(this.buildConfigMapKeyRef()).orElse(item)); } public V1ObjectFieldSelector buildFieldRef() { @@ -101,15 +106,55 @@ public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { } public FieldRefNested editFieldRef() { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(null)); + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(null)); } public FieldRefNested editOrNewFieldRef() { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(new V1ObjectFieldSelectorBuilder().build())); + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(new V1ObjectFieldSelectorBuilder().build())); } public FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(item)); + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(item)); + } + + public V1FileKeySelector buildFileKeyRef() { + return this.fileKeyRef != null ? this.fileKeyRef.build() : null; + } + + public A withFileKeyRef(V1FileKeySelector fileKeyRef) { + this._visitables.remove("fileKeyRef"); + if (fileKeyRef != null) { + this.fileKeyRef = new V1FileKeySelectorBuilder(fileKeyRef); + this._visitables.get("fileKeyRef").add(this.fileKeyRef); + } else { + this.fileKeyRef = null; + this._visitables.get("fileKeyRef").remove(this.fileKeyRef); + } + return (A) this; + } + + public boolean hasFileKeyRef() { + return this.fileKeyRef != null; + } + + public FileKeyRefNested withNewFileKeyRef() { + return new FileKeyRefNested(null); + } + + public FileKeyRefNested withNewFileKeyRefLike(V1FileKeySelector item) { + return new FileKeyRefNested(item); + } + + public FileKeyRefNested editFileKeyRef() { + return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(null)); + } + + public FileKeyRefNested editOrNewFileKeyRef() { + return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(new V1FileKeySelectorBuilder().build())); + } + + public FileKeyRefNested editOrNewFileKeyRefLike(V1FileKeySelector item) { + return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(item)); } public V1ResourceFieldSelector buildResourceFieldRef() { @@ -141,15 +186,15 @@ public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSele } public ResourceFieldRefNested editResourceFieldRef() { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(null)); + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(null)); } public ResourceFieldRefNested editOrNewResourceFieldRef() { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); } public ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(item)); + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(item)); } public V1SecretKeySelector buildSecretKeyRef() { @@ -181,40 +226,77 @@ public SecretKeyRefNested withNewSecretKeyRefLike(V1SecretKeySelector item) { } public SecretKeyRefNested editSecretKeyRef() { - return withNewSecretKeyRefLike(java.util.Optional.ofNullable(buildSecretKeyRef()).orElse(null)); + return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(null)); } public SecretKeyRefNested editOrNewSecretKeyRef() { - return withNewSecretKeyRefLike(java.util.Optional.ofNullable(buildSecretKeyRef()).orElse(new V1SecretKeySelectorBuilder().build())); + return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(new V1SecretKeySelectorBuilder().build())); } public SecretKeyRefNested editOrNewSecretKeyRefLike(V1SecretKeySelector item) { - return withNewSecretKeyRefLike(java.util.Optional.ofNullable(buildSecretKeyRef()).orElse(item)); + return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EnvVarSourceFluent that = (V1EnvVarSourceFluent) o; - if (!java.util.Objects.equals(configMapKeyRef, that.configMapKeyRef)) return false; - if (!java.util.Objects.equals(fieldRef, that.fieldRef)) return false; - if (!java.util.Objects.equals(resourceFieldRef, that.resourceFieldRef)) return false; - if (!java.util.Objects.equals(secretKeyRef, that.secretKeyRef)) return false; + if (!(Objects.equals(configMapKeyRef, that.configMapKeyRef))) { + return false; + } + if (!(Objects.equals(fieldRef, that.fieldRef))) { + return false; + } + if (!(Objects.equals(fileKeyRef, that.fileKeyRef))) { + return false; + } + if (!(Objects.equals(resourceFieldRef, that.resourceFieldRef))) { + return false; + } + if (!(Objects.equals(secretKeyRef, that.secretKeyRef))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(configMapKeyRef, fieldRef, resourceFieldRef, secretKeyRef, super.hashCode()); + return Objects.hash(configMapKeyRef, fieldRef, fileKeyRef, resourceFieldRef, secretKeyRef); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (configMapKeyRef != null) { sb.append("configMapKeyRef:"); sb.append(configMapKeyRef + ","); } - if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } - if (resourceFieldRef != null) { sb.append("resourceFieldRef:"); sb.append(resourceFieldRef + ","); } - if (secretKeyRef != null) { sb.append("secretKeyRef:"); sb.append(secretKeyRef); } + if (!(configMapKeyRef == null)) { + sb.append("configMapKeyRef:"); + sb.append(configMapKeyRef); + sb.append(","); + } + if (!(fieldRef == null)) { + sb.append("fieldRef:"); + sb.append(fieldRef); + sb.append(","); + } + if (!(fileKeyRef == null)) { + sb.append("fileKeyRef:"); + sb.append(fileKeyRef); + sb.append(","); + } + if (!(resourceFieldRef == null)) { + sb.append("resourceFieldRef:"); + sb.append(resourceFieldRef); + sb.append(","); + } + if (!(secretKeyRef == null)) { + sb.append("secretKeyRef:"); + sb.append(secretKeyRef); + } sb.append("}"); return sb.toString(); } @@ -249,6 +331,22 @@ public N endFieldRef() { } + } + public class FileKeyRefNested extends V1FileKeySelectorFluent> implements Nested{ + FileKeyRefNested(V1FileKeySelector item) { + this.builder = new V1FileKeySelectorBuilder(this, item); + } + V1FileKeySelectorBuilder builder; + + public N and() { + return (N) V1EnvVarSourceFluent.this.withFileKeyRef(builder.build()); + } + + public N endFileKeyRef() { + return and(); + } + + } public class ResourceFieldRefNested extends V1ResourceFieldSelectorFluent> implements Nested{ ResourceFieldRefNested(V1ResourceFieldSelector item) { 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 6c1e6170f7..ac9ca40e8d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EphemeralContainerBuilder extends V1EphemeralContainerFluent implements VisitableBuilder{ public V1EphemeralContainerBuilder() { this(new V1EphemeralContainer()); @@ -37,6 +38,7 @@ public V1EphemeralContainer build() { buildable.setResizePolicy(fluent.buildResizePolicy()); buildable.setResources(fluent.buildResources()); buildable.setRestartPolicy(fluent.getRestartPolicy()); + buildable.setRestartPolicyRules(fluent.buildRestartPolicyRules()); buildable.setSecurityContext(fluent.buildSecurityContext()); buildable.setStartupProbe(fluent.buildStartupProbe()); buildable.setStdin(fluent.getStdin()); 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 7cbe7d75f1..2c268fe980 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 @@ -1,23 +1,26 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.RuntimeException; import java.util.Iterator; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EphemeralContainerFluent> extends BaseFluent{ +public class V1EphemeralContainerFluent> extends BaseFluent{ public V1EphemeralContainerFluent() { } @@ -38,6 +41,7 @@ public V1EphemeralContainerFluent(V1EphemeralContainer instance) { private ArrayList resizePolicy; private V1ResourceRequirementsBuilder resources; private String restartPolicy; + private ArrayList restartPolicyRules; private V1SecurityContextBuilder securityContext; private V1ProbeBuilder startupProbe; private Boolean stdin; @@ -51,65 +55,91 @@ public V1EphemeralContainerFluent(V1EphemeralContainer instance) { private String workingDir; protected void copyInstance(V1EphemeralContainer instance) { - instance = (instance != null ? instance : new V1EphemeralContainer()); + instance = instance != null ? instance : new V1EphemeralContainer(); if (instance != null) { - this.withArgs(instance.getArgs()); - this.withCommand(instance.getCommand()); - this.withEnv(instance.getEnv()); - this.withEnvFrom(instance.getEnvFrom()); - this.withImage(instance.getImage()); - this.withImagePullPolicy(instance.getImagePullPolicy()); - this.withLifecycle(instance.getLifecycle()); - this.withLivenessProbe(instance.getLivenessProbe()); - this.withName(instance.getName()); - this.withPorts(instance.getPorts()); - this.withReadinessProbe(instance.getReadinessProbe()); - this.withResizePolicy(instance.getResizePolicy()); - this.withResources(instance.getResources()); - this.withRestartPolicy(instance.getRestartPolicy()); - this.withSecurityContext(instance.getSecurityContext()); - this.withStartupProbe(instance.getStartupProbe()); - this.withStdin(instance.getStdin()); - this.withStdinOnce(instance.getStdinOnce()); - this.withTargetContainerName(instance.getTargetContainerName()); - this.withTerminationMessagePath(instance.getTerminationMessagePath()); - this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); - this.withTty(instance.getTty()); - this.withVolumeDevices(instance.getVolumeDevices()); - this.withVolumeMounts(instance.getVolumeMounts()); - this.withWorkingDir(instance.getWorkingDir()); - } + this.withArgs(instance.getArgs()); + this.withCommand(instance.getCommand()); + this.withEnv(instance.getEnv()); + this.withEnvFrom(instance.getEnvFrom()); + this.withImage(instance.getImage()); + this.withImagePullPolicy(instance.getImagePullPolicy()); + this.withLifecycle(instance.getLifecycle()); + this.withLivenessProbe(instance.getLivenessProbe()); + this.withName(instance.getName()); + this.withPorts(instance.getPorts()); + this.withReadinessProbe(instance.getReadinessProbe()); + this.withResizePolicy(instance.getResizePolicy()); + this.withResources(instance.getResources()); + this.withRestartPolicy(instance.getRestartPolicy()); + this.withRestartPolicyRules(instance.getRestartPolicyRules()); + this.withSecurityContext(instance.getSecurityContext()); + this.withStartupProbe(instance.getStartupProbe()); + this.withStdin(instance.getStdin()); + this.withStdinOnce(instance.getStdinOnce()); + this.withTargetContainerName(instance.getTargetContainerName()); + this.withTerminationMessagePath(instance.getTerminationMessagePath()); + this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); + this.withTty(instance.getTty()); + this.withVolumeDevices(instance.getVolumeDevices()); + this.withVolumeMounts(instance.getVolumeMounts()); + this.withWorkingDir(instance.getWorkingDir()); + } } public A addToArgs(int index,String item) { - if (this.args == null) {this.args = new ArrayList();} + if (this.args == null) { + this.args = new ArrayList(); + } this.args.add(index, item); - return (A)this; + return (A) this; } public A setToArgs(int index,String item) { - if (this.args == null) {this.args = new ArrayList();} - this.args.set(index, item); return (A)this; + if (this.args == null) { + this.args = new ArrayList(); + } + this.args.set(index, item); + return (A) this; } - public A addToArgs(java.lang.String... items) { - if (this.args == null) {this.args = new ArrayList();} - for (String item : items) {this.args.add(item);} return (A)this; + public A addToArgs(String... items) { + if (this.args == null) { + this.args = new ArrayList(); + } + for (String item : items) { + this.args.add(item); + } + return (A) this; } public A addAllToArgs(Collection items) { - if (this.args == null) {this.args = new ArrayList();} - for (String item : items) {this.args.add(item);} return (A)this; + if (this.args == null) { + this.args = new ArrayList(); + } + for (String item : items) { + this.args.add(item); + } + return (A) this; } - public A removeFromArgs(java.lang.String... items) { - if (this.args == null) return (A)this; - for (String item : items) { this.args.remove(item);} return (A)this; + public A removeFromArgs(String... items) { + if (this.args == null) { + return (A) this; + } + for (String item : items) { + this.args.remove(item); + } + return (A) this; } public A removeAllFromArgs(Collection items) { - if (this.args == null) return (A)this; - for (String item : items) { this.args.remove(item);} return (A)this; + if (this.args == null) { + return (A) this; + } + for (String item : items) { + this.args.remove(item); + } + return (A) this; } public List getArgs() { @@ -158,7 +188,7 @@ public A withArgs(List args) { return (A) this; } - public A withArgs(java.lang.String... args) { + public A withArgs(String... args) { if (this.args != null) { this.args.clear(); _visitables.remove("args"); @@ -172,38 +202,63 @@ public A withArgs(java.lang.String... args) { } public boolean hasArgs() { - return this.args != null && !this.args.isEmpty(); + return this.args != null && !(this.args.isEmpty()); } public A addToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} + if (this.command == null) { + this.command = new ArrayList(); + } this.command.add(index, item); - return (A)this; + return (A) this; } public A setToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} - this.command.set(index, item); return (A)this; + if (this.command == null) { + this.command = new ArrayList(); + } + this.command.set(index, item); + return (A) this; } - public A addToCommand(java.lang.String... items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + public A addToCommand(String... items) { + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; } public A addAllToCommand(Collection items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; } - public A removeFromCommand(java.lang.String... items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + public A removeFromCommand(String... items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; } public A removeAllFromCommand(Collection items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; } public List getCommand() { @@ -252,7 +307,7 @@ public A withCommand(List command) { return (A) this; } - public A withCommand(java.lang.String... command) { + public A withCommand(String... command) { if (this.command != null) { this.command.clear(); _visitables.remove("command"); @@ -266,11 +321,13 @@ public A withCommand(java.lang.String... command) { } public boolean hasCommand() { - return this.command != null && !this.command.isEmpty(); + return this.command != null && !(this.command.isEmpty()); } public A addToEnv(int index,V1EnvVar item) { - if (this.env == null) {this.env = new ArrayList();} + if (this.env == null) { + this.env = new ArrayList(); + } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); @@ -279,11 +336,13 @@ public A addToEnv(int index,V1EnvVar item) { _visitables.get("env").add(builder); env.add(index, builder); } - return (A)this; + return (A) this; } public A setToEnv(int index,V1EnvVar item) { - if (this.env == null) {this.env = new ArrayList();} + if (this.env == null) { + this.env = new ArrayList(); + } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); @@ -292,41 +351,71 @@ public A setToEnv(int index,V1EnvVar item) { _visitables.get("env").add(builder); env.set(index, builder); } - return (A)this; + return (A) this; } - public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) {this.env = new ArrayList();} - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; + public A addToEnv(V1EnvVar... items) { + if (this.env == null) { + this.env = new ArrayList(); + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); + } + return (A) this; } public A addAllToEnv(Collection items) { - if (this.env == null) {this.env = new ArrayList();} - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; + if (this.env == null) { + this.env = new ArrayList(); + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); + } + return (A) this; } - public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) return (A)this; - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this; + public A removeFromEnv(V1EnvVar... items) { + if (this.env == null) { + return (A) this; + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); + } + return (A) this; } public A removeAllFromEnv(Collection items) { - if (this.env == null) return (A)this; - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this; + if (this.env == null) { + return (A) this; + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); + } + return (A) this; } public A removeMatchingFromEnv(Predicate predicate) { - if (env == null) return (A) this; - final Iterator each = env.iterator(); - final List visitables = _visitables.get("env"); + if (env == null) { + return (A) this; + } + Iterator each = env.iterator(); + List visitables = _visitables.get("env"); while (each.hasNext()) { - V1EnvVarBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EnvVarBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildEnv() { @@ -378,7 +467,7 @@ public A withEnv(List env) { return (A) this; } - public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { + public A withEnv(V1EnvVar... env) { if (this.env != null) { this.env.clear(); _visitables.remove("env"); @@ -392,7 +481,7 @@ public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { } public boolean hasEnv() { - return this.env != null && !this.env.isEmpty(); + return this.env != null && !(this.env.isEmpty()); } public EnvNested addNewEnv() { @@ -408,32 +497,45 @@ public EnvNested setNewEnvLike(int index,V1EnvVar item) { } public EnvNested editEnv(int index) { - if (env.size() <= index) throw new RuntimeException("Can't edit env. Index exceeds size."); - return setNewEnvLike(index, buildEnv(index)); + if (index <= env.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } public EnvNested editFirstEnv() { - if (env.size() == 0) throw new RuntimeException("Can't edit first env. The list is empty."); - return setNewEnvLike(0, buildEnv(0)); + if (env.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "env")); + } + return this.setNewEnvLike(0, this.buildEnv(0)); } public EnvNested editLastEnv() { int index = env.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last env. The list is empty."); - return setNewEnvLike(index, buildEnv(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } public EnvNested editMatchingEnv(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); @@ -442,11 +544,13 @@ public A addToEnvFrom(int index,V1EnvFromSource item) { _visitables.get("envFrom").add(builder); envFrom.add(index, builder); } - return (A)this; + return (A) this; } public A setToEnvFrom(int index,V1EnvFromSource item) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); @@ -455,41 +559,71 @@ public A setToEnvFrom(int index,V1EnvFromSource item) { _visitables.get("envFrom").add(builder); envFrom.set(index, builder); } - return (A)this; + return (A) this; } - public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; + public A addToEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); + } + return (A) this; } public A addAllToEnvFrom(Collection items) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); + } + return (A) this; } - public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) return (A)this; - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this; + public A removeFromEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + return (A) this; + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); + } + return (A) this; } public A removeAllFromEnvFrom(Collection items) { - if (this.envFrom == null) return (A)this; - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this; + if (this.envFrom == null) { + return (A) this; + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); + } + return (A) this; } public A removeMatchingFromEnvFrom(Predicate predicate) { - if (envFrom == null) return (A) this; - final Iterator each = envFrom.iterator(); - final List visitables = _visitables.get("envFrom"); + if (envFrom == null) { + return (A) this; + } + Iterator each = envFrom.iterator(); + List visitables = _visitables.get("envFrom"); while (each.hasNext()) { - V1EnvFromSourceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EnvFromSourceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildEnvFrom() { @@ -541,7 +675,7 @@ public A withEnvFrom(List envFrom) { return (A) this; } - public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom) { + public A withEnvFrom(V1EnvFromSource... envFrom) { if (this.envFrom != null) { this.envFrom.clear(); _visitables.remove("envFrom"); @@ -555,7 +689,7 @@ public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envF } public boolean hasEnvFrom() { - return this.envFrom != null && !this.envFrom.isEmpty(); + return this.envFrom != null && !(this.envFrom.isEmpty()); } public EnvFromNested addNewEnvFrom() { @@ -571,28 +705,39 @@ public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { } public EnvFromNested editEnvFrom(int index) { - if (envFrom.size() <= index) throw new RuntimeException("Can't edit envFrom. Index exceeds size."); - return setNewEnvFromLike(index, buildEnvFrom(index)); + if (index <= envFrom.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } public EnvFromNested editFirstEnvFrom() { - if (envFrom.size() == 0) throw new RuntimeException("Can't edit first envFrom. The list is empty."); - return setNewEnvFromLike(0, buildEnvFrom(0)); + if (envFrom.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(0, this.buildEnvFrom(0)); } public EnvFromNested editLastEnvFrom() { int index = envFrom.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last envFrom. The list is empty."); - return setNewEnvFromLike(index, buildEnvFrom(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } public EnvFromNested editMatchingEnvFrom(Predicate predicate) { int index = -1; - for (int i=0;i withNewLifecycleLike(V1Lifecycle item) { } public LifecycleNested editLifecycle() { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(null)); + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(null)); } public LifecycleNested editOrNewLifecycle() { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(new V1LifecycleBuilder().build())); + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(new V1LifecycleBuilder().build())); } public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(item)); + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(item)); } public V1Probe buildLivenessProbe() { @@ -690,15 +835,15 @@ public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { } public LivenessProbeNested editLivenessProbe() { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(null)); + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(null)); } public LivenessProbeNested editOrNewLivenessProbe() { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); } public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(item)); + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(item)); } public String getName() { @@ -715,7 +860,9 @@ public boolean hasName() { } public A addToPorts(int index,V1ContainerPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -724,11 +871,13 @@ public A addToPorts(int index,V1ContainerPort item) { _visitables.get("ports").add(builder); ports.add(index, builder); } - return (A)this; + return (A) this; } public A setToPorts(int index,V1ContainerPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -737,41 +886,71 @@ public A setToPorts(int index,V1ContainerPort item) { _visitables.get("ports").add(builder); ports.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A addToPorts(V1ContainerPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) return (A)this; - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeFromPorts(V1ContainerPort... items) { + if (this.ports == null) { + return (A) this; + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - V1ContainerPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPorts() { @@ -823,7 +1002,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) { + public A withPorts(V1ContainerPort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -837,7 +1016,7 @@ public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) } public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + return this.ports != null && !(this.ports.isEmpty()); } public PortsNested addNewPort() { @@ -853,28 +1032,39 @@ public PortsNested setNewPortLike(int index,V1ContainerPort item) { } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (index <= ports.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public PortsNested editLastPort() { int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i=0;i withNewReadinessProbeLike(V1Probe item) { } public ReadinessProbeNested editReadinessProbe() { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(null)); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(null)); } public ReadinessProbeNested editOrNewReadinessProbe() { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(new V1ProbeBuilder().build())); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(new V1ProbeBuilder().build())); } public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(item)); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(item)); } public A addToResizePolicy(int index,V1ContainerResizePolicy item) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); @@ -927,11 +1119,13 @@ public A addToResizePolicy(int index,V1ContainerResizePolicy item) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(index, builder); } - return (A)this; + return (A) this; } public A setToResizePolicy(int index,V1ContainerResizePolicy item) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); @@ -940,41 +1134,71 @@ public A setToResizePolicy(int index,V1ContainerResizePolicy item) { _visitables.get("resizePolicy").add(builder); resizePolicy.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this; + public A addToResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); + } + return (A) this; } public A addAllToResizePolicy(Collection items) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this; + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); + } + return (A) this; } - public A removeFromResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) return (A)this; - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this; + public A removeFromResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + return (A) this; + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); + } + return (A) this; } public A removeAllFromResizePolicy(Collection items) { - if (this.resizePolicy == null) return (A)this; - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this; + if (this.resizePolicy == null) { + return (A) this; + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); + } + return (A) this; } public A removeMatchingFromResizePolicy(Predicate predicate) { - if (resizePolicy == null) return (A) this; - final Iterator each = resizePolicy.iterator(); - final List visitables = _visitables.get("resizePolicy"); + if (resizePolicy == null) { + return (A) this; + } + Iterator each = resizePolicy.iterator(); + List visitables = _visitables.get("resizePolicy"); while (each.hasNext()) { - V1ContainerResizePolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerResizePolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResizePolicy() { @@ -1026,7 +1250,7 @@ public A withResizePolicy(List resizePolicy) { return (A) this; } - public A withResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... resizePolicy) { + public A withResizePolicy(V1ContainerResizePolicy... resizePolicy) { if (this.resizePolicy != null) { this.resizePolicy.clear(); _visitables.remove("resizePolicy"); @@ -1040,7 +1264,7 @@ public A withResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizeP } public boolean hasResizePolicy() { - return this.resizePolicy != null && !this.resizePolicy.isEmpty(); + return this.resizePolicy != null && !(this.resizePolicy.isEmpty()); } public ResizePolicyNested addNewResizePolicy() { @@ -1056,28 +1280,39 @@ public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizeP } public ResizePolicyNested editResizePolicy(int index) { - if (resizePolicy.size() <= index) throw new RuntimeException("Can't edit resizePolicy. Index exceeds size."); - return setNewResizePolicyLike(index, buildResizePolicy(index)); + if (index <= resizePolicy.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } public ResizePolicyNested editFirstResizePolicy() { - if (resizePolicy.size() == 0) throw new RuntimeException("Can't edit first resizePolicy. The list is empty."); - return setNewResizePolicyLike(0, buildResizePolicy(0)); + if (resizePolicy.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resizePolicy")); + } + return this.setNewResizePolicyLike(0, this.buildResizePolicy(0)); } public ResizePolicyNested editLastResizePolicy() { int index = resizePolicy.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resizePolicy. The list is empty."); - return setNewResizePolicyLike(index, buildResizePolicy(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { int index = -1; - for (int i=0;i withNewResourcesLike(V1ResourceRequirements item) { } public ResourcesNested editResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } public ResourcesNested editOrNewResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } public String getRestartPolicy() { @@ -1133,6 +1368,214 @@ public boolean hasRestartPolicy() { return this.restartPolicy != null; } + public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(index, builder); + } + return (A) this; + } + + public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.set(index, builder); + } + return (A) this; + } + + public A addToRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); + } + return (A) this; + } + + public A addAllToRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); + } + return (A) this; + } + + public A removeFromRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + return (A) this; + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); + } + return (A) this; + } + + public A removeAllFromRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + return (A) this; + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRestartPolicyRules(Predicate predicate) { + if (restartPolicyRules == null) { + return (A) this; + } + Iterator each = restartPolicyRules.iterator(); + List visitables = _visitables.get("restartPolicyRules"); + while (each.hasNext()) { + V1ContainerRestartRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildRestartPolicyRules() { + return this.restartPolicyRules != null ? build(restartPolicyRules) : null; + } + + public V1ContainerRestartRule buildRestartPolicyRule(int index) { + return this.restartPolicyRules.get(index).build(); + } + + public V1ContainerRestartRule buildFirstRestartPolicyRule() { + return this.restartPolicyRules.get(0).build(); + } + + public V1ContainerRestartRule buildLastRestartPolicyRule() { + return this.restartPolicyRules.get(restartPolicyRules.size() - 1).build(); + } + + public V1ContainerRestartRule buildMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRestartPolicyRules(List restartPolicyRules) { + if (this.restartPolicyRules != null) { + this._visitables.get("restartPolicyRules").clear(); + } + if (restartPolicyRules != null) { + this.restartPolicyRules = new ArrayList(); + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } + } else { + this.restartPolicyRules = null; + } + return (A) this; + } + + public A withRestartPolicyRules(V1ContainerRestartRule... restartPolicyRules) { + if (this.restartPolicyRules != null) { + this.restartPolicyRules.clear(); + _visitables.remove("restartPolicyRules"); + } + if (restartPolicyRules != null) { + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } + } + return (A) this; + } + + public boolean hasRestartPolicyRules() { + return this.restartPolicyRules != null && !(this.restartPolicyRules.isEmpty()); + } + + public RestartPolicyRulesNested addNewRestartPolicyRule() { + return new RestartPolicyRulesNested(-1, null); + } + + public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(-1, item); + } + + public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(index, item); + } + + public RestartPolicyRulesNested editRestartPolicyRule(int index) { + if (index <= restartPolicyRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + } + + public RestartPolicyRulesNested editFirstRestartPolicyRule() { + if (restartPolicyRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(0, this.buildRestartPolicyRule(0)); + } + + public RestartPolicyRulesNested editLastRestartPolicyRule() { + int index = restartPolicyRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + } + + public RestartPolicyRulesNested editMatchingRestartPolicyRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < restartPolicyRules.size();i++) { + if (predicate.test(restartPolicyRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + } + public V1SecurityContext buildSecurityContext() { return this.securityContext != null ? this.securityContext.build() : null; } @@ -1162,15 +1605,15 @@ public SecurityContextNested withNewSecurityContextLike(V1SecurityContext ite } public SecurityContextNested editSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(null)); + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } public SecurityContextNested editOrNewSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); } public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(item)); + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } public V1Probe buildStartupProbe() { @@ -1202,15 +1645,15 @@ public StartupProbeNested withNewStartupProbeLike(V1Probe item) { } public StartupProbeNested editStartupProbe() { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(null)); + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(null)); } public StartupProbeNested editOrNewStartupProbe() { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(new V1ProbeBuilder().build())); + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(new V1ProbeBuilder().build())); } public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(item)); + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(item)); } public Boolean getStdin() { @@ -1292,7 +1735,9 @@ public boolean hasTty() { } public A addToVolumeDevices(int index,V1VolumeDevice item) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); @@ -1301,11 +1746,13 @@ public A addToVolumeDevices(int index,V1VolumeDevice item) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(index, builder); } - return (A)this; + return (A) this; } public A setToVolumeDevices(int index,V1VolumeDevice item) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); @@ -1314,41 +1761,71 @@ public A setToVolumeDevices(int index,V1VolumeDevice item) { _visitables.get("volumeDevices").add(builder); volumeDevices.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; + public A addToVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); + } + return (A) this; } public A addAllToVolumeDevices(Collection items) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); + } + return (A) this; } - public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) return (A)this; - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this; + public A removeFromVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + return (A) this; + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); + } + return (A) this; } public A removeAllFromVolumeDevices(Collection items) { - if (this.volumeDevices == null) return (A)this; - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this; + if (this.volumeDevices == null) { + return (A) this; + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); + } + return (A) this; } public A removeMatchingFromVolumeDevices(Predicate predicate) { - if (volumeDevices == null) return (A) this; - final Iterator each = volumeDevices.iterator(); - final List visitables = _visitables.get("volumeDevices"); + if (volumeDevices == null) { + return (A) this; + } + Iterator each = volumeDevices.iterator(); + List visitables = _visitables.get("volumeDevices"); while (each.hasNext()) { - V1VolumeDeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VolumeDeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVolumeDevices() { @@ -1400,7 +1877,7 @@ public A withVolumeDevices(List volumeDevices) { return (A) this; } - public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices) { + public A withVolumeDevices(V1VolumeDevice... volumeDevices) { if (this.volumeDevices != null) { this.volumeDevices.clear(); _visitables.remove("volumeDevices"); @@ -1414,7 +1891,7 @@ public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... } public boolean hasVolumeDevices() { - return this.volumeDevices != null && !this.volumeDevices.isEmpty(); + return this.volumeDevices != null && !(this.volumeDevices.isEmpty()); } public VolumeDevicesNested addNewVolumeDevice() { @@ -1430,32 +1907,45 @@ public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice it } public VolumeDevicesNested editVolumeDevice(int index) { - if (volumeDevices.size() <= index) throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); - return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); + if (index <= volumeDevices.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } public VolumeDevicesNested editFirstVolumeDevice() { - if (volumeDevices.size() == 0) throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); - return setNewVolumeDeviceLike(0, buildVolumeDevice(0)); + if (volumeDevices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(0, this.buildVolumeDevice(0)); } public VolumeDevicesNested editLastVolumeDevice() { int index = volumeDevices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumeDevices. The list is empty."); - return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } public VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); @@ -1464,11 +1954,13 @@ public A addToVolumeMounts(int index,V1VolumeMount item) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(index, builder); } - return (A)this; + return (A) this; } public A setToVolumeMounts(int index,V1VolumeMount item) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); @@ -1477,41 +1969,71 @@ public A setToVolumeMounts(int index,V1VolumeMount item) { _visitables.get("volumeMounts").add(builder); volumeMounts.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + public A addToVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); + } + return (A) this; } public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); + } + return (A) this; } - public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + public A removeFromVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; } public A removeAllFromVolumeMounts(Collection items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; } public A removeMatchingFromVolumeMounts(Predicate predicate) { - if (volumeMounts == null) return (A) this; - final Iterator each = volumeMounts.iterator(); - final List visitables = _visitables.get("volumeMounts"); + if (volumeMounts == null) { + return (A) this; + } + Iterator each = volumeMounts.iterator(); + List visitables = _visitables.get("volumeMounts"); while (each.hasNext()) { - V1VolumeMountBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VolumeMountBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVolumeMounts() { @@ -1563,7 +2085,7 @@ public A withVolumeMounts(List volumeMounts) { return (A) this; } - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts) { + public A withVolumeMounts(V1VolumeMount... volumeMounts) { if (this.volumeMounts != null) { this.volumeMounts.clear(); _visitables.remove("volumeMounts"); @@ -1577,7 +2099,7 @@ public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... v } public boolean hasVolumeMounts() { - return this.volumeMounts != null && !this.volumeMounts.isEmpty(); + return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); } public VolumeMountsNested addNewVolumeMount() { @@ -1593,28 +2115,39 @@ public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount item) } public VolumeMountsNested editVolumeMount(int index) { - if (volumeMounts.size() <= index) throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); - return setNewVolumeMountLike(index, buildVolumeMount(index)); + if (index <= volumeMounts.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } public VolumeMountsNested editFirstVolumeMount() { - if (volumeMounts.size() == 0) throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); - return setNewVolumeMountLike(0, buildVolumeMount(0)); + if (volumeMounts.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); } public VolumeMountsNested editLastVolumeMount() { int index = volumeMounts.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumeMounts. The list is empty."); - return setNewVolumeMountLike(index, buildVolumeMount(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { int index = -1; - for (int i=0;i extends V1EnvVarFluent> implements Nested int index; public N and() { - return (N) V1EphemeralContainerFluent.this.setToEnv(index,builder.build()); + return (N) V1EphemeralContainerFluent.this.setToEnv(index, builder.build()); } public N endEnv() { @@ -1737,7 +2433,7 @@ public class EnvFromNested extends V1EnvFromSourceFluent> im int index; public N and() { - return (N) V1EphemeralContainerFluent.this.setToEnvFrom(index,builder.build()); + return (N) V1EphemeralContainerFluent.this.setToEnvFrom(index, builder.build()); } public N endEnvFrom() { @@ -1787,7 +2483,7 @@ public class PortsNested extends V1ContainerPortFluent> implem int index; public N and() { - return (N) V1EphemeralContainerFluent.this.setToPorts(index,builder.build()); + return (N) V1EphemeralContainerFluent.this.setToPorts(index, builder.build()); } public N endPort() { @@ -1821,7 +2517,7 @@ public class ResizePolicyNested extends V1ContainerResizePolicyFluent extends V1ContainerRestartRuleFluent> implements Nested{ + RestartPolicyRulesNested(int index,V1ContainerRestartRule item) { + this.index = index; + this.builder = new V1ContainerRestartRuleBuilder(this, item); + } + V1ContainerRestartRuleBuilder builder; + int index; + + public N and() { + return (N) V1EphemeralContainerFluent.this.setToRestartPolicyRules(index, builder.build()); + } + + public N endRestartPolicyRule() { + return and(); + } + + } public class SecurityContextNested extends V1SecurityContextFluent> implements Nested{ SecurityContextNested(V1SecurityContext item) { @@ -1887,7 +2601,7 @@ public class VolumeDevicesNested extends V1VolumeDeviceFluent extends V1VolumeMountFluent implements VisitableBuilder{ public V1EphemeralVolumeSourceBuilder() { this(new V1EphemeralVolumeSource()); 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 96a46975bb..a766cbec04 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EphemeralVolumeSourceFluent> extends BaseFluent{ +public class V1EphemeralVolumeSourceFluent> extends BaseFluent{ public V1EphemeralVolumeSourceFluent() { } @@ -20,10 +23,10 @@ public V1EphemeralVolumeSourceFluent(V1EphemeralVolumeSource instance) { private V1PersistentVolumeClaimTemplateBuilder volumeClaimTemplate; protected void copyInstance(V1EphemeralVolumeSource instance) { - instance = (instance != null ? instance : new V1EphemeralVolumeSource()); + instance = instance != null ? instance : new V1EphemeralVolumeSource(); if (instance != null) { - this.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); - } + this.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); + } } public V1PersistentVolumeClaimTemplate buildVolumeClaimTemplate() { @@ -55,34 +58,45 @@ public VolumeClaimTemplateNested withNewVolumeClaimTemplateLike(V1PersistentV } public VolumeClaimTemplateNested editVolumeClaimTemplate() { - return withNewVolumeClaimTemplateLike(java.util.Optional.ofNullable(buildVolumeClaimTemplate()).orElse(null)); + return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(null)); } public VolumeClaimTemplateNested editOrNewVolumeClaimTemplate() { - return withNewVolumeClaimTemplateLike(java.util.Optional.ofNullable(buildVolumeClaimTemplate()).orElse(new V1PersistentVolumeClaimTemplateBuilder().build())); + return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(new V1PersistentVolumeClaimTemplateBuilder().build())); } public VolumeClaimTemplateNested editOrNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { - return withNewVolumeClaimTemplateLike(java.util.Optional.ofNullable(buildVolumeClaimTemplate()).orElse(item)); + return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EphemeralVolumeSourceFluent that = (V1EphemeralVolumeSourceFluent) o; - if (!java.util.Objects.equals(volumeClaimTemplate, that.volumeClaimTemplate)) return false; + if (!(Objects.equals(volumeClaimTemplate, that.volumeClaimTemplate))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(volumeClaimTemplate, super.hashCode()); + return Objects.hash(volumeClaimTemplate); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (volumeClaimTemplate != null) { sb.append("volumeClaimTemplate:"); sb.append(volumeClaimTemplate); } + if (!(volumeClaimTemplate == null)) { + sb.append("volumeClaimTemplate:"); + sb.append(volumeClaimTemplate); + } sb.append("}"); return sb.toString(); } 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 de2d091a4f..660e4035ea 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EventSourceBuilder extends V1EventSourceFluent implements VisitableBuilder{ public V1EventSourceBuilder() { this(new V1EventSource()); 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 8e38263dc6..d22e3cafb6 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1EventSourceFluent> extends BaseFluent{ +public class V1EventSourceFluent> extends BaseFluent{ public V1EventSourceFluent() { } @@ -20,11 +22,11 @@ public V1EventSourceFluent(V1EventSource instance) { private String host; protected void copyInstance(V1EventSource instance) { - instance = (instance != null ? instance : new V1EventSource()); + instance = instance != null ? instance : new V1EventSource(); if (instance != null) { - this.withComponent(instance.getComponent()); - this.withHost(instance.getHost()); - } + this.withComponent(instance.getComponent()); + this.withHost(instance.getHost()); + } } public String getComponent() { @@ -54,24 +56,41 @@ public boolean hasHost() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EventSourceFluent that = (V1EventSourceFluent) o; - if (!java.util.Objects.equals(component, that.component)) return false; - if (!java.util.Objects.equals(host, that.host)) return false; + if (!(Objects.equals(component, that.component))) { + return false; + } + if (!(Objects.equals(host, that.host))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(component, host, super.hashCode()); + return Objects.hash(component, host); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (component != null) { sb.append("component:"); sb.append(component + ","); } - if (host != null) { sb.append("host:"); sb.append(host); } + if (!(component == null)) { + sb.append("component:"); + sb.append(component); + sb.append(","); + } + if (!(host == null)) { + sb.append("host:"); + sb.append(host); + } sb.append("}"); return sb.toString(); } 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 904eeb8e36..7b107d8f90 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EvictionBuilder extends V1EvictionFluent implements VisitableBuilder{ public V1EvictionBuilder() { this(new V1Eviction()); 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 540f08618c..1316543562 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EvictionFluent> extends BaseFluent{ +public class V1EvictionFluent> extends BaseFluent{ public V1EvictionFluent() { } @@ -23,13 +26,13 @@ public V1EvictionFluent(V1Eviction instance) { private V1ObjectMetaBuilder metadata; protected void copyInstance(V1Eviction instance) { - instance = (instance != null ? instance : new V1Eviction()); + instance = instance != null ? instance : new V1Eviction(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDeleteOptions(instance.getDeleteOptions()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withDeleteOptions(instance.getDeleteOptions()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -74,15 +77,15 @@ public DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item) { } public DeleteOptionsNested editDeleteOptions() { - return withNewDeleteOptionsLike(java.util.Optional.ofNullable(buildDeleteOptions()).orElse(null)); + return this.withNewDeleteOptionsLike(Optional.ofNullable(this.buildDeleteOptions()).orElse(null)); } public DeleteOptionsNested editOrNewDeleteOptions() { - return withNewDeleteOptionsLike(java.util.Optional.ofNullable(buildDeleteOptions()).orElse(new V1DeleteOptionsBuilder().build())); + return this.withNewDeleteOptionsLike(Optional.ofNullable(this.buildDeleteOptions()).orElse(new V1DeleteOptionsBuilder().build())); } public DeleteOptionsNested editOrNewDeleteOptionsLike(V1DeleteOptions item) { - return withNewDeleteOptionsLike(java.util.Optional.ofNullable(buildDeleteOptions()).orElse(item)); + return this.withNewDeleteOptionsLike(Optional.ofNullable(this.buildDeleteOptions()).orElse(item)); } public String getKind() { @@ -127,40 +130,69 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EvictionFluent that = (V1EvictionFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(deleteOptions, that.deleteOptions)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(deleteOptions, that.deleteOptions))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, deleteOptions, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, deleteOptions, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (deleteOptions != null) { sb.append("deleteOptions:"); sb.append(deleteOptions + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(deleteOptions == null)) { + sb.append("deleteOptions:"); + sb.append(deleteOptions); + 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(); } 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 new file mode 100644 index 0000000000..eea8876d42 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ExactDeviceRequestBuilder extends V1ExactDeviceRequestFluent implements VisitableBuilder{ + public V1ExactDeviceRequestBuilder() { + this(new V1ExactDeviceRequest()); + } + + public V1ExactDeviceRequestBuilder(V1ExactDeviceRequestFluent fluent) { + this(fluent, new V1ExactDeviceRequest()); + } + + public V1ExactDeviceRequestBuilder(V1ExactDeviceRequestFluent fluent,V1ExactDeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ExactDeviceRequestBuilder(V1ExactDeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ExactDeviceRequestFluent fluent; + + public V1ExactDeviceRequest build() { + V1ExactDeviceRequest buildable = new V1ExactDeviceRequest(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); + buildable.setCount(fluent.getCount()); + buildable.setDeviceClassName(fluent.getDeviceClassName()); + buildable.setSelectors(fluent.buildSelectors()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java new file mode 100644 index 0000000000..466c178b24 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java @@ -0,0 +1,696 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Optional; +import java.lang.Long; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ExactDeviceRequestFluent> extends BaseFluent{ + public V1ExactDeviceRequestFluent() { + } + + public V1ExactDeviceRequestFluent(V1ExactDeviceRequest instance) { + this.copyInstance(instance); + } + private Boolean adminAccess; + private String allocationMode; + private V1CapacityRequirementsBuilder capacity; + private Long count; + private String deviceClassName; + private ArrayList selectors; + private ArrayList tolerations; + + protected void copyInstance(V1ExactDeviceRequest instance) { + instance = instance != null ? instance : new V1ExactDeviceRequest(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public V1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public A withCapacity(V1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { + return new CapacityNested(item); + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + + public Long getCount() { + return this.count; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public boolean hasCount() { + return this.count != null; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public A addToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); + } + return (A) this; + } + + public A setToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A) this; + } + + public A addToSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public V1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public SelectorsNested editSelector(int index) { + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public A addToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A) this; + } + + public A setToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A) this; + } + + public A addToTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + public V1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public V1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public TolerationsNested editToleration(int index) { + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(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; + } + V1ExactDeviceRequestFluent that = (V1ExactDeviceRequestFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(adminAccess == null)) { + sb.append("adminAccess:"); + sb.append(adminAccess); + sb.append(","); + } + if (!(allocationMode == null)) { + sb.append("allocationMode:"); + sb.append(allocationMode); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(deviceClassName == null)) { + sb.append("deviceClassName:"); + sb.append(deviceClassName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdminAccess() { + return withAdminAccess(true); + } + public class CapacityNested extends V1CapacityRequirementsFluent> implements Nested{ + CapacityNested(V1CapacityRequirements item) { + this.builder = new V1CapacityRequirementsBuilder(this, item); + } + V1CapacityRequirementsBuilder builder; + + public N and() { + return (N) V1ExactDeviceRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + + } + public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ + SelectorsNested(int index,V1DeviceSelector item) { + this.index = index; + this.builder = new V1DeviceSelectorBuilder(this, item); + } + V1DeviceSelectorBuilder builder; + int index; + + public N and() { + return (N) V1ExactDeviceRequestFluent.this.setToSelectors(index, builder.build()); + } + + public N endSelector() { + return and(); + } + + + } + public class TolerationsNested extends V1DeviceTolerationFluent> implements Nested{ + TolerationsNested(int index,V1DeviceToleration item) { + this.index = index; + this.builder = new V1DeviceTolerationBuilder(this, item); + } + V1DeviceTolerationBuilder builder; + int index; + + public N and() { + return (N) V1ExactDeviceRequestFluent.this.setToTolerations(index, builder.build()); + } + + public N endToleration() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java index ed5d3da596..ecadaf6b73 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ExecActionBuilder extends V1ExecActionFluent implements VisitableBuilder{ public V1ExecActionBuilder() { this(new V1ExecAction()); 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 98a973a259..b02400ecb4 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ExecActionFluent> extends BaseFluent{ +public class V1ExecActionFluent> extends BaseFluent{ public V1ExecActionFluent() { } @@ -23,41 +25,66 @@ public V1ExecActionFluent(V1ExecAction instance) { private List command; protected void copyInstance(V1ExecAction instance) { - instance = (instance != null ? instance : new V1ExecAction()); + instance = instance != null ? instance : new V1ExecAction(); if (instance != null) { - this.withCommand(instance.getCommand()); - } + this.withCommand(instance.getCommand()); + } } public A addToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} + if (this.command == null) { + this.command = new ArrayList(); + } this.command.add(index, item); - return (A)this; + return (A) this; } public A setToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} - this.command.set(index, item); return (A)this; + if (this.command == null) { + this.command = new ArrayList(); + } + this.command.set(index, item); + return (A) this; } - public A addToCommand(java.lang.String... items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + public A addToCommand(String... items) { + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; } public A addAllToCommand(Collection items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; } - public A removeFromCommand(java.lang.String... items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + public A removeFromCommand(String... items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; } public A removeAllFromCommand(Collection items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; } public List getCommand() { @@ -106,7 +133,7 @@ public A withCommand(List command) { return (A) this; } - public A withCommand(java.lang.String... command) { + public A withCommand(String... command) { if (this.command != null) { this.command.clear(); _visitables.remove("command"); @@ -120,26 +147,37 @@ public A withCommand(java.lang.String... command) { } public boolean hasCommand() { - return this.command != null && !this.command.isEmpty(); + return this.command != null && !(this.command.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ExecActionFluent that = (V1ExecActionFluent) o; - if (!java.util.Objects.equals(command, that.command)) return false; + if (!(Objects.equals(command, that.command))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(command, super.hashCode()); + return Objects.hash(command); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (command != null && !command.isEmpty()) { sb.append("command:"); sb.append(command); } + if (!(command == null) && !(command.isEmpty())) { + sb.append("command:"); + sb.append(command); + } sb.append("}"); return sb.toString(); } 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 8d3e75279a..02ea1c0f5f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ExemptPriorityLevelConfigurationBuilder extends V1ExemptPriorityLevelConfigurationFluent implements VisitableBuilder{ public V1ExemptPriorityLevelConfigurationBuilder() { this(new V1ExemptPriorityLevelConfiguration()); 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 ca4c09bc93..1395cc3524 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ +public class V1ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ public V1ExemptPriorityLevelConfigurationFluent() { } @@ -21,11 +23,11 @@ public V1ExemptPriorityLevelConfigurationFluent(V1ExemptPriorityLevelConfigurati private Integer nominalConcurrencyShares; protected void copyInstance(V1ExemptPriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1ExemptPriorityLevelConfiguration()); + instance = instance != null ? instance : new V1ExemptPriorityLevelConfiguration(); if (instance != null) { - this.withLendablePercent(instance.getLendablePercent()); - this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); - } + this.withLendablePercent(instance.getLendablePercent()); + this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); + } } public Integer getLendablePercent() { @@ -55,24 +57,41 @@ public boolean hasNominalConcurrencyShares() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ExemptPriorityLevelConfigurationFluent that = (V1ExemptPriorityLevelConfigurationFluent) o; - if (!java.util.Objects.equals(lendablePercent, that.lendablePercent)) return false; - if (!java.util.Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares)) return false; + if (!(Objects.equals(lendablePercent, that.lendablePercent))) { + return false; + } + if (!(Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lendablePercent, nominalConcurrencyShares, super.hashCode()); + return Objects.hash(lendablePercent, nominalConcurrencyShares); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lendablePercent != null) { sb.append("lendablePercent:"); sb.append(lendablePercent + ","); } - if (nominalConcurrencyShares != null) { sb.append("nominalConcurrencyShares:"); sb.append(nominalConcurrencyShares); } + if (!(lendablePercent == null)) { + sb.append("lendablePercent:"); + sb.append(lendablePercent); + sb.append(","); + } + if (!(nominalConcurrencyShares == null)) { + sb.append("nominalConcurrencyShares:"); + sb.append(nominalConcurrencyShares); + } sb.append("}"); return sb.toString(); } 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 9c9c2f4421..39283b1f81 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ExpressionWarningBuilder extends V1ExpressionWarningFluent implements VisitableBuilder{ public V1ExpressionWarningBuilder() { this(new V1ExpressionWarning()); 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 b97d8e8413..3cf360d5e8 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ExpressionWarningFluent> extends BaseFluent{ +public class V1ExpressionWarningFluent> extends BaseFluent{ public V1ExpressionWarningFluent() { } @@ -20,11 +22,11 @@ public V1ExpressionWarningFluent(V1ExpressionWarning instance) { private String warning; protected void copyInstance(V1ExpressionWarning instance) { - instance = (instance != null ? instance : new V1ExpressionWarning()); + instance = instance != null ? instance : new V1ExpressionWarning(); if (instance != null) { - this.withFieldRef(instance.getFieldRef()); - this.withWarning(instance.getWarning()); - } + this.withFieldRef(instance.getFieldRef()); + this.withWarning(instance.getWarning()); + } } public String getFieldRef() { @@ -54,24 +56,41 @@ public boolean hasWarning() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ExpressionWarningFluent that = (V1ExpressionWarningFluent) o; - if (!java.util.Objects.equals(fieldRef, that.fieldRef)) return false; - if (!java.util.Objects.equals(warning, that.warning)) return false; + if (!(Objects.equals(fieldRef, that.fieldRef))) { + return false; + } + if (!(Objects.equals(warning, that.warning))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fieldRef, warning, super.hashCode()); + return Objects.hash(fieldRef, warning); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } - if (warning != null) { sb.append("warning:"); sb.append(warning); } + if (!(fieldRef == null)) { + sb.append("fieldRef:"); + sb.append(fieldRef); + sb.append(","); + } + if (!(warning == null)) { + sb.append("warning:"); + sb.append(warning); + } sb.append("}"); return sb.toString(); } 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 af775529cd..93a1373d0e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ExternalDocumentationBuilder extends V1ExternalDocumentationFluent implements VisitableBuilder{ public V1ExternalDocumentationBuilder() { this(new V1ExternalDocumentation()); 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 b89eb8b1e5..f59e1eac93 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ExternalDocumentationFluent> extends BaseFluent{ +public class V1ExternalDocumentationFluent> extends BaseFluent{ public V1ExternalDocumentationFluent() { } @@ -20,11 +22,11 @@ public V1ExternalDocumentationFluent(V1ExternalDocumentation instance) { private String url; protected void copyInstance(V1ExternalDocumentation instance) { - instance = (instance != null ? instance : new V1ExternalDocumentation()); + instance = instance != null ? instance : new V1ExternalDocumentation(); if (instance != null) { - this.withDescription(instance.getDescription()); - this.withUrl(instance.getUrl()); - } + this.withDescription(instance.getDescription()); + this.withUrl(instance.getUrl()); + } } public String getDescription() { @@ -54,24 +56,41 @@ public boolean hasUrl() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ExternalDocumentationFluent that = (V1ExternalDocumentationFluent) o; - if (!java.util.Objects.equals(description, that.description)) return false; - if (!java.util.Objects.equals(url, that.url)) return false; + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(url, that.url))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(description, url, super.hashCode()); + return Objects.hash(description, url); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (description != null) { sb.append("description:"); sb.append(description + ","); } - if (url != null) { sb.append("url:"); sb.append(url); } + if (!(description == null)) { + sb.append("description:"); + sb.append(description); + sb.append(","); + } + if (!(url == null)) { + sb.append("url:"); + sb.append(url); + } sb.append("}"); return sb.toString(); } 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 9bd33c6030..ffb072a143 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FCVolumeSourceBuilder extends V1FCVolumeSourceFluent implements VisitableBuilder{ public V1FCVolumeSourceBuilder() { this(new V1FCVolumeSource()); 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 a256be72bb..e63c9276c6 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 @@ -1,21 +1,23 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; -import java.lang.String; import java.lang.Boolean; -import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FCVolumeSourceFluent> extends BaseFluent{ +public class V1FCVolumeSourceFluent> extends BaseFluent{ public V1FCVolumeSourceFluent() { } @@ -29,14 +31,14 @@ public V1FCVolumeSourceFluent(V1FCVolumeSource instance) { private List wwids; protected void copyInstance(V1FCVolumeSource instance) { - instance = (instance != null ? instance : new V1FCVolumeSource()); + instance = instance != null ? instance : new V1FCVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withLun(instance.getLun()); - this.withReadOnly(instance.getReadOnly()); - this.withTargetWWNs(instance.getTargetWWNs()); - this.withWwids(instance.getWwids()); - } + this.withFsType(instance.getFsType()); + this.withLun(instance.getLun()); + this.withReadOnly(instance.getReadOnly()); + this.withTargetWWNs(instance.getTargetWWNs()); + this.withWwids(instance.getWwids()); + } } public String getFsType() { @@ -79,34 +81,59 @@ public boolean hasReadOnly() { } public A addToTargetWWNs(int index,String item) { - if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} + if (this.targetWWNs == null) { + this.targetWWNs = new ArrayList(); + } this.targetWWNs.add(index, item); - return (A)this; + return (A) this; } public A setToTargetWWNs(int index,String item) { - if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} - this.targetWWNs.set(index, item); return (A)this; + if (this.targetWWNs == null) { + this.targetWWNs = new ArrayList(); + } + this.targetWWNs.set(index, item); + return (A) this; } - public A addToTargetWWNs(java.lang.String... items) { - if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} - for (String item : items) {this.targetWWNs.add(item);} return (A)this; + public A addToTargetWWNs(String... items) { + if (this.targetWWNs == null) { + this.targetWWNs = new ArrayList(); + } + for (String item : items) { + this.targetWWNs.add(item); + } + return (A) this; } public A addAllToTargetWWNs(Collection items) { - if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} - for (String item : items) {this.targetWWNs.add(item);} return (A)this; + if (this.targetWWNs == null) { + this.targetWWNs = new ArrayList(); + } + for (String item : items) { + this.targetWWNs.add(item); + } + return (A) this; } - public A removeFromTargetWWNs(java.lang.String... items) { - if (this.targetWWNs == null) return (A)this; - for (String item : items) { this.targetWWNs.remove(item);} return (A)this; + public A removeFromTargetWWNs(String... items) { + if (this.targetWWNs == null) { + return (A) this; + } + for (String item : items) { + this.targetWWNs.remove(item); + } + return (A) this; } public A removeAllFromTargetWWNs(Collection items) { - if (this.targetWWNs == null) return (A)this; - for (String item : items) { this.targetWWNs.remove(item);} return (A)this; + if (this.targetWWNs == null) { + return (A) this; + } + for (String item : items) { + this.targetWWNs.remove(item); + } + return (A) this; } public List getTargetWWNs() { @@ -155,7 +182,7 @@ public A withTargetWWNs(List targetWWNs) { return (A) this; } - public A withTargetWWNs(java.lang.String... targetWWNs) { + public A withTargetWWNs(String... targetWWNs) { if (this.targetWWNs != null) { this.targetWWNs.clear(); _visitables.remove("targetWWNs"); @@ -169,38 +196,63 @@ public A withTargetWWNs(java.lang.String... targetWWNs) { } public boolean hasTargetWWNs() { - return this.targetWWNs != null && !this.targetWWNs.isEmpty(); + return this.targetWWNs != null && !(this.targetWWNs.isEmpty()); } public A addToWwids(int index,String item) { - if (this.wwids == null) {this.wwids = new ArrayList();} + if (this.wwids == null) { + this.wwids = new ArrayList(); + } this.wwids.add(index, item); - return (A)this; + return (A) this; } public A setToWwids(int index,String item) { - if (this.wwids == null) {this.wwids = new ArrayList();} - this.wwids.set(index, item); return (A)this; + if (this.wwids == null) { + this.wwids = new ArrayList(); + } + this.wwids.set(index, item); + return (A) this; } - public A addToWwids(java.lang.String... items) { - if (this.wwids == null) {this.wwids = new ArrayList();} - for (String item : items) {this.wwids.add(item);} return (A)this; + public A addToWwids(String... items) { + if (this.wwids == null) { + this.wwids = new ArrayList(); + } + for (String item : items) { + this.wwids.add(item); + } + return (A) this; } public A addAllToWwids(Collection items) { - if (this.wwids == null) {this.wwids = new ArrayList();} - for (String item : items) {this.wwids.add(item);} return (A)this; + if (this.wwids == null) { + this.wwids = new ArrayList(); + } + for (String item : items) { + this.wwids.add(item); + } + return (A) this; } - public A removeFromWwids(java.lang.String... items) { - if (this.wwids == null) return (A)this; - for (String item : items) { this.wwids.remove(item);} return (A)this; + public A removeFromWwids(String... items) { + if (this.wwids == null) { + return (A) this; + } + for (String item : items) { + this.wwids.remove(item); + } + return (A) this; } public A removeAllFromWwids(Collection items) { - if (this.wwids == null) return (A)this; - for (String item : items) { this.wwids.remove(item);} return (A)this; + if (this.wwids == null) { + return (A) this; + } + for (String item : items) { + this.wwids.remove(item); + } + return (A) this; } public List getWwids() { @@ -249,7 +301,7 @@ public A withWwids(List wwids) { return (A) this; } - public A withWwids(java.lang.String... wwids) { + public A withWwids(String... wwids) { if (this.wwids != null) { this.wwids.clear(); _visitables.remove("wwids"); @@ -263,34 +315,69 @@ public A withWwids(java.lang.String... wwids) { } public boolean hasWwids() { - return this.wwids != null && !this.wwids.isEmpty(); + return this.wwids != null && !(this.wwids.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1FCVolumeSourceFluent that = (V1FCVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(lun, that.lun)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(targetWWNs, that.targetWWNs)) return false; - if (!java.util.Objects.equals(wwids, that.wwids)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(lun, that.lun))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(targetWWNs, that.targetWWNs))) { + return false; + } + if (!(Objects.equals(wwids, that.wwids))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, lun, readOnly, targetWWNs, wwids, super.hashCode()); + return Objects.hash(fsType, lun, readOnly, targetWWNs, wwids); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (lun != null) { sb.append("lun:"); sb.append(lun + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (targetWWNs != null && !targetWWNs.isEmpty()) { sb.append("targetWWNs:"); sb.append(targetWWNs + ","); } - if (wwids != null && !wwids.isEmpty()) { sb.append("wwids:"); sb.append(wwids); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(lun == null)) { + sb.append("lun:"); + sb.append(lun); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(targetWWNs == null) && !(targetWWNs.isEmpty())) { + sb.append("targetWWNs:"); + sb.append(targetWWNs); + sb.append(","); + } + if (!(wwids == null) && !(wwids.isEmpty())) { + sb.append("wwids:"); + sb.append(wwids); + } sb.append("}"); return sb.toString(); } 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 52d95047e9..0e76bb74e9 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FieldSelectorAttributesBuilder extends V1FieldSelectorAttributesFluent implements VisitableBuilder{ public V1FieldSelectorAttributesBuilder() { this(new V1FieldSelectorAttributes()); 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 4e22189422..1341caf727 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1FieldSelectorAttributesFluent> extends BaseFluent{ +public class V1FieldSelectorAttributesFluent> extends BaseFluent{ public V1FieldSelectorAttributesFluent() { } @@ -27,11 +29,11 @@ public V1FieldSelectorAttributesFluent(V1FieldSelectorAttributes instance) { private ArrayList requirements; protected void copyInstance(V1FieldSelectorAttributes instance) { - instance = (instance != null ? instance : new V1FieldSelectorAttributes()); + instance = instance != null ? instance : new V1FieldSelectorAttributes(); if (instance != null) { - this.withRawSelector(instance.getRawSelector()); - this.withRequirements(instance.getRequirements()); - } + this.withRawSelector(instance.getRawSelector()); + this.withRequirements(instance.getRequirements()); + } } public String getRawSelector() { @@ -48,7 +50,9 @@ public boolean hasRawSelector() { } public A addToRequirements(int index,V1FieldSelectorRequirement item) { - if (this.requirements == null) {this.requirements = new ArrayList();} + if (this.requirements == null) { + this.requirements = new ArrayList(); + } V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); @@ -57,11 +61,13 @@ public A addToRequirements(int index,V1FieldSelectorRequirement item) { _visitables.get("requirements").add(builder); requirements.add(index, builder); } - return (A)this; + return (A) this; } public A setToRequirements(int index,V1FieldSelectorRequirement item) { - if (this.requirements == null) {this.requirements = new ArrayList();} + if (this.requirements == null) { + this.requirements = new ArrayList(); + } V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); @@ -70,41 +76,71 @@ public A setToRequirements(int index,V1FieldSelectorRequirement item) { _visitables.get("requirements").add(builder); requirements.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRequirements(io.kubernetes.client.openapi.models.V1FieldSelectorRequirement... items) { - if (this.requirements == null) {this.requirements = new ArrayList();} - for (V1FieldSelectorRequirement item : items) {V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item);_visitables.get("requirements").add(builder);this.requirements.add(builder);} return (A)this; + public A addToRequirements(V1FieldSelectorRequirement... items) { + if (this.requirements == null) { + this.requirements = new ArrayList(); + } + for (V1FieldSelectorRequirement item : items) { + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + _visitables.get("requirements").add(builder); + this.requirements.add(builder); + } + return (A) this; } public A addAllToRequirements(Collection items) { - if (this.requirements == null) {this.requirements = new ArrayList();} - for (V1FieldSelectorRequirement item : items) {V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item);_visitables.get("requirements").add(builder);this.requirements.add(builder);} return (A)this; + if (this.requirements == null) { + this.requirements = new ArrayList(); + } + for (V1FieldSelectorRequirement item : items) { + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + _visitables.get("requirements").add(builder); + this.requirements.add(builder); + } + return (A) this; } - public A removeFromRequirements(io.kubernetes.client.openapi.models.V1FieldSelectorRequirement... items) { - if (this.requirements == null) return (A)this; - for (V1FieldSelectorRequirement item : items) {V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item);_visitables.get("requirements").remove(builder); this.requirements.remove(builder);} return (A)this; + public A removeFromRequirements(V1FieldSelectorRequirement... items) { + if (this.requirements == null) { + return (A) this; + } + for (V1FieldSelectorRequirement item : items) { + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + _visitables.get("requirements").remove(builder); + this.requirements.remove(builder); + } + return (A) this; } public A removeAllFromRequirements(Collection items) { - if (this.requirements == null) return (A)this; - for (V1FieldSelectorRequirement item : items) {V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item);_visitables.get("requirements").remove(builder); this.requirements.remove(builder);} return (A)this; + if (this.requirements == null) { + return (A) this; + } + for (V1FieldSelectorRequirement item : items) { + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + _visitables.get("requirements").remove(builder); + this.requirements.remove(builder); + } + return (A) this; } public A removeMatchingFromRequirements(Predicate predicate) { - if (requirements == null) return (A) this; - final Iterator each = requirements.iterator(); - final List visitables = _visitables.get("requirements"); + if (requirements == null) { + return (A) this; + } + Iterator each = requirements.iterator(); + List visitables = _visitables.get("requirements"); while (each.hasNext()) { - V1FieldSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1FieldSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRequirements() { @@ -156,7 +192,7 @@ public A withRequirements(List requirements) { return (A) this; } - public A withRequirements(io.kubernetes.client.openapi.models.V1FieldSelectorRequirement... requirements) { + public A withRequirements(V1FieldSelectorRequirement... requirements) { if (this.requirements != null) { this.requirements.clear(); _visitables.remove("requirements"); @@ -170,7 +206,7 @@ public A withRequirements(io.kubernetes.client.openapi.models.V1FieldSelectorReq } public boolean hasRequirements() { - return this.requirements != null && !this.requirements.isEmpty(); + return this.requirements != null && !(this.requirements.isEmpty()); } public RequirementsNested addNewRequirement() { @@ -186,49 +222,77 @@ public RequirementsNested setNewRequirementLike(int index,V1FieldSelectorRequ } public RequirementsNested editRequirement(int index) { - if (requirements.size() <= index) throw new RuntimeException("Can't edit requirements. Index exceeds size."); - return setNewRequirementLike(index, buildRequirement(index)); + if (index <= requirements.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); } public RequirementsNested editFirstRequirement() { - if (requirements.size() == 0) throw new RuntimeException("Can't edit first requirements. The list is empty."); - return setNewRequirementLike(0, buildRequirement(0)); + if (requirements.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requirements")); + } + return this.setNewRequirementLike(0, this.buildRequirement(0)); } public RequirementsNested editLastRequirement() { int index = requirements.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last requirements. The list is empty."); - return setNewRequirementLike(index, buildRequirement(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); } public RequirementsNested editMatchingRequirement(Predicate predicate) { int index = -1; - for (int i=0;i extends V1FieldSelectorRequirementFluent implements VisitableBuilder{ public V1FieldSelectorRequirementBuilder() { this(new V1FieldSelectorRequirement()); 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 7bc5adc71c..e51fa978e4 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1FieldSelectorRequirementFluent> extends BaseFluent{ +public class V1FieldSelectorRequirementFluent> extends BaseFluent{ public V1FieldSelectorRequirementFluent() { } @@ -25,12 +27,12 @@ public V1FieldSelectorRequirementFluent(V1FieldSelectorRequirement instance) { private List values; protected void copyInstance(V1FieldSelectorRequirement instance) { - instance = (instance != null ? instance : new V1FieldSelectorRequirement()); + instance = instance != null ? instance : new V1FieldSelectorRequirement(); if (instance != null) { - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } } public String getKey() { @@ -60,34 +62,59 @@ public boolean hasOperator() { } public A addToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} + if (this.values == null) { + this.values = new ArrayList(); + } this.values.add(index, item); - return (A)this; + return (A) this; } public A setToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public A addToValues(java.lang.String... items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + public A addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } public A addAllToValues(Collection items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } - public A removeFromValues(java.lang.String... items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public A removeAllFromValues(Collection items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public List getValues() { @@ -136,7 +163,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.String... values) { + public A withValues(String... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -150,30 +177,53 @@ public A withValues(java.lang.String... values) { } public boolean hasValues() { - return this.values != null && !this.values.isEmpty(); + return this.values != null && !(this.values.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1FieldSelectorRequirementFluent that = (V1FieldSelectorRequirementFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(values, that.values)) return false; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(key, operator, values, super.hashCode()); + return Objects.hash(key, operator, values); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..b78cf730f6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1FileKeySelectorBuilder extends V1FileKeySelectorFluent implements VisitableBuilder{ + public V1FileKeySelectorBuilder() { + this(new V1FileKeySelector()); + } + + public V1FileKeySelectorBuilder(V1FileKeySelectorFluent fluent) { + this(fluent, new V1FileKeySelector()); + } + + public V1FileKeySelectorBuilder(V1FileKeySelectorFluent fluent,V1FileKeySelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FileKeySelectorBuilder(V1FileKeySelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1FileKeySelectorFluent fluent; + + public V1FileKeySelector build() { + V1FileKeySelector buildable = new V1FileKeySelector(); + buildable.setKey(fluent.getKey()); + buildable.setOptional(fluent.getOptional()); + buildable.setPath(fluent.getPath()); + buildable.setVolumeName(fluent.getVolumeName()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..dac72b4098 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; +import java.lang.Boolean; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FileKeySelectorFluent> extends BaseFluent{ + public V1FileKeySelectorFluent() { + } + + public V1FileKeySelectorFluent(V1FileKeySelector instance) { + this.copyInstance(instance); + } + private String key; + private Boolean optional; + private String path; + private String volumeName; + + protected void copyInstance(V1FileKeySelector instance) { + instance = instance != null ? instance : new V1FileKeySelector(); + if (instance != null) { + this.withKey(instance.getKey()); + this.withOptional(instance.getOptional()); + this.withPath(instance.getPath()); + this.withVolumeName(instance.getVolumeName()); + } + } + + public String getKey() { + return this.key; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public boolean hasKey() { + return this.key != null; + } + + public Boolean getOptional() { + return this.optional; + } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + + public boolean hasOptional() { + return this.optional != null; + } + + public String getPath() { + return this.path; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public boolean hasPath() { + return this.path != null; + } + + public String getVolumeName() { + return this.volumeName; + } + + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; + } + + public boolean hasVolumeName() { + return this.volumeName != 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; + } + V1FileKeySelectorFluent that = (V1FileKeySelectorFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(key, optional, path, volumeName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + } + sb.append("}"); + return sb.toString(); + } + + public A withOptional() { + return withOptional(true); + } + + +} \ No newline at end of file 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 7c03ddfc7d..3eb886ee3d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlexPersistentVolumeSourceBuilder extends V1FlexPersistentVolumeSourceFluent implements VisitableBuilder{ public V1FlexPersistentVolumeSourceBuilder() { this(new V1FlexPersistentVolumeSource()); 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 a082ad819f..86fe7d7ec6 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 @@ -1,10 +1,13 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; import java.util.Map; @@ -13,7 +16,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1FlexPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1FlexPersistentVolumeSourceFluent> extends BaseFluent{ public V1FlexPersistentVolumeSourceFluent() { } @@ -27,14 +30,14 @@ public V1FlexPersistentVolumeSourceFluent(V1FlexPersistentVolumeSource instance) private V1SecretReferenceBuilder secretRef; protected void copyInstance(V1FlexPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1FlexPersistentVolumeSource()); + instance = instance != null ? instance : new V1FlexPersistentVolumeSource(); if (instance != null) { - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withOptions(instance.getOptions()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - } + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withOptions(instance.getOptions()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + } } public String getDriver() { @@ -64,23 +67,47 @@ public boolean hasFsType() { } public A addToOptions(String key,String value) { - if(this.options == null && key != null && value != null) { this.options = new LinkedHashMap(); } - if(key != null && value != null) {this.options.put(key, value);} return (A)this; + if (this.options == null && key != null && value != null) { + this.options = new LinkedHashMap(); + } + if (key != null && value != null) { + this.options.put(key, value); + } + return (A) this; } public A addToOptions(Map map) { - if(this.options == null && map != null) { this.options = new LinkedHashMap(); } - if(map != null) { this.options.putAll(map);} return (A)this; + if (this.options == null && map != null) { + this.options = new LinkedHashMap(); + } + if (map != null) { + this.options.putAll(map); + } + return (A) this; } public A removeFromOptions(String key) { - if(this.options == null) { return (A) this; } - if(key != null && this.options != null) {this.options.remove(key);} return (A)this; + if (this.options == null) { + return (A) this; + } + if (key != null && this.options != null) { + this.options.remove(key); + } + return (A) this; } public A removeFromOptions(Map map) { - if(this.options == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.options != null){this.options.remove(key);}}} return (A)this; + if (this.options == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.options != null) { + this.options.remove(key); + } + } + } + return (A) this; } public Map getOptions() { @@ -142,42 +169,77 @@ public SecretRefNested withNewSecretRefLike(V1SecretReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1FlexPersistentVolumeSourceFluent that = (V1FlexPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(options, that.options)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(options, that.options))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); + return Objects.hash(driver, fsType, options, readOnly, secretRef); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (options != null && !options.isEmpty()) { sb.append("options:"); sb.append(options + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(options == null) && !(options.isEmpty())) { + sb.append("options:"); + sb.append(options); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + } sb.append("}"); return sb.toString(); } 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 c883baccfa..461179930f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlexVolumeSourceBuilder extends V1FlexVolumeSourceFluent implements VisitableBuilder{ public V1FlexVolumeSourceBuilder() { this(new V1FlexVolumeSource()); 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 91ce0040b2..5396213cc1 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 @@ -1,10 +1,13 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; import java.util.Map; @@ -13,7 +16,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1FlexVolumeSourceFluent> extends BaseFluent{ +public class V1FlexVolumeSourceFluent> extends BaseFluent{ public V1FlexVolumeSourceFluent() { } @@ -27,14 +30,14 @@ public V1FlexVolumeSourceFluent(V1FlexVolumeSource instance) { private V1LocalObjectReferenceBuilder secretRef; protected void copyInstance(V1FlexVolumeSource instance) { - instance = (instance != null ? instance : new V1FlexVolumeSource()); + instance = instance != null ? instance : new V1FlexVolumeSource(); if (instance != null) { - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withOptions(instance.getOptions()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - } + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withOptions(instance.getOptions()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + } } public String getDriver() { @@ -64,23 +67,47 @@ public boolean hasFsType() { } public A addToOptions(String key,String value) { - if(this.options == null && key != null && value != null) { this.options = new LinkedHashMap(); } - if(key != null && value != null) {this.options.put(key, value);} return (A)this; + if (this.options == null && key != null && value != null) { + this.options = new LinkedHashMap(); + } + if (key != null && value != null) { + this.options.put(key, value); + } + return (A) this; } public A addToOptions(Map map) { - if(this.options == null && map != null) { this.options = new LinkedHashMap(); } - if(map != null) { this.options.putAll(map);} return (A)this; + if (this.options == null && map != null) { + this.options = new LinkedHashMap(); + } + if (map != null) { + this.options.putAll(map); + } + return (A) this; } public A removeFromOptions(String key) { - if(this.options == null) { return (A) this; } - if(key != null && this.options != null) {this.options.remove(key);} return (A)this; + if (this.options == null) { + return (A) this; + } + if (key != null && this.options != null) { + this.options.remove(key); + } + return (A) this; } public A removeFromOptions(Map map) { - if(this.options == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.options != null){this.options.remove(key);}}} return (A)this; + if (this.options == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.options != null) { + this.options.remove(key); + } + } + } + return (A) this; } public Map getOptions() { @@ -142,42 +169,77 @@ public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1FlexVolumeSourceFluent that = (V1FlexVolumeSourceFluent) o; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(options, that.options)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(options, that.options))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); + return Objects.hash(driver, fsType, options, readOnly, secretRef); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (options != null && !options.isEmpty()) { sb.append("options:"); sb.append(options + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(options == null) && !(options.isEmpty())) { + sb.append("options:"); + sb.append(options); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + } sb.append("}"); return sb.toString(); } 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 d502dfeaa4..93a8bae19a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlockerVolumeSourceBuilder extends V1FlockerVolumeSourceFluent implements VisitableBuilder{ public V1FlockerVolumeSourceBuilder() { this(new V1FlockerVolumeSource()); 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 d445abb971..d38799933e 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1FlockerVolumeSourceFluent> extends BaseFluent{ +public class V1FlockerVolumeSourceFluent> extends BaseFluent{ public V1FlockerVolumeSourceFluent() { } @@ -20,11 +22,11 @@ public V1FlockerVolumeSourceFluent(V1FlockerVolumeSource instance) { private String datasetUUID; protected void copyInstance(V1FlockerVolumeSource instance) { - instance = (instance != null ? instance : new V1FlockerVolumeSource()); + instance = instance != null ? instance : new V1FlockerVolumeSource(); if (instance != null) { - this.withDatasetName(instance.getDatasetName()); - this.withDatasetUUID(instance.getDatasetUUID()); - } + this.withDatasetName(instance.getDatasetName()); + this.withDatasetUUID(instance.getDatasetUUID()); + } } public String getDatasetName() { @@ -54,24 +56,41 @@ public boolean hasDatasetUUID() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1FlockerVolumeSourceFluent that = (V1FlockerVolumeSourceFluent) o; - if (!java.util.Objects.equals(datasetName, that.datasetName)) return false; - if (!java.util.Objects.equals(datasetUUID, that.datasetUUID)) return false; + if (!(Objects.equals(datasetName, that.datasetName))) { + return false; + } + if (!(Objects.equals(datasetUUID, that.datasetUUID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(datasetName, datasetUUID, super.hashCode()); + return Objects.hash(datasetName, datasetUUID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (datasetName != null) { sb.append("datasetName:"); sb.append(datasetName + ","); } - if (datasetUUID != null) { sb.append("datasetUUID:"); sb.append(datasetUUID); } + if (!(datasetName == null)) { + sb.append("datasetName:"); + sb.append(datasetName); + sb.append(","); + } + if (!(datasetUUID == null)) { + sb.append("datasetUUID:"); + sb.append(datasetUUID); + } sb.append("}"); return sb.toString(); } 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 7c916c0081..6b77c1caaa 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowDistinguisherMethodBuilder extends V1FlowDistinguisherMethodFluent implements VisitableBuilder{ public V1FlowDistinguisherMethodBuilder() { this(new V1FlowDistinguisherMethod()); 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 2776c02bb5..922568d434 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1FlowDistinguisherMethodFluent> extends BaseFluent{ +public class V1FlowDistinguisherMethodFluent> extends BaseFluent{ public V1FlowDistinguisherMethodFluent() { } @@ -19,10 +21,10 @@ public V1FlowDistinguisherMethodFluent(V1FlowDistinguisherMethod instance) { private String type; protected void copyInstance(V1FlowDistinguisherMethod instance) { - instance = (instance != null ? instance : new V1FlowDistinguisherMethod()); + instance = instance != null ? instance : new V1FlowDistinguisherMethod(); if (instance != null) { - this.withType(instance.getType()); - } + this.withType(instance.getType()); + } } public String getType() { @@ -39,22 +41,33 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1FlowDistinguisherMethodFluent that = (V1FlowDistinguisherMethodFluent) o; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(type, super.hashCode()); + return Objects.hash(type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 53497f2d58..81ab7eb590 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowSchemaBuilder extends V1FlowSchemaFluent implements VisitableBuilder{ public V1FlowSchemaBuilder() { this(new V1FlowSchema()); 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 34aa8213a1..adaa02c42a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowSchemaConditionBuilder extends V1FlowSchemaConditionFluent implements VisitableBuilder{ public V1FlowSchemaConditionBuilder() { this(new V1FlowSchemaCondition()); 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 30608937a6..46db3bcf45 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaConditionFluent> extends BaseFluent{ +public class V1FlowSchemaConditionFluent> extends BaseFluent{ public V1FlowSchemaConditionFluent() { } @@ -24,14 +26,14 @@ public V1FlowSchemaConditionFluent(V1FlowSchemaCondition instance) { private String type; protected void copyInstance(V1FlowSchemaCondition instance) { - instance = (instance != null ? instance : new V1FlowSchemaCondition()); + instance = instance != null ? instance : new V1FlowSchemaCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1FlowSchemaConditionFluent that = (V1FlowSchemaConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 9ad7159195..d253176c66 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaFluent> extends BaseFluent{ +public class V1FlowSchemaFluent> extends BaseFluent{ public V1FlowSchemaFluent() { } @@ -24,14 +27,14 @@ public V1FlowSchemaFluent(V1FlowSchema instance) { private V1FlowSchemaStatusBuilder status; protected void copyInstance(V1FlowSchema instance) { - instance = (instance != null ? instance : new V1FlowSchema()); + instance = instance != null ? instance : new V1FlowSchema(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1FlowSchemaSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1FlowSchemaSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1FlowSchemaSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1FlowSchemaSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1FlowSchemaSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1FlowSchemaStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1FlowSchemaStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1FlowSchemaStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1FlowSchemaStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1FlowSchemaStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1FlowSchemaFluent that = (V1FlowSchemaFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 0d75a42920..f695d39ee0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowSchemaListBuilder extends V1FlowSchemaListFluent implements VisitableBuilder{ public V1FlowSchemaListBuilder() { this(new V1FlowSchemaList()); 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 74c192900d..01fd4e4b87 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaListFluent> extends BaseFluent{ +public class V1FlowSchemaListFluent> extends BaseFluent{ public V1FlowSchemaListFluent() { } @@ -29,13 +32,13 @@ public V1FlowSchemaListFluent(V1FlowSchemaList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1FlowSchemaList instance) { - instance = (instance != null ? instance : new V1FlowSchemaList()); + instance = instance != null ? instance : new V1FlowSchemaList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1FlowSchema item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1FlowSchema item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1FlowSchema item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1FlowSchema item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1FlowSchema... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1FlowSchema item : items) {V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1FlowSchema... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1FlowSchema item : items) { + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1FlowSchema item : items) {V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1FlowSchema item : items) { + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1FlowSchema... items) { - if (this.items == null) return (A)this; - for (V1FlowSchema item : items) {V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1FlowSchema... items) { + if (this.items == null) { + return (A) this; + } + for (V1FlowSchema item : items) { + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1FlowSchema item : items) {V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1FlowSchema item : items) { + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1FlowSchemaBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1FlowSchemaBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1FlowSchema... items) { + public A withItems(V1FlowSchema... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1FlowSchema... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1FlowSchema item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1FlowSchemaListFluent that = (V1FlowSchemaListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1FlowSchemaFluent> implement int index; public N and() { - return (N) V1FlowSchemaListFluent.this.setToItems(index,builder.build()); + return (N) V1FlowSchemaListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 e877eb7a68..851260548b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowSchemaSpecBuilder extends V1FlowSchemaSpecFluent implements VisitableBuilder{ public V1FlowSchemaSpecBuilder() { this(new V1FlowSchemaSpec()); 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 f47400aeb4..325659ab12 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 @@ -1,15 +1,18 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; import java.lang.Integer; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaSpecFluent> extends BaseFluent{ +public class V1FlowSchemaSpecFluent> extends BaseFluent{ public V1FlowSchemaSpecFluent() { } @@ -30,13 +33,13 @@ public V1FlowSchemaSpecFluent(V1FlowSchemaSpec instance) { private ArrayList rules; protected void copyInstance(V1FlowSchemaSpec instance) { - instance = (instance != null ? instance : new V1FlowSchemaSpec()); + instance = instance != null ? instance : new V1FlowSchemaSpec(); if (instance != null) { - this.withDistinguisherMethod(instance.getDistinguisherMethod()); - this.withMatchingPrecedence(instance.getMatchingPrecedence()); - this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration()); - this.withRules(instance.getRules()); - } + this.withDistinguisherMethod(instance.getDistinguisherMethod()); + this.withMatchingPrecedence(instance.getMatchingPrecedence()); + this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration()); + this.withRules(instance.getRules()); + } } public V1FlowDistinguisherMethod buildDistinguisherMethod() { @@ -68,15 +71,15 @@ public DistinguisherMethodNested withNewDistinguisherMethodLike(V1FlowDisting } public DistinguisherMethodNested editDistinguisherMethod() { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(null)); + return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(null)); } public DistinguisherMethodNested editOrNewDistinguisherMethod() { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(new V1FlowDistinguisherMethodBuilder().build())); + return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(new V1FlowDistinguisherMethodBuilder().build())); } public DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(item)); + return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(item)); } public Integer getMatchingPrecedence() { @@ -121,19 +124,21 @@ public PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike } public PriorityLevelConfigurationNested editPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(null)); + return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(null)); } public PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(new V1PriorityLevelConfigurationReferenceBuilder().build())); + return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(new V1PriorityLevelConfigurationReferenceBuilder().build())); } public PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(item)); + return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(item)); } public A addToRules(int index,V1PolicyRulesWithSubjects item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -142,11 +147,13 @@ public A addToRules(int index,V1PolicyRulesWithSubjects item) { _visitables.get("rules").add(builder); rules.add(index, builder); } - return (A)this; + return (A) this; } public A setToRules(int index,V1PolicyRulesWithSubjects item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -155,41 +162,71 @@ public A setToRules(int index,V1PolicyRulesWithSubjects item) { _visitables.get("rules").add(builder); rules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRulesWithSubjects item : items) {V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public A addToRules(V1PolicyRulesWithSubjects... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRulesWithSubjects item : items) { + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRulesWithSubjects item : items) {V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRulesWithSubjects item : items) { + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects... items) { - if (this.rules == null) return (A)this; - for (V1PolicyRulesWithSubjects item : items) {V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A removeFromRules(V1PolicyRulesWithSubjects... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRulesWithSubjects item : items) { + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1PolicyRulesWithSubjects item : items) {V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRulesWithSubjects item : items) { + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1PolicyRulesWithSubjectsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PolicyRulesWithSubjectsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRules() { @@ -241,7 +278,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects... rules) { + public A withRules(V1PolicyRulesWithSubjects... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -255,7 +292,7 @@ public A withRules(io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects } public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + return this.rules != null && !(this.rules.isEmpty()); } public RulesNested addNewRule() { @@ -271,53 +308,93 @@ public RulesNested setNewRuleLike(int index,V1PolicyRulesWithSubjects item) { } public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); + if (index <= rules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } public RulesNested editLastRule() { int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1PolicyRulesWithSubjectsFluent implements VisitableBuilder{ public V1FlowSchemaStatusBuilder() { this(new V1FlowSchemaStatus()); 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 02526cc52a..0f4e62bb49 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaStatusFluent> extends BaseFluent{ +public class V1FlowSchemaStatusFluent> extends BaseFluent{ public V1FlowSchemaStatusFluent() { } @@ -26,14 +28,16 @@ public V1FlowSchemaStatusFluent(V1FlowSchemaStatus instance) { private ArrayList conditions; protected void copyInstance(V1FlowSchemaStatus instance) { - instance = (instance != null ? instance : new V1FlowSchemaStatus()); + instance = instance != null ? instance : new V1FlowSchemaStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - } + this.withConditions(instance.getConditions()); + } } public A addToConditions(int index,V1FlowSchemaCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -42,11 +46,13 @@ public A addToConditions(int index,V1FlowSchemaCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1FlowSchemaCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -55,41 +61,71 @@ public A setToConditions(int index,V1FlowSchemaCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1FlowSchemaCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1FlowSchemaCondition item : items) {V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1FlowSchemaCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1FlowSchemaCondition item : items) { + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1FlowSchemaCondition item : items) {V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1FlowSchemaCondition item : items) { + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1FlowSchemaCondition... items) { - if (this.conditions == null) return (A)this; - for (V1FlowSchemaCondition item : items) {V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1FlowSchemaCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1FlowSchemaCondition item : items) { + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1FlowSchemaCondition item : items) {V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1FlowSchemaCondition item : items) { + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1FlowSchemaConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1FlowSchemaConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -141,7 +177,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1FlowSchemaCondition... conditions) { + public A withConditions(V1FlowSchemaCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -155,7 +191,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1FlowSchemaConditio } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -171,47 +207,69 @@ public ConditionsNested setNewConditionLike(int index,V1FlowSchemaCondition i } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1FlowSchemaConditionFluent implements VisitableBuilder{ public V1ForNodeBuilder() { this(new V1ForNode()); 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 93ad3484d0..2baf0f0fff 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ForNodeFluent> extends BaseFluent{ +public class V1ForNodeFluent> extends BaseFluent{ public V1ForNodeFluent() { } @@ -19,10 +21,10 @@ public V1ForNodeFluent(V1ForNode instance) { private String name; protected void copyInstance(V1ForNode instance) { - instance = (instance != null ? instance : new V1ForNode()); + instance = instance != null ? instance : new V1ForNode(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } public String getName() { @@ -39,22 +41,33 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ForNodeFluent that = (V1ForNodeFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 eea84b4b0e..1faed5a529 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ForZoneBuilder extends V1ForZoneFluent implements VisitableBuilder{ public V1ForZoneBuilder() { this(new V1ForZone()); 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 2be8a328c8..a808fa99cf 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ForZoneFluent> extends BaseFluent{ +public class V1ForZoneFluent> extends BaseFluent{ public V1ForZoneFluent() { } @@ -19,10 +21,10 @@ public V1ForZoneFluent(V1ForZone instance) { private String name; protected void copyInstance(V1ForZone instance) { - instance = (instance != null ? instance : new V1ForZone()); + instance = instance != null ? instance : new V1ForZone(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } public String getName() { @@ -39,22 +41,33 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ForZoneFluent that = (V1ForZoneFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 a5224bbec6..5bd9ee2a32 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GCEPersistentDiskVolumeSourceBuilder extends V1GCEPersistentDiskVolumeSourceFluent implements VisitableBuilder{ public V1GCEPersistentDiskVolumeSourceBuilder() { this(new V1GCEPersistentDiskVolumeSource()); 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 810d854f29..91442023ca 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1GCEPersistentDiskVolumeSourceFluent> extends BaseFluent{ +public class V1GCEPersistentDiskVolumeSourceFluent> extends BaseFluent{ public V1GCEPersistentDiskVolumeSourceFluent() { } @@ -24,13 +26,13 @@ public V1GCEPersistentDiskVolumeSourceFluent(V1GCEPersistentDiskVolumeSource ins private Boolean readOnly; protected void copyInstance(V1GCEPersistentDiskVolumeSource instance) { - instance = (instance != null ? instance : new V1GCEPersistentDiskVolumeSource()); + instance = instance != null ? instance : new V1GCEPersistentDiskVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withPartition(instance.getPartition()); - this.withPdName(instance.getPdName()); - this.withReadOnly(instance.getReadOnly()); - } + this.withFsType(instance.getFsType()); + this.withPartition(instance.getPartition()); + this.withPdName(instance.getPdName()); + this.withReadOnly(instance.getReadOnly()); + } } public String getFsType() { @@ -86,28 +88,57 @@ public boolean hasReadOnly() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1GCEPersistentDiskVolumeSourceFluent that = (V1GCEPersistentDiskVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(partition, that.partition)) return false; - if (!java.util.Objects.equals(pdName, that.pdName)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(partition, that.partition))) { + return false; + } + if (!(Objects.equals(pdName, that.pdName))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, partition, pdName, readOnly, super.hashCode()); + return Objects.hash(fsType, partition, pdName, readOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (partition != null) { sb.append("partition:"); sb.append(partition + ","); } - if (pdName != null) { sb.append("pdName:"); sb.append(pdName + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(partition == null)) { + sb.append("partition:"); + sb.append(partition); + sb.append(","); + } + if (!(pdName == null)) { + sb.append("pdName:"); + sb.append(pdName); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } sb.append("}"); return sb.toString(); } 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 9449ec2fe8..c7c0f5661b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GRPCActionBuilder extends V1GRPCActionFluent implements VisitableBuilder{ public V1GRPCActionBuilder() { this(new V1GRPCAction()); 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 54a0ce6066..e9c3265d1b 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1GRPCActionFluent> extends BaseFluent{ +public class V1GRPCActionFluent> extends BaseFluent{ public V1GRPCActionFluent() { } @@ -21,11 +23,11 @@ public V1GRPCActionFluent(V1GRPCAction instance) { private String service; protected void copyInstance(V1GRPCAction instance) { - instance = (instance != null ? instance : new V1GRPCAction()); + instance = instance != null ? instance : new V1GRPCAction(); if (instance != null) { - this.withPort(instance.getPort()); - this.withService(instance.getService()); - } + this.withPort(instance.getPort()); + this.withService(instance.getService()); + } } public Integer getPort() { @@ -55,24 +57,41 @@ public boolean hasService() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1GRPCActionFluent that = (V1GRPCActionFluent) o; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(port, service, super.hashCode()); + return Objects.hash(port, service); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (service != null) { sb.append("service:"); sb.append(service); } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + } sb.append("}"); return sb.toString(); } 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 48626bd7bb..7f57361aaa 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GitRepoVolumeSourceBuilder extends V1GitRepoVolumeSourceFluent implements VisitableBuilder{ public V1GitRepoVolumeSourceBuilder() { this(new V1GitRepoVolumeSource()); 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 08a5cf3042..3b634d7ea6 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1GitRepoVolumeSourceFluent> extends BaseFluent{ +public class V1GitRepoVolumeSourceFluent> extends BaseFluent{ public V1GitRepoVolumeSourceFluent() { } @@ -21,12 +23,12 @@ public V1GitRepoVolumeSourceFluent(V1GitRepoVolumeSource instance) { private String revision; protected void copyInstance(V1GitRepoVolumeSource instance) { - instance = (instance != null ? instance : new V1GitRepoVolumeSource()); + instance = instance != null ? instance : new V1GitRepoVolumeSource(); if (instance != null) { - this.withDirectory(instance.getDirectory()); - this.withRepository(instance.getRepository()); - this.withRevision(instance.getRevision()); - } + this.withDirectory(instance.getDirectory()); + this.withRepository(instance.getRepository()); + this.withRevision(instance.getRevision()); + } } public String getDirectory() { @@ -69,26 +71,49 @@ public boolean hasRevision() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1GitRepoVolumeSourceFluent that = (V1GitRepoVolumeSourceFluent) o; - if (!java.util.Objects.equals(directory, that.directory)) return false; - if (!java.util.Objects.equals(repository, that.repository)) return false; - if (!java.util.Objects.equals(revision, that.revision)) return false; + if (!(Objects.equals(directory, that.directory))) { + return false; + } + if (!(Objects.equals(repository, that.repository))) { + return false; + } + if (!(Objects.equals(revision, that.revision))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(directory, repository, revision, super.hashCode()); + return Objects.hash(directory, repository, revision); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (directory != null) { sb.append("directory:"); sb.append(directory + ","); } - if (repository != null) { sb.append("repository:"); sb.append(repository + ","); } - if (revision != null) { sb.append("revision:"); sb.append(revision); } + if (!(directory == null)) { + sb.append("directory:"); + sb.append(directory); + sb.append(","); + } + if (!(repository == null)) { + sb.append("repository:"); + sb.append(repository); + sb.append(","); + } + if (!(revision == null)) { + sb.append("revision:"); + sb.append(revision); + } sb.append("}"); return sb.toString(); } 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 ae60a13223..06024fa8bd 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GlusterfsPersistentVolumeSourceBuilder extends V1GlusterfsPersistentVolumeSourceFluent implements VisitableBuilder{ public V1GlusterfsPersistentVolumeSourceBuilder() { this(new V1GlusterfsPersistentVolumeSource()); 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 d97318b0e7..69591de36e 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1GlusterfsPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1GlusterfsPersistentVolumeSourceFluent> extends BaseFluent{ public V1GlusterfsPersistentVolumeSourceFluent() { } @@ -23,13 +25,13 @@ public V1GlusterfsPersistentVolumeSourceFluent(V1GlusterfsPersistentVolumeSource private Boolean readOnly; protected void copyInstance(V1GlusterfsPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1GlusterfsPersistentVolumeSource()); + instance = instance != null ? instance : new V1GlusterfsPersistentVolumeSource(); if (instance != null) { - this.withEndpoints(instance.getEndpoints()); - this.withEndpointsNamespace(instance.getEndpointsNamespace()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - } + this.withEndpoints(instance.getEndpoints()); + this.withEndpointsNamespace(instance.getEndpointsNamespace()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + } } public String getEndpoints() { @@ -85,28 +87,57 @@ public boolean hasReadOnly() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1GlusterfsPersistentVolumeSourceFluent that = (V1GlusterfsPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(endpoints, that.endpoints)) return false; - if (!java.util.Objects.equals(endpointsNamespace, that.endpointsNamespace)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; + if (!(Objects.equals(endpoints, that.endpoints))) { + return false; + } + if (!(Objects.equals(endpointsNamespace, that.endpointsNamespace))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(endpoints, endpointsNamespace, path, readOnly, super.hashCode()); + return Objects.hash(endpoints, endpointsNamespace, path, readOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (endpoints != null) { sb.append("endpoints:"); sb.append(endpoints + ","); } - if (endpointsNamespace != null) { sb.append("endpointsNamespace:"); sb.append(endpointsNamespace + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } + if (!(endpoints == null)) { + sb.append("endpoints:"); + sb.append(endpoints); + sb.append(","); + } + if (!(endpointsNamespace == null)) { + sb.append("endpointsNamespace:"); + sb.append(endpointsNamespace); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } sb.append("}"); return sb.toString(); } 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 178425ec3a..9a29218a1f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GlusterfsVolumeSourceBuilder extends V1GlusterfsVolumeSourceFluent implements VisitableBuilder{ public V1GlusterfsVolumeSourceBuilder() { this(new V1GlusterfsVolumeSource()); 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 df2c98b0d0..4dbfb4dc1a 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1GlusterfsVolumeSourceFluent> extends BaseFluent{ +public class V1GlusterfsVolumeSourceFluent> extends BaseFluent{ public V1GlusterfsVolumeSourceFluent() { } @@ -22,12 +24,12 @@ public V1GlusterfsVolumeSourceFluent(V1GlusterfsVolumeSource instance) { private Boolean readOnly; protected void copyInstance(V1GlusterfsVolumeSource instance) { - instance = (instance != null ? instance : new V1GlusterfsVolumeSource()); + instance = instance != null ? instance : new V1GlusterfsVolumeSource(); if (instance != null) { - this.withEndpoints(instance.getEndpoints()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - } + this.withEndpoints(instance.getEndpoints()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + } } public String getEndpoints() { @@ -70,26 +72,49 @@ public boolean hasReadOnly() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1GlusterfsVolumeSourceFluent that = (V1GlusterfsVolumeSourceFluent) o; - if (!java.util.Objects.equals(endpoints, that.endpoints)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; + if (!(Objects.equals(endpoints, that.endpoints))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(endpoints, path, readOnly, super.hashCode()); + return Objects.hash(endpoints, path, readOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (endpoints != null) { sb.append("endpoints:"); sb.append(endpoints + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } + if (!(endpoints == null)) { + sb.append("endpoints:"); + sb.append(endpoints); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } sb.append("}"); return sb.toString(); } 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 72503449c3..3fa1555fc4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GroupSubjectBuilder extends V1GroupSubjectFluent implements VisitableBuilder{ public V1GroupSubjectBuilder() { this(new V1GroupSubject()); 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 10d63f70bd..c35a00177b 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1GroupSubjectFluent> extends BaseFluent{ +public class V1GroupSubjectFluent> extends BaseFluent{ public V1GroupSubjectFluent() { } @@ -19,10 +21,10 @@ public V1GroupSubjectFluent(V1GroupSubject instance) { private String name; protected void copyInstance(V1GroupSubject instance) { - instance = (instance != null ? instance : new V1GroupSubject()); + instance = instance != null ? instance : new V1GroupSubject(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } public String getName() { @@ -39,22 +41,33 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1GroupSubjectFluent that = (V1GroupSubjectFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 756fb64e4e..d3322996fb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GroupVersionForDiscoveryBuilder extends V1GroupVersionForDiscoveryFluent implements VisitableBuilder{ public V1GroupVersionForDiscoveryBuilder() { this(new V1GroupVersionForDiscovery()); 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 92764efea7..fe1c5087f8 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1GroupVersionForDiscoveryFluent> extends BaseFluent{ +public class V1GroupVersionForDiscoveryFluent> extends BaseFluent{ public V1GroupVersionForDiscoveryFluent() { } @@ -20,11 +22,11 @@ public V1GroupVersionForDiscoveryFluent(V1GroupVersionForDiscovery instance) { private String version; protected void copyInstance(V1GroupVersionForDiscovery instance) { - instance = (instance != null ? instance : new V1GroupVersionForDiscovery()); + instance = instance != null ? instance : new V1GroupVersionForDiscovery(); if (instance != null) { - this.withGroupVersion(instance.getGroupVersion()); - this.withVersion(instance.getVersion()); - } + this.withGroupVersion(instance.getGroupVersion()); + this.withVersion(instance.getVersion()); + } } public String getGroupVersion() { @@ -54,24 +56,41 @@ public boolean hasVersion() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1GroupVersionForDiscoveryFluent that = (V1GroupVersionForDiscoveryFluent) o; - if (!java.util.Objects.equals(groupVersion, that.groupVersion)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; + if (!(Objects.equals(groupVersion, that.groupVersion))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(groupVersion, version, super.hashCode()); + return Objects.hash(groupVersion, version); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (groupVersion != null) { sb.append("groupVersion:"); sb.append(groupVersion + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } + if (!(groupVersion == null)) { + sb.append("groupVersion:"); + sb.append(groupVersion); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } 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 1482810317..211caf736a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HTTPGetActionBuilder extends V1HTTPGetActionFluent implements VisitableBuilder{ public V1HTTPGetActionBuilder() { this(new V1HTTPGetAction()); 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 0f52c2dea1..36c09700c6 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1HTTPGetActionFluent> extends BaseFluent{ +public class V1HTTPGetActionFluent> extends BaseFluent{ public V1HTTPGetActionFluent() { } @@ -31,14 +33,14 @@ public V1HTTPGetActionFluent(V1HTTPGetAction instance) { private String scheme; protected void copyInstance(V1HTTPGetAction instance) { - instance = (instance != null ? instance : new V1HTTPGetAction()); + instance = instance != null ? instance : new V1HTTPGetAction(); if (instance != null) { - this.withHost(instance.getHost()); - this.withHttpHeaders(instance.getHttpHeaders()); - this.withPath(instance.getPath()); - this.withPort(instance.getPort()); - this.withScheme(instance.getScheme()); - } + this.withHost(instance.getHost()); + this.withHttpHeaders(instance.getHttpHeaders()); + this.withPath(instance.getPath()); + this.withPort(instance.getPort()); + this.withScheme(instance.getScheme()); + } } public String getHost() { @@ -55,7 +57,9 @@ public boolean hasHost() { } public A addToHttpHeaders(int index,V1HTTPHeader item) { - if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} + if (this.httpHeaders == null) { + this.httpHeaders = new ArrayList(); + } V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); if (index < 0 || index >= httpHeaders.size()) { _visitables.get("httpHeaders").add(builder); @@ -64,11 +68,13 @@ public A addToHttpHeaders(int index,V1HTTPHeader item) { _visitables.get("httpHeaders").add(builder); httpHeaders.add(index, builder); } - return (A)this; + return (A) this; } public A setToHttpHeaders(int index,V1HTTPHeader item) { - if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} + if (this.httpHeaders == null) { + this.httpHeaders = new ArrayList(); + } V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); if (index < 0 || index >= httpHeaders.size()) { _visitables.get("httpHeaders").add(builder); @@ -77,41 +83,71 @@ public A setToHttpHeaders(int index,V1HTTPHeader item) { _visitables.get("httpHeaders").add(builder); httpHeaders.set(index, builder); } - return (A)this; + return (A) this; } - public A addToHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items) { - if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} - for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").add(builder);this.httpHeaders.add(builder);} return (A)this; + public A addToHttpHeaders(V1HTTPHeader... items) { + if (this.httpHeaders == null) { + this.httpHeaders = new ArrayList(); + } + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").add(builder); + this.httpHeaders.add(builder); + } + return (A) this; } public A addAllToHttpHeaders(Collection items) { - if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} - for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").add(builder);this.httpHeaders.add(builder);} return (A)this; + if (this.httpHeaders == null) { + this.httpHeaders = new ArrayList(); + } + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").add(builder); + this.httpHeaders.add(builder); + } + return (A) this; } - public A removeFromHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items) { - if (this.httpHeaders == null) return (A)this; - for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").remove(builder); this.httpHeaders.remove(builder);} return (A)this; + public A removeFromHttpHeaders(V1HTTPHeader... items) { + if (this.httpHeaders == null) { + return (A) this; + } + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").remove(builder); + this.httpHeaders.remove(builder); + } + return (A) this; } public A removeAllFromHttpHeaders(Collection items) { - if (this.httpHeaders == null) return (A)this; - for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").remove(builder); this.httpHeaders.remove(builder);} return (A)this; + if (this.httpHeaders == null) { + return (A) this; + } + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").remove(builder); + this.httpHeaders.remove(builder); + } + return (A) this; } public A removeMatchingFromHttpHeaders(Predicate predicate) { - if (httpHeaders == null) return (A) this; - final Iterator each = httpHeaders.iterator(); - final List visitables = _visitables.get("httpHeaders"); + if (httpHeaders == null) { + return (A) this; + } + Iterator each = httpHeaders.iterator(); + List visitables = _visitables.get("httpHeaders"); while (each.hasNext()) { - V1HTTPHeaderBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1HTTPHeaderBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildHttpHeaders() { @@ -163,7 +199,7 @@ public A withHttpHeaders(List httpHeaders) { return (A) this; } - public A withHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... httpHeaders) { + public A withHttpHeaders(V1HTTPHeader... httpHeaders) { if (this.httpHeaders != null) { this.httpHeaders.clear(); _visitables.remove("httpHeaders"); @@ -177,7 +213,7 @@ public A withHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... htt } public boolean hasHttpHeaders() { - return this.httpHeaders != null && !this.httpHeaders.isEmpty(); + return this.httpHeaders != null && !(this.httpHeaders.isEmpty()); } public HttpHeadersNested addNewHttpHeader() { @@ -193,28 +229,39 @@ public HttpHeadersNested setNewHttpHeaderLike(int index,V1HTTPHeader item) { } public HttpHeadersNested editHttpHeader(int index) { - if (httpHeaders.size() <= index) throw new RuntimeException("Can't edit httpHeaders. Index exceeds size."); - return setNewHttpHeaderLike(index, buildHttpHeader(index)); + if (index <= httpHeaders.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "httpHeaders")); + } + return this.setNewHttpHeaderLike(index, this.buildHttpHeader(index)); } public HttpHeadersNested editFirstHttpHeader() { - if (httpHeaders.size() == 0) throw new RuntimeException("Can't edit first httpHeaders. The list is empty."); - return setNewHttpHeaderLike(0, buildHttpHeader(0)); + if (httpHeaders.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "httpHeaders")); + } + return this.setNewHttpHeaderLike(0, this.buildHttpHeader(0)); } public HttpHeadersNested editLastHttpHeader() { int index = httpHeaders.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last httpHeaders. The list is empty."); - return setNewHttpHeaderLike(index, buildHttpHeader(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "httpHeaders")); + } + return this.setNewHttpHeaderLike(index, this.buildHttpHeader(index)); } public HttpHeadersNested editMatchingHttpHeader(Predicate predicate) { int index = -1; - for (int i=0;i extends V1HTTPHeaderFluent implements VisitableBuilder{ public V1HTTPHeaderBuilder() { this(new V1HTTPHeader()); 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 ece4369a57..78cb6f1115 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1HTTPHeaderFluent> extends BaseFluent{ +public class V1HTTPHeaderFluent> extends BaseFluent{ public V1HTTPHeaderFluent() { } @@ -20,11 +22,11 @@ public V1HTTPHeaderFluent(V1HTTPHeader instance) { private String value; protected void copyInstance(V1HTTPHeader instance) { - instance = (instance != null ? instance : new V1HTTPHeader()); + instance = instance != null ? instance : new V1HTTPHeader(); if (instance != null) { - this.withName(instance.getName()); - this.withValue(instance.getValue()); - } + this.withName(instance.getName()); + this.withValue(instance.getValue()); + } } public String getName() { @@ -54,24 +56,41 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1HTTPHeaderFluent that = (V1HTTPHeaderFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, value, super.hashCode()); + return Objects.hash(name, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 e95e44bc1a..9ed2a6552a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HTTPIngressPathBuilder extends V1HTTPIngressPathFluent implements VisitableBuilder{ public V1HTTPIngressPathBuilder() { this(new V1HTTPIngressPath()); 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 d68ef251b1..e483969889 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HTTPIngressPathFluent> extends BaseFluent{ +public class V1HTTPIngressPathFluent> extends BaseFluent{ public V1HTTPIngressPathFluent() { } @@ -22,12 +25,12 @@ public V1HTTPIngressPathFluent(V1HTTPIngressPath instance) { private String pathType; protected void copyInstance(V1HTTPIngressPath instance) { - instance = (instance != null ? instance : new V1HTTPIngressPath()); + instance = instance != null ? instance : new V1HTTPIngressPath(); if (instance != null) { - this.withBackend(instance.getBackend()); - this.withPath(instance.getPath()); - this.withPathType(instance.getPathType()); - } + this.withBackend(instance.getBackend()); + this.withPath(instance.getPath()); + this.withPathType(instance.getPathType()); + } } public V1IngressBackend buildBackend() { @@ -59,15 +62,15 @@ public BackendNested withNewBackendLike(V1IngressBackend item) { } public BackendNested editBackend() { - return withNewBackendLike(java.util.Optional.ofNullable(buildBackend()).orElse(null)); + return this.withNewBackendLike(Optional.ofNullable(this.buildBackend()).orElse(null)); } public BackendNested editOrNewBackend() { - return withNewBackendLike(java.util.Optional.ofNullable(buildBackend()).orElse(new V1IngressBackendBuilder().build())); + return this.withNewBackendLike(Optional.ofNullable(this.buildBackend()).orElse(new V1IngressBackendBuilder().build())); } public BackendNested editOrNewBackendLike(V1IngressBackend item) { - return withNewBackendLike(java.util.Optional.ofNullable(buildBackend()).orElse(item)); + return this.withNewBackendLike(Optional.ofNullable(this.buildBackend()).orElse(item)); } public String getPath() { @@ -97,26 +100,49 @@ public boolean hasPathType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1HTTPIngressPathFluent that = (V1HTTPIngressPathFluent) o; - if (!java.util.Objects.equals(backend, that.backend)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(pathType, that.pathType)) return false; + if (!(Objects.equals(backend, that.backend))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(pathType, that.pathType))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(backend, path, pathType, super.hashCode()); + return Objects.hash(backend, path, pathType); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (backend != null) { sb.append("backend:"); sb.append(backend + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (pathType != null) { sb.append("pathType:"); sb.append(pathType); } + if (!(backend == null)) { + sb.append("backend:"); + sb.append(backend); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(pathType == null)) { + sb.append("pathType:"); + sb.append(pathType); + } sb.append("}"); return sb.toString(); } 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 a8e62da77a..dcf6324fbd 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HTTPIngressRuleValueBuilder extends V1HTTPIngressRuleValueFluent implements VisitableBuilder{ public V1HTTPIngressRuleValueBuilder() { this(new V1HTTPIngressRuleValue()); 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 dd61581664..21fb0aee18 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1HTTPIngressRuleValueFluent> extends BaseFluent{ +public class V1HTTPIngressRuleValueFluent> extends BaseFluent{ public V1HTTPIngressRuleValueFluent() { } @@ -26,14 +28,16 @@ public V1HTTPIngressRuleValueFluent(V1HTTPIngressRuleValue instance) { private ArrayList paths; protected void copyInstance(V1HTTPIngressRuleValue instance) { - instance = (instance != null ? instance : new V1HTTPIngressRuleValue()); + instance = instance != null ? instance : new V1HTTPIngressRuleValue(); if (instance != null) { - this.withPaths(instance.getPaths()); - } + this.withPaths(instance.getPaths()); + } } public A addToPaths(int index,V1HTTPIngressPath item) { - if (this.paths == null) {this.paths = new ArrayList();} + if (this.paths == null) { + this.paths = new ArrayList(); + } V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); if (index < 0 || index >= paths.size()) { _visitables.get("paths").add(builder); @@ -42,11 +46,13 @@ public A addToPaths(int index,V1HTTPIngressPath item) { _visitables.get("paths").add(builder); paths.add(index, builder); } - return (A)this; + return (A) this; } public A setToPaths(int index,V1HTTPIngressPath item) { - if (this.paths == null) {this.paths = new ArrayList();} + if (this.paths == null) { + this.paths = new ArrayList(); + } V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); if (index < 0 || index >= paths.size()) { _visitables.get("paths").add(builder); @@ -55,41 +61,71 @@ public A setToPaths(int index,V1HTTPIngressPath item) { _visitables.get("paths").add(builder); paths.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items) { - if (this.paths == null) {this.paths = new ArrayList();} - for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").add(builder);this.paths.add(builder);} return (A)this; + public A addToPaths(V1HTTPIngressPath... items) { + if (this.paths == null) { + this.paths = new ArrayList(); + } + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").add(builder); + this.paths.add(builder); + } + return (A) this; } public A addAllToPaths(Collection items) { - if (this.paths == null) {this.paths = new ArrayList();} - for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").add(builder);this.paths.add(builder);} return (A)this; + if (this.paths == null) { + this.paths = new ArrayList(); + } + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").add(builder); + this.paths.add(builder); + } + return (A) this; } - public A removeFromPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items) { - if (this.paths == null) return (A)this; - for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").remove(builder); this.paths.remove(builder);} return (A)this; + public A removeFromPaths(V1HTTPIngressPath... items) { + if (this.paths == null) { + return (A) this; + } + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").remove(builder); + this.paths.remove(builder); + } + return (A) this; } public A removeAllFromPaths(Collection items) { - if (this.paths == null) return (A)this; - for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").remove(builder); this.paths.remove(builder);} return (A)this; + if (this.paths == null) { + return (A) this; + } + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").remove(builder); + this.paths.remove(builder); + } + return (A) this; } public A removeMatchingFromPaths(Predicate predicate) { - if (paths == null) return (A) this; - final Iterator each = paths.iterator(); - final List visitables = _visitables.get("paths"); + if (paths == null) { + return (A) this; + } + Iterator each = paths.iterator(); + List visitables = _visitables.get("paths"); while (each.hasNext()) { - V1HTTPIngressPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1HTTPIngressPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPaths() { @@ -141,7 +177,7 @@ public A withPaths(List paths) { return (A) this; } - public A withPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... paths) { + public A withPaths(V1HTTPIngressPath... paths) { if (this.paths != null) { this.paths.clear(); _visitables.remove("paths"); @@ -155,7 +191,7 @@ public A withPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... path } public boolean hasPaths() { - return this.paths != null && !this.paths.isEmpty(); + return this.paths != null && !(this.paths.isEmpty()); } public PathsNested addNewPath() { @@ -171,47 +207,69 @@ public PathsNested setNewPathLike(int index,V1HTTPIngressPath item) { } public PathsNested editPath(int index) { - if (paths.size() <= index) throw new RuntimeException("Can't edit paths. Index exceeds size."); - return setNewPathLike(index, buildPath(index)); + if (index <= paths.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "paths")); + } + return this.setNewPathLike(index, this.buildPath(index)); } public PathsNested editFirstPath() { - if (paths.size() == 0) throw new RuntimeException("Can't edit first paths. The list is empty."); - return setNewPathLike(0, buildPath(0)); + if (paths.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "paths")); + } + return this.setNewPathLike(0, this.buildPath(0)); } public PathsNested editLastPath() { int index = paths.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last paths. The list is empty."); - return setNewPathLike(index, buildPath(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "paths")); + } + return this.setNewPathLike(index, this.buildPath(index)); } public PathsNested editMatchingPath(Predicate predicate) { int index = -1; - for (int i=0;i extends V1HTTPIngressPathFluent> impl int index; public N and() { - return (N) V1HTTPIngressRuleValueFluent.this.setToPaths(index,builder.build()); + return (N) V1HTTPIngressRuleValueFluent.this.setToPaths(index, builder.build()); } public N endPath() { 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 63b83168bc..5e5b8ca66f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HorizontalPodAutoscalerBuilder extends V1HorizontalPodAutoscalerFluent implements VisitableBuilder{ public V1HorizontalPodAutoscalerBuilder() { this(new V1HorizontalPodAutoscaler()); 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 6a9195a969..96daf10786 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerFluent> extends BaseFluent{ +public class V1HorizontalPodAutoscalerFluent> extends BaseFluent{ public V1HorizontalPodAutoscalerFluent() { } @@ -24,14 +27,14 @@ public V1HorizontalPodAutoscalerFluent(V1HorizontalPodAutoscaler instance) { private V1HorizontalPodAutoscalerStatusBuilder status; protected void copyInstance(V1HorizontalPodAutoscaler instance) { - instance = (instance != null ? instance : new V1HorizontalPodAutoscaler()); + instance = instance != null ? instance : new V1HorizontalPodAutoscaler(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1HorizontalPodAutoscalerSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1HorizontalPodAutoscalerSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1HorizontalPodAutoscalerSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1HorizontalPodAutoscalerSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1HorizontalPodAutoscalerSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1HorizontalPodAutoscalerStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1HorizontalPodAutoscalerStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1HorizontalPodAutoscalerStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1HorizontalPodAutoscalerStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1HorizontalPodAutoscalerStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1HorizontalPodAutoscalerFluent that = (V1HorizontalPodAutoscalerFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 0fcb3ad45d..095151251a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HorizontalPodAutoscalerListBuilder extends V1HorizontalPodAutoscalerListFluent implements VisitableBuilder{ public V1HorizontalPodAutoscalerListBuilder() { this(new V1HorizontalPodAutoscalerList()); 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 d115cd2481..b79d1fea19 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerListFluent> extends BaseFluent{ +public class V1HorizontalPodAutoscalerListFluent> extends BaseFluent{ public V1HorizontalPodAutoscalerListFluent() { } @@ -29,13 +32,13 @@ public V1HorizontalPodAutoscalerListFluent(V1HorizontalPodAutoscalerList instanc private V1ListMetaBuilder metadata; protected void copyInstance(V1HorizontalPodAutoscalerList instance) { - instance = (instance != null ? instance : new V1HorizontalPodAutoscalerList()); + instance = instance != null ? instance : new V1HorizontalPodAutoscalerList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1HorizontalPodAutoscaler item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1HorizontalPodAutoscaler item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1HorizontalPodAutoscaler item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1HorizontalPodAutoscaler item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1HorizontalPodAutoscaler... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { - if (this.items == null) return (A)this; - for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1HorizontalPodAutoscaler... items) { + if (this.items == null) { + return (A) this; + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1HorizontalPodAutoscalerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1HorizontalPodAutoscalerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { + public A withItems(V1HorizontalPodAutoscaler... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1HorizontalPodAutoscaler item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1HorizontalPodAutoscalerListFluent that = (V1HorizontalPodAutoscalerListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1HorizontalPodAutoscalerFluent implements VisitableBuilder{ public V1HorizontalPodAutoscalerSpecBuilder() { this(new V1HorizontalPodAutoscalerSpec()); 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 c1abf37c47..4f22ac20ff 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ +public class V1HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ public V1HorizontalPodAutoscalerSpecFluent() { } @@ -24,13 +27,13 @@ public V1HorizontalPodAutoscalerSpecFluent(V1HorizontalPodAutoscalerSpec instanc private Integer targetCPUUtilizationPercentage; protected void copyInstance(V1HorizontalPodAutoscalerSpec instance) { - instance = (instance != null ? instance : new V1HorizontalPodAutoscalerSpec()); + instance = instance != null ? instance : new V1HorizontalPodAutoscalerSpec(); if (instance != null) { - this.withMaxReplicas(instance.getMaxReplicas()); - this.withMinReplicas(instance.getMinReplicas()); - this.withScaleTargetRef(instance.getScaleTargetRef()); - this.withTargetCPUUtilizationPercentage(instance.getTargetCPUUtilizationPercentage()); - } + this.withMaxReplicas(instance.getMaxReplicas()); + this.withMinReplicas(instance.getMinReplicas()); + this.withScaleTargetRef(instance.getScaleTargetRef()); + this.withTargetCPUUtilizationPercentage(instance.getTargetCPUUtilizationPercentage()); + } } public Integer getMaxReplicas() { @@ -88,15 +91,15 @@ public ScaleTargetRefNested withNewScaleTargetRefLike(V1CrossVersionObjectRef } public ScaleTargetRefNested editScaleTargetRef() { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(null)); + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(null)); } public ScaleTargetRefNested editOrNewScaleTargetRef() { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(new V1CrossVersionObjectReferenceBuilder().build())); + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(new V1CrossVersionObjectReferenceBuilder().build())); } public ScaleTargetRefNested editOrNewScaleTargetRefLike(V1CrossVersionObjectReference item) { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(item)); + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(item)); } public Integer getTargetCPUUtilizationPercentage() { @@ -113,28 +116,57 @@ public boolean hasTargetCPUUtilizationPercentage() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1HorizontalPodAutoscalerSpecFluent that = (V1HorizontalPodAutoscalerSpecFluent) o; - if (!java.util.Objects.equals(maxReplicas, that.maxReplicas)) return false; - if (!java.util.Objects.equals(minReplicas, that.minReplicas)) return false; - if (!java.util.Objects.equals(scaleTargetRef, that.scaleTargetRef)) return false; - if (!java.util.Objects.equals(targetCPUUtilizationPercentage, that.targetCPUUtilizationPercentage)) return false; + if (!(Objects.equals(maxReplicas, that.maxReplicas))) { + return false; + } + if (!(Objects.equals(minReplicas, that.minReplicas))) { + return false; + } + if (!(Objects.equals(scaleTargetRef, that.scaleTargetRef))) { + return false; + } + if (!(Objects.equals(targetCPUUtilizationPercentage, that.targetCPUUtilizationPercentage))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(maxReplicas, minReplicas, scaleTargetRef, targetCPUUtilizationPercentage, super.hashCode()); + return Objects.hash(maxReplicas, minReplicas, scaleTargetRef, targetCPUUtilizationPercentage); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxReplicas != null) { sb.append("maxReplicas:"); sb.append(maxReplicas + ","); } - if (minReplicas != null) { sb.append("minReplicas:"); sb.append(minReplicas + ","); } - if (scaleTargetRef != null) { sb.append("scaleTargetRef:"); sb.append(scaleTargetRef + ","); } - if (targetCPUUtilizationPercentage != null) { sb.append("targetCPUUtilizationPercentage:"); sb.append(targetCPUUtilizationPercentage); } + if (!(maxReplicas == null)) { + sb.append("maxReplicas:"); + sb.append(maxReplicas); + sb.append(","); + } + if (!(minReplicas == null)) { + sb.append("minReplicas:"); + sb.append(minReplicas); + sb.append(","); + } + if (!(scaleTargetRef == null)) { + sb.append("scaleTargetRef:"); + sb.append(scaleTargetRef); + sb.append(","); + } + if (!(targetCPUUtilizationPercentage == null)) { + sb.append("targetCPUUtilizationPercentage:"); + sb.append(targetCPUUtilizationPercentage); + } sb.append("}"); return sb.toString(); } 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 4c5999d31b..ec690e4381 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HorizontalPodAutoscalerStatusBuilder extends V1HorizontalPodAutoscalerStatusFluent implements VisitableBuilder{ public V1HorizontalPodAutoscalerStatusBuilder() { this(new V1HorizontalPodAutoscalerStatus()); 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 4e85c29ad8..0e43331f57 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 @@ -1,10 +1,12 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -12,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ +public class V1HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ public V1HorizontalPodAutoscalerStatusFluent() { } @@ -26,14 +28,14 @@ public V1HorizontalPodAutoscalerStatusFluent(V1HorizontalPodAutoscalerStatus ins private Long observedGeneration; protected void copyInstance(V1HorizontalPodAutoscalerStatus instance) { - instance = (instance != null ? instance : new V1HorizontalPodAutoscalerStatus()); + instance = instance != null ? instance : new V1HorizontalPodAutoscalerStatus(); if (instance != null) { - this.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); - this.withCurrentReplicas(instance.getCurrentReplicas()); - this.withDesiredReplicas(instance.getDesiredReplicas()); - this.withLastScaleTime(instance.getLastScaleTime()); - this.withObservedGeneration(instance.getObservedGeneration()); - } + this.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); + this.withCurrentReplicas(instance.getCurrentReplicas()); + this.withDesiredReplicas(instance.getDesiredReplicas()); + this.withLastScaleTime(instance.getLastScaleTime()); + this.withObservedGeneration(instance.getObservedGeneration()); + } } public Integer getCurrentCPUUtilizationPercentage() { @@ -102,30 +104,65 @@ public boolean hasObservedGeneration() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1HorizontalPodAutoscalerStatusFluent that = (V1HorizontalPodAutoscalerStatusFluent) o; - if (!java.util.Objects.equals(currentCPUUtilizationPercentage, that.currentCPUUtilizationPercentage)) return false; - if (!java.util.Objects.equals(currentReplicas, that.currentReplicas)) return false; - if (!java.util.Objects.equals(desiredReplicas, that.desiredReplicas)) return false; - if (!java.util.Objects.equals(lastScaleTime, that.lastScaleTime)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; + if (!(Objects.equals(currentCPUUtilizationPercentage, that.currentCPUUtilizationPercentage))) { + return false; + } + if (!(Objects.equals(currentReplicas, that.currentReplicas))) { + return false; + } + if (!(Objects.equals(desiredReplicas, that.desiredReplicas))) { + return false; + } + if (!(Objects.equals(lastScaleTime, that.lastScaleTime))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(currentCPUUtilizationPercentage, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration, super.hashCode()); + return Objects.hash(currentCPUUtilizationPercentage, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (currentCPUUtilizationPercentage != null) { sb.append("currentCPUUtilizationPercentage:"); sb.append(currentCPUUtilizationPercentage + ","); } - if (currentReplicas != null) { sb.append("currentReplicas:"); sb.append(currentReplicas + ","); } - if (desiredReplicas != null) { sb.append("desiredReplicas:"); sb.append(desiredReplicas + ","); } - if (lastScaleTime != null) { sb.append("lastScaleTime:"); sb.append(lastScaleTime + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration); } + if (!(currentCPUUtilizationPercentage == null)) { + sb.append("currentCPUUtilizationPercentage:"); + sb.append(currentCPUUtilizationPercentage); + sb.append(","); + } + if (!(currentReplicas == null)) { + sb.append("currentReplicas:"); + sb.append(currentReplicas); + sb.append(","); + } + if (!(desiredReplicas == null)) { + sb.append("desiredReplicas:"); + sb.append(desiredReplicas); + sb.append(","); + } + if (!(lastScaleTime == null)) { + sb.append("lastScaleTime:"); + sb.append(lastScaleTime); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + } sb.append("}"); return sb.toString(); } 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 bba851859b..ebf84da65f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HostAliasBuilder extends V1HostAliasFluent implements VisitableBuilder{ public V1HostAliasBuilder() { this(new V1HostAlias()); 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 1da355118a..16a8214720 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1HostAliasFluent> extends BaseFluent{ +public class V1HostAliasFluent> extends BaseFluent{ public V1HostAliasFluent() { } @@ -24,42 +26,67 @@ public V1HostAliasFluent(V1HostAlias instance) { private String ip; protected void copyInstance(V1HostAlias instance) { - instance = (instance != null ? instance : new V1HostAlias()); + instance = instance != null ? instance : new V1HostAlias(); if (instance != null) { - this.withHostnames(instance.getHostnames()); - this.withIp(instance.getIp()); - } + this.withHostnames(instance.getHostnames()); + this.withIp(instance.getIp()); + } } public A addToHostnames(int index,String item) { - if (this.hostnames == null) {this.hostnames = new ArrayList();} + if (this.hostnames == null) { + this.hostnames = new ArrayList(); + } this.hostnames.add(index, item); - return (A)this; + return (A) this; } public A setToHostnames(int index,String item) { - if (this.hostnames == null) {this.hostnames = new ArrayList();} - this.hostnames.set(index, item); return (A)this; + if (this.hostnames == null) { + this.hostnames = new ArrayList(); + } + this.hostnames.set(index, item); + return (A) this; } - public A addToHostnames(java.lang.String... items) { - if (this.hostnames == null) {this.hostnames = new ArrayList();} - for (String item : items) {this.hostnames.add(item);} return (A)this; + public A addToHostnames(String... items) { + if (this.hostnames == null) { + this.hostnames = new ArrayList(); + } + for (String item : items) { + this.hostnames.add(item); + } + return (A) this; } public A addAllToHostnames(Collection items) { - if (this.hostnames == null) {this.hostnames = new ArrayList();} - for (String item : items) {this.hostnames.add(item);} return (A)this; + if (this.hostnames == null) { + this.hostnames = new ArrayList(); + } + for (String item : items) { + this.hostnames.add(item); + } + return (A) this; } - public A removeFromHostnames(java.lang.String... items) { - if (this.hostnames == null) return (A)this; - for (String item : items) { this.hostnames.remove(item);} return (A)this; + public A removeFromHostnames(String... items) { + if (this.hostnames == null) { + return (A) this; + } + for (String item : items) { + this.hostnames.remove(item); + } + return (A) this; } public A removeAllFromHostnames(Collection items) { - if (this.hostnames == null) return (A)this; - for (String item : items) { this.hostnames.remove(item);} return (A)this; + if (this.hostnames == null) { + return (A) this; + } + for (String item : items) { + this.hostnames.remove(item); + } + return (A) this; } public List getHostnames() { @@ -108,7 +135,7 @@ public A withHostnames(List hostnames) { return (A) this; } - public A withHostnames(java.lang.String... hostnames) { + public A withHostnames(String... hostnames) { if (this.hostnames != null) { this.hostnames.clear(); _visitables.remove("hostnames"); @@ -122,7 +149,7 @@ public A withHostnames(java.lang.String... hostnames) { } public boolean hasHostnames() { - return this.hostnames != null && !this.hostnames.isEmpty(); + return this.hostnames != null && !(this.hostnames.isEmpty()); } public String getIp() { @@ -139,24 +166,41 @@ public boolean hasIp() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1HostAliasFluent that = (V1HostAliasFluent) o; - if (!java.util.Objects.equals(hostnames, that.hostnames)) return false; - if (!java.util.Objects.equals(ip, that.ip)) return false; + if (!(Objects.equals(hostnames, that.hostnames))) { + return false; + } + if (!(Objects.equals(ip, that.ip))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(hostnames, ip, super.hashCode()); + return Objects.hash(hostnames, ip); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hostnames != null && !hostnames.isEmpty()) { sb.append("hostnames:"); sb.append(hostnames + ","); } - if (ip != null) { sb.append("ip:"); sb.append(ip); } + if (!(hostnames == null) && !(hostnames.isEmpty())) { + sb.append("hostnames:"); + sb.append(hostnames); + sb.append(","); + } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + } sb.append("}"); return sb.toString(); } 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 2588192d3a..2625c1228d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HostIPBuilder extends V1HostIPFluent implements VisitableBuilder{ public V1HostIPBuilder() { this(new V1HostIP()); 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 904a057ea9..cb0363b7f3 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1HostIPFluent> extends BaseFluent{ +public class V1HostIPFluent> extends BaseFluent{ public V1HostIPFluent() { } @@ -19,10 +21,10 @@ public V1HostIPFluent(V1HostIP instance) { private String ip; protected void copyInstance(V1HostIP instance) { - instance = (instance != null ? instance : new V1HostIP()); + instance = instance != null ? instance : new V1HostIP(); if (instance != null) { - this.withIp(instance.getIp()); - } + this.withIp(instance.getIp()); + } } public String getIp() { @@ -39,22 +41,33 @@ public boolean hasIp() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1HostIPFluent that = (V1HostIPFluent) o; - if (!java.util.Objects.equals(ip, that.ip)) return false; + if (!(Objects.equals(ip, that.ip))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(ip, super.hashCode()); + return Objects.hash(ip); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ip != null) { sb.append("ip:"); sb.append(ip); } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + } sb.append("}"); return sb.toString(); } 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 4cc85f972b..b0af491507 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HostPathVolumeSourceBuilder extends V1HostPathVolumeSourceFluent implements VisitableBuilder{ public V1HostPathVolumeSourceBuilder() { this(new V1HostPathVolumeSource()); 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 54c093830c..3b1fdd4e4c 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1HostPathVolumeSourceFluent> extends BaseFluent{ +public class V1HostPathVolumeSourceFluent> extends BaseFluent{ public V1HostPathVolumeSourceFluent() { } @@ -20,11 +22,11 @@ public V1HostPathVolumeSourceFluent(V1HostPathVolumeSource instance) { private String type; protected void copyInstance(V1HostPathVolumeSource instance) { - instance = (instance != null ? instance : new V1HostPathVolumeSource()); + instance = instance != null ? instance : new V1HostPathVolumeSource(); if (instance != null) { - this.withPath(instance.getPath()); - this.withType(instance.getType()); - } + this.withPath(instance.getPath()); + this.withType(instance.getType()); + } } public String getPath() { @@ -54,24 +56,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1HostPathVolumeSourceFluent that = (V1HostPathVolumeSourceFluent) o; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(path, type, super.hashCode()); + return Objects.hash(path, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 260534c46c..472032463d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IPAddressBuilder extends V1IPAddressFluent implements VisitableBuilder{ public V1IPAddressBuilder() { this(new V1IPAddress()); 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 5e1c11d3b8..66425e68b5 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IPAddressFluent> extends BaseFluent{ +public class V1IPAddressFluent> extends BaseFluent{ public V1IPAddressFluent() { } @@ -23,13 +26,13 @@ public V1IPAddressFluent(V1IPAddress instance) { private V1IPAddressSpecBuilder spec; protected void copyInstance(V1IPAddress instance) { - instance = (instance != null ? instance : new V1IPAddress()); + instance = instance != null ? instance : new V1IPAddress(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1IPAddressSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1IPAddressSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1IPAddressSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1IPAddressSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1IPAddressSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IPAddressFluent that = (V1IPAddressFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 4ad79531bc..5dc5bfb35c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IPAddressListBuilder extends V1IPAddressListFluent implements VisitableBuilder{ public V1IPAddressListBuilder() { this(new V1IPAddressList()); 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 b0cd655bfa..0fb380f607 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IPAddressListFluent> extends BaseFluent{ +public class V1IPAddressListFluent> extends BaseFluent{ public V1IPAddressListFluent() { } @@ -29,13 +32,13 @@ public V1IPAddressListFluent(V1IPAddressList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1IPAddressList instance) { - instance = (instance != null ? instance : new V1IPAddressList()); + instance = instance != null ? instance : new V1IPAddressList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1IPAddress item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1IPAddressBuilder builder = new V1IPAddressBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1IPAddress item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1IPAddress item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1IPAddressBuilder builder = new V1IPAddressBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1IPAddress item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1IPAddress... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1IPAddress item : items) { + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1IPAddress item : items) { + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { - if (this.items == null) return (A)this; - for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1IPAddress... items) { + if (this.items == null) { + return (A) this; + } + for (V1IPAddress item : items) { + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1IPAddress item : items) {V1IPAddressBuilder builder = new V1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1IPAddress item : items) { + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1IPAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1IPAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { + public A withItems(V1IPAddress... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1IPAddress... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1IPAddress item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IPAddressListFluent that = (V1IPAddressListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1IPAddressFluent> implements int index; public N and() { - return (N) V1IPAddressListFluent.this.setToItems(index,builder.build()); + return (N) V1IPAddressListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 f5425e5a44..aea849f502 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IPAddressSpecBuilder extends V1IPAddressSpecFluent implements VisitableBuilder{ public V1IPAddressSpecBuilder() { this(new V1IPAddressSpec()); 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 8794359a69..9b1c05ea9f 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IPAddressSpecFluent> extends BaseFluent{ +public class V1IPAddressSpecFluent> extends BaseFluent{ public V1IPAddressSpecFluent() { } @@ -20,10 +23,10 @@ public V1IPAddressSpecFluent(V1IPAddressSpec instance) { private V1ParentReferenceBuilder parentRef; protected void copyInstance(V1IPAddressSpec instance) { - instance = (instance != null ? instance : new V1IPAddressSpec()); + instance = instance != null ? instance : new V1IPAddressSpec(); if (instance != null) { - this.withParentRef(instance.getParentRef()); - } + this.withParentRef(instance.getParentRef()); + } } public V1ParentReference buildParentRef() { @@ -55,34 +58,45 @@ public ParentRefNested withNewParentRefLike(V1ParentReference item) { } public ParentRefNested editParentRef() { - return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(null)); + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(null)); } public ParentRefNested editOrNewParentRef() { - return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(new V1ParentReferenceBuilder().build())); + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(new V1ParentReferenceBuilder().build())); } public ParentRefNested editOrNewParentRefLike(V1ParentReference item) { - return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(item)); + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IPAddressSpecFluent that = (V1IPAddressSpecFluent) o; - if (!java.util.Objects.equals(parentRef, that.parentRef)) return false; + if (!(Objects.equals(parentRef, that.parentRef))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(parentRef, super.hashCode()); + return Objects.hash(parentRef); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (parentRef != null) { sb.append("parentRef:"); sb.append(parentRef); } + if (!(parentRef == null)) { + sb.append("parentRef:"); + sb.append(parentRef); + } sb.append("}"); return sb.toString(); } 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 652333930d..67707cfdf1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IPBlockBuilder extends V1IPBlockFluent implements VisitableBuilder{ public V1IPBlockBuilder() { this(new V1IPBlock()); 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 0d0df27b91..9b19cf02c9 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1IPBlockFluent> extends BaseFluent{ +public class V1IPBlockFluent> extends BaseFluent{ public V1IPBlockFluent() { } @@ -24,11 +26,11 @@ public V1IPBlockFluent(V1IPBlock instance) { private List except; protected void copyInstance(V1IPBlock instance) { - instance = (instance != null ? instance : new V1IPBlock()); + instance = instance != null ? instance : new V1IPBlock(); if (instance != null) { - this.withCidr(instance.getCidr()); - this.withExcept(instance.getExcept()); - } + this.withCidr(instance.getCidr()); + this.withExcept(instance.getExcept()); + } } public String getCidr() { @@ -45,34 +47,59 @@ public boolean hasCidr() { } public A addToExcept(int index,String item) { - if (this.except == null) {this.except = new ArrayList();} + if (this.except == null) { + this.except = new ArrayList(); + } this.except.add(index, item); - return (A)this; + return (A) this; } public A setToExcept(int index,String item) { - if (this.except == null) {this.except = new ArrayList();} - this.except.set(index, item); return (A)this; + if (this.except == null) { + this.except = new ArrayList(); + } + this.except.set(index, item); + return (A) this; } - public A addToExcept(java.lang.String... items) { - if (this.except == null) {this.except = new ArrayList();} - for (String item : items) {this.except.add(item);} return (A)this; + public A addToExcept(String... items) { + if (this.except == null) { + this.except = new ArrayList(); + } + for (String item : items) { + this.except.add(item); + } + return (A) this; } public A addAllToExcept(Collection items) { - if (this.except == null) {this.except = new ArrayList();} - for (String item : items) {this.except.add(item);} return (A)this; + if (this.except == null) { + this.except = new ArrayList(); + } + for (String item : items) { + this.except.add(item); + } + return (A) this; } - public A removeFromExcept(java.lang.String... items) { - if (this.except == null) return (A)this; - for (String item : items) { this.except.remove(item);} return (A)this; + public A removeFromExcept(String... items) { + if (this.except == null) { + return (A) this; + } + for (String item : items) { + this.except.remove(item); + } + return (A) this; } public A removeAllFromExcept(Collection items) { - if (this.except == null) return (A)this; - for (String item : items) { this.except.remove(item);} return (A)this; + if (this.except == null) { + return (A) this; + } + for (String item : items) { + this.except.remove(item); + } + return (A) this; } public List getExcept() { @@ -121,7 +148,7 @@ public A withExcept(List except) { return (A) this; } - public A withExcept(java.lang.String... except) { + public A withExcept(String... except) { if (this.except != null) { this.except.clear(); _visitables.remove("except"); @@ -135,28 +162,45 @@ public A withExcept(java.lang.String... except) { } public boolean hasExcept() { - return this.except != null && !this.except.isEmpty(); + return this.except != null && !(this.except.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IPBlockFluent that = (V1IPBlockFluent) o; - if (!java.util.Objects.equals(cidr, that.cidr)) return false; - if (!java.util.Objects.equals(except, that.except)) return false; + if (!(Objects.equals(cidr, that.cidr))) { + return false; + } + if (!(Objects.equals(except, that.except))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(cidr, except, super.hashCode()); + return Objects.hash(cidr, except); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (cidr != null) { sb.append("cidr:"); sb.append(cidr + ","); } - if (except != null && !except.isEmpty()) { sb.append("except:"); sb.append(except); } + if (!(cidr == null)) { + sb.append("cidr:"); + sb.append(cidr); + sb.append(","); + } + if (!(except == null) && !(except.isEmpty())) { + sb.append("except:"); + sb.append(except); + } sb.append("}"); return sb.toString(); } 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 335f4a97de..732e0e97a8 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ISCSIPersistentVolumeSourceBuilder extends V1ISCSIPersistentVolumeSourceFluent implements VisitableBuilder{ public V1ISCSIPersistentVolumeSourceBuilder() { this(new V1ISCSIPersistentVolumeSource()); 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 bb0e0d9ca0..7a66a09027 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 @@ -1,5 +1,7 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -7,6 +9,7 @@ import java.util.function.Predicate; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ISCSIPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1ISCSIPersistentVolumeSourceFluent> extends BaseFluent{ public V1ISCSIPersistentVolumeSourceFluent() { } @@ -36,20 +39,20 @@ public V1ISCSIPersistentVolumeSourceFluent(V1ISCSIPersistentVolumeSource instanc private String targetPortal; protected void copyInstance(V1ISCSIPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1ISCSIPersistentVolumeSource()); + instance = instance != null ? instance : new V1ISCSIPersistentVolumeSource(); if (instance != null) { - this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); - this.withChapAuthSession(instance.getChapAuthSession()); - this.withFsType(instance.getFsType()); - this.withInitiatorName(instance.getInitiatorName()); - this.withIqn(instance.getIqn()); - this.withIscsiInterface(instance.getIscsiInterface()); - this.withLun(instance.getLun()); - this.withPortals(instance.getPortals()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withTargetPortal(instance.getTargetPortal()); - } + this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); + this.withChapAuthSession(instance.getChapAuthSession()); + this.withFsType(instance.getFsType()); + this.withInitiatorName(instance.getInitiatorName()); + this.withIqn(instance.getIqn()); + this.withIscsiInterface(instance.getIscsiInterface()); + this.withLun(instance.getLun()); + this.withPortals(instance.getPortals()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withTargetPortal(instance.getTargetPortal()); + } } public Boolean getChapAuthDiscovery() { @@ -144,34 +147,59 @@ public boolean hasLun() { } public A addToPortals(int index,String item) { - if (this.portals == null) {this.portals = new ArrayList();} + if (this.portals == null) { + this.portals = new ArrayList(); + } this.portals.add(index, item); - return (A)this; + return (A) this; } public A setToPortals(int index,String item) { - if (this.portals == null) {this.portals = new ArrayList();} - this.portals.set(index, item); return (A)this; + if (this.portals == null) { + this.portals = new ArrayList(); + } + this.portals.set(index, item); + return (A) this; } - public A addToPortals(java.lang.String... items) { - if (this.portals == null) {this.portals = new ArrayList();} - for (String item : items) {this.portals.add(item);} return (A)this; + public A addToPortals(String... items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; } public A addAllToPortals(Collection items) { - if (this.portals == null) {this.portals = new ArrayList();} - for (String item : items) {this.portals.add(item);} return (A)this; + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; } - public A removeFromPortals(java.lang.String... items) { - if (this.portals == null) return (A)this; - for (String item : items) { this.portals.remove(item);} return (A)this; + public A removeFromPortals(String... items) { + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } + return (A) this; } public A removeAllFromPortals(Collection items) { - if (this.portals == null) return (A)this; - for (String item : items) { this.portals.remove(item);} return (A)this; + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } + return (A) this; } public List getPortals() { @@ -220,7 +248,7 @@ public A withPortals(List portals) { return (A) this; } - public A withPortals(java.lang.String... portals) { + public A withPortals(String... portals) { if (this.portals != null) { this.portals.clear(); _visitables.remove("portals"); @@ -234,7 +262,7 @@ public A withPortals(java.lang.String... portals) { } public boolean hasPortals() { - return this.portals != null && !this.portals.isEmpty(); + return this.portals != null && !(this.portals.isEmpty()); } public Boolean getReadOnly() { @@ -279,15 +307,15 @@ public SecretRefNested withNewSecretRefLike(V1SecretReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getTargetPortal() { @@ -304,42 +332,113 @@ public boolean hasTargetPortal() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ISCSIPersistentVolumeSourceFluent that = (V1ISCSIPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery)) return false; - if (!java.util.Objects.equals(chapAuthSession, that.chapAuthSession)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(initiatorName, that.initiatorName)) return false; - if (!java.util.Objects.equals(iqn, that.iqn)) return false; - if (!java.util.Objects.equals(iscsiInterface, that.iscsiInterface)) return false; - if (!java.util.Objects.equals(lun, that.lun)) return false; - if (!java.util.Objects.equals(portals, that.portals)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(targetPortal, that.targetPortal)) return false; + if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { + return false; + } + if (!(Objects.equals(chapAuthSession, that.chapAuthSession))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(initiatorName, that.initiatorName))) { + return false; + } + if (!(Objects.equals(iqn, that.iqn))) { + return false; + } + if (!(Objects.equals(iscsiInterface, that.iscsiInterface))) { + return false; + } + if (!(Objects.equals(lun, that.lun))) { + return false; + } + if (!(Objects.equals(portals, that.portals))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(targetPortal, that.targetPortal))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal, super.hashCode()); + return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (chapAuthDiscovery != null) { sb.append("chapAuthDiscovery:"); sb.append(chapAuthDiscovery + ","); } - if (chapAuthSession != null) { sb.append("chapAuthSession:"); sb.append(chapAuthSession + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (initiatorName != null) { sb.append("initiatorName:"); sb.append(initiatorName + ","); } - if (iqn != null) { sb.append("iqn:"); sb.append(iqn + ","); } - if (iscsiInterface != null) { sb.append("iscsiInterface:"); sb.append(iscsiInterface + ","); } - if (lun != null) { sb.append("lun:"); sb.append(lun + ","); } - if (portals != null && !portals.isEmpty()) { sb.append("portals:"); sb.append(portals + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (targetPortal != null) { sb.append("targetPortal:"); sb.append(targetPortal); } + if (!(chapAuthDiscovery == null)) { + sb.append("chapAuthDiscovery:"); + sb.append(chapAuthDiscovery); + sb.append(","); + } + if (!(chapAuthSession == null)) { + sb.append("chapAuthSession:"); + sb.append(chapAuthSession); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(initiatorName == null)) { + sb.append("initiatorName:"); + sb.append(initiatorName); + sb.append(","); + } + if (!(iqn == null)) { + sb.append("iqn:"); + sb.append(iqn); + sb.append(","); + } + if (!(iscsiInterface == null)) { + sb.append("iscsiInterface:"); + sb.append(iscsiInterface); + sb.append(","); + } + if (!(lun == null)) { + sb.append("lun:"); + sb.append(lun); + sb.append(","); + } + if (!(portals == null) && !(portals.isEmpty())) { + sb.append("portals:"); + sb.append(portals); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(targetPortal == null)) { + sb.append("targetPortal:"); + sb.append(targetPortal); + } sb.append("}"); return sb.toString(); } 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 1a68f91b10..cbe2230b31 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ISCSIVolumeSourceBuilder extends V1ISCSIVolumeSourceFluent implements VisitableBuilder{ public V1ISCSIVolumeSourceBuilder() { this(new V1ISCSIVolumeSource()); 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 25e08b2047..de54fd9862 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 @@ -1,5 +1,7 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -7,6 +9,7 @@ import java.util.function.Predicate; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ISCSIVolumeSourceFluent> extends BaseFluent{ +public class V1ISCSIVolumeSourceFluent> extends BaseFluent{ public V1ISCSIVolumeSourceFluent() { } @@ -36,20 +39,20 @@ public V1ISCSIVolumeSourceFluent(V1ISCSIVolumeSource instance) { private String targetPortal; protected void copyInstance(V1ISCSIVolumeSource instance) { - instance = (instance != null ? instance : new V1ISCSIVolumeSource()); + instance = instance != null ? instance : new V1ISCSIVolumeSource(); if (instance != null) { - this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); - this.withChapAuthSession(instance.getChapAuthSession()); - this.withFsType(instance.getFsType()); - this.withInitiatorName(instance.getInitiatorName()); - this.withIqn(instance.getIqn()); - this.withIscsiInterface(instance.getIscsiInterface()); - this.withLun(instance.getLun()); - this.withPortals(instance.getPortals()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withTargetPortal(instance.getTargetPortal()); - } + this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); + this.withChapAuthSession(instance.getChapAuthSession()); + this.withFsType(instance.getFsType()); + this.withInitiatorName(instance.getInitiatorName()); + this.withIqn(instance.getIqn()); + this.withIscsiInterface(instance.getIscsiInterface()); + this.withLun(instance.getLun()); + this.withPortals(instance.getPortals()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withTargetPortal(instance.getTargetPortal()); + } } public Boolean getChapAuthDiscovery() { @@ -144,34 +147,59 @@ public boolean hasLun() { } public A addToPortals(int index,String item) { - if (this.portals == null) {this.portals = new ArrayList();} + if (this.portals == null) { + this.portals = new ArrayList(); + } this.portals.add(index, item); - return (A)this; + return (A) this; } public A setToPortals(int index,String item) { - if (this.portals == null) {this.portals = new ArrayList();} - this.portals.set(index, item); return (A)this; + if (this.portals == null) { + this.portals = new ArrayList(); + } + this.portals.set(index, item); + return (A) this; } - public A addToPortals(java.lang.String... items) { - if (this.portals == null) {this.portals = new ArrayList();} - for (String item : items) {this.portals.add(item);} return (A)this; + public A addToPortals(String... items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; } public A addAllToPortals(Collection items) { - if (this.portals == null) {this.portals = new ArrayList();} - for (String item : items) {this.portals.add(item);} return (A)this; + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; } - public A removeFromPortals(java.lang.String... items) { - if (this.portals == null) return (A)this; - for (String item : items) { this.portals.remove(item);} return (A)this; + public A removeFromPortals(String... items) { + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } + return (A) this; } public A removeAllFromPortals(Collection items) { - if (this.portals == null) return (A)this; - for (String item : items) { this.portals.remove(item);} return (A)this; + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } + return (A) this; } public List getPortals() { @@ -220,7 +248,7 @@ public A withPortals(List portals) { return (A) this; } - public A withPortals(java.lang.String... portals) { + public A withPortals(String... portals) { if (this.portals != null) { this.portals.clear(); _visitables.remove("portals"); @@ -234,7 +262,7 @@ public A withPortals(java.lang.String... portals) { } public boolean hasPortals() { - return this.portals != null && !this.portals.isEmpty(); + return this.portals != null && !(this.portals.isEmpty()); } public Boolean getReadOnly() { @@ -279,15 +307,15 @@ public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getTargetPortal() { @@ -304,42 +332,113 @@ public boolean hasTargetPortal() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ISCSIVolumeSourceFluent that = (V1ISCSIVolumeSourceFluent) o; - if (!java.util.Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery)) return false; - if (!java.util.Objects.equals(chapAuthSession, that.chapAuthSession)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(initiatorName, that.initiatorName)) return false; - if (!java.util.Objects.equals(iqn, that.iqn)) return false; - if (!java.util.Objects.equals(iscsiInterface, that.iscsiInterface)) return false; - if (!java.util.Objects.equals(lun, that.lun)) return false; - if (!java.util.Objects.equals(portals, that.portals)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(targetPortal, that.targetPortal)) return false; + if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { + return false; + } + if (!(Objects.equals(chapAuthSession, that.chapAuthSession))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(initiatorName, that.initiatorName))) { + return false; + } + if (!(Objects.equals(iqn, that.iqn))) { + return false; + } + if (!(Objects.equals(iscsiInterface, that.iscsiInterface))) { + return false; + } + if (!(Objects.equals(lun, that.lun))) { + return false; + } + if (!(Objects.equals(portals, that.portals))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(targetPortal, that.targetPortal))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal, super.hashCode()); + return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (chapAuthDiscovery != null) { sb.append("chapAuthDiscovery:"); sb.append(chapAuthDiscovery + ","); } - if (chapAuthSession != null) { sb.append("chapAuthSession:"); sb.append(chapAuthSession + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (initiatorName != null) { sb.append("initiatorName:"); sb.append(initiatorName + ","); } - if (iqn != null) { sb.append("iqn:"); sb.append(iqn + ","); } - if (iscsiInterface != null) { sb.append("iscsiInterface:"); sb.append(iscsiInterface + ","); } - if (lun != null) { sb.append("lun:"); sb.append(lun + ","); } - if (portals != null && !portals.isEmpty()) { sb.append("portals:"); sb.append(portals + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (targetPortal != null) { sb.append("targetPortal:"); sb.append(targetPortal); } + if (!(chapAuthDiscovery == null)) { + sb.append("chapAuthDiscovery:"); + sb.append(chapAuthDiscovery); + sb.append(","); + } + if (!(chapAuthSession == null)) { + sb.append("chapAuthSession:"); + sb.append(chapAuthSession); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(initiatorName == null)) { + sb.append("initiatorName:"); + sb.append(initiatorName); + sb.append(","); + } + if (!(iqn == null)) { + sb.append("iqn:"); + sb.append(iqn); + sb.append(","); + } + if (!(iscsiInterface == null)) { + sb.append("iscsiInterface:"); + sb.append(iscsiInterface); + sb.append(","); + } + if (!(lun == null)) { + sb.append("lun:"); + sb.append(lun); + sb.append(","); + } + if (!(portals == null) && !(portals.isEmpty())) { + sb.append("portals:"); + sb.append(portals); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(targetPortal == null)) { + sb.append("targetPortal:"); + sb.append(targetPortal); + } sb.append("}"); return sb.toString(); } 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 1a0359aa1a..02c60a0e0c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ImageVolumeSourceBuilder extends V1ImageVolumeSourceFluent implements VisitableBuilder{ public V1ImageVolumeSourceBuilder() { this(new V1ImageVolumeSource()); 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 d1527cefc0..3ab4318bc0 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ImageVolumeSourceFluent> extends BaseFluent{ +public class V1ImageVolumeSourceFluent> extends BaseFluent{ public V1ImageVolumeSourceFluent() { } @@ -20,11 +22,11 @@ public V1ImageVolumeSourceFluent(V1ImageVolumeSource instance) { private String reference; protected void copyInstance(V1ImageVolumeSource instance) { - instance = (instance != null ? instance : new V1ImageVolumeSource()); + instance = instance != null ? instance : new V1ImageVolumeSource(); if (instance != null) { - this.withPullPolicy(instance.getPullPolicy()); - this.withReference(instance.getReference()); - } + this.withPullPolicy(instance.getPullPolicy()); + this.withReference(instance.getReference()); + } } public String getPullPolicy() { @@ -54,24 +56,41 @@ public boolean hasReference() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ImageVolumeSourceFluent that = (V1ImageVolumeSourceFluent) o; - if (!java.util.Objects.equals(pullPolicy, that.pullPolicy)) return false; - if (!java.util.Objects.equals(reference, that.reference)) return false; + if (!(Objects.equals(pullPolicy, that.pullPolicy))) { + return false; + } + if (!(Objects.equals(reference, that.reference))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(pullPolicy, reference, super.hashCode()); + return Objects.hash(pullPolicy, reference); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (pullPolicy != null) { sb.append("pullPolicy:"); sb.append(pullPolicy + ","); } - if (reference != null) { sb.append("reference:"); sb.append(reference); } + if (!(pullPolicy == null)) { + sb.append("pullPolicy:"); + sb.append(pullPolicy); + sb.append(","); + } + if (!(reference == null)) { + sb.append("reference:"); + sb.append(reference); + } sb.append("}"); return sb.toString(); } 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 55903fef64..04c2cbd39a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressBackendBuilder extends V1IngressBackendFluent implements VisitableBuilder{ public V1IngressBackendBuilder() { this(new V1IngressBackend()); 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 abb82615fe..6f1d17d279 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressBackendFluent> extends BaseFluent{ +public class V1IngressBackendFluent> extends BaseFluent{ public V1IngressBackendFluent() { } @@ -21,11 +24,11 @@ public V1IngressBackendFluent(V1IngressBackend instance) { private V1IngressServiceBackendBuilder service; protected void copyInstance(V1IngressBackend instance) { - instance = (instance != null ? instance : new V1IngressBackend()); + instance = instance != null ? instance : new V1IngressBackend(); if (instance != null) { - this.withResource(instance.getResource()); - this.withService(instance.getService()); - } + this.withResource(instance.getResource()); + this.withService(instance.getService()); + } } public V1TypedLocalObjectReference buildResource() { @@ -57,15 +60,15 @@ public ResourceNested withNewResourceLike(V1TypedLocalObjectReference item) { } public ResourceNested editResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(null)); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); } public ResourceNested editOrNewResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); } public ResourceNested editOrNewResourceLike(V1TypedLocalObjectReference item) { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(item)); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } public V1IngressServiceBackend buildService() { @@ -97,36 +100,53 @@ public ServiceNested withNewServiceLike(V1IngressServiceBackend item) { } public ServiceNested editService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(null)); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public ServiceNested editOrNewService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(new V1IngressServiceBackendBuilder().build())); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new V1IngressServiceBackendBuilder().build())); } public ServiceNested editOrNewServiceLike(V1IngressServiceBackend item) { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(item)); + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressBackendFluent that = (V1IngressBackendFluent) o; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(resource, service, super.hashCode()); + return Objects.hash(resource, service); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (service != null) { sb.append("service:"); sb.append(service); } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + } sb.append("}"); return sb.toString(); } 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 fdff52b0a2..20a1185816 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressBuilder extends V1IngressFluent implements VisitableBuilder{ public V1IngressBuilder() { this(new V1Ingress()); 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 ac6e989035..3757a40c5b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressClassBuilder extends V1IngressClassFluent implements VisitableBuilder{ public V1IngressClassBuilder() { this(new V1IngressClass()); 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 feebf50abc..670b1f24fd 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressClassFluent> extends BaseFluent{ +public class V1IngressClassFluent> extends BaseFluent{ public V1IngressClassFluent() { } @@ -23,13 +26,13 @@ public V1IngressClassFluent(V1IngressClass instance) { private V1IngressClassSpecBuilder spec; protected void copyInstance(V1IngressClass instance) { - instance = (instance != null ? instance : new V1IngressClass()); + instance = instance != null ? instance : new V1IngressClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1IngressClassSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1IngressClassSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1IngressClassSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1IngressClassSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1IngressClassSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressClassFluent that = (V1IngressClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 8621a9806c..9ce48f466f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressClassListBuilder extends V1IngressClassListFluent implements VisitableBuilder{ public V1IngressClassListBuilder() { this(new V1IngressClassList()); 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 d83a3dafa6..67c42b3672 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressClassListFluent> extends BaseFluent{ +public class V1IngressClassListFluent> extends BaseFluent{ public V1IngressClassListFluent() { } @@ -29,13 +32,13 @@ public V1IngressClassListFluent(V1IngressClassList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1IngressClassList instance) { - instance = (instance != null ? instance : new V1IngressClassList()); + instance = instance != null ? instance : new V1IngressClassList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1IngressClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1IngressClassBuilder builder = new V1IngressClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1IngressClass item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1IngressClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1IngressClassBuilder builder = new V1IngressClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1IngressClass item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1IngressClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { - if (this.items == null) return (A)this; - for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1IngressClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1IngressClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1IngressClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { + public A withItems(V1IngressClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1IngressClass... items) } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1IngressClass item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressClassListFluent that = (V1IngressClassListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1IngressClassFluent> impleme int index; public N and() { - return (N) V1IngressClassListFluent.this.setToItems(index,builder.build()); + return (N) V1IngressClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 68a85587d5..eef3d4d238 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressClassParametersReferenceBuilder extends V1IngressClassParametersReferenceFluent implements VisitableBuilder{ public V1IngressClassParametersReferenceBuilder() { this(new V1IngressClassParametersReference()); 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 56a9dc7edb..5c396f2582 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1IngressClassParametersReferenceFluent> extends BaseFluent{ +public class V1IngressClassParametersReferenceFluent> extends BaseFluent{ public V1IngressClassParametersReferenceFluent() { } @@ -23,14 +25,14 @@ public V1IngressClassParametersReferenceFluent(V1IngressClassParametersReference private String scope; protected void copyInstance(V1IngressClassParametersReference instance) { - instance = (instance != null ? instance : new V1IngressClassParametersReference()); + instance = instance != null ? instance : new V1IngressClassParametersReference(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withScope(instance.getScope()); - } + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withScope(instance.getScope()); + } } public String getApiGroup() { @@ -99,30 +101,65 @@ public boolean hasScope() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressClassParametersReferenceFluent that = (V1IngressClassParametersReferenceFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(scope, that.scope)) return false; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, namespace, scope, super.hashCode()); + return Objects.hash(apiGroup, kind, name, namespace, scope); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (scope != null) { sb.append("scope:"); sb.append(scope); } + 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(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } sb.append("}"); return sb.toString(); } 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 4c6e7df7c4..41eb113e60 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressClassSpecBuilder extends V1IngressClassSpecFluent implements VisitableBuilder{ public V1IngressClassSpecBuilder() { this(new V1IngressClassSpec()); 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 f98afff209..6f782ecd32 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressClassSpecFluent> extends BaseFluent{ +public class V1IngressClassSpecFluent> extends BaseFluent{ public V1IngressClassSpecFluent() { } @@ -21,11 +24,11 @@ public V1IngressClassSpecFluent(V1IngressClassSpec instance) { private V1IngressClassParametersReferenceBuilder parameters; protected void copyInstance(V1IngressClassSpec instance) { - instance = (instance != null ? instance : new V1IngressClassSpec()); + instance = instance != null ? instance : new V1IngressClassSpec(); if (instance != null) { - this.withController(instance.getController()); - this.withParameters(instance.getParameters()); - } + this.withController(instance.getController()); + this.withParameters(instance.getParameters()); + } } public String getController() { @@ -70,36 +73,53 @@ public ParametersNested withNewParametersLike(V1IngressClassParametersReferen } public ParametersNested editParameters() { - return withNewParametersLike(java.util.Optional.ofNullable(buildParameters()).orElse(null)); + return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(null)); } public ParametersNested editOrNewParameters() { - return withNewParametersLike(java.util.Optional.ofNullable(buildParameters()).orElse(new V1IngressClassParametersReferenceBuilder().build())); + return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(new V1IngressClassParametersReferenceBuilder().build())); } public ParametersNested editOrNewParametersLike(V1IngressClassParametersReference item) { - return withNewParametersLike(java.util.Optional.ofNullable(buildParameters()).orElse(item)); + return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressClassSpecFluent that = (V1IngressClassSpecFluent) o; - if (!java.util.Objects.equals(controller, that.controller)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; + if (!(Objects.equals(controller, that.controller))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(controller, parameters, super.hashCode()); + return Objects.hash(controller, parameters); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (controller != null) { sb.append("controller:"); sb.append(controller + ","); } - if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } + if (!(controller == null)) { + sb.append("controller:"); + sb.append(controller); + sb.append(","); + } + if (!(parameters == null)) { + sb.append("parameters:"); + sb.append(parameters); + } sb.append("}"); return sb.toString(); } 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 732f88eb0f..ddf04cee33 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressFluent> extends BaseFluent{ +public class V1IngressFluent> extends BaseFluent{ public V1IngressFluent() { } @@ -24,14 +27,14 @@ public V1IngressFluent(V1Ingress instance) { private V1IngressStatusBuilder status; protected void copyInstance(V1Ingress instance) { - instance = (instance != null ? instance : new V1Ingress()); + instance = instance != null ? instance : new V1Ingress(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1IngressSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1IngressSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1IngressSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1IngressSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1IngressSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1IngressStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1IngressStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1IngressStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1IngressStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1IngressStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressFluent that = (V1IngressFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 b12cf2c80d..82798602da 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressListBuilder extends V1IngressListFluent implements VisitableBuilder{ public V1IngressListBuilder() { this(new V1IngressList()); 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 deb60fc2b5..736f02c491 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressListFluent> extends BaseFluent{ +public class V1IngressListFluent> extends BaseFluent{ public V1IngressListFluent() { } @@ -29,13 +32,13 @@ public V1IngressListFluent(V1IngressList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1IngressList instance) { - instance = (instance != null ? instance : new V1IngressList()); + instance = instance != null ? instance : new V1IngressList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Ingress item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1IngressBuilder builder = new V1IngressBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Ingress item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Ingress item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1IngressBuilder builder = new V1IngressBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Ingress item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Ingress... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Ingress... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Ingress... items) { - if (this.items == null) return (A)this; - for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Ingress... items) { + if (this.items == null) { + return (A) this; + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1IngressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1IngressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Ingress... items) { + public A withItems(V1Ingress... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Ingress... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Ingress item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressListFluent that = (V1IngressListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1IngressFluent> implements N int index; public N and() { - return (N) V1IngressListFluent.this.setToItems(index,builder.build()); + return (N) V1IngressListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 87fd0c369d..fabe2ed94b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressLoadBalancerIngressBuilder extends V1IngressLoadBalancerIngressFluent implements VisitableBuilder{ public V1IngressLoadBalancerIngressBuilder() { this(new V1IngressLoadBalancerIngress()); 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 17a38f9c86..0632ce528f 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1IngressLoadBalancerIngressFluent> extends BaseFluent{ +public class V1IngressLoadBalancerIngressFluent> extends BaseFluent{ public V1IngressLoadBalancerIngressFluent() { } @@ -28,12 +30,12 @@ public V1IngressLoadBalancerIngressFluent(V1IngressLoadBalancerIngress instance) private ArrayList ports; protected void copyInstance(V1IngressLoadBalancerIngress instance) { - instance = (instance != null ? instance : new V1IngressLoadBalancerIngress()); + instance = instance != null ? instance : new V1IngressLoadBalancerIngress(); if (instance != null) { - this.withHostname(instance.getHostname()); - this.withIp(instance.getIp()); - this.withPorts(instance.getPorts()); - } + this.withHostname(instance.getHostname()); + this.withIp(instance.getIp()); + this.withPorts(instance.getPorts()); + } } public String getHostname() { @@ -63,7 +65,9 @@ public boolean hasIp() { } public A addToPorts(int index,V1IngressPortStatus item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -72,11 +76,13 @@ public A addToPorts(int index,V1IngressPortStatus item) { _visitables.get("ports").add(builder); ports.add(index, builder); } - return (A)this; + return (A) this; } public A setToPorts(int index,V1IngressPortStatus item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -85,41 +91,71 @@ public A setToPorts(int index,V1IngressPortStatus item) { _visitables.get("ports").add(builder); ports.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1IngressPortStatus... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1IngressPortStatus item : items) {V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A addToPorts(V1IngressPortStatus... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1IngressPortStatus item : items) {V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1IngressPortStatus... items) { - if (this.ports == null) return (A)this; - for (V1IngressPortStatus item : items) {V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeFromPorts(V1IngressPortStatus... items) { + if (this.ports == null) { + return (A) this; + } + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1IngressPortStatus item : items) {V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - V1IngressPortStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1IngressPortStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPorts() { @@ -171,7 +207,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1IngressPortStatus... ports) { + public A withPorts(V1IngressPortStatus... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -185,7 +221,7 @@ public A withPorts(io.kubernetes.client.openapi.models.V1IngressPortStatus... po } public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + return this.ports != null && !(this.ports.isEmpty()); } public PortsNested addNewPort() { @@ -201,51 +237,85 @@ public PortsNested setNewPortLike(int index,V1IngressPortStatus item) { } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (index <= ports.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public PortsNested editLastPort() { int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i=0;i extends V1IngressPortStatusFluent> im int index; public N and() { - return (N) V1IngressLoadBalancerIngressFluent.this.setToPorts(index,builder.build()); + return (N) V1IngressLoadBalancerIngressFluent.this.setToPorts(index, builder.build()); } public N endPort() { 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 bd5fed0a9a..1dbbe65e8e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressLoadBalancerStatusBuilder extends V1IngressLoadBalancerStatusFluent implements VisitableBuilder{ public V1IngressLoadBalancerStatusBuilder() { this(new V1IngressLoadBalancerStatus()); 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 40c2d84b44..25a12a6564 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1IngressLoadBalancerStatusFluent> extends BaseFluent{ +public class V1IngressLoadBalancerStatusFluent> extends BaseFluent{ public V1IngressLoadBalancerStatusFluent() { } @@ -26,14 +28,16 @@ public V1IngressLoadBalancerStatusFluent(V1IngressLoadBalancerStatus instance) { private ArrayList ingress; protected void copyInstance(V1IngressLoadBalancerStatus instance) { - instance = (instance != null ? instance : new V1IngressLoadBalancerStatus()); + instance = instance != null ? instance : new V1IngressLoadBalancerStatus(); if (instance != null) { - this.withIngress(instance.getIngress()); - } + this.withIngress(instance.getIngress()); + } } public A addToIngress(int index,V1IngressLoadBalancerIngress item) { - if (this.ingress == null) {this.ingress = new ArrayList();} + if (this.ingress == null) { + this.ingress = new ArrayList(); + } V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); @@ -42,11 +46,13 @@ public A addToIngress(int index,V1IngressLoadBalancerIngress item) { _visitables.get("ingress").add(builder); ingress.add(index, builder); } - return (A)this; + return (A) this; } public A setToIngress(int index,V1IngressLoadBalancerIngress item) { - if (this.ingress == null) {this.ingress = new ArrayList();} + if (this.ingress == null) { + this.ingress = new ArrayList(); + } V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); @@ -55,41 +61,71 @@ public A setToIngress(int index,V1IngressLoadBalancerIngress item) { _visitables.get("ingress").add(builder); ingress.set(index, builder); } - return (A)this; + return (A) this; } - public A addToIngress(io.kubernetes.client.openapi.models.V1IngressLoadBalancerIngress... items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1IngressLoadBalancerIngress item : items) {V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + public A addToIngress(V1IngressLoadBalancerIngress... items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } public A addAllToIngress(Collection items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1IngressLoadBalancerIngress item : items) {V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } - public A removeFromIngress(io.kubernetes.client.openapi.models.V1IngressLoadBalancerIngress... items) { - if (this.ingress == null) return (A)this; - for (V1IngressLoadBalancerIngress item : items) {V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + public A removeFromIngress(V1IngressLoadBalancerIngress... items) { + if (this.ingress == null) { + return (A) this; + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; } public A removeAllFromIngress(Collection items) { - if (this.ingress == null) return (A)this; - for (V1IngressLoadBalancerIngress item : items) {V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + if (this.ingress == null) { + return (A) this; + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; } public A removeMatchingFromIngress(Predicate predicate) { - if (ingress == null) return (A) this; - final Iterator each = ingress.iterator(); - final List visitables = _visitables.get("ingress"); + if (ingress == null) { + return (A) this; + } + Iterator each = ingress.iterator(); + List visitables = _visitables.get("ingress"); while (each.hasNext()) { - V1IngressLoadBalancerIngressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1IngressLoadBalancerIngressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildIngress() { @@ -141,7 +177,7 @@ public A withIngress(List ingress) { return (A) this; } - public A withIngress(io.kubernetes.client.openapi.models.V1IngressLoadBalancerIngress... ingress) { + public A withIngress(V1IngressLoadBalancerIngress... ingress) { if (this.ingress != null) { this.ingress.clear(); _visitables.remove("ingress"); @@ -155,7 +191,7 @@ public A withIngress(io.kubernetes.client.openapi.models.V1IngressLoadBalancerIn } public boolean hasIngress() { - return this.ingress != null && !this.ingress.isEmpty(); + return this.ingress != null && !(this.ingress.isEmpty()); } public IngressNested addNewIngress() { @@ -171,47 +207,69 @@ public IngressNested setNewIngressLike(int index,V1IngressLoadBalancerIngress } public IngressNested editIngress(int index) { - if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); - return setNewIngressLike(index, buildIngress(index)); + if (index <= ingress.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); } public IngressNested editFirstIngress() { - if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); - return setNewIngressLike(0, buildIngress(0)); + if (ingress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(0, this.buildIngress(0)); } public IngressNested editLastIngress() { int index = ingress.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ingress. The list is empty."); - return setNewIngressLike(index, buildIngress(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); } public IngressNested editMatchingIngress(Predicate predicate) { int index = -1; - for (int i=0;i extends V1IngressLoadBalancerIngressFluent implements VisitableBuilder{ public V1IngressPortStatusBuilder() { this(new V1IngressPortStatus()); 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 d288140e46..18d705cdd9 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1IngressPortStatusFluent> extends BaseFluent{ +public class V1IngressPortStatusFluent> extends BaseFluent{ public V1IngressPortStatusFluent() { } @@ -22,12 +24,12 @@ public V1IngressPortStatusFluent(V1IngressPortStatus instance) { private String protocol; protected void copyInstance(V1IngressPortStatus instance) { - instance = (instance != null ? instance : new V1IngressPortStatus()); + instance = instance != null ? instance : new V1IngressPortStatus(); if (instance != null) { - this.withError(instance.getError()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } + this.withError(instance.getError()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } public String getError() { @@ -70,26 +72,49 @@ public boolean hasProtocol() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressPortStatusFluent that = (V1IngressPortStatusFluent) o; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(error, port, protocol, super.hashCode()); + return Objects.hash(error, port, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } 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 3ad697af23..4fc5ff9578 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressRuleBuilder extends V1IngressRuleFluent implements VisitableBuilder{ public V1IngressRuleBuilder() { this(new V1IngressRule()); 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 3d4ac6c6b4..27aaba45de 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressRuleFluent> extends BaseFluent{ +public class V1IngressRuleFluent> extends BaseFluent{ public V1IngressRuleFluent() { } @@ -21,11 +24,11 @@ public V1IngressRuleFluent(V1IngressRule instance) { private V1HTTPIngressRuleValueBuilder http; protected void copyInstance(V1IngressRule instance) { - instance = (instance != null ? instance : new V1IngressRule()); + instance = instance != null ? instance : new V1IngressRule(); if (instance != null) { - this.withHost(instance.getHost()); - this.withHttp(instance.getHttp()); - } + this.withHost(instance.getHost()); + this.withHttp(instance.getHttp()); + } } public String getHost() { @@ -70,36 +73,53 @@ public HttpNested withNewHttpLike(V1HTTPIngressRuleValue item) { } public HttpNested editHttp() { - return withNewHttpLike(java.util.Optional.ofNullable(buildHttp()).orElse(null)); + return this.withNewHttpLike(Optional.ofNullable(this.buildHttp()).orElse(null)); } public HttpNested editOrNewHttp() { - return withNewHttpLike(java.util.Optional.ofNullable(buildHttp()).orElse(new V1HTTPIngressRuleValueBuilder().build())); + return this.withNewHttpLike(Optional.ofNullable(this.buildHttp()).orElse(new V1HTTPIngressRuleValueBuilder().build())); } public HttpNested editOrNewHttpLike(V1HTTPIngressRuleValue item) { - return withNewHttpLike(java.util.Optional.ofNullable(buildHttp()).orElse(item)); + return this.withNewHttpLike(Optional.ofNullable(this.buildHttp()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressRuleFluent that = (V1IngressRuleFluent) o; - if (!java.util.Objects.equals(host, that.host)) return false; - if (!java.util.Objects.equals(http, that.http)) return false; + if (!(Objects.equals(host, that.host))) { + return false; + } + if (!(Objects.equals(http, that.http))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(host, http, super.hashCode()); + return Objects.hash(host, http); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (host != null) { sb.append("host:"); sb.append(host + ","); } - if (http != null) { sb.append("http:"); sb.append(http); } + if (!(host == null)) { + sb.append("host:"); + sb.append(host); + sb.append(","); + } + if (!(http == null)) { + sb.append("http:"); + sb.append(http); + } sb.append("}"); return sb.toString(); } 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 8a2fbe27c0..83a1eaff72 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressServiceBackendBuilder extends V1IngressServiceBackendFluent implements VisitableBuilder{ public V1IngressServiceBackendBuilder() { this(new V1IngressServiceBackend()); 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 c4fcf4fe22..3dc0e775c7 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressServiceBackendFluent> extends BaseFluent{ +public class V1IngressServiceBackendFluent> extends BaseFluent{ public V1IngressServiceBackendFluent() { } @@ -21,11 +24,11 @@ public V1IngressServiceBackendFluent(V1IngressServiceBackend instance) { private V1ServiceBackendPortBuilder port; protected void copyInstance(V1IngressServiceBackend instance) { - instance = (instance != null ? instance : new V1IngressServiceBackend()); + instance = instance != null ? instance : new V1IngressServiceBackend(); if (instance != null) { - this.withName(instance.getName()); - this.withPort(instance.getPort()); - } + this.withName(instance.getName()); + this.withPort(instance.getPort()); + } } public String getName() { @@ -70,36 +73,53 @@ public PortNested withNewPortLike(V1ServiceBackendPort item) { } public PortNested editPort() { - return withNewPortLike(java.util.Optional.ofNullable(buildPort()).orElse(null)); + return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(null)); } public PortNested editOrNewPort() { - return withNewPortLike(java.util.Optional.ofNullable(buildPort()).orElse(new V1ServiceBackendPortBuilder().build())); + return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(new V1ServiceBackendPortBuilder().build())); } public PortNested editOrNewPortLike(V1ServiceBackendPort item) { - return withNewPortLike(java.util.Optional.ofNullable(buildPort()).orElse(item)); + return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressServiceBackendFluent that = (V1IngressServiceBackendFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, port, super.hashCode()); + return Objects.hash(name, port); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } 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 fac67ab401..be2a994d7c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressSpecBuilder extends V1IngressSpecFluent implements VisitableBuilder{ public V1IngressSpecBuilder() { this(new V1IngressSpec()); 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 769beb7c15..aa399fd4b5 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1IngressSpecFluent> extends BaseFluent{ +public class V1IngressSpecFluent> extends BaseFluent{ public V1IngressSpecFluent() { } @@ -29,13 +32,13 @@ public V1IngressSpecFluent(V1IngressSpec instance) { private ArrayList tls; protected void copyInstance(V1IngressSpec instance) { - instance = (instance != null ? instance : new V1IngressSpec()); + instance = instance != null ? instance : new V1IngressSpec(); if (instance != null) { - this.withDefaultBackend(instance.getDefaultBackend()); - this.withIngressClassName(instance.getIngressClassName()); - this.withRules(instance.getRules()); - this.withTls(instance.getTls()); - } + this.withDefaultBackend(instance.getDefaultBackend()); + this.withIngressClassName(instance.getIngressClassName()); + this.withRules(instance.getRules()); + this.withTls(instance.getTls()); + } } public V1IngressBackend buildDefaultBackend() { @@ -67,15 +70,15 @@ public DefaultBackendNested withNewDefaultBackendLike(V1IngressBackend item) } public DefaultBackendNested editDefaultBackend() { - return withNewDefaultBackendLike(java.util.Optional.ofNullable(buildDefaultBackend()).orElse(null)); + return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(null)); } public DefaultBackendNested editOrNewDefaultBackend() { - return withNewDefaultBackendLike(java.util.Optional.ofNullable(buildDefaultBackend()).orElse(new V1IngressBackendBuilder().build())); + return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(new V1IngressBackendBuilder().build())); } public DefaultBackendNested editOrNewDefaultBackendLike(V1IngressBackend item) { - return withNewDefaultBackendLike(java.util.Optional.ofNullable(buildDefaultBackend()).orElse(item)); + return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(item)); } public String getIngressClassName() { @@ -92,7 +95,9 @@ public boolean hasIngressClassName() { } public A addToRules(int index,V1IngressRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -101,11 +106,13 @@ public A addToRules(int index,V1IngressRule item) { _visitables.get("rules").add(builder); rules.add(index, builder); } - return (A)this; + return (A) this; } public A setToRules(int index,V1IngressRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -114,41 +121,71 @@ public A setToRules(int index,V1IngressRule item) { _visitables.get("rules").add(builder); rules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRules(io.kubernetes.client.openapi.models.V1IngressRule... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public A addToRules(V1IngressRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1IngressRule... items) { - if (this.rules == null) return (A)this; - for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A removeFromRules(V1IngressRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + if (this.rules == null) { + return (A) this; + } + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1IngressRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1IngressRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRules() { @@ -200,7 +237,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1IngressRule... rules) { + public A withRules(V1IngressRule... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -214,7 +251,7 @@ public A withRules(io.kubernetes.client.openapi.models.V1IngressRule... rules) { } public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + return this.rules != null && !(this.rules.isEmpty()); } public RulesNested addNewRule() { @@ -230,32 +267,45 @@ public RulesNested setNewRuleLike(int index,V1IngressRule item) { } public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); + if (index <= rules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } public RulesNested editLastRule() { int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.tls == null) { + this.tls = new ArrayList(); + } V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); if (index < 0 || index >= tls.size()) { _visitables.get("tls").add(builder); @@ -264,11 +314,13 @@ public A addToTls(int index,V1IngressTLS item) { _visitables.get("tls").add(builder); tls.add(index, builder); } - return (A)this; + return (A) this; } public A setToTls(int index,V1IngressTLS item) { - if (this.tls == null) {this.tls = new ArrayList();} + if (this.tls == null) { + this.tls = new ArrayList(); + } V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); if (index < 0 || index >= tls.size()) { _visitables.get("tls").add(builder); @@ -277,41 +329,71 @@ public A setToTls(int index,V1IngressTLS item) { _visitables.get("tls").add(builder); tls.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTls(io.kubernetes.client.openapi.models.V1IngressTLS... items) { - if (this.tls == null) {this.tls = new ArrayList();} - for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").add(builder);this.tls.add(builder);} return (A)this; + public A addToTls(V1IngressTLS... items) { + if (this.tls == null) { + this.tls = new ArrayList(); + } + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").add(builder); + this.tls.add(builder); + } + return (A) this; } public A addAllToTls(Collection items) { - if (this.tls == null) {this.tls = new ArrayList();} - for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").add(builder);this.tls.add(builder);} return (A)this; + if (this.tls == null) { + this.tls = new ArrayList(); + } + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").add(builder); + this.tls.add(builder); + } + return (A) this; } - public A removeFromTls(io.kubernetes.client.openapi.models.V1IngressTLS... items) { - if (this.tls == null) return (A)this; - for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").remove(builder); this.tls.remove(builder);} return (A)this; + public A removeFromTls(V1IngressTLS... items) { + if (this.tls == null) { + return (A) this; + } + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").remove(builder); + this.tls.remove(builder); + } + return (A) this; } public A removeAllFromTls(Collection items) { - if (this.tls == null) return (A)this; - for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").remove(builder); this.tls.remove(builder);} return (A)this; + if (this.tls == null) { + return (A) this; + } + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").remove(builder); + this.tls.remove(builder); + } + return (A) this; } public A removeMatchingFromTls(Predicate predicate) { - if (tls == null) return (A) this; - final Iterator each = tls.iterator(); - final List visitables = _visitables.get("tls"); + if (tls == null) { + return (A) this; + } + Iterator each = tls.iterator(); + List visitables = _visitables.get("tls"); while (each.hasNext()) { - V1IngressTLSBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1IngressTLSBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTls() { @@ -363,7 +445,7 @@ public A withTls(List tls) { return (A) this; } - public A withTls(io.kubernetes.client.openapi.models.V1IngressTLS... tls) { + public A withTls(V1IngressTLS... tls) { if (this.tls != null) { this.tls.clear(); _visitables.remove("tls"); @@ -377,7 +459,7 @@ public A withTls(io.kubernetes.client.openapi.models.V1IngressTLS... tls) { } public boolean hasTls() { - return this.tls != null && !this.tls.isEmpty(); + return this.tls != null && !(this.tls.isEmpty()); } public TlsNested addNewTl() { @@ -393,53 +475,93 @@ public TlsNested setNewTlLike(int index,V1IngressTLS item) { } public TlsNested editTl(int index) { - if (tls.size() <= index) throw new RuntimeException("Can't edit tls. Index exceeds size."); - return setNewTlLike(index, buildTl(index)); + if (index <= tls.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tls")); + } + return this.setNewTlLike(index, this.buildTl(index)); } public TlsNested editFirstTl() { - if (tls.size() == 0) throw new RuntimeException("Can't edit first tls. The list is empty."); - return setNewTlLike(0, buildTl(0)); + if (tls.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tls")); + } + return this.setNewTlLike(0, this.buildTl(0)); } public TlsNested editLastTl() { int index = tls.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tls. The list is empty."); - return setNewTlLike(index, buildTl(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tls")); + } + return this.setNewTlLike(index, this.buildTl(index)); } public TlsNested editMatchingTl(Predicate predicate) { int index = -1; - for (int i=0;i extends V1IngressRuleFluent> implemen int index; public N and() { - return (N) V1IngressSpecFluent.this.setToRules(index,builder.build()); + return (N) V1IngressSpecFluent.this.setToRules(index, builder.build()); } public N endRule() { @@ -486,7 +608,7 @@ public class TlsNested extends V1IngressTLSFluent> implements Ne int index; public N and() { - return (N) V1IngressSpecFluent.this.setToTls(index,builder.build()); + return (N) V1IngressSpecFluent.this.setToTls(index, builder.build()); } public N endTl() { 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 b1f90efbb0..c1b7cabba2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressStatusBuilder extends V1IngressStatusFluent implements VisitableBuilder{ public V1IngressStatusBuilder() { this(new V1IngressStatus()); 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 614c9dad60..76c8ae2a4b 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressStatusFluent> extends BaseFluent{ +public class V1IngressStatusFluent> extends BaseFluent{ public V1IngressStatusFluent() { } @@ -20,10 +23,10 @@ public V1IngressStatusFluent(V1IngressStatus instance) { private V1IngressLoadBalancerStatusBuilder loadBalancer; protected void copyInstance(V1IngressStatus instance) { - instance = (instance != null ? instance : new V1IngressStatus()); + instance = instance != null ? instance : new V1IngressStatus(); if (instance != null) { - this.withLoadBalancer(instance.getLoadBalancer()); - } + this.withLoadBalancer(instance.getLoadBalancer()); + } } public V1IngressLoadBalancerStatus buildLoadBalancer() { @@ -55,34 +58,45 @@ public LoadBalancerNested withNewLoadBalancerLike(V1IngressLoadBalancerStatus } public LoadBalancerNested editLoadBalancer() { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(null)); + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(null)); } public LoadBalancerNested editOrNewLoadBalancer() { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(new V1IngressLoadBalancerStatusBuilder().build())); + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(new V1IngressLoadBalancerStatusBuilder().build())); } public LoadBalancerNested editOrNewLoadBalancerLike(V1IngressLoadBalancerStatus item) { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(item)); + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressStatusFluent that = (V1IngressStatusFluent) o; - if (!java.util.Objects.equals(loadBalancer, that.loadBalancer)) return false; + if (!(Objects.equals(loadBalancer, that.loadBalancer))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(loadBalancer, super.hashCode()); + return Objects.hash(loadBalancer); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (loadBalancer != null) { sb.append("loadBalancer:"); sb.append(loadBalancer); } + if (!(loadBalancer == null)) { + sb.append("loadBalancer:"); + sb.append(loadBalancer); + } sb.append("}"); return sb.toString(); } 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 f21e29553e..d685a491dc 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressTLSBuilder extends V1IngressTLSFluent implements VisitableBuilder{ public V1IngressTLSBuilder() { this(new V1IngressTLS()); 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 4b8c2c2c97..d5e590ac24 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1IngressTLSFluent> extends BaseFluent{ +public class V1IngressTLSFluent> extends BaseFluent{ public V1IngressTLSFluent() { } @@ -24,42 +26,67 @@ public V1IngressTLSFluent(V1IngressTLS instance) { private String secretName; protected void copyInstance(V1IngressTLS instance) { - instance = (instance != null ? instance : new V1IngressTLS()); + instance = instance != null ? instance : new V1IngressTLS(); if (instance != null) { - this.withHosts(instance.getHosts()); - this.withSecretName(instance.getSecretName()); - } + this.withHosts(instance.getHosts()); + this.withSecretName(instance.getSecretName()); + } } public A addToHosts(int index,String item) { - if (this.hosts == null) {this.hosts = new ArrayList();} + if (this.hosts == null) { + this.hosts = new ArrayList(); + } this.hosts.add(index, item); - return (A)this; + return (A) this; } public A setToHosts(int index,String item) { - if (this.hosts == null) {this.hosts = new ArrayList();} - this.hosts.set(index, item); return (A)this; + if (this.hosts == null) { + this.hosts = new ArrayList(); + } + this.hosts.set(index, item); + return (A) this; } - public A addToHosts(java.lang.String... items) { - if (this.hosts == null) {this.hosts = new ArrayList();} - for (String item : items) {this.hosts.add(item);} return (A)this; + public A addToHosts(String... items) { + if (this.hosts == null) { + this.hosts = new ArrayList(); + } + for (String item : items) { + this.hosts.add(item); + } + return (A) this; } public A addAllToHosts(Collection items) { - if (this.hosts == null) {this.hosts = new ArrayList();} - for (String item : items) {this.hosts.add(item);} return (A)this; + if (this.hosts == null) { + this.hosts = new ArrayList(); + } + for (String item : items) { + this.hosts.add(item); + } + return (A) this; } - public A removeFromHosts(java.lang.String... items) { - if (this.hosts == null) return (A)this; - for (String item : items) { this.hosts.remove(item);} return (A)this; + public A removeFromHosts(String... items) { + if (this.hosts == null) { + return (A) this; + } + for (String item : items) { + this.hosts.remove(item); + } + return (A) this; } public A removeAllFromHosts(Collection items) { - if (this.hosts == null) return (A)this; - for (String item : items) { this.hosts.remove(item);} return (A)this; + if (this.hosts == null) { + return (A) this; + } + for (String item : items) { + this.hosts.remove(item); + } + return (A) this; } public List getHosts() { @@ -108,7 +135,7 @@ public A withHosts(List hosts) { return (A) this; } - public A withHosts(java.lang.String... hosts) { + public A withHosts(String... hosts) { if (this.hosts != null) { this.hosts.clear(); _visitables.remove("hosts"); @@ -122,7 +149,7 @@ public A withHosts(java.lang.String... hosts) { } public boolean hasHosts() { - return this.hosts != null && !this.hosts.isEmpty(); + return this.hosts != null && !(this.hosts.isEmpty()); } public String getSecretName() { @@ -139,24 +166,41 @@ public boolean hasSecretName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressTLSFluent that = (V1IngressTLSFluent) o; - if (!java.util.Objects.equals(hosts, that.hosts)) return false; - if (!java.util.Objects.equals(secretName, that.secretName)) return false; + if (!(Objects.equals(hosts, that.hosts))) { + return false; + } + if (!(Objects.equals(secretName, that.secretName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(hosts, secretName, super.hashCode()); + return Objects.hash(hosts, secretName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hosts != null && !hosts.isEmpty()) { sb.append("hosts:"); sb.append(hosts + ","); } - if (secretName != null) { sb.append("secretName:"); sb.append(secretName); } + if (!(hosts == null) && !(hosts.isEmpty())) { + sb.append("hosts:"); + sb.append(hosts); + sb.append(","); + } + if (!(secretName == null)) { + sb.append("secretName:"); + sb.append(secretName); + } sb.append("}"); return sb.toString(); } 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 09125ddbae..7f8305e506 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JSONSchemaPropsBuilder extends V1JSONSchemaPropsFluent implements VisitableBuilder{ public V1JSONSchemaPropsBuilder() { this(new V1JSONSchemaProps()); 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 8bb8b7a62d..fdd8feb103 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 @@ -1,18 +1,21 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; import java.lang.Double; import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; @@ -21,7 +24,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1JSONSchemaPropsFluent> extends BaseFluent{ +public class V1JSONSchemaPropsFluent> extends BaseFluent{ public V1JSONSchemaPropsFluent() { } @@ -67,46 +70,46 @@ public V1JSONSchemaPropsFluent(V1JSONSchemaProps instance) { private Boolean uniqueItems; protected void copyInstance(V1JSONSchemaProps instance) { - instance = (instance != null ? instance : new V1JSONSchemaProps()); + instance = instance != null ? instance : new V1JSONSchemaProps(); if (instance != null) { - this.withRef(instance.get$Ref()); - this.withSchema(instance.get$Schema()); - this.withAdditionalItems(instance.getAdditionalItems()); - this.withAdditionalProperties(instance.getAdditionalProperties()); - this.withAllOf(instance.getAllOf()); - this.withAnyOf(instance.getAnyOf()); - this.withDefault(instance.getDefault()); - this.withDefinitions(instance.getDefinitions()); - this.withDependencies(instance.getDependencies()); - this.withDescription(instance.getDescription()); - this.withEnum(instance.getEnum()); - this.withExample(instance.getExample()); - this.withExclusiveMaximum(instance.getExclusiveMaximum()); - this.withExclusiveMinimum(instance.getExclusiveMinimum()); - this.withExternalDocs(instance.getExternalDocs()); - this.withFormat(instance.getFormat()); - this.withId(instance.getId()); - this.withItems(instance.getItems()); - this.withMaxItems(instance.getMaxItems()); - this.withMaxLength(instance.getMaxLength()); - this.withMaxProperties(instance.getMaxProperties()); - this.withMaximum(instance.getMaximum()); - this.withMinItems(instance.getMinItems()); - this.withMinLength(instance.getMinLength()); - this.withMinProperties(instance.getMinProperties()); - this.withMinimum(instance.getMinimum()); - this.withMultipleOf(instance.getMultipleOf()); - this.withNot(instance.getNot()); - this.withNullable(instance.getNullable()); - this.withOneOf(instance.getOneOf()); - this.withPattern(instance.getPattern()); - this.withPatternProperties(instance.getPatternProperties()); - this.withProperties(instance.getProperties()); - this.withRequired(instance.getRequired()); - this.withTitle(instance.getTitle()); - this.withType(instance.getType()); - this.withUniqueItems(instance.getUniqueItems()); - } + this.withRef(instance.get$Ref()); + this.withSchema(instance.get$Schema()); + this.withAdditionalItems(instance.getAdditionalItems()); + this.withAdditionalProperties(instance.getAdditionalProperties()); + this.withAllOf(instance.getAllOf()); + this.withAnyOf(instance.getAnyOf()); + this.withDefault(instance.getDefault()); + this.withDefinitions(instance.getDefinitions()); + this.withDependencies(instance.getDependencies()); + this.withDescription(instance.getDescription()); + this.withEnum(instance.getEnum()); + this.withExample(instance.getExample()); + this.withExclusiveMaximum(instance.getExclusiveMaximum()); + this.withExclusiveMinimum(instance.getExclusiveMinimum()); + this.withExternalDocs(instance.getExternalDocs()); + this.withFormat(instance.getFormat()); + this.withId(instance.getId()); + this.withItems(instance.getItems()); + this.withMaxItems(instance.getMaxItems()); + this.withMaxLength(instance.getMaxLength()); + this.withMaxProperties(instance.getMaxProperties()); + this.withMaximum(instance.getMaximum()); + this.withMinItems(instance.getMinItems()); + this.withMinLength(instance.getMinLength()); + this.withMinProperties(instance.getMinProperties()); + this.withMinimum(instance.getMinimum()); + this.withMultipleOf(instance.getMultipleOf()); + this.withNot(instance.getNot()); + this.withNullable(instance.getNullable()); + this.withOneOf(instance.getOneOf()); + this.withPattern(instance.getPattern()); + this.withPatternProperties(instance.getPatternProperties()); + this.withProperties(instance.getProperties()); + this.withRequired(instance.getRequired()); + this.withTitle(instance.getTitle()); + this.withType(instance.getType()); + this.withUniqueItems(instance.getUniqueItems()); + } } public String getRef() { @@ -162,7 +165,9 @@ public boolean hasAdditionalProperties() { } public A addToAllOf(int index,V1JSONSchemaProps item) { - if (this.allOf == null) {this.allOf = new ArrayList();} + if (this.allOf == null) { + this.allOf = new ArrayList(); + } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= allOf.size()) { _visitables.get("allOf").add(builder); @@ -171,11 +176,13 @@ public A addToAllOf(int index,V1JSONSchemaProps item) { _visitables.get("allOf").add(builder); allOf.add(index, builder); } - return (A)this; + return (A) this; } public A setToAllOf(int index,V1JSONSchemaProps item) { - if (this.allOf == null) {this.allOf = new ArrayList();} + if (this.allOf == null) { + this.allOf = new ArrayList(); + } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= allOf.size()) { _visitables.get("allOf").add(builder); @@ -184,41 +191,71 @@ public A setToAllOf(int index,V1JSONSchemaProps item) { _visitables.get("allOf").add(builder); allOf.set(index, builder); } - return (A)this; + return (A) this; } - public A addToAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.allOf == null) {this.allOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").add(builder);this.allOf.add(builder);} return (A)this; + public A addToAllOf(V1JSONSchemaProps... items) { + if (this.allOf == null) { + this.allOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").add(builder); + this.allOf.add(builder); + } + return (A) this; } public A addAllToAllOf(Collection items) { - if (this.allOf == null) {this.allOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").add(builder);this.allOf.add(builder);} return (A)this; + if (this.allOf == null) { + this.allOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").add(builder); + this.allOf.add(builder); + } + return (A) this; } - public A removeFromAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.allOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").remove(builder); this.allOf.remove(builder);} return (A)this; + public A removeFromAllOf(V1JSONSchemaProps... items) { + if (this.allOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").remove(builder); + this.allOf.remove(builder); + } + return (A) this; } public A removeAllFromAllOf(Collection items) { - if (this.allOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").remove(builder); this.allOf.remove(builder);} return (A)this; + if (this.allOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").remove(builder); + this.allOf.remove(builder); + } + return (A) this; } public A removeMatchingFromAllOf(Predicate predicate) { - if (allOf == null) return (A) this; - final Iterator each = allOf.iterator(); - final List visitables = _visitables.get("allOf"); + if (allOf == null) { + return (A) this; + } + Iterator each = allOf.iterator(); + List visitables = _visitables.get("allOf"); while (each.hasNext()) { - V1JSONSchemaPropsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1JSONSchemaPropsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildAllOf() { @@ -270,7 +307,7 @@ public A withAllOf(List allOf) { return (A) this; } - public A withAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... allOf) { + public A withAllOf(V1JSONSchemaProps... allOf) { if (this.allOf != null) { this.allOf.clear(); _visitables.remove("allOf"); @@ -284,7 +321,7 @@ public A withAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... allO } public boolean hasAllOf() { - return this.allOf != null && !this.allOf.isEmpty(); + return this.allOf != null && !(this.allOf.isEmpty()); } public AllOfNested addNewAllOf() { @@ -300,32 +337,45 @@ public AllOfNested setNewAllOfLike(int index,V1JSONSchemaProps item) { } public AllOfNested editAllOf(int index) { - if (allOf.size() <= index) throw new RuntimeException("Can't edit allOf. Index exceeds size."); - return setNewAllOfLike(index, buildAllOf(index)); + if (index <= allOf.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allOf")); + } + return this.setNewAllOfLike(index, this.buildAllOf(index)); } public AllOfNested editFirstAllOf() { - if (allOf.size() == 0) throw new RuntimeException("Can't edit first allOf. The list is empty."); - return setNewAllOfLike(0, buildAllOf(0)); + if (allOf.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "allOf")); + } + return this.setNewAllOfLike(0, this.buildAllOf(0)); } public AllOfNested editLastAllOf() { int index = allOf.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last allOf. The list is empty."); - return setNewAllOfLike(index, buildAllOf(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "allOf")); + } + return this.setNewAllOfLike(index, this.buildAllOf(index)); } public AllOfNested editMatchingAllOf(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.anyOf == null) { + this.anyOf = new ArrayList(); + } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= anyOf.size()) { _visitables.get("anyOf").add(builder); @@ -334,11 +384,13 @@ public A addToAnyOf(int index,V1JSONSchemaProps item) { _visitables.get("anyOf").add(builder); anyOf.add(index, builder); } - return (A)this; + return (A) this; } public A setToAnyOf(int index,V1JSONSchemaProps item) { - if (this.anyOf == null) {this.anyOf = new ArrayList();} + if (this.anyOf == null) { + this.anyOf = new ArrayList(); + } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= anyOf.size()) { _visitables.get("anyOf").add(builder); @@ -347,41 +399,71 @@ public A setToAnyOf(int index,V1JSONSchemaProps item) { _visitables.get("anyOf").add(builder); anyOf.set(index, builder); } - return (A)this; + return (A) this; } - public A addToAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.anyOf == null) {this.anyOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").add(builder);this.anyOf.add(builder);} return (A)this; + public A addToAnyOf(V1JSONSchemaProps... items) { + if (this.anyOf == null) { + this.anyOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").add(builder); + this.anyOf.add(builder); + } + return (A) this; } public A addAllToAnyOf(Collection items) { - if (this.anyOf == null) {this.anyOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").add(builder);this.anyOf.add(builder);} return (A)this; + if (this.anyOf == null) { + this.anyOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").add(builder); + this.anyOf.add(builder); + } + return (A) this; } - public A removeFromAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.anyOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").remove(builder); this.anyOf.remove(builder);} return (A)this; + public A removeFromAnyOf(V1JSONSchemaProps... items) { + if (this.anyOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").remove(builder); + this.anyOf.remove(builder); + } + return (A) this; } public A removeAllFromAnyOf(Collection items) { - if (this.anyOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").remove(builder); this.anyOf.remove(builder);} return (A)this; + if (this.anyOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").remove(builder); + this.anyOf.remove(builder); + } + return (A) this; } public A removeMatchingFromAnyOf(Predicate predicate) { - if (anyOf == null) return (A) this; - final Iterator each = anyOf.iterator(); - final List visitables = _visitables.get("anyOf"); + if (anyOf == null) { + return (A) this; + } + Iterator each = anyOf.iterator(); + List visitables = _visitables.get("anyOf"); while (each.hasNext()) { - V1JSONSchemaPropsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1JSONSchemaPropsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildAnyOf() { @@ -433,7 +515,7 @@ public A withAnyOf(List anyOf) { return (A) this; } - public A withAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... anyOf) { + public A withAnyOf(V1JSONSchemaProps... anyOf) { if (this.anyOf != null) { this.anyOf.clear(); _visitables.remove("anyOf"); @@ -447,7 +529,7 @@ public A withAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... anyO } public boolean hasAnyOf() { - return this.anyOf != null && !this.anyOf.isEmpty(); + return this.anyOf != null && !(this.anyOf.isEmpty()); } public AnyOfNested addNewAnyOf() { @@ -463,28 +545,39 @@ public AnyOfNested setNewAnyOfLike(int index,V1JSONSchemaProps item) { } public AnyOfNested editAnyOf(int index) { - if (anyOf.size() <= index) throw new RuntimeException("Can't edit anyOf. Index exceeds size."); - return setNewAnyOfLike(index, buildAnyOf(index)); + if (index <= anyOf.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "anyOf")); + } + return this.setNewAnyOfLike(index, this.buildAnyOf(index)); } public AnyOfNested editFirstAnyOf() { - if (anyOf.size() == 0) throw new RuntimeException("Can't edit first anyOf. The list is empty."); - return setNewAnyOfLike(0, buildAnyOf(0)); + if (anyOf.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "anyOf")); + } + return this.setNewAnyOfLike(0, this.buildAnyOf(0)); } public AnyOfNested editLastAnyOf() { int index = anyOf.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last anyOf. The list is empty."); - return setNewAnyOfLike(index, buildAnyOf(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "anyOf")); + } + return this.setNewAnyOfLike(index, this.buildAnyOf(index)); } public AnyOfNested editMatchingAnyOf(Predicate predicate) { int index = -1; - for (int i=0;i map) { - if(this.definitions == null && map != null) { this.definitions = new LinkedHashMap(); } - if(map != null) { this.definitions.putAll(map);} return (A)this; + if (this.definitions == null && map != null) { + this.definitions = new LinkedHashMap(); + } + if (map != null) { + this.definitions.putAll(map); + } + return (A) this; } public A removeFromDefinitions(String key) { - if(this.definitions == null) { return (A) this; } - if(key != null && this.definitions != null) {this.definitions.remove(key);} return (A)this; + if (this.definitions == null) { + return (A) this; + } + if (key != null && this.definitions != null) { + this.definitions.remove(key); + } + return (A) this; } public A removeFromDefinitions(Map map) { - if(this.definitions == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.definitions != null){this.definitions.remove(key);}}} return (A)this; + if (this.definitions == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.definitions != null) { + this.definitions.remove(key); + } + } + } + return (A) this; } public Map getDefinitions() { @@ -538,23 +655,47 @@ public boolean hasDefinitions() { } public A addToDependencies(String key,Object value) { - if(this.dependencies == null && key != null && value != null) { this.dependencies = new LinkedHashMap(); } - if(key != null && value != null) {this.dependencies.put(key, value);} return (A)this; + if (this.dependencies == null && key != null && value != null) { + this.dependencies = new LinkedHashMap(); + } + if (key != null && value != null) { + this.dependencies.put(key, value); + } + return (A) this; } public A addToDependencies(Map map) { - if(this.dependencies == null && map != null) { this.dependencies = new LinkedHashMap(); } - if(map != null) { this.dependencies.putAll(map);} return (A)this; + if (this.dependencies == null && map != null) { + this.dependencies = new LinkedHashMap(); + } + if (map != null) { + this.dependencies.putAll(map); + } + return (A) this; } public A removeFromDependencies(String key) { - if(this.dependencies == null) { return (A) this; } - if(key != null && this.dependencies != null) {this.dependencies.remove(key);} return (A)this; + if (this.dependencies == null) { + return (A) this; + } + if (key != null && this.dependencies != null) { + this.dependencies.remove(key); + } + return (A) this; } public A removeFromDependencies(Map map) { - if(this.dependencies == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.dependencies != null){this.dependencies.remove(key);}}} return (A)this; + if (this.dependencies == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.dependencies != null) { + this.dependencies.remove(key); + } + } + } + return (A) this; } public Map getDependencies() { @@ -588,34 +729,59 @@ public boolean hasDescription() { } public A addToEnum(int index,Object item) { - if (this._enum == null) {this._enum = new ArrayList();} + if (this._enum == null) { + this._enum = new ArrayList(); + } this._enum.add(index, item); - return (A)this; + return (A) this; } public A setToEnum(int index,Object item) { - if (this._enum == null) {this._enum = new ArrayList();} - this._enum.set(index, item); return (A)this; + if (this._enum == null) { + this._enum = new ArrayList(); + } + this._enum.set(index, item); + return (A) this; } - public A addToEnum(java.lang.Object... items) { - if (this._enum == null) {this._enum = new ArrayList();} - for (Object item : items) {this._enum.add(item);} return (A)this; + public A addToEnum(Object... items) { + if (this._enum == null) { + this._enum = new ArrayList(); + } + for (Object item : items) { + this._enum.add(item); + } + return (A) this; } public A addAllToEnum(Collection items) { - if (this._enum == null) {this._enum = new ArrayList();} - for (Object item : items) {this._enum.add(item);} return (A)this; + if (this._enum == null) { + this._enum = new ArrayList(); + } + for (Object item : items) { + this._enum.add(item); + } + return (A) this; } - public A removeFromEnum(java.lang.Object... items) { - if (this._enum == null) return (A)this; - for (Object item : items) { this._enum.remove(item);} return (A)this; + public A removeFromEnum(Object... items) { + if (this._enum == null) { + return (A) this; + } + for (Object item : items) { + this._enum.remove(item); + } + return (A) this; } public A removeAllFromEnum(Collection items) { - if (this._enum == null) return (A)this; - for (Object item : items) { this._enum.remove(item);} return (A)this; + if (this._enum == null) { + return (A) this; + } + for (Object item : items) { + this._enum.remove(item); + } + return (A) this; } public List getEnum() { @@ -664,7 +830,7 @@ public A withEnum(List _enum) { return (A) this; } - public A withEnum(java.lang.Object... _enum) { + public A withEnum(Object... _enum) { if (this._enum != null) { this._enum.clear(); _visitables.remove("_enum"); @@ -678,7 +844,7 @@ public A withEnum(java.lang.Object... _enum) { } public boolean hasEnum() { - return this._enum != null && !this._enum.isEmpty(); + return this._enum != null && !(this._enum.isEmpty()); } public Object getExample() { @@ -749,15 +915,15 @@ public ExternalDocsNested withNewExternalDocsLike(V1ExternalDocumentation ite } public ExternalDocsNested editExternalDocs() { - return withNewExternalDocsLike(java.util.Optional.ofNullable(buildExternalDocs()).orElse(null)); + return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(null)); } public ExternalDocsNested editOrNewExternalDocs() { - return withNewExternalDocsLike(java.util.Optional.ofNullable(buildExternalDocs()).orElse(new V1ExternalDocumentationBuilder().build())); + return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(new V1ExternalDocumentationBuilder().build())); } public ExternalDocsNested editOrNewExternalDocsLike(V1ExternalDocumentation item) { - return withNewExternalDocsLike(java.util.Optional.ofNullable(buildExternalDocs()).orElse(item)); + return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(item)); } public String getFormat() { @@ -945,15 +1111,15 @@ public NotNested withNewNotLike(V1JSONSchemaProps item) { } public NotNested editNot() { - return withNewNotLike(java.util.Optional.ofNullable(buildNot()).orElse(null)); + return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(null)); } public NotNested editOrNewNot() { - return withNewNotLike(java.util.Optional.ofNullable(buildNot()).orElse(new V1JSONSchemaPropsBuilder().build())); + return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(new V1JSONSchemaPropsBuilder().build())); } public NotNested editOrNewNotLike(V1JSONSchemaProps item) { - return withNewNotLike(java.util.Optional.ofNullable(buildNot()).orElse(item)); + return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(item)); } public Boolean getNullable() { @@ -970,7 +1136,9 @@ public boolean hasNullable() { } public A addToOneOf(int index,V1JSONSchemaProps item) { - if (this.oneOf == null) {this.oneOf = new ArrayList();} + if (this.oneOf == null) { + this.oneOf = new ArrayList(); + } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= oneOf.size()) { _visitables.get("oneOf").add(builder); @@ -979,11 +1147,13 @@ public A addToOneOf(int index,V1JSONSchemaProps item) { _visitables.get("oneOf").add(builder); oneOf.add(index, builder); } - return (A)this; + return (A) this; } public A setToOneOf(int index,V1JSONSchemaProps item) { - if (this.oneOf == null) {this.oneOf = new ArrayList();} + if (this.oneOf == null) { + this.oneOf = new ArrayList(); + } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= oneOf.size()) { _visitables.get("oneOf").add(builder); @@ -992,41 +1162,71 @@ public A setToOneOf(int index,V1JSONSchemaProps item) { _visitables.get("oneOf").add(builder); oneOf.set(index, builder); } - return (A)this; + return (A) this; } - public A addToOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.oneOf == null) {this.oneOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").add(builder);this.oneOf.add(builder);} return (A)this; + public A addToOneOf(V1JSONSchemaProps... items) { + if (this.oneOf == null) { + this.oneOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").add(builder); + this.oneOf.add(builder); + } + return (A) this; } public A addAllToOneOf(Collection items) { - if (this.oneOf == null) {this.oneOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").add(builder);this.oneOf.add(builder);} return (A)this; + if (this.oneOf == null) { + this.oneOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").add(builder); + this.oneOf.add(builder); + } + return (A) this; } - public A removeFromOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.oneOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").remove(builder); this.oneOf.remove(builder);} return (A)this; + public A removeFromOneOf(V1JSONSchemaProps... items) { + if (this.oneOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").remove(builder); + this.oneOf.remove(builder); + } + return (A) this; } public A removeAllFromOneOf(Collection items) { - if (this.oneOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").remove(builder); this.oneOf.remove(builder);} return (A)this; + if (this.oneOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").remove(builder); + this.oneOf.remove(builder); + } + return (A) this; } public A removeMatchingFromOneOf(Predicate predicate) { - if (oneOf == null) return (A) this; - final Iterator each = oneOf.iterator(); - final List visitables = _visitables.get("oneOf"); + if (oneOf == null) { + return (A) this; + } + Iterator each = oneOf.iterator(); + List visitables = _visitables.get("oneOf"); while (each.hasNext()) { - V1JSONSchemaPropsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1JSONSchemaPropsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildOneOf() { @@ -1078,7 +1278,7 @@ public A withOneOf(List oneOf) { return (A) this; } - public A withOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... oneOf) { + public A withOneOf(V1JSONSchemaProps... oneOf) { if (this.oneOf != null) { this.oneOf.clear(); _visitables.remove("oneOf"); @@ -1092,7 +1292,7 @@ public A withOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... oneO } public boolean hasOneOf() { - return this.oneOf != null && !this.oneOf.isEmpty(); + return this.oneOf != null && !(this.oneOf.isEmpty()); } public OneOfNested addNewOneOf() { @@ -1108,28 +1308,39 @@ public OneOfNested setNewOneOfLike(int index,V1JSONSchemaProps item) { } public OneOfNested editOneOf(int index) { - if (oneOf.size() <= index) throw new RuntimeException("Can't edit oneOf. Index exceeds size."); - return setNewOneOfLike(index, buildOneOf(index)); + if (index <= oneOf.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "oneOf")); + } + return this.setNewOneOfLike(index, this.buildOneOf(index)); } public OneOfNested editFirstOneOf() { - if (oneOf.size() == 0) throw new RuntimeException("Can't edit first oneOf. The list is empty."); - return setNewOneOfLike(0, buildOneOf(0)); + if (oneOf.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "oneOf")); + } + return this.setNewOneOfLike(0, this.buildOneOf(0)); } public OneOfNested editLastOneOf() { int index = oneOf.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last oneOf. The list is empty."); - return setNewOneOfLike(index, buildOneOf(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "oneOf")); + } + return this.setNewOneOfLike(index, this.buildOneOf(index)); } public OneOfNested editMatchingOneOf(Predicate predicate) { int index = -1; - for (int i=0;i map) { - if(this.patternProperties == null && map != null) { this.patternProperties = new LinkedHashMap(); } - if(map != null) { this.patternProperties.putAll(map);} return (A)this; + if (this.patternProperties == null && map != null) { + this.patternProperties = new LinkedHashMap(); + } + if (map != null) { + this.patternProperties.putAll(map); + } + return (A) this; } public A removeFromPatternProperties(String key) { - if(this.patternProperties == null) { return (A) this; } - if(key != null && this.patternProperties != null) {this.patternProperties.remove(key);} return (A)this; + if (this.patternProperties == null) { + return (A) this; + } + if (key != null && this.patternProperties != null) { + this.patternProperties.remove(key); + } + return (A) this; } public A removeFromPatternProperties(Map map) { - if(this.patternProperties == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.patternProperties != null){this.patternProperties.remove(key);}}} return (A)this; + if (this.patternProperties == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.patternProperties != null) { + this.patternProperties.remove(key); + } + } + } + return (A) this; } public Map getPatternProperties() { @@ -1183,23 +1418,47 @@ public boolean hasPatternProperties() { } public A addToProperties(String key,V1JSONSchemaProps value) { - if(this.properties == null && key != null && value != null) { this.properties = new LinkedHashMap(); } - if(key != null && value != null) {this.properties.put(key, value);} return (A)this; + if (this.properties == null && key != null && value != null) { + this.properties = new LinkedHashMap(); + } + if (key != null && value != null) { + this.properties.put(key, value); + } + return (A) this; } public A addToProperties(Map map) { - if(this.properties == null && map != null) { this.properties = new LinkedHashMap(); } - if(map != null) { this.properties.putAll(map);} return (A)this; + if (this.properties == null && map != null) { + this.properties = new LinkedHashMap(); + } + if (map != null) { + this.properties.putAll(map); + } + return (A) this; } public A removeFromProperties(String key) { - if(this.properties == null) { return (A) this; } - if(key != null && this.properties != null) {this.properties.remove(key);} return (A)this; + if (this.properties == null) { + return (A) this; + } + if (key != null && this.properties != null) { + this.properties.remove(key); + } + return (A) this; } public A removeFromProperties(Map map) { - if(this.properties == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.properties != null){this.properties.remove(key);}}} return (A)this; + if (this.properties == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.properties != null) { + this.properties.remove(key); + } + } + } + return (A) this; } public Map getProperties() { @@ -1220,34 +1479,59 @@ public boolean hasProperties() { } public A addToRequired(int index,String item) { - if (this.required == null) {this.required = new ArrayList();} + if (this.required == null) { + this.required = new ArrayList(); + } this.required.add(index, item); - return (A)this; + return (A) this; } public A setToRequired(int index,String item) { - if (this.required == null) {this.required = new ArrayList();} - this.required.set(index, item); return (A)this; + if (this.required == null) { + this.required = new ArrayList(); + } + this.required.set(index, item); + return (A) this; } - public A addToRequired(java.lang.String... items) { - if (this.required == null) {this.required = new ArrayList();} - for (String item : items) {this.required.add(item);} return (A)this; + public A addToRequired(String... items) { + if (this.required == null) { + this.required = new ArrayList(); + } + for (String item : items) { + this.required.add(item); + } + return (A) this; } public A addAllToRequired(Collection items) { - if (this.required == null) {this.required = new ArrayList();} - for (String item : items) {this.required.add(item);} return (A)this; + if (this.required == null) { + this.required = new ArrayList(); + } + for (String item : items) { + this.required.add(item); + } + return (A) this; } - public A removeFromRequired(java.lang.String... items) { - if (this.required == null) return (A)this; - for (String item : items) { this.required.remove(item);} return (A)this; + public A removeFromRequired(String... items) { + if (this.required == null) { + return (A) this; + } + for (String item : items) { + this.required.remove(item); + } + return (A) this; } public A removeAllFromRequired(Collection items) { - if (this.required == null) return (A)this; - for (String item : items) { this.required.remove(item);} return (A)this; + if (this.required == null) { + return (A) this; + } + for (String item : items) { + this.required.remove(item); + } + return (A) this; } public List getRequired() { @@ -1296,7 +1580,7 @@ public A withRequired(List required) { return (A) this; } - public A withRequired(java.lang.String... required) { + public A withRequired(String... required) { if (this.required != null) { this.required.clear(); _visitables.remove("required"); @@ -1310,7 +1594,7 @@ public A withRequired(java.lang.String... required) { } public boolean hasRequired() { - return this.required != null && !this.required.isEmpty(); + return this.required != null && !(this.required.isEmpty()); } public String getTitle() { @@ -1353,94 +1637,321 @@ public boolean hasUniqueItems() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1JSONSchemaPropsFluent that = (V1JSONSchemaPropsFluent) o; - if (!java.util.Objects.equals($ref, that.$ref)) return false; - if (!java.util.Objects.equals($schema, that.$schema)) return false; - if (!java.util.Objects.equals(additionalItems, that.additionalItems)) return false; - if (!java.util.Objects.equals(additionalProperties, that.additionalProperties)) return false; - if (!java.util.Objects.equals(allOf, that.allOf)) return false; - if (!java.util.Objects.equals(anyOf, that.anyOf)) return false; - if (!java.util.Objects.equals(_default, that._default)) return false; - if (!java.util.Objects.equals(definitions, that.definitions)) return false; - if (!java.util.Objects.equals(dependencies, that.dependencies)) return false; - if (!java.util.Objects.equals(description, that.description)) return false; - if (!java.util.Objects.equals(_enum, that._enum)) return false; - if (!java.util.Objects.equals(example, that.example)) return false; - if (!java.util.Objects.equals(exclusiveMaximum, that.exclusiveMaximum)) return false; - if (!java.util.Objects.equals(exclusiveMinimum, that.exclusiveMinimum)) return false; - if (!java.util.Objects.equals(externalDocs, that.externalDocs)) return false; - if (!java.util.Objects.equals(format, that.format)) return false; - if (!java.util.Objects.equals(id, that.id)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(maxItems, that.maxItems)) return false; - if (!java.util.Objects.equals(maxLength, that.maxLength)) return false; - if (!java.util.Objects.equals(maxProperties, that.maxProperties)) return false; - if (!java.util.Objects.equals(maximum, that.maximum)) return false; - if (!java.util.Objects.equals(minItems, that.minItems)) return false; - if (!java.util.Objects.equals(minLength, that.minLength)) return false; - if (!java.util.Objects.equals(minProperties, that.minProperties)) return false; - if (!java.util.Objects.equals(minimum, that.minimum)) return false; - if (!java.util.Objects.equals(multipleOf, that.multipleOf)) return false; - if (!java.util.Objects.equals(not, that.not)) return false; - if (!java.util.Objects.equals(nullable, that.nullable)) return false; - if (!java.util.Objects.equals(oneOf, that.oneOf)) return false; - if (!java.util.Objects.equals(pattern, that.pattern)) return false; - if (!java.util.Objects.equals(patternProperties, that.patternProperties)) return false; - if (!java.util.Objects.equals(properties, that.properties)) return false; - if (!java.util.Objects.equals(required, that.required)) return false; - if (!java.util.Objects.equals(title, that.title)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - if (!java.util.Objects.equals(uniqueItems, that.uniqueItems)) return false; + if (!(Objects.equals($ref, that.$ref))) { + return false; + } + if (!(Objects.equals($schema, that.$schema))) { + return false; + } + if (!(Objects.equals(additionalItems, that.additionalItems))) { + return false; + } + if (!(Objects.equals(additionalProperties, that.additionalProperties))) { + return false; + } + if (!(Objects.equals(allOf, that.allOf))) { + return false; + } + if (!(Objects.equals(anyOf, that.anyOf))) { + return false; + } + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(definitions, that.definitions))) { + return false; + } + if (!(Objects.equals(dependencies, that.dependencies))) { + return false; + } + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(_enum, that._enum))) { + return false; + } + if (!(Objects.equals(example, that.example))) { + return false; + } + if (!(Objects.equals(exclusiveMaximum, that.exclusiveMaximum))) { + return false; + } + if (!(Objects.equals(exclusiveMinimum, that.exclusiveMinimum))) { + return false; + } + if (!(Objects.equals(externalDocs, that.externalDocs))) { + return false; + } + if (!(Objects.equals(format, that.format))) { + return false; + } + if (!(Objects.equals(id, that.id))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(maxItems, that.maxItems))) { + return false; + } + if (!(Objects.equals(maxLength, that.maxLength))) { + return false; + } + if (!(Objects.equals(maxProperties, that.maxProperties))) { + return false; + } + if (!(Objects.equals(maximum, that.maximum))) { + return false; + } + if (!(Objects.equals(minItems, that.minItems))) { + return false; + } + if (!(Objects.equals(minLength, that.minLength))) { + return false; + } + if (!(Objects.equals(minProperties, that.minProperties))) { + return false; + } + if (!(Objects.equals(minimum, that.minimum))) { + return false; + } + if (!(Objects.equals(multipleOf, that.multipleOf))) { + return false; + } + if (!(Objects.equals(not, that.not))) { + return false; + } + if (!(Objects.equals(nullable, that.nullable))) { + return false; + } + if (!(Objects.equals(oneOf, that.oneOf))) { + return false; + } + if (!(Objects.equals(pattern, that.pattern))) { + return false; + } + if (!(Objects.equals(patternProperties, that.patternProperties))) { + return false; + } + if (!(Objects.equals(properties, that.properties))) { + return false; + } + if (!(Objects.equals(required, that.required))) { + return false; + } + if (!(Objects.equals(title, that.title))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + if (!(Objects.equals(uniqueItems, that.uniqueItems))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash($ref, $schema, additionalItems, additionalProperties, allOf, anyOf, _default, definitions, dependencies, description, _enum, example, exclusiveMaximum, exclusiveMinimum, externalDocs, format, id, items, maxItems, maxLength, maxProperties, maximum, minItems, minLength, minProperties, minimum, multipleOf, not, nullable, oneOf, pattern, patternProperties, properties, required, title, type, uniqueItems, super.hashCode()); + return Objects.hash($ref, $schema, additionalItems, additionalProperties, allOf, anyOf, _default, definitions, dependencies, description, _enum, example, exclusiveMaximum, exclusiveMinimum, externalDocs, format, id, items, maxItems, maxLength, maxProperties, maximum, minItems, minLength, minProperties, minimum, multipleOf, not, nullable, oneOf, pattern, patternProperties, properties, required, title, type, uniqueItems); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if ($ref != null) { sb.append("$ref:"); sb.append($ref + ","); } - if ($schema != null) { sb.append("$schema:"); sb.append($schema + ","); } - if (additionalItems != null) { sb.append("additionalItems:"); sb.append(additionalItems + ","); } - if (additionalProperties != null) { sb.append("additionalProperties:"); sb.append(additionalProperties + ","); } - if (allOf != null && !allOf.isEmpty()) { sb.append("allOf:"); sb.append(allOf + ","); } - if (anyOf != null && !anyOf.isEmpty()) { sb.append("anyOf:"); sb.append(anyOf + ","); } - if (_default != null) { sb.append("_default:"); sb.append(_default + ","); } - if (definitions != null && !definitions.isEmpty()) { sb.append("definitions:"); sb.append(definitions + ","); } - if (dependencies != null && !dependencies.isEmpty()) { sb.append("dependencies:"); sb.append(dependencies + ","); } - if (description != null) { sb.append("description:"); sb.append(description + ","); } - if (_enum != null && !_enum.isEmpty()) { sb.append("_enum:"); sb.append(_enum + ","); } - if (example != null) { sb.append("example:"); sb.append(example + ","); } - if (exclusiveMaximum != null) { sb.append("exclusiveMaximum:"); sb.append(exclusiveMaximum + ","); } - if (exclusiveMinimum != null) { sb.append("exclusiveMinimum:"); sb.append(exclusiveMinimum + ","); } - if (externalDocs != null) { sb.append("externalDocs:"); sb.append(externalDocs + ","); } - if (format != null) { sb.append("format:"); sb.append(format + ","); } - if (id != null) { sb.append("id:"); sb.append(id + ","); } - if (items != null) { sb.append("items:"); sb.append(items + ","); } - if (maxItems != null) { sb.append("maxItems:"); sb.append(maxItems + ","); } - if (maxLength != null) { sb.append("maxLength:"); sb.append(maxLength + ","); } - if (maxProperties != null) { sb.append("maxProperties:"); sb.append(maxProperties + ","); } - if (maximum != null) { sb.append("maximum:"); sb.append(maximum + ","); } - if (minItems != null) { sb.append("minItems:"); sb.append(minItems + ","); } - if (minLength != null) { sb.append("minLength:"); sb.append(minLength + ","); } - if (minProperties != null) { sb.append("minProperties:"); sb.append(minProperties + ","); } - if (minimum != null) { sb.append("minimum:"); sb.append(minimum + ","); } - if (multipleOf != null) { sb.append("multipleOf:"); sb.append(multipleOf + ","); } - if (not != null) { sb.append("not:"); sb.append(not + ","); } - if (nullable != null) { sb.append("nullable:"); sb.append(nullable + ","); } - if (oneOf != null && !oneOf.isEmpty()) { sb.append("oneOf:"); sb.append(oneOf + ","); } - if (pattern != null) { sb.append("pattern:"); sb.append(pattern + ","); } - if (patternProperties != null && !patternProperties.isEmpty()) { sb.append("patternProperties:"); sb.append(patternProperties + ","); } - if (properties != null && !properties.isEmpty()) { sb.append("properties:"); sb.append(properties + ","); } - if (required != null && !required.isEmpty()) { sb.append("required:"); sb.append(required + ","); } - if (title != null) { sb.append("title:"); sb.append(title + ","); } - if (type != null) { sb.append("type:"); sb.append(type + ","); } - if (uniqueItems != null) { sb.append("uniqueItems:"); sb.append(uniqueItems); } + if (!($ref == null)) { + sb.append("$ref:"); + sb.append($ref); + sb.append(","); + } + if (!($schema == null)) { + sb.append("$schema:"); + sb.append($schema); + sb.append(","); + } + if (!(additionalItems == null)) { + sb.append("additionalItems:"); + sb.append(additionalItems); + sb.append(","); + } + if (!(additionalProperties == null)) { + sb.append("additionalProperties:"); + sb.append(additionalProperties); + sb.append(","); + } + if (!(allOf == null) && !(allOf.isEmpty())) { + sb.append("allOf:"); + sb.append(allOf); + sb.append(","); + } + if (!(anyOf == null) && !(anyOf.isEmpty())) { + sb.append("anyOf:"); + sb.append(anyOf); + sb.append(","); + } + if (!(_default == null)) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(definitions == null) && !(definitions.isEmpty())) { + sb.append("definitions:"); + sb.append(definitions); + sb.append(","); + } + if (!(dependencies == null) && !(dependencies.isEmpty())) { + sb.append("dependencies:"); + sb.append(dependencies); + sb.append(","); + } + if (!(description == null)) { + sb.append("description:"); + sb.append(description); + sb.append(","); + } + if (!(_enum == null) && !(_enum.isEmpty())) { + sb.append("_enum:"); + sb.append(_enum); + sb.append(","); + } + if (!(example == null)) { + sb.append("example:"); + sb.append(example); + sb.append(","); + } + if (!(exclusiveMaximum == null)) { + sb.append("exclusiveMaximum:"); + sb.append(exclusiveMaximum); + sb.append(","); + } + if (!(exclusiveMinimum == null)) { + sb.append("exclusiveMinimum:"); + sb.append(exclusiveMinimum); + sb.append(","); + } + if (!(externalDocs == null)) { + sb.append("externalDocs:"); + sb.append(externalDocs); + sb.append(","); + } + if (!(format == null)) { + sb.append("format:"); + sb.append(format); + sb.append(","); + } + if (!(id == null)) { + sb.append("id:"); + sb.append(id); + sb.append(","); + } + if (!(items == null)) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(maxItems == null)) { + sb.append("maxItems:"); + sb.append(maxItems); + sb.append(","); + } + if (!(maxLength == null)) { + sb.append("maxLength:"); + sb.append(maxLength); + sb.append(","); + } + if (!(maxProperties == null)) { + sb.append("maxProperties:"); + sb.append(maxProperties); + sb.append(","); + } + if (!(maximum == null)) { + sb.append("maximum:"); + sb.append(maximum); + sb.append(","); + } + if (!(minItems == null)) { + sb.append("minItems:"); + sb.append(minItems); + sb.append(","); + } + if (!(minLength == null)) { + sb.append("minLength:"); + sb.append(minLength); + sb.append(","); + } + if (!(minProperties == null)) { + sb.append("minProperties:"); + sb.append(minProperties); + sb.append(","); + } + if (!(minimum == null)) { + sb.append("minimum:"); + sb.append(minimum); + sb.append(","); + } + if (!(multipleOf == null)) { + sb.append("multipleOf:"); + sb.append(multipleOf); + sb.append(","); + } + if (!(not == null)) { + sb.append("not:"); + sb.append(not); + sb.append(","); + } + if (!(nullable == null)) { + sb.append("nullable:"); + sb.append(nullable); + sb.append(","); + } + if (!(oneOf == null) && !(oneOf.isEmpty())) { + sb.append("oneOf:"); + sb.append(oneOf); + sb.append(","); + } + if (!(pattern == null)) { + sb.append("pattern:"); + sb.append(pattern); + sb.append(","); + } + if (!(patternProperties == null) && !(patternProperties.isEmpty())) { + sb.append("patternProperties:"); + sb.append(patternProperties); + sb.append(","); + } + if (!(properties == null) && !(properties.isEmpty())) { + sb.append("properties:"); + sb.append(properties); + sb.append(","); + } + if (!(required == null) && !(required.isEmpty())) { + sb.append("required:"); + sb.append(required); + sb.append(","); + } + if (!(title == null)) { + sb.append("title:"); + sb.append(title); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + sb.append(","); + } + if (!(uniqueItems == null)) { + sb.append("uniqueItems:"); + sb.append(uniqueItems); + } sb.append("}"); return sb.toString(); } @@ -1469,7 +1980,7 @@ public class AllOfNested extends V1JSONSchemaPropsFluent> impl int index; public N and() { - return (N) V1JSONSchemaPropsFluent.this.setToAllOf(index,builder.build()); + return (N) V1JSONSchemaPropsFluent.this.setToAllOf(index, builder.build()); } public N endAllOf() { @@ -1487,7 +1998,7 @@ public class AnyOfNested extends V1JSONSchemaPropsFluent> impl int index; public N and() { - return (N) V1JSONSchemaPropsFluent.this.setToAnyOf(index,builder.build()); + return (N) V1JSONSchemaPropsFluent.this.setToAnyOf(index, builder.build()); } public N endAnyOf() { @@ -1537,7 +2048,7 @@ public class OneOfNested extends V1JSONSchemaPropsFluent> impl int index; public N and() { - return (N) V1JSONSchemaPropsFluent.this.setToOneOf(index,builder.build()); + return (N) V1JSONSchemaPropsFluent.this.setToOneOf(index, builder.build()); } public N endOneOf() { 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 9f28e66523..b8b4080827 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobBuilder extends V1JobFluent implements VisitableBuilder{ public V1JobBuilder() { this(new V1Job()); 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 342d18e5ce..fdab5d14c4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobConditionBuilder extends V1JobConditionFluent implements VisitableBuilder{ public V1JobConditionBuilder() { this(new V1JobCondition()); 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 bc6a2bce06..e9c4a80654 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1JobConditionFluent> extends BaseFluent{ +public class V1JobConditionFluent> extends BaseFluent{ public V1JobConditionFluent() { } @@ -25,15 +27,15 @@ public V1JobConditionFluent(V1JobCondition instance) { private String type; protected void copyInstance(V1JobCondition instance) { - instance = (instance != null ? instance : new V1JobCondition()); + instance = instance != null ? instance : new V1JobCondition(); if (instance != null) { - this.withLastProbeTime(instance.getLastProbeTime()); - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastProbeTime(instance.getLastProbeTime()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastProbeTime() { @@ -115,32 +117,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1JobConditionFluent that = (V1JobConditionFluent) o; - if (!java.util.Objects.equals(lastProbeTime, that.lastProbeTime)) return false; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastProbeTime != null) { sb.append("lastProbeTime:"); sb.append(lastProbeTime + ","); } - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(lastProbeTime == null)) { + sb.append("lastProbeTime:"); + sb.append(lastProbeTime); + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 0dfa658f3a..9bdcf39b0b 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobFluent> extends BaseFluent{ +public class V1JobFluent> extends BaseFluent{ public V1JobFluent() { } @@ -24,14 +27,14 @@ public V1JobFluent(V1Job instance) { private V1JobStatusBuilder status; protected void copyInstance(V1Job instance) { - instance = (instance != null ? instance : new V1Job()); + instance = instance != null ? instance : new V1Job(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1JobSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1JobSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1JobSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1JobSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1JobSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1JobStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1JobStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1JobStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1JobStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1JobStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1JobFluent that = (V1JobFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 d91ce78a19..42ed8d2e25 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobListBuilder extends V1JobListFluent implements VisitableBuilder{ public V1JobListBuilder() { this(new V1JobList()); 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 4a0075a987..b7b2a4457a 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobListFluent> extends BaseFluent{ +public class V1JobListFluent> extends BaseFluent{ public V1JobListFluent() { } @@ -29,13 +32,13 @@ public V1JobListFluent(V1JobList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1JobList instance) { - instance = (instance != null ? instance : new V1JobList()); + instance = instance != null ? instance : new V1JobList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Job item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1JobBuilder builder = new V1JobBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Job item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Job item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1JobBuilder builder = new V1JobBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Job item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Job... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Job... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Job... items) { - if (this.items == null) return (A)this; - for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Job... items) { + if (this.items == null) { + return (A) this; + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1JobBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1JobBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Job... items) { + public A withItems(V1Job... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Job... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Job item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1JobListFluent that = (V1JobListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1JobFluent> implements Neste int index; public N and() { - return (N) V1JobListFluent.this.setToItems(index,builder.build()); + return (N) V1JobListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 540f5ea045..779f41f9a7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobSpecBuilder extends V1JobSpecFluent implements VisitableBuilder{ public V1JobSpecBuilder() { this(new V1JobSpec()); 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 f086b5f714..4cb8512298 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 @@ -1,19 +1,22 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Boolean; +import java.util.Optional; import java.lang.Integer; import java.lang.Long; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobSpecFluent> extends BaseFluent{ +public class V1JobSpecFluent> extends BaseFluent{ public V1JobSpecFluent() { } @@ -38,25 +41,25 @@ public V1JobSpecFluent(V1JobSpec instance) { private Integer ttlSecondsAfterFinished; protected void copyInstance(V1JobSpec instance) { - instance = (instance != null ? instance : new V1JobSpec()); + instance = instance != null ? instance : new V1JobSpec(); if (instance != null) { - this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); - this.withBackoffLimit(instance.getBackoffLimit()); - this.withBackoffLimitPerIndex(instance.getBackoffLimitPerIndex()); - this.withCompletionMode(instance.getCompletionMode()); - this.withCompletions(instance.getCompletions()); - this.withManagedBy(instance.getManagedBy()); - this.withManualSelector(instance.getManualSelector()); - this.withMaxFailedIndexes(instance.getMaxFailedIndexes()); - this.withParallelism(instance.getParallelism()); - this.withPodFailurePolicy(instance.getPodFailurePolicy()); - this.withPodReplacementPolicy(instance.getPodReplacementPolicy()); - this.withSelector(instance.getSelector()); - this.withSuccessPolicy(instance.getSuccessPolicy()); - this.withSuspend(instance.getSuspend()); - this.withTemplate(instance.getTemplate()); - this.withTtlSecondsAfterFinished(instance.getTtlSecondsAfterFinished()); - } + this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); + this.withBackoffLimit(instance.getBackoffLimit()); + this.withBackoffLimitPerIndex(instance.getBackoffLimitPerIndex()); + this.withCompletionMode(instance.getCompletionMode()); + this.withCompletions(instance.getCompletions()); + this.withManagedBy(instance.getManagedBy()); + this.withManualSelector(instance.getManualSelector()); + this.withMaxFailedIndexes(instance.getMaxFailedIndexes()); + this.withParallelism(instance.getParallelism()); + this.withPodFailurePolicy(instance.getPodFailurePolicy()); + this.withPodReplacementPolicy(instance.getPodReplacementPolicy()); + this.withSelector(instance.getSelector()); + this.withSuccessPolicy(instance.getSuccessPolicy()); + this.withSuspend(instance.getSuspend()); + this.withTemplate(instance.getTemplate()); + this.withTtlSecondsAfterFinished(instance.getTtlSecondsAfterFinished()); + } } public Long getActiveDeadlineSeconds() { @@ -205,15 +208,15 @@ public PodFailurePolicyNested withNewPodFailurePolicyLike(V1PodFailurePolicy } public PodFailurePolicyNested editPodFailurePolicy() { - return withNewPodFailurePolicyLike(java.util.Optional.ofNullable(buildPodFailurePolicy()).orElse(null)); + return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(null)); } public PodFailurePolicyNested editOrNewPodFailurePolicy() { - return withNewPodFailurePolicyLike(java.util.Optional.ofNullable(buildPodFailurePolicy()).orElse(new V1PodFailurePolicyBuilder().build())); + return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(new V1PodFailurePolicyBuilder().build())); } public PodFailurePolicyNested editOrNewPodFailurePolicyLike(V1PodFailurePolicy item) { - return withNewPodFailurePolicyLike(java.util.Optional.ofNullable(buildPodFailurePolicy()).orElse(item)); + return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(item)); } public String getPodReplacementPolicy() { @@ -258,15 +261,15 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public V1SuccessPolicy buildSuccessPolicy() { @@ -298,15 +301,15 @@ public SuccessPolicyNested withNewSuccessPolicyLike(V1SuccessPolicy item) { } public SuccessPolicyNested editSuccessPolicy() { - return withNewSuccessPolicyLike(java.util.Optional.ofNullable(buildSuccessPolicy()).orElse(null)); + return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(null)); } public SuccessPolicyNested editOrNewSuccessPolicy() { - return withNewSuccessPolicyLike(java.util.Optional.ofNullable(buildSuccessPolicy()).orElse(new V1SuccessPolicyBuilder().build())); + return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(new V1SuccessPolicyBuilder().build())); } public SuccessPolicyNested editOrNewSuccessPolicyLike(V1SuccessPolicy item) { - return withNewSuccessPolicyLike(java.util.Optional.ofNullable(buildSuccessPolicy()).orElse(item)); + return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(item)); } public Boolean getSuspend() { @@ -351,15 +354,15 @@ public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { } public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } public Integer getTtlSecondsAfterFinished() { @@ -376,52 +379,153 @@ public boolean hasTtlSecondsAfterFinished() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1JobSpecFluent that = (V1JobSpecFluent) o; - if (!java.util.Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds)) return false; - if (!java.util.Objects.equals(backoffLimit, that.backoffLimit)) return false; - if (!java.util.Objects.equals(backoffLimitPerIndex, that.backoffLimitPerIndex)) return false; - if (!java.util.Objects.equals(completionMode, that.completionMode)) return false; - if (!java.util.Objects.equals(completions, that.completions)) return false; - if (!java.util.Objects.equals(managedBy, that.managedBy)) return false; - if (!java.util.Objects.equals(manualSelector, that.manualSelector)) return false; - if (!java.util.Objects.equals(maxFailedIndexes, that.maxFailedIndexes)) return false; - if (!java.util.Objects.equals(parallelism, that.parallelism)) return false; - if (!java.util.Objects.equals(podFailurePolicy, that.podFailurePolicy)) return false; - if (!java.util.Objects.equals(podReplacementPolicy, that.podReplacementPolicy)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(successPolicy, that.successPolicy)) return false; - if (!java.util.Objects.equals(suspend, that.suspend)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; - if (!java.util.Objects.equals(ttlSecondsAfterFinished, that.ttlSecondsAfterFinished)) return false; + if (!(Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds))) { + return false; + } + if (!(Objects.equals(backoffLimit, that.backoffLimit))) { + return false; + } + if (!(Objects.equals(backoffLimitPerIndex, that.backoffLimitPerIndex))) { + return false; + } + if (!(Objects.equals(completionMode, that.completionMode))) { + return false; + } + if (!(Objects.equals(completions, that.completions))) { + return false; + } + if (!(Objects.equals(managedBy, that.managedBy))) { + return false; + } + if (!(Objects.equals(manualSelector, that.manualSelector))) { + return false; + } + if (!(Objects.equals(maxFailedIndexes, that.maxFailedIndexes))) { + return false; + } + if (!(Objects.equals(parallelism, that.parallelism))) { + return false; + } + if (!(Objects.equals(podFailurePolicy, that.podFailurePolicy))) { + return false; + } + if (!(Objects.equals(podReplacementPolicy, that.podReplacementPolicy))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(successPolicy, that.successPolicy))) { + return false; + } + if (!(Objects.equals(suspend, that.suspend))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + if (!(Objects.equals(ttlSecondsAfterFinished, that.ttlSecondsAfterFinished))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, successPolicy, suspend, template, ttlSecondsAfterFinished, super.hashCode()); + return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, successPolicy, suspend, template, ttlSecondsAfterFinished); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (activeDeadlineSeconds != null) { sb.append("activeDeadlineSeconds:"); sb.append(activeDeadlineSeconds + ","); } - if (backoffLimit != null) { sb.append("backoffLimit:"); sb.append(backoffLimit + ","); } - if (backoffLimitPerIndex != null) { sb.append("backoffLimitPerIndex:"); sb.append(backoffLimitPerIndex + ","); } - if (completionMode != null) { sb.append("completionMode:"); sb.append(completionMode + ","); } - if (completions != null) { sb.append("completions:"); sb.append(completions + ","); } - if (managedBy != null) { sb.append("managedBy:"); sb.append(managedBy + ","); } - if (manualSelector != null) { sb.append("manualSelector:"); sb.append(manualSelector + ","); } - if (maxFailedIndexes != null) { sb.append("maxFailedIndexes:"); sb.append(maxFailedIndexes + ","); } - if (parallelism != null) { sb.append("parallelism:"); sb.append(parallelism + ","); } - if (podFailurePolicy != null) { sb.append("podFailurePolicy:"); sb.append(podFailurePolicy + ","); } - if (podReplacementPolicy != null) { sb.append("podReplacementPolicy:"); sb.append(podReplacementPolicy + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (successPolicy != null) { sb.append("successPolicy:"); sb.append(successPolicy + ","); } - if (suspend != null) { sb.append("suspend:"); sb.append(suspend + ","); } - if (template != null) { sb.append("template:"); sb.append(template + ","); } - if (ttlSecondsAfterFinished != null) { sb.append("ttlSecondsAfterFinished:"); sb.append(ttlSecondsAfterFinished); } + if (!(activeDeadlineSeconds == null)) { + sb.append("activeDeadlineSeconds:"); + sb.append(activeDeadlineSeconds); + sb.append(","); + } + if (!(backoffLimit == null)) { + sb.append("backoffLimit:"); + sb.append(backoffLimit); + sb.append(","); + } + if (!(backoffLimitPerIndex == null)) { + sb.append("backoffLimitPerIndex:"); + sb.append(backoffLimitPerIndex); + sb.append(","); + } + if (!(completionMode == null)) { + sb.append("completionMode:"); + sb.append(completionMode); + sb.append(","); + } + if (!(completions == null)) { + sb.append("completions:"); + sb.append(completions); + sb.append(","); + } + if (!(managedBy == null)) { + sb.append("managedBy:"); + sb.append(managedBy); + sb.append(","); + } + if (!(manualSelector == null)) { + sb.append("manualSelector:"); + sb.append(manualSelector); + sb.append(","); + } + if (!(maxFailedIndexes == null)) { + sb.append("maxFailedIndexes:"); + sb.append(maxFailedIndexes); + sb.append(","); + } + if (!(parallelism == null)) { + sb.append("parallelism:"); + sb.append(parallelism); + sb.append(","); + } + if (!(podFailurePolicy == null)) { + sb.append("podFailurePolicy:"); + sb.append(podFailurePolicy); + sb.append(","); + } + if (!(podReplacementPolicy == null)) { + sb.append("podReplacementPolicy:"); + sb.append(podReplacementPolicy); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(successPolicy == null)) { + sb.append("successPolicy:"); + sb.append(successPolicy); + sb.append(","); + } + if (!(suspend == null)) { + sb.append("suspend:"); + sb.append(suspend); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + sb.append(","); + } + if (!(ttlSecondsAfterFinished == null)) { + sb.append("ttlSecondsAfterFinished:"); + sb.append(ttlSecondsAfterFinished); + } sb.append("}"); return sb.toString(); } 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 8f9c16e506..6d0f631802 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobStatusBuilder extends V1JobStatusFluent implements VisitableBuilder{ public V1JobStatusBuilder() { this(new V1JobStatus()); 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 b0b067428a..35403df1c4 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; import java.lang.Integer; import java.time.OffsetDateTime; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -18,7 +21,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1JobStatusFluent> extends BaseFluent{ +public class V1JobStatusFluent> extends BaseFluent{ public V1JobStatusFluent() { } @@ -38,20 +41,20 @@ public V1JobStatusFluent(V1JobStatus instance) { private V1UncountedTerminatedPodsBuilder uncountedTerminatedPods; protected void copyInstance(V1JobStatus instance) { - instance = (instance != null ? instance : new V1JobStatus()); + instance = instance != null ? instance : new V1JobStatus(); if (instance != null) { - this.withActive(instance.getActive()); - this.withCompletedIndexes(instance.getCompletedIndexes()); - this.withCompletionTime(instance.getCompletionTime()); - this.withConditions(instance.getConditions()); - this.withFailed(instance.getFailed()); - this.withFailedIndexes(instance.getFailedIndexes()); - this.withReady(instance.getReady()); - this.withStartTime(instance.getStartTime()); - this.withSucceeded(instance.getSucceeded()); - this.withTerminating(instance.getTerminating()); - this.withUncountedTerminatedPods(instance.getUncountedTerminatedPods()); - } + this.withActive(instance.getActive()); + this.withCompletedIndexes(instance.getCompletedIndexes()); + this.withCompletionTime(instance.getCompletionTime()); + this.withConditions(instance.getConditions()); + this.withFailed(instance.getFailed()); + this.withFailedIndexes(instance.getFailedIndexes()); + this.withReady(instance.getReady()); + this.withStartTime(instance.getStartTime()); + this.withSucceeded(instance.getSucceeded()); + this.withTerminating(instance.getTerminating()); + this.withUncountedTerminatedPods(instance.getUncountedTerminatedPods()); + } } public Integer getActive() { @@ -94,7 +97,9 @@ public boolean hasCompletionTime() { } public A addToConditions(int index,V1JobCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1JobConditionBuilder builder = new V1JobConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -103,11 +108,13 @@ public A addToConditions(int index,V1JobCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1JobCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1JobConditionBuilder builder = new V1JobConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -116,41 +123,71 @@ public A setToConditions(int index,V1JobCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1JobCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1JobCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1JobCondition... items) { - if (this.conditions == null) return (A)this; - for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1JobCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1JobConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1JobConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -202,7 +239,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1JobCondition... conditions) { + public A withConditions(V1JobCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -216,7 +253,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1JobCondition... co } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -232,28 +269,39 @@ public ConditionsNested setNewConditionLike(int index,V1JobCondition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 withNewUncountedTerminatedPodsLike(V1Unc } public UncountedTerminatedPodsNested editUncountedTerminatedPods() { - return withNewUncountedTerminatedPodsLike(java.util.Optional.ofNullable(buildUncountedTerminatedPods()).orElse(null)); + return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(null)); } public UncountedTerminatedPodsNested editOrNewUncountedTerminatedPods() { - return withNewUncountedTerminatedPodsLike(java.util.Optional.ofNullable(buildUncountedTerminatedPods()).orElse(new V1UncountedTerminatedPodsBuilder().build())); + return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(new V1UncountedTerminatedPodsBuilder().build())); } public UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { - return withNewUncountedTerminatedPodsLike(java.util.Optional.ofNullable(buildUncountedTerminatedPods()).orElse(item)); + return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1JobStatusFluent that = (V1JobStatusFluent) o; - if (!java.util.Objects.equals(active, that.active)) return false; - if (!java.util.Objects.equals(completedIndexes, that.completedIndexes)) return false; - if (!java.util.Objects.equals(completionTime, that.completionTime)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(failed, that.failed)) return false; - if (!java.util.Objects.equals(failedIndexes, that.failedIndexes)) return false; - if (!java.util.Objects.equals(ready, that.ready)) return false; - if (!java.util.Objects.equals(startTime, that.startTime)) return false; - if (!java.util.Objects.equals(succeeded, that.succeeded)) return false; - if (!java.util.Objects.equals(terminating, that.terminating)) return false; - if (!java.util.Objects.equals(uncountedTerminatedPods, that.uncountedTerminatedPods)) return false; + if (!(Objects.equals(active, that.active))) { + return false; + } + if (!(Objects.equals(completedIndexes, that.completedIndexes))) { + return false; + } + if (!(Objects.equals(completionTime, that.completionTime))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(failed, that.failed))) { + return false; + } + if (!(Objects.equals(failedIndexes, that.failedIndexes))) { + return false; + } + if (!(Objects.equals(ready, that.ready))) { + return false; + } + if (!(Objects.equals(startTime, that.startTime))) { + return false; + } + if (!(Objects.equals(succeeded, that.succeeded))) { + return false; + } + if (!(Objects.equals(terminating, that.terminating))) { + return false; + } + if (!(Objects.equals(uncountedTerminatedPods, that.uncountedTerminatedPods))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(active, completedIndexes, completionTime, conditions, failed, failedIndexes, ready, startTime, succeeded, terminating, uncountedTerminatedPods, super.hashCode()); + return Objects.hash(active, completedIndexes, completionTime, conditions, failed, failedIndexes, ready, startTime, succeeded, terminating, uncountedTerminatedPods); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (active != null) { sb.append("active:"); sb.append(active + ","); } - if (completedIndexes != null) { sb.append("completedIndexes:"); sb.append(completedIndexes + ","); } - if (completionTime != null) { sb.append("completionTime:"); sb.append(completionTime + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (failed != null) { sb.append("failed:"); sb.append(failed + ","); } - if (failedIndexes != null) { sb.append("failedIndexes:"); sb.append(failedIndexes + ","); } - if (ready != null) { sb.append("ready:"); sb.append(ready + ","); } - if (startTime != null) { sb.append("startTime:"); sb.append(startTime + ","); } - if (succeeded != null) { sb.append("succeeded:"); sb.append(succeeded + ","); } - if (terminating != null) { sb.append("terminating:"); sb.append(terminating + ","); } - if (uncountedTerminatedPods != null) { sb.append("uncountedTerminatedPods:"); sb.append(uncountedTerminatedPods); } + if (!(active == null)) { + sb.append("active:"); + sb.append(active); + sb.append(","); + } + if (!(completedIndexes == null)) { + sb.append("completedIndexes:"); + sb.append(completedIndexes); + sb.append(","); + } + if (!(completionTime == null)) { + sb.append("completionTime:"); + sb.append(completionTime); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(failed == null)) { + sb.append("failed:"); + sb.append(failed); + sb.append(","); + } + if (!(failedIndexes == null)) { + sb.append("failedIndexes:"); + sb.append(failedIndexes); + sb.append(","); + } + if (!(ready == null)) { + sb.append("ready:"); + sb.append(ready); + sb.append(","); + } + if (!(startTime == null)) { + sb.append("startTime:"); + sb.append(startTime); + sb.append(","); + } + if (!(succeeded == null)) { + sb.append("succeeded:"); + sb.append(succeeded); + sb.append(","); + } + if (!(terminating == null)) { + sb.append("terminating:"); + sb.append(terminating); + sb.append(","); + } + if (!(uncountedTerminatedPods == null)) { + sb.append("uncountedTerminatedPods:"); + sb.append(uncountedTerminatedPods); + } sb.append("}"); return sb.toString(); } @@ -423,7 +542,7 @@ public class ConditionsNested extends V1JobConditionFluent implements VisitableBuilder{ public V1JobTemplateSpecBuilder() { this(new V1JobTemplateSpec()); 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 2df834f26b..6fceef3e08 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobTemplateSpecFluent> extends BaseFluent{ +public class V1JobTemplateSpecFluent> extends BaseFluent{ public V1JobTemplateSpecFluent() { } @@ -21,11 +24,11 @@ public V1JobTemplateSpecFluent(V1JobTemplateSpec instance) { private V1JobSpecBuilder spec; protected void copyInstance(V1JobTemplateSpec instance) { - instance = (instance != null ? instance : new V1JobTemplateSpec()); + instance = instance != null ? instance : new V1JobTemplateSpec(); if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public V1ObjectMeta buildMetadata() { @@ -57,15 +60,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1JobSpec buildSpec() { @@ -97,36 +100,53 @@ public SpecNested withNewSpecLike(V1JobSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1JobSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1JobSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1JobSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1JobTemplateSpecFluent that = (V1JobTemplateSpecFluent) o; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); + return Objects.hash(metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } sb.append("}"); return sb.toString(); } 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 14923973ca..1c12152697 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1KeyToPathBuilder extends V1KeyToPathFluent implements VisitableBuilder{ public V1KeyToPathBuilder() { this(new V1KeyToPath()); 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 a3541dda38..c4b4677ad8 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1KeyToPathFluent> extends BaseFluent{ +public class V1KeyToPathFluent> extends BaseFluent{ public V1KeyToPathFluent() { } @@ -22,12 +24,12 @@ public V1KeyToPathFluent(V1KeyToPath instance) { private String path; protected void copyInstance(V1KeyToPath instance) { - instance = (instance != null ? instance : new V1KeyToPath()); + instance = instance != null ? instance : new V1KeyToPath(); if (instance != null) { - this.withKey(instance.getKey()); - this.withMode(instance.getMode()); - this.withPath(instance.getPath()); - } + this.withKey(instance.getKey()); + this.withMode(instance.getMode()); + this.withPath(instance.getPath()); + } } public String getKey() { @@ -70,26 +72,49 @@ public boolean hasPath() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1KeyToPathFluent that = (V1KeyToPathFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(mode, that.mode)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(mode, that.mode))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(key, mode, path, super.hashCode()); + return Objects.hash(key, mode, path); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (mode != null) { sb.append("mode:"); sb.append(mode + ","); } - if (path != null) { sb.append("path:"); sb.append(path); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(mode == null)) { + sb.append("mode:"); + sb.append(mode); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + } sb.append("}"); return sb.toString(); } 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 56ee7a3e57..fa15d0df7c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LabelSelectorAttributesBuilder extends V1LabelSelectorAttributesFluent implements VisitableBuilder{ public V1LabelSelectorAttributesBuilder() { this(new V1LabelSelectorAttributes()); 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 100d4c355d..f45bde7eb9 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LabelSelectorAttributesFluent> extends BaseFluent{ +public class V1LabelSelectorAttributesFluent> extends BaseFluent{ public V1LabelSelectorAttributesFluent() { } @@ -27,11 +29,11 @@ public V1LabelSelectorAttributesFluent(V1LabelSelectorAttributes instance) { private ArrayList requirements; protected void copyInstance(V1LabelSelectorAttributes instance) { - instance = (instance != null ? instance : new V1LabelSelectorAttributes()); + instance = instance != null ? instance : new V1LabelSelectorAttributes(); if (instance != null) { - this.withRawSelector(instance.getRawSelector()); - this.withRequirements(instance.getRequirements()); - } + this.withRawSelector(instance.getRawSelector()); + this.withRequirements(instance.getRequirements()); + } } public String getRawSelector() { @@ -48,7 +50,9 @@ public boolean hasRawSelector() { } public A addToRequirements(int index,V1LabelSelectorRequirement item) { - if (this.requirements == null) {this.requirements = new ArrayList();} + if (this.requirements == null) { + this.requirements = new ArrayList(); + } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); @@ -57,11 +61,13 @@ public A addToRequirements(int index,V1LabelSelectorRequirement item) { _visitables.get("requirements").add(builder); requirements.add(index, builder); } - return (A)this; + return (A) this; } public A setToRequirements(int index,V1LabelSelectorRequirement item) { - if (this.requirements == null) {this.requirements = new ArrayList();} + if (this.requirements == null) { + this.requirements = new ArrayList(); + } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); @@ -70,41 +76,71 @@ public A setToRequirements(int index,V1LabelSelectorRequirement item) { _visitables.get("requirements").add(builder); requirements.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRequirements(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { - if (this.requirements == null) {this.requirements = new ArrayList();} - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("requirements").add(builder);this.requirements.add(builder);} return (A)this; + public A addToRequirements(V1LabelSelectorRequirement... items) { + if (this.requirements == null) { + this.requirements = new ArrayList(); + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("requirements").add(builder); + this.requirements.add(builder); + } + return (A) this; } public A addAllToRequirements(Collection items) { - if (this.requirements == null) {this.requirements = new ArrayList();} - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("requirements").add(builder);this.requirements.add(builder);} return (A)this; + if (this.requirements == null) { + this.requirements = new ArrayList(); + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("requirements").add(builder); + this.requirements.add(builder); + } + return (A) this; } - public A removeFromRequirements(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { - if (this.requirements == null) return (A)this; - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("requirements").remove(builder); this.requirements.remove(builder);} return (A)this; + public A removeFromRequirements(V1LabelSelectorRequirement... items) { + if (this.requirements == null) { + return (A) this; + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("requirements").remove(builder); + this.requirements.remove(builder); + } + return (A) this; } public A removeAllFromRequirements(Collection items) { - if (this.requirements == null) return (A)this; - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("requirements").remove(builder); this.requirements.remove(builder);} return (A)this; + if (this.requirements == null) { + return (A) this; + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("requirements").remove(builder); + this.requirements.remove(builder); + } + return (A) this; } public A removeMatchingFromRequirements(Predicate predicate) { - if (requirements == null) return (A) this; - final Iterator each = requirements.iterator(); - final List visitables = _visitables.get("requirements"); + if (requirements == null) { + return (A) this; + } + Iterator each = requirements.iterator(); + List visitables = _visitables.get("requirements"); while (each.hasNext()) { - V1LabelSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1LabelSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRequirements() { @@ -156,7 +192,7 @@ public A withRequirements(List requirements) { return (A) this; } - public A withRequirements(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... requirements) { + public A withRequirements(V1LabelSelectorRequirement... requirements) { if (this.requirements != null) { this.requirements.clear(); _visitables.remove("requirements"); @@ -170,7 +206,7 @@ public A withRequirements(io.kubernetes.client.openapi.models.V1LabelSelectorReq } public boolean hasRequirements() { - return this.requirements != null && !this.requirements.isEmpty(); + return this.requirements != null && !(this.requirements.isEmpty()); } public RequirementsNested addNewRequirement() { @@ -186,49 +222,77 @@ public RequirementsNested setNewRequirementLike(int index,V1LabelSelectorRequ } public RequirementsNested editRequirement(int index) { - if (requirements.size() <= index) throw new RuntimeException("Can't edit requirements. Index exceeds size."); - return setNewRequirementLike(index, buildRequirement(index)); + if (index <= requirements.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); } public RequirementsNested editFirstRequirement() { - if (requirements.size() == 0) throw new RuntimeException("Can't edit first requirements. The list is empty."); - return setNewRequirementLike(0, buildRequirement(0)); + if (requirements.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requirements")); + } + return this.setNewRequirementLike(0, this.buildRequirement(0)); } public RequirementsNested editLastRequirement() { int index = requirements.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last requirements. The list is empty."); - return setNewRequirementLike(index, buildRequirement(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); } public RequirementsNested editMatchingRequirement(Predicate predicate) { int index = -1; - for (int i=0;i extends V1LabelSelectorRequirementFluent implements VisitableBuilder{ public V1LabelSelectorBuilder() { this(new V1LabelSelector()); 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 97d9c35b52..da957ab31f 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LabelSelectorFluent> extends BaseFluent{ +public class V1LabelSelectorFluent> extends BaseFluent{ public V1LabelSelectorFluent() { } @@ -29,15 +31,17 @@ public V1LabelSelectorFluent(V1LabelSelector instance) { private Map matchLabels; protected void copyInstance(V1LabelSelector instance) { - instance = (instance != null ? instance : new V1LabelSelector()); + instance = instance != null ? instance : new V1LabelSelector(); if (instance != null) { - this.withMatchExpressions(instance.getMatchExpressions()); - this.withMatchLabels(instance.getMatchLabels()); - } + this.withMatchExpressions(instance.getMatchExpressions()); + this.withMatchLabels(instance.getMatchLabels()); + } } public A addToMatchExpressions(int index,V1LabelSelectorRequirement item) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); @@ -46,11 +50,13 @@ public A addToMatchExpressions(int index,V1LabelSelectorRequirement item) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(index, builder); } - return (A)this; + return (A) this; } public A setToMatchExpressions(int index,V1LabelSelectorRequirement item) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); @@ -59,41 +65,71 @@ public A setToMatchExpressions(int index,V1LabelSelectorRequirement item) { _visitables.get("matchExpressions").add(builder); matchExpressions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + public A addToMatchExpressions(V1LabelSelectorRequirement... items) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } public A addAllToMatchExpressions(Collection items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } - public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { - if (this.matchExpressions == null) return (A)this; - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + public A removeFromMatchExpressions(V1LabelSelectorRequirement... items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; } public A removeAllFromMatchExpressions(Collection items) { - if (this.matchExpressions == null) return (A)this; - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + if (this.matchExpressions == null) { + return (A) this; + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; } public A removeMatchingFromMatchExpressions(Predicate predicate) { - if (matchExpressions == null) return (A) this; - final Iterator each = matchExpressions.iterator(); - final List visitables = _visitables.get("matchExpressions"); + if (matchExpressions == null) { + return (A) this; + } + Iterator each = matchExpressions.iterator(); + List visitables = _visitables.get("matchExpressions"); while (each.hasNext()) { - V1LabelSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1LabelSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMatchExpressions() { @@ -145,7 +181,7 @@ public A withMatchExpressions(List matchExpressions) return (A) this; } - public A withMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... matchExpressions) { + public A withMatchExpressions(V1LabelSelectorRequirement... matchExpressions) { if (this.matchExpressions != null) { this.matchExpressions.clear(); _visitables.remove("matchExpressions"); @@ -159,7 +195,7 @@ public A withMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelecto } public boolean hasMatchExpressions() { - return this.matchExpressions != null && !this.matchExpressions.isEmpty(); + return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); } public MatchExpressionsNested addNewMatchExpression() { @@ -175,48 +211,83 @@ public MatchExpressionsNested setNewMatchExpressionLike(int index,V1LabelSele } public MatchExpressionsNested editMatchExpression(int index) { - if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + if (index <= matchExpressions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } public MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); - return setNewMatchExpressionLike(0, buildMatchExpression(0)); + if (matchExpressions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(0, this.buildMatchExpression(0)); } public MatchExpressionsNested editLastMatchExpression() { int index = matchExpressions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { int index = -1; - for (int i=0;i map) { - if(this.matchLabels == null && map != null) { this.matchLabels = new LinkedHashMap(); } - if(map != null) { this.matchLabels.putAll(map);} return (A)this; + if (this.matchLabels == null && map != null) { + this.matchLabels = new LinkedHashMap(); + } + if (map != null) { + this.matchLabels.putAll(map); + } + return (A) this; } public A removeFromMatchLabels(String key) { - if(this.matchLabels == null) { return (A) this; } - if(key != null && this.matchLabels != null) {this.matchLabels.remove(key);} return (A)this; + if (this.matchLabels == null) { + return (A) this; + } + if (key != null && this.matchLabels != null) { + this.matchLabels.remove(key); + } + return (A) this; } public A removeFromMatchLabels(Map map) { - if(this.matchLabels == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.matchLabels != null){this.matchLabels.remove(key);}}} return (A)this; + if (this.matchLabels == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.matchLabels != null) { + this.matchLabels.remove(key); + } + } + } + return (A) this; } public Map getMatchLabels() { @@ -237,24 +308,41 @@ public boolean hasMatchLabels() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LabelSelectorFluent that = (V1LabelSelectorFluent) o; - if (!java.util.Objects.equals(matchExpressions, that.matchExpressions)) return false; - if (!java.util.Objects.equals(matchLabels, that.matchLabels)) return false; + if (!(Objects.equals(matchExpressions, that.matchExpressions))) { + return false; + } + if (!(Objects.equals(matchLabels, that.matchLabels))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(matchExpressions, matchLabels, super.hashCode()); + return Objects.hash(matchExpressions, matchLabels); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (matchExpressions != null && !matchExpressions.isEmpty()) { sb.append("matchExpressions:"); sb.append(matchExpressions + ","); } - if (matchLabels != null && !matchLabels.isEmpty()) { sb.append("matchLabels:"); sb.append(matchLabels); } + if (!(matchExpressions == null) && !(matchExpressions.isEmpty())) { + sb.append("matchExpressions:"); + sb.append(matchExpressions); + sb.append(","); + } + if (!(matchLabels == null) && !(matchLabels.isEmpty())) { + sb.append("matchLabels:"); + sb.append(matchLabels); + } sb.append("}"); return sb.toString(); } @@ -267,7 +355,7 @@ public class MatchExpressionsNested extends V1LabelSelectorRequirementFluent< int index; public N and() { - return (N) V1LabelSelectorFluent.this.setToMatchExpressions(index,builder.build()); + return (N) V1LabelSelectorFluent.this.setToMatchExpressions(index, builder.build()); } public N endMatchExpression() { 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 f4c88db363..973e3b2cf9 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LabelSelectorRequirementBuilder extends V1LabelSelectorRequirementFluent implements VisitableBuilder{ public V1LabelSelectorRequirementBuilder() { this(new V1LabelSelectorRequirement()); 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 0a19d1d81e..ee6a3f38de 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LabelSelectorRequirementFluent> extends BaseFluent{ +public class V1LabelSelectorRequirementFluent> extends BaseFluent{ public V1LabelSelectorRequirementFluent() { } @@ -25,12 +27,12 @@ public V1LabelSelectorRequirementFluent(V1LabelSelectorRequirement instance) { private List values; protected void copyInstance(V1LabelSelectorRequirement instance) { - instance = (instance != null ? instance : new V1LabelSelectorRequirement()); + instance = instance != null ? instance : new V1LabelSelectorRequirement(); if (instance != null) { - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } } public String getKey() { @@ -60,34 +62,59 @@ public boolean hasOperator() { } public A addToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} + if (this.values == null) { + this.values = new ArrayList(); + } this.values.add(index, item); - return (A)this; + return (A) this; } public A setToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public A addToValues(java.lang.String... items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + public A addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } public A addAllToValues(Collection items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } - public A removeFromValues(java.lang.String... items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public A removeAllFromValues(Collection items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public List getValues() { @@ -136,7 +163,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.String... values) { + public A withValues(String... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -150,30 +177,53 @@ public A withValues(java.lang.String... values) { } public boolean hasValues() { - return this.values != null && !this.values.isEmpty(); + return this.values != null && !(this.values.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LabelSelectorRequirementFluent that = (V1LabelSelectorRequirementFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(values, that.values)) return false; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(key, operator, values, super.hashCode()); + return Objects.hash(key, operator, values); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } sb.append("}"); return sb.toString(); } 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 8e1f73cec4..9fb1fbda28 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LeaseBuilder extends V1LeaseFluent implements VisitableBuilder{ public V1LeaseBuilder() { this(new V1Lease()); 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 f65f2970c5..93219cd945 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LeaseFluent> extends BaseFluent{ +public class V1LeaseFluent> extends BaseFluent{ public V1LeaseFluent() { } @@ -23,13 +26,13 @@ public V1LeaseFluent(V1Lease instance) { private V1LeaseSpecBuilder spec; protected void copyInstance(V1Lease instance) { - instance = (instance != null ? instance : new V1Lease()); + instance = instance != null ? instance : new V1Lease(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1LeaseSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1LeaseSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1LeaseSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1LeaseSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1LeaseSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LeaseFluent that = (V1LeaseFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 06ab94c424..3932d0886a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LeaseListBuilder extends V1LeaseListFluent implements VisitableBuilder{ public V1LeaseListBuilder() { this(new V1LeaseList()); 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 0a0497d6c2..5aa2b11136 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LeaseListFluent> extends BaseFluent{ +public class V1LeaseListFluent> extends BaseFluent{ public V1LeaseListFluent() { } @@ -29,13 +32,13 @@ public V1LeaseListFluent(V1LeaseList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1LeaseList instance) { - instance = (instance != null ? instance : new V1LeaseList()); + instance = instance != null ? instance : new V1LeaseList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Lease item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1LeaseBuilder builder = new V1LeaseBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Lease item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Lease item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1LeaseBuilder builder = new V1LeaseBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Lease item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Lease... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Lease... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Lease... items) { - if (this.items == null) return (A)this; - for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Lease... items) { + if (this.items == null) { + return (A) this; + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1LeaseBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1LeaseBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Lease... items) { + public A withItems(V1Lease... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Lease... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Lease item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LeaseListFluent that = (V1LeaseListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1LeaseFluent> implements Nes int index; public N and() { - return (N) V1LeaseListFluent.this.setToItems(index,builder.build()); + return (N) V1LeaseListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 683ba2945c..c315c6c89e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LeaseSpecBuilder extends V1LeaseSpecFluent implements VisitableBuilder{ public V1LeaseSpecBuilder() { this(new V1LeaseSpec()); 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 836e85b141..6d0a4abd50 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LeaseSpecFluent> extends BaseFluent{ +public class V1LeaseSpecFluent> extends BaseFluent{ public V1LeaseSpecFluent() { } @@ -27,16 +29,16 @@ public V1LeaseSpecFluent(V1LeaseSpec instance) { private String strategy; protected void copyInstance(V1LeaseSpec instance) { - instance = (instance != null ? instance : new V1LeaseSpec()); + instance = instance != null ? instance : new V1LeaseSpec(); if (instance != null) { - this.withAcquireTime(instance.getAcquireTime()); - this.withHolderIdentity(instance.getHolderIdentity()); - this.withLeaseDurationSeconds(instance.getLeaseDurationSeconds()); - this.withLeaseTransitions(instance.getLeaseTransitions()); - this.withPreferredHolder(instance.getPreferredHolder()); - this.withRenewTime(instance.getRenewTime()); - this.withStrategy(instance.getStrategy()); - } + this.withAcquireTime(instance.getAcquireTime()); + this.withHolderIdentity(instance.getHolderIdentity()); + this.withLeaseDurationSeconds(instance.getLeaseDurationSeconds()); + this.withLeaseTransitions(instance.getLeaseTransitions()); + this.withPreferredHolder(instance.getPreferredHolder()); + this.withRenewTime(instance.getRenewTime()); + this.withStrategy(instance.getStrategy()); + } } public OffsetDateTime getAcquireTime() { @@ -131,34 +133,81 @@ public boolean hasStrategy() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LeaseSpecFluent that = (V1LeaseSpecFluent) o; - if (!java.util.Objects.equals(acquireTime, that.acquireTime)) return false; - if (!java.util.Objects.equals(holderIdentity, that.holderIdentity)) return false; - if (!java.util.Objects.equals(leaseDurationSeconds, that.leaseDurationSeconds)) return false; - if (!java.util.Objects.equals(leaseTransitions, that.leaseTransitions)) return false; - if (!java.util.Objects.equals(preferredHolder, that.preferredHolder)) return false; - if (!java.util.Objects.equals(renewTime, that.renewTime)) return false; - if (!java.util.Objects.equals(strategy, that.strategy)) return false; + if (!(Objects.equals(acquireTime, that.acquireTime))) { + return false; + } + if (!(Objects.equals(holderIdentity, that.holderIdentity))) { + return false; + } + if (!(Objects.equals(leaseDurationSeconds, that.leaseDurationSeconds))) { + return false; + } + if (!(Objects.equals(leaseTransitions, that.leaseTransitions))) { + return false; + } + if (!(Objects.equals(preferredHolder, that.preferredHolder))) { + return false; + } + if (!(Objects.equals(renewTime, that.renewTime))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, preferredHolder, renewTime, strategy, super.hashCode()); + return Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, preferredHolder, renewTime, strategy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (acquireTime != null) { sb.append("acquireTime:"); sb.append(acquireTime + ","); } - if (holderIdentity != null) { sb.append("holderIdentity:"); sb.append(holderIdentity + ","); } - if (leaseDurationSeconds != null) { sb.append("leaseDurationSeconds:"); sb.append(leaseDurationSeconds + ","); } - if (leaseTransitions != null) { sb.append("leaseTransitions:"); sb.append(leaseTransitions + ","); } - if (preferredHolder != null) { sb.append("preferredHolder:"); sb.append(preferredHolder + ","); } - if (renewTime != null) { sb.append("renewTime:"); sb.append(renewTime + ","); } - if (strategy != null) { sb.append("strategy:"); sb.append(strategy); } + if (!(acquireTime == null)) { + sb.append("acquireTime:"); + sb.append(acquireTime); + sb.append(","); + } + if (!(holderIdentity == null)) { + sb.append("holderIdentity:"); + sb.append(holderIdentity); + sb.append(","); + } + if (!(leaseDurationSeconds == null)) { + sb.append("leaseDurationSeconds:"); + sb.append(leaseDurationSeconds); + sb.append(","); + } + if (!(leaseTransitions == null)) { + sb.append("leaseTransitions:"); + sb.append(leaseTransitions); + sb.append(","); + } + if (!(preferredHolder == null)) { + sb.append("preferredHolder:"); + sb.append(preferredHolder); + sb.append(","); + } + if (!(renewTime == null)) { + sb.append("renewTime:"); + sb.append(renewTime); + sb.append(","); + } + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + } sb.append("}"); return sb.toString(); } 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 b16f0f9327..d7835099ef 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LifecycleBuilder extends V1LifecycleFluent implements VisitableBuilder{ public V1LifecycleBuilder() { this(new V1Lifecycle()); 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 20566927f5..478483190c 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LifecycleFluent> extends BaseFluent{ +public class V1LifecycleFluent> extends BaseFluent{ public V1LifecycleFluent() { } @@ -22,12 +25,12 @@ public V1LifecycleFluent(V1Lifecycle instance) { private String stopSignal; protected void copyInstance(V1Lifecycle instance) { - instance = (instance != null ? instance : new V1Lifecycle()); + instance = instance != null ? instance : new V1Lifecycle(); if (instance != null) { - this.withPostStart(instance.getPostStart()); - this.withPreStop(instance.getPreStop()); - this.withStopSignal(instance.getStopSignal()); - } + this.withPostStart(instance.getPostStart()); + this.withPreStop(instance.getPreStop()); + this.withStopSignal(instance.getStopSignal()); + } } public V1LifecycleHandler buildPostStart() { @@ -59,15 +62,15 @@ public PostStartNested withNewPostStartLike(V1LifecycleHandler item) { } public PostStartNested editPostStart() { - return withNewPostStartLike(java.util.Optional.ofNullable(buildPostStart()).orElse(null)); + return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(null)); } public PostStartNested editOrNewPostStart() { - return withNewPostStartLike(java.util.Optional.ofNullable(buildPostStart()).orElse(new V1LifecycleHandlerBuilder().build())); + return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(new V1LifecycleHandlerBuilder().build())); } public PostStartNested editOrNewPostStartLike(V1LifecycleHandler item) { - return withNewPostStartLike(java.util.Optional.ofNullable(buildPostStart()).orElse(item)); + return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(item)); } public V1LifecycleHandler buildPreStop() { @@ -99,15 +102,15 @@ public PreStopNested withNewPreStopLike(V1LifecycleHandler item) { } public PreStopNested editPreStop() { - return withNewPreStopLike(java.util.Optional.ofNullable(buildPreStop()).orElse(null)); + return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(null)); } public PreStopNested editOrNewPreStop() { - return withNewPreStopLike(java.util.Optional.ofNullable(buildPreStop()).orElse(new V1LifecycleHandlerBuilder().build())); + return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(new V1LifecycleHandlerBuilder().build())); } public PreStopNested editOrNewPreStopLike(V1LifecycleHandler item) { - return withNewPreStopLike(java.util.Optional.ofNullable(buildPreStop()).orElse(item)); + return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(item)); } public String getStopSignal() { @@ -124,26 +127,49 @@ public boolean hasStopSignal() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LifecycleFluent that = (V1LifecycleFluent) o; - if (!java.util.Objects.equals(postStart, that.postStart)) return false; - if (!java.util.Objects.equals(preStop, that.preStop)) return false; - if (!java.util.Objects.equals(stopSignal, that.stopSignal)) return false; + if (!(Objects.equals(postStart, that.postStart))) { + return false; + } + if (!(Objects.equals(preStop, that.preStop))) { + return false; + } + if (!(Objects.equals(stopSignal, that.stopSignal))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(postStart, preStop, stopSignal, super.hashCode()); + return Objects.hash(postStart, preStop, stopSignal); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (postStart != null) { sb.append("postStart:"); sb.append(postStart + ","); } - if (preStop != null) { sb.append("preStop:"); sb.append(preStop + ","); } - if (stopSignal != null) { sb.append("stopSignal:"); sb.append(stopSignal); } + if (!(postStart == null)) { + sb.append("postStart:"); + sb.append(postStart); + sb.append(","); + } + if (!(preStop == null)) { + sb.append("preStop:"); + sb.append(preStop); + sb.append(","); + } + if (!(stopSignal == null)) { + sb.append("stopSignal:"); + sb.append(stopSignal); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java index 69b74be574..240ac6f309 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LifecycleHandlerBuilder extends V1LifecycleHandlerFluent implements VisitableBuilder{ public V1LifecycleHandlerBuilder() { this(new V1LifecycleHandler()); 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 55d16c57e3..a68d2d1db7 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LifecycleHandlerFluent> extends BaseFluent{ +public class V1LifecycleHandlerFluent> extends BaseFluent{ public V1LifecycleHandlerFluent() { } @@ -23,13 +26,13 @@ public V1LifecycleHandlerFluent(V1LifecycleHandler instance) { private V1TCPSocketActionBuilder tcpSocket; protected void copyInstance(V1LifecycleHandler instance) { - instance = (instance != null ? instance : new V1LifecycleHandler()); + instance = instance != null ? instance : new V1LifecycleHandler(); if (instance != null) { - this.withExec(instance.getExec()); - this.withHttpGet(instance.getHttpGet()); - this.withSleep(instance.getSleep()); - this.withTcpSocket(instance.getTcpSocket()); - } + this.withExec(instance.getExec()); + this.withHttpGet(instance.getHttpGet()); + this.withSleep(instance.getSleep()); + this.withTcpSocket(instance.getTcpSocket()); + } } public V1ExecAction buildExec() { @@ -61,15 +64,15 @@ public ExecNested withNewExecLike(V1ExecAction item) { } public ExecNested editExec() { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(null)); + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(null)); } public ExecNested editOrNewExec() { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(new V1ExecActionBuilder().build())); + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(new V1ExecActionBuilder().build())); } public ExecNested editOrNewExecLike(V1ExecAction item) { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(item)); + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(item)); } public V1HTTPGetAction buildHttpGet() { @@ -101,15 +104,15 @@ public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { } public HttpGetNested editHttpGet() { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(null)); + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(null)); } public HttpGetNested editOrNewHttpGet() { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); } public HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(item)); + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(item)); } public V1SleepAction buildSleep() { @@ -141,15 +144,15 @@ public SleepNested withNewSleepLike(V1SleepAction item) { } public SleepNested editSleep() { - return withNewSleepLike(java.util.Optional.ofNullable(buildSleep()).orElse(null)); + return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(null)); } public SleepNested editOrNewSleep() { - return withNewSleepLike(java.util.Optional.ofNullable(buildSleep()).orElse(new V1SleepActionBuilder().build())); + return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(new V1SleepActionBuilder().build())); } public SleepNested editOrNewSleepLike(V1SleepAction item) { - return withNewSleepLike(java.util.Optional.ofNullable(buildSleep()).orElse(item)); + return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(item)); } public V1TCPSocketAction buildTcpSocket() { @@ -181,40 +184,69 @@ public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { } public TcpSocketNested editTcpSocket() { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(null)); + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(null)); } public TcpSocketNested editOrNewTcpSocket() { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); } public TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(item)); + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LifecycleHandlerFluent that = (V1LifecycleHandlerFluent) o; - if (!java.util.Objects.equals(exec, that.exec)) return false; - if (!java.util.Objects.equals(httpGet, that.httpGet)) return false; - if (!java.util.Objects.equals(sleep, that.sleep)) return false; - if (!java.util.Objects.equals(tcpSocket, that.tcpSocket)) return false; + if (!(Objects.equals(exec, that.exec))) { + return false; + } + if (!(Objects.equals(httpGet, that.httpGet))) { + return false; + } + if (!(Objects.equals(sleep, that.sleep))) { + return false; + } + if (!(Objects.equals(tcpSocket, that.tcpSocket))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(exec, httpGet, sleep, tcpSocket, super.hashCode()); + return Objects.hash(exec, httpGet, sleep, tcpSocket); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (exec != null) { sb.append("exec:"); sb.append(exec + ","); } - if (httpGet != null) { sb.append("httpGet:"); sb.append(httpGet + ","); } - if (sleep != null) { sb.append("sleep:"); sb.append(sleep + ","); } - if (tcpSocket != null) { sb.append("tcpSocket:"); sb.append(tcpSocket); } + if (!(exec == null)) { + sb.append("exec:"); + sb.append(exec); + sb.append(","); + } + if (!(httpGet == null)) { + sb.append("httpGet:"); + sb.append(httpGet); + sb.append(","); + } + if (!(sleep == null)) { + sb.append("sleep:"); + sb.append(sleep); + sb.append(","); + } + if (!(tcpSocket == null)) { + sb.append("tcpSocket:"); + sb.append(tcpSocket); + } sb.append("}"); return sb.toString(); } 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 d44c1178a4..c214507939 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitRangeBuilder extends V1LimitRangeFluent implements VisitableBuilder{ public V1LimitRangeBuilder() { this(new V1LimitRange()); 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 7430d6c0bf..e5ed3ebf13 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitRangeFluent> extends BaseFluent{ +public class V1LimitRangeFluent> extends BaseFluent{ public V1LimitRangeFluent() { } @@ -23,13 +26,13 @@ public V1LimitRangeFluent(V1LimitRange instance) { private V1LimitRangeSpecBuilder spec; protected void copyInstance(V1LimitRange instance) { - instance = (instance != null ? instance : new V1LimitRange()); + instance = instance != null ? instance : new V1LimitRange(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1LimitRangeSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1LimitRangeSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1LimitRangeSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1LimitRangeSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1LimitRangeSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LimitRangeFluent that = (V1LimitRangeFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 c130980a74..159d8075de 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitRangeItemBuilder extends V1LimitRangeItemFluent implements VisitableBuilder{ public V1LimitRangeItemBuilder() { this(new V1LimitRangeItem()); 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 cff01767c8..5c99784683 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -12,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LimitRangeItemFluent> extends BaseFluent{ +public class V1LimitRangeItemFluent> extends BaseFluent{ public V1LimitRangeItemFluent() { } @@ -27,35 +29,59 @@ public V1LimitRangeItemFluent(V1LimitRangeItem instance) { private String type; protected void copyInstance(V1LimitRangeItem instance) { - instance = (instance != null ? instance : new V1LimitRangeItem()); + instance = instance != null ? instance : new V1LimitRangeItem(); if (instance != null) { - this.withDefault(instance.getDefault()); - this.withDefaultRequest(instance.getDefaultRequest()); - this.withMax(instance.getMax()); - this.withMaxLimitRequestRatio(instance.getMaxLimitRequestRatio()); - this.withMin(instance.getMin()); - this.withType(instance.getType()); - } + this.withDefault(instance.getDefault()); + this.withDefaultRequest(instance.getDefaultRequest()); + this.withMax(instance.getMax()); + this.withMaxLimitRequestRatio(instance.getMaxLimitRequestRatio()); + this.withMin(instance.getMin()); + this.withType(instance.getType()); + } } public A addToDefault(String key,Quantity value) { - if(this._default == null && key != null && value != null) { this._default = new LinkedHashMap(); } - if(key != null && value != null) {this._default.put(key, value);} return (A)this; + if (this._default == null && key != null && value != null) { + this._default = new LinkedHashMap(); + } + if (key != null && value != null) { + this._default.put(key, value); + } + return (A) this; } public A addToDefault(Map map) { - if(this._default == null && map != null) { this._default = new LinkedHashMap(); } - if(map != null) { this._default.putAll(map);} return (A)this; + if (this._default == null && map != null) { + this._default = new LinkedHashMap(); + } + if (map != null) { + this._default.putAll(map); + } + return (A) this; } public A removeFromDefault(String key) { - if(this._default == null) { return (A) this; } - if(key != null && this._default != null) {this._default.remove(key);} return (A)this; + if (this._default == null) { + return (A) this; + } + if (key != null && this._default != null) { + this._default.remove(key); + } + return (A) this; } public A removeFromDefault(Map map) { - if(this._default == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this._default != null){this._default.remove(key);}}} return (A)this; + if (this._default == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this._default != null) { + this._default.remove(key); + } + } + } + return (A) this; } public Map getDefault() { @@ -76,23 +102,47 @@ public boolean hasDefault() { } public A addToDefaultRequest(String key,Quantity value) { - if(this.defaultRequest == null && key != null && value != null) { this.defaultRequest = new LinkedHashMap(); } - if(key != null && value != null) {this.defaultRequest.put(key, value);} return (A)this; + if (this.defaultRequest == null && key != null && value != null) { + this.defaultRequest = new LinkedHashMap(); + } + if (key != null && value != null) { + this.defaultRequest.put(key, value); + } + return (A) this; } public A addToDefaultRequest(Map map) { - if(this.defaultRequest == null && map != null) { this.defaultRequest = new LinkedHashMap(); } - if(map != null) { this.defaultRequest.putAll(map);} return (A)this; + if (this.defaultRequest == null && map != null) { + this.defaultRequest = new LinkedHashMap(); + } + if (map != null) { + this.defaultRequest.putAll(map); + } + return (A) this; } public A removeFromDefaultRequest(String key) { - if(this.defaultRequest == null) { return (A) this; } - if(key != null && this.defaultRequest != null) {this.defaultRequest.remove(key);} return (A)this; + if (this.defaultRequest == null) { + return (A) this; + } + if (key != null && this.defaultRequest != null) { + this.defaultRequest.remove(key); + } + return (A) this; } public A removeFromDefaultRequest(Map map) { - if(this.defaultRequest == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.defaultRequest != null){this.defaultRequest.remove(key);}}} return (A)this; + if (this.defaultRequest == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.defaultRequest != null) { + this.defaultRequest.remove(key); + } + } + } + return (A) this; } public Map getDefaultRequest() { @@ -113,23 +163,47 @@ public boolean hasDefaultRequest() { } public A addToMax(String key,Quantity value) { - if(this.max == null && key != null && value != null) { this.max = new LinkedHashMap(); } - if(key != null && value != null) {this.max.put(key, value);} return (A)this; + if (this.max == null && key != null && value != null) { + this.max = new LinkedHashMap(); + } + if (key != null && value != null) { + this.max.put(key, value); + } + return (A) this; } public A addToMax(Map map) { - if(this.max == null && map != null) { this.max = new LinkedHashMap(); } - if(map != null) { this.max.putAll(map);} return (A)this; + if (this.max == null && map != null) { + this.max = new LinkedHashMap(); + } + if (map != null) { + this.max.putAll(map); + } + return (A) this; } public A removeFromMax(String key) { - if(this.max == null) { return (A) this; } - if(key != null && this.max != null) {this.max.remove(key);} return (A)this; + if (this.max == null) { + return (A) this; + } + if (key != null && this.max != null) { + this.max.remove(key); + } + return (A) this; } public A removeFromMax(Map map) { - if(this.max == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.max != null){this.max.remove(key);}}} return (A)this; + if (this.max == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.max != null) { + this.max.remove(key); + } + } + } + return (A) this; } public Map getMax() { @@ -150,23 +224,47 @@ public boolean hasMax() { } public A addToMaxLimitRequestRatio(String key,Quantity value) { - if(this.maxLimitRequestRatio == null && key != null && value != null) { this.maxLimitRequestRatio = new LinkedHashMap(); } - if(key != null && value != null) {this.maxLimitRequestRatio.put(key, value);} return (A)this; + if (this.maxLimitRequestRatio == null && key != null && value != null) { + this.maxLimitRequestRatio = new LinkedHashMap(); + } + if (key != null && value != null) { + this.maxLimitRequestRatio.put(key, value); + } + return (A) this; } public A addToMaxLimitRequestRatio(Map map) { - if(this.maxLimitRequestRatio == null && map != null) { this.maxLimitRequestRatio = new LinkedHashMap(); } - if(map != null) { this.maxLimitRequestRatio.putAll(map);} return (A)this; + if (this.maxLimitRequestRatio == null && map != null) { + this.maxLimitRequestRatio = new LinkedHashMap(); + } + if (map != null) { + this.maxLimitRequestRatio.putAll(map); + } + return (A) this; } public A removeFromMaxLimitRequestRatio(String key) { - if(this.maxLimitRequestRatio == null) { return (A) this; } - if(key != null && this.maxLimitRequestRatio != null) {this.maxLimitRequestRatio.remove(key);} return (A)this; + if (this.maxLimitRequestRatio == null) { + return (A) this; + } + if (key != null && this.maxLimitRequestRatio != null) { + this.maxLimitRequestRatio.remove(key); + } + return (A) this; } public A removeFromMaxLimitRequestRatio(Map map) { - if(this.maxLimitRequestRatio == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.maxLimitRequestRatio != null){this.maxLimitRequestRatio.remove(key);}}} return (A)this; + if (this.maxLimitRequestRatio == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.maxLimitRequestRatio != null) { + this.maxLimitRequestRatio.remove(key); + } + } + } + return (A) this; } public Map getMaxLimitRequestRatio() { @@ -187,23 +285,47 @@ public boolean hasMaxLimitRequestRatio() { } public A addToMin(String key,Quantity value) { - if(this.min == null && key != null && value != null) { this.min = new LinkedHashMap(); } - if(key != null && value != null) {this.min.put(key, value);} return (A)this; + if (this.min == null && key != null && value != null) { + this.min = new LinkedHashMap(); + } + if (key != null && value != null) { + this.min.put(key, value); + } + return (A) this; } public A addToMin(Map map) { - if(this.min == null && map != null) { this.min = new LinkedHashMap(); } - if(map != null) { this.min.putAll(map);} return (A)this; + if (this.min == null && map != null) { + this.min = new LinkedHashMap(); + } + if (map != null) { + this.min.putAll(map); + } + return (A) this; } public A removeFromMin(String key) { - if(this.min == null) { return (A) this; } - if(key != null && this.min != null) {this.min.remove(key);} return (A)this; + if (this.min == null) { + return (A) this; + } + if (key != null && this.min != null) { + this.min.remove(key); + } + return (A) this; } public A removeFromMin(Map map) { - if(this.min == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.min != null){this.min.remove(key);}}} return (A)this; + if (this.min == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.min != null) { + this.min.remove(key); + } + } + } + return (A) this; } public Map getMin() { @@ -237,32 +359,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LimitRangeItemFluent that = (V1LimitRangeItemFluent) o; - if (!java.util.Objects.equals(_default, that._default)) return false; - if (!java.util.Objects.equals(defaultRequest, that.defaultRequest)) return false; - if (!java.util.Objects.equals(max, that.max)) return false; - if (!java.util.Objects.equals(maxLimitRequestRatio, that.maxLimitRequestRatio)) return false; - if (!java.util.Objects.equals(min, that.min)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(defaultRequest, that.defaultRequest))) { + return false; + } + if (!(Objects.equals(max, that.max))) { + return false; + } + if (!(Objects.equals(maxLimitRequestRatio, that.maxLimitRequestRatio))) { + return false; + } + if (!(Objects.equals(min, that.min))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(_default, defaultRequest, max, maxLimitRequestRatio, min, type, super.hashCode()); + return Objects.hash(_default, defaultRequest, max, maxLimitRequestRatio, min, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (_default != null && !_default.isEmpty()) { sb.append("_default:"); sb.append(_default + ","); } - if (defaultRequest != null && !defaultRequest.isEmpty()) { sb.append("defaultRequest:"); sb.append(defaultRequest + ","); } - if (max != null && !max.isEmpty()) { sb.append("max:"); sb.append(max + ","); } - if (maxLimitRequestRatio != null && !maxLimitRequestRatio.isEmpty()) { sb.append("maxLimitRequestRatio:"); sb.append(maxLimitRequestRatio + ","); } - if (min != null && !min.isEmpty()) { sb.append("min:"); sb.append(min + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(_default == null) && !(_default.isEmpty())) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(defaultRequest == null) && !(defaultRequest.isEmpty())) { + sb.append("defaultRequest:"); + sb.append(defaultRequest); + sb.append(","); + } + if (!(max == null) && !(max.isEmpty())) { + sb.append("max:"); + sb.append(max); + sb.append(","); + } + if (!(maxLimitRequestRatio == null) && !(maxLimitRequestRatio.isEmpty())) { + sb.append("maxLimitRequestRatio:"); + sb.append(maxLimitRequestRatio); + sb.append(","); + } + if (!(min == null) && !(min.isEmpty())) { + sb.append("min:"); + sb.append(min); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 f24219f617..e398ccd35b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitRangeListBuilder extends V1LimitRangeListFluent implements VisitableBuilder{ public V1LimitRangeListBuilder() { this(new V1LimitRangeList()); 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 2dea986026..55b68edcd4 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitRangeListFluent> extends BaseFluent{ +public class V1LimitRangeListFluent> extends BaseFluent{ public V1LimitRangeListFluent() { } @@ -29,13 +32,13 @@ public V1LimitRangeListFluent(V1LimitRangeList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1LimitRangeList instance) { - instance = (instance != null ? instance : new V1LimitRangeList()); + instance = instance != null ? instance : new V1LimitRangeList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1LimitRange item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1LimitRange item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1LimitRange item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1LimitRange item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1LimitRange... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { - if (this.items == null) return (A)this; - for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1LimitRange... items) { + if (this.items == null) { + return (A) this; + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1LimitRangeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1LimitRangeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { + public A withItems(V1LimitRange... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1LimitRange item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LimitRangeListFluent that = (V1LimitRangeListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1LimitRangeFluent> implement int index; public N and() { - return (N) V1LimitRangeListFluent.this.setToItems(index,builder.build()); + return (N) V1LimitRangeListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 bdbf9fe087..c982ef4f6a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitRangeSpecBuilder extends V1LimitRangeSpecFluent implements VisitableBuilder{ public V1LimitRangeSpecBuilder() { this(new V1LimitRangeSpec()); 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 e66238eb04..6e8b829a31 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LimitRangeSpecFluent> extends BaseFluent{ +public class V1LimitRangeSpecFluent> extends BaseFluent{ public V1LimitRangeSpecFluent() { } @@ -26,14 +28,16 @@ public V1LimitRangeSpecFluent(V1LimitRangeSpec instance) { private ArrayList limits; protected void copyInstance(V1LimitRangeSpec instance) { - instance = (instance != null ? instance : new V1LimitRangeSpec()); + instance = instance != null ? instance : new V1LimitRangeSpec(); if (instance != null) { - this.withLimits(instance.getLimits()); - } + this.withLimits(instance.getLimits()); + } } public A addToLimits(int index,V1LimitRangeItem item) { - if (this.limits == null) {this.limits = new ArrayList();} + if (this.limits == null) { + this.limits = new ArrayList(); + } V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); if (index < 0 || index >= limits.size()) { _visitables.get("limits").add(builder); @@ -42,11 +46,13 @@ public A addToLimits(int index,V1LimitRangeItem item) { _visitables.get("limits").add(builder); limits.add(index, builder); } - return (A)this; + return (A) this; } public A setToLimits(int index,V1LimitRangeItem item) { - if (this.limits == null) {this.limits = new ArrayList();} + if (this.limits == null) { + this.limits = new ArrayList(); + } V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); if (index < 0 || index >= limits.size()) { _visitables.get("limits").add(builder); @@ -55,41 +61,71 @@ public A setToLimits(int index,V1LimitRangeItem item) { _visitables.get("limits").add(builder); limits.set(index, builder); } - return (A)this; + return (A) this; } - public A addToLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items) { - if (this.limits == null) {this.limits = new ArrayList();} - for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").add(builder);this.limits.add(builder);} return (A)this; + public A addToLimits(V1LimitRangeItem... items) { + if (this.limits == null) { + this.limits = new ArrayList(); + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").add(builder); + this.limits.add(builder); + } + return (A) this; } public A addAllToLimits(Collection items) { - if (this.limits == null) {this.limits = new ArrayList();} - for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").add(builder);this.limits.add(builder);} return (A)this; + if (this.limits == null) { + this.limits = new ArrayList(); + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").add(builder); + this.limits.add(builder); + } + return (A) this; } - public A removeFromLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items) { - if (this.limits == null) return (A)this; - for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").remove(builder); this.limits.remove(builder);} return (A)this; + public A removeFromLimits(V1LimitRangeItem... items) { + if (this.limits == null) { + return (A) this; + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").remove(builder); + this.limits.remove(builder); + } + return (A) this; } public A removeAllFromLimits(Collection items) { - if (this.limits == null) return (A)this; - for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").remove(builder); this.limits.remove(builder);} return (A)this; + if (this.limits == null) { + return (A) this; + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").remove(builder); + this.limits.remove(builder); + } + return (A) this; } public A removeMatchingFromLimits(Predicate predicate) { - if (limits == null) return (A) this; - final Iterator each = limits.iterator(); - final List visitables = _visitables.get("limits"); + if (limits == null) { + return (A) this; + } + Iterator each = limits.iterator(); + List visitables = _visitables.get("limits"); while (each.hasNext()) { - V1LimitRangeItemBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1LimitRangeItemBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildLimits() { @@ -141,7 +177,7 @@ public A withLimits(List limits) { return (A) this; } - public A withLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... limits) { + public A withLimits(V1LimitRangeItem... limits) { if (this.limits != null) { this.limits.clear(); _visitables.remove("limits"); @@ -155,7 +191,7 @@ public A withLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... limi } public boolean hasLimits() { - return this.limits != null && !this.limits.isEmpty(); + return this.limits != null && !(this.limits.isEmpty()); } public LimitsNested addNewLimit() { @@ -171,47 +207,69 @@ public LimitsNested setNewLimitLike(int index,V1LimitRangeItem item) { } public LimitsNested editLimit(int index) { - if (limits.size() <= index) throw new RuntimeException("Can't edit limits. Index exceeds size."); - return setNewLimitLike(index, buildLimit(index)); + if (index <= limits.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "limits")); + } + return this.setNewLimitLike(index, this.buildLimit(index)); } public LimitsNested editFirstLimit() { - if (limits.size() == 0) throw new RuntimeException("Can't edit first limits. The list is empty."); - return setNewLimitLike(0, buildLimit(0)); + if (limits.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "limits")); + } + return this.setNewLimitLike(0, this.buildLimit(0)); } public LimitsNested editLastLimit() { int index = limits.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last limits. The list is empty."); - return setNewLimitLike(index, buildLimit(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "limits")); + } + return this.setNewLimitLike(index, this.buildLimit(index)); } public LimitsNested editMatchingLimit(Predicate predicate) { int index = -1; - for (int i=0;i extends V1LimitRangeItemFluent> imp int index; public N and() { - return (N) V1LimitRangeSpecFluent.this.setToLimits(index,builder.build()); + return (N) V1LimitRangeSpecFluent.this.setToLimits(index, builder.build()); } public N endLimit() { 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 1da3558187..68c8550243 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitResponseBuilder extends V1LimitResponseFluent implements VisitableBuilder{ public V1LimitResponseBuilder() { this(new V1LimitResponse()); 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 726ee855d9..d25e017cb8 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitResponseFluent> extends BaseFluent{ +public class V1LimitResponseFluent> extends BaseFluent{ public V1LimitResponseFluent() { } @@ -21,11 +24,11 @@ public V1LimitResponseFluent(V1LimitResponse instance) { private String type; protected void copyInstance(V1LimitResponse instance) { - instance = (instance != null ? instance : new V1LimitResponse()); + instance = instance != null ? instance : new V1LimitResponse(); if (instance != null) { - this.withQueuing(instance.getQueuing()); - this.withType(instance.getType()); - } + this.withQueuing(instance.getQueuing()); + this.withType(instance.getType()); + } } public V1QueuingConfiguration buildQueuing() { @@ -57,15 +60,15 @@ public QueuingNested withNewQueuingLike(V1QueuingConfiguration item) { } public QueuingNested editQueuing() { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(null)); + return this.withNewQueuingLike(Optional.ofNullable(this.buildQueuing()).orElse(null)); } public QueuingNested editOrNewQueuing() { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(new V1QueuingConfigurationBuilder().build())); + return this.withNewQueuingLike(Optional.ofNullable(this.buildQueuing()).orElse(new V1QueuingConfigurationBuilder().build())); } public QueuingNested editOrNewQueuingLike(V1QueuingConfiguration item) { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(item)); + return this.withNewQueuingLike(Optional.ofNullable(this.buildQueuing()).orElse(item)); } public String getType() { @@ -82,24 +85,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LimitResponseFluent that = (V1LimitResponseFluent) o; - if (!java.util.Objects.equals(queuing, that.queuing)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(queuing, that.queuing))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(queuing, type, super.hashCode()); + return Objects.hash(queuing, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (queuing != null) { sb.append("queuing:"); sb.append(queuing + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(queuing == null)) { + sb.append("queuing:"); + sb.append(queuing); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 fbe4d4fe94..eb1db2c9f1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitedPriorityLevelConfigurationBuilder extends V1LimitedPriorityLevelConfigurationFluent implements VisitableBuilder{ public V1LimitedPriorityLevelConfigurationBuilder() { this(new V1LimitedPriorityLevelConfiguration()); 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 42092a7596..2219523a9e 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ +public class V1LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ public V1LimitedPriorityLevelConfigurationFluent() { } @@ -24,13 +27,13 @@ public V1LimitedPriorityLevelConfigurationFluent(V1LimitedPriorityLevelConfigura private Integer nominalConcurrencyShares; protected void copyInstance(V1LimitedPriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1LimitedPriorityLevelConfiguration()); + instance = instance != null ? instance : new V1LimitedPriorityLevelConfiguration(); if (instance != null) { - this.withBorrowingLimitPercent(instance.getBorrowingLimitPercent()); - this.withLendablePercent(instance.getLendablePercent()); - this.withLimitResponse(instance.getLimitResponse()); - this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); - } + this.withBorrowingLimitPercent(instance.getBorrowingLimitPercent()); + this.withLendablePercent(instance.getLendablePercent()); + this.withLimitResponse(instance.getLimitResponse()); + this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); + } } public Integer getBorrowingLimitPercent() { @@ -88,15 +91,15 @@ public LimitResponseNested withNewLimitResponseLike(V1LimitResponse item) { } public LimitResponseNested editLimitResponse() { - return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(null)); + return this.withNewLimitResponseLike(Optional.ofNullable(this.buildLimitResponse()).orElse(null)); } public LimitResponseNested editOrNewLimitResponse() { - return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(new V1LimitResponseBuilder().build())); + return this.withNewLimitResponseLike(Optional.ofNullable(this.buildLimitResponse()).orElse(new V1LimitResponseBuilder().build())); } public LimitResponseNested editOrNewLimitResponseLike(V1LimitResponse item) { - return withNewLimitResponseLike(java.util.Optional.ofNullable(buildLimitResponse()).orElse(item)); + return this.withNewLimitResponseLike(Optional.ofNullable(this.buildLimitResponse()).orElse(item)); } public Integer getNominalConcurrencyShares() { @@ -113,28 +116,57 @@ public boolean hasNominalConcurrencyShares() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LimitedPriorityLevelConfigurationFluent that = (V1LimitedPriorityLevelConfigurationFluent) o; - if (!java.util.Objects.equals(borrowingLimitPercent, that.borrowingLimitPercent)) return false; - if (!java.util.Objects.equals(lendablePercent, that.lendablePercent)) return false; - if (!java.util.Objects.equals(limitResponse, that.limitResponse)) return false; - if (!java.util.Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares)) return false; + if (!(Objects.equals(borrowingLimitPercent, that.borrowingLimitPercent))) { + return false; + } + if (!(Objects.equals(lendablePercent, that.lendablePercent))) { + return false; + } + if (!(Objects.equals(limitResponse, that.limitResponse))) { + return false; + } + if (!(Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(borrowingLimitPercent, lendablePercent, limitResponse, nominalConcurrencyShares, super.hashCode()); + return Objects.hash(borrowingLimitPercent, lendablePercent, limitResponse, nominalConcurrencyShares); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (borrowingLimitPercent != null) { sb.append("borrowingLimitPercent:"); sb.append(borrowingLimitPercent + ","); } - if (lendablePercent != null) { sb.append("lendablePercent:"); sb.append(lendablePercent + ","); } - if (limitResponse != null) { sb.append("limitResponse:"); sb.append(limitResponse + ","); } - if (nominalConcurrencyShares != null) { sb.append("nominalConcurrencyShares:"); sb.append(nominalConcurrencyShares); } + if (!(borrowingLimitPercent == null)) { + sb.append("borrowingLimitPercent:"); + sb.append(borrowingLimitPercent); + sb.append(","); + } + if (!(lendablePercent == null)) { + sb.append("lendablePercent:"); + sb.append(lendablePercent); + sb.append(","); + } + if (!(limitResponse == null)) { + sb.append("limitResponse:"); + sb.append(limitResponse); + sb.append(","); + } + if (!(nominalConcurrencyShares == null)) { + sb.append("nominalConcurrencyShares:"); + sb.append(nominalConcurrencyShares); + } sb.append("}"); return sb.toString(); } 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 e4bb0d5301..a81cd6b365 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LinuxContainerUserBuilder extends V1LinuxContainerUserFluent implements VisitableBuilder{ public V1LinuxContainerUserBuilder() { this(new V1LinuxContainerUser()); 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 283fa19f5e..0b79d39372 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 @@ -1,20 +1,22 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; -import java.lang.String; -import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LinuxContainerUserFluent> extends BaseFluent{ +public class V1LinuxContainerUserFluent> extends BaseFluent{ public V1LinuxContainerUserFluent() { } @@ -26,12 +28,12 @@ public V1LinuxContainerUserFluent(V1LinuxContainerUser instance) { private Long uid; protected void copyInstance(V1LinuxContainerUser instance) { - instance = (instance != null ? instance : new V1LinuxContainerUser()); + instance = instance != null ? instance : new V1LinuxContainerUser(); if (instance != null) { - this.withGid(instance.getGid()); - this.withSupplementalGroups(instance.getSupplementalGroups()); - this.withUid(instance.getUid()); - } + this.withGid(instance.getGid()); + this.withSupplementalGroups(instance.getSupplementalGroups()); + this.withUid(instance.getUid()); + } } public Long getGid() { @@ -48,34 +50,59 @@ public boolean hasGid() { } public A addToSupplementalGroups(int index,Long item) { - if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } this.supplementalGroups.add(index, item); - return (A)this; + return (A) this; } public A setToSupplementalGroups(int index,Long item) { - if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} - this.supplementalGroups.set(index, item); return (A)this; + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + this.supplementalGroups.set(index, item); + return (A) this; } - public A addToSupplementalGroups(java.lang.Long... items) { - if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} - for (Long item : items) {this.supplementalGroups.add(item);} return (A)this; + public A addToSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + for (Long item : items) { + this.supplementalGroups.add(item); + } + return (A) this; } public A addAllToSupplementalGroups(Collection items) { - if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} - for (Long item : items) {this.supplementalGroups.add(item);} return (A)this; + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + for (Long item : items) { + this.supplementalGroups.add(item); + } + return (A) this; } - public A removeFromSupplementalGroups(java.lang.Long... items) { - if (this.supplementalGroups == null) return (A)this; - for (Long item : items) { this.supplementalGroups.remove(item);} return (A)this; + public A removeFromSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(item); + } + return (A) this; } public A removeAllFromSupplementalGroups(Collection items) { - if (this.supplementalGroups == null) return (A)this; - for (Long item : items) { this.supplementalGroups.remove(item);} return (A)this; + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(item); + } + return (A) this; } public List getSupplementalGroups() { @@ -124,7 +151,7 @@ public A withSupplementalGroups(List supplementalGroups) { return (A) this; } - public A withSupplementalGroups(java.lang.Long... supplementalGroups) { + public A withSupplementalGroups(Long... supplementalGroups) { if (this.supplementalGroups != null) { this.supplementalGroups.clear(); _visitables.remove("supplementalGroups"); @@ -138,7 +165,7 @@ public A withSupplementalGroups(java.lang.Long... supplementalGroups) { } public boolean hasSupplementalGroups() { - return this.supplementalGroups != null && !this.supplementalGroups.isEmpty(); + return this.supplementalGroups != null && !(this.supplementalGroups.isEmpty()); } public Long getUid() { @@ -155,26 +182,49 @@ public boolean hasUid() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LinuxContainerUserFluent that = (V1LinuxContainerUserFluent) o; - if (!java.util.Objects.equals(gid, that.gid)) return false; - if (!java.util.Objects.equals(supplementalGroups, that.supplementalGroups)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; + if (!(Objects.equals(gid, that.gid))) { + return false; + } + if (!(Objects.equals(supplementalGroups, that.supplementalGroups))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(gid, supplementalGroups, uid, super.hashCode()); + return Objects.hash(gid, supplementalGroups, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (gid != null) { sb.append("gid:"); sb.append(gid + ","); } - if (supplementalGroups != null && !supplementalGroups.isEmpty()) { sb.append("supplementalGroups:"); sb.append(supplementalGroups + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(gid == null)) { + sb.append("gid:"); + sb.append(gid); + sb.append(","); + } + if (!(supplementalGroups == null) && !(supplementalGroups.isEmpty())) { + sb.append("supplementalGroups:"); + sb.append(supplementalGroups); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } sb.append("}"); return sb.toString(); } 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 20cab15f0a..e368d5cf8a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ListMetaBuilder extends V1ListMetaFluent implements VisitableBuilder{ public V1ListMetaBuilder() { this(new V1ListMeta()); 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 7d9a96695d..fc6dc3170b 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ListMetaFluent> extends BaseFluent{ +public class V1ListMetaFluent> extends BaseFluent{ public V1ListMetaFluent() { } @@ -23,13 +25,13 @@ public V1ListMetaFluent(V1ListMeta instance) { private String selfLink; protected void copyInstance(V1ListMeta instance) { - instance = (instance != null ? instance : new V1ListMeta()); + instance = instance != null ? instance : new V1ListMeta(); if (instance != null) { - this.withContinue(instance.getContinue()); - this.withRemainingItemCount(instance.getRemainingItemCount()); - this.withResourceVersion(instance.getResourceVersion()); - this.withSelfLink(instance.getSelfLink()); - } + this.withContinue(instance.getContinue()); + this.withRemainingItemCount(instance.getRemainingItemCount()); + this.withResourceVersion(instance.getResourceVersion()); + this.withSelfLink(instance.getSelfLink()); + } } public String getContinue() { @@ -85,28 +87,57 @@ public boolean hasSelfLink() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ListMetaFluent that = (V1ListMetaFluent) o; - if (!java.util.Objects.equals(_continue, that._continue)) return false; - if (!java.util.Objects.equals(remainingItemCount, that.remainingItemCount)) return false; - if (!java.util.Objects.equals(resourceVersion, that.resourceVersion)) return false; - if (!java.util.Objects.equals(selfLink, that.selfLink)) return false; + if (!(Objects.equals(_continue, that._continue))) { + return false; + } + if (!(Objects.equals(remainingItemCount, that.remainingItemCount))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(selfLink, that.selfLink))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink, super.hashCode()); + return Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (_continue != null) { sb.append("_continue:"); sb.append(_continue + ","); } - if (remainingItemCount != null) { sb.append("remainingItemCount:"); sb.append(remainingItemCount + ","); } - if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } - if (selfLink != null) { sb.append("selfLink:"); sb.append(selfLink); } + if (!(_continue == null)) { + sb.append("_continue:"); + sb.append(_continue); + sb.append(","); + } + if (!(remainingItemCount == null)) { + sb.append("remainingItemCount:"); + sb.append(remainingItemCount); + sb.append(","); + } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + sb.append(","); + } + if (!(selfLink == null)) { + sb.append("selfLink:"); + sb.append(selfLink); + } sb.append("}"); return sb.toString(); } 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 c6e92bc430..50c0d9dcf1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LoadBalancerIngressBuilder extends V1LoadBalancerIngressFluent implements VisitableBuilder{ public V1LoadBalancerIngressBuilder() { this(new V1LoadBalancerIngress()); 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 af7eca76de..8e4bd47146 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LoadBalancerIngressFluent> extends BaseFluent{ +public class V1LoadBalancerIngressFluent> extends BaseFluent{ public V1LoadBalancerIngressFluent() { } @@ -29,13 +31,13 @@ public V1LoadBalancerIngressFluent(V1LoadBalancerIngress instance) { private ArrayList ports; protected void copyInstance(V1LoadBalancerIngress instance) { - instance = (instance != null ? instance : new V1LoadBalancerIngress()); + instance = instance != null ? instance : new V1LoadBalancerIngress(); if (instance != null) { - this.withHostname(instance.getHostname()); - this.withIp(instance.getIp()); - this.withIpMode(instance.getIpMode()); - this.withPorts(instance.getPorts()); - } + this.withHostname(instance.getHostname()); + this.withIp(instance.getIp()); + this.withIpMode(instance.getIpMode()); + this.withPorts(instance.getPorts()); + } } public String getHostname() { @@ -78,7 +80,9 @@ public boolean hasIpMode() { } public A addToPorts(int index,V1PortStatus item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1PortStatusBuilder builder = new V1PortStatusBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -87,11 +91,13 @@ public A addToPorts(int index,V1PortStatus item) { _visitables.get("ports").add(builder); ports.add(index, builder); } - return (A)this; + return (A) this; } public A setToPorts(int index,V1PortStatus item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1PortStatusBuilder builder = new V1PortStatusBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -100,41 +106,71 @@ public A setToPorts(int index,V1PortStatus item) { _visitables.get("ports").add(builder); ports.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1PortStatus... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A addToPorts(V1PortStatus... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1PortStatus... items) { - if (this.ports == null) return (A)this; - for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeFromPorts(V1PortStatus... items) { + if (this.ports == null) { + return (A) this; + } + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - V1PortStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PortStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPorts() { @@ -186,7 +222,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1PortStatus... ports) { + public A withPorts(V1PortStatus... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -200,7 +236,7 @@ public A withPorts(io.kubernetes.client.openapi.models.V1PortStatus... ports) { } public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + return this.ports != null && !(this.ports.isEmpty()); } public PortsNested addNewPort() { @@ -216,53 +252,93 @@ public PortsNested setNewPortLike(int index,V1PortStatus item) { } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (index <= ports.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public PortsNested editLastPort() { int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i=0;i extends V1PortStatusFluent> implement int index; public N and() { - return (N) V1LoadBalancerIngressFluent.this.setToPorts(index,builder.build()); + return (N) V1LoadBalancerIngressFluent.this.setToPorts(index, builder.build()); } public N endPort() { 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 0793a3fe05..114a4414c4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LoadBalancerStatusBuilder extends V1LoadBalancerStatusFluent implements VisitableBuilder{ public V1LoadBalancerStatusBuilder() { this(new V1LoadBalancerStatus()); 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 03405ecaf7..997edcd5f0 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LoadBalancerStatusFluent> extends BaseFluent{ +public class V1LoadBalancerStatusFluent> extends BaseFluent{ public V1LoadBalancerStatusFluent() { } @@ -26,14 +28,16 @@ public V1LoadBalancerStatusFluent(V1LoadBalancerStatus instance) { private ArrayList ingress; protected void copyInstance(V1LoadBalancerStatus instance) { - instance = (instance != null ? instance : new V1LoadBalancerStatus()); + instance = instance != null ? instance : new V1LoadBalancerStatus(); if (instance != null) { - this.withIngress(instance.getIngress()); - } + this.withIngress(instance.getIngress()); + } } public A addToIngress(int index,V1LoadBalancerIngress item) { - if (this.ingress == null) {this.ingress = new ArrayList();} + if (this.ingress == null) { + this.ingress = new ArrayList(); + } V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); @@ -42,11 +46,13 @@ public A addToIngress(int index,V1LoadBalancerIngress item) { _visitables.get("ingress").add(builder); ingress.add(index, builder); } - return (A)this; + return (A) this; } public A setToIngress(int index,V1LoadBalancerIngress item) { - if (this.ingress == null) {this.ingress = new ArrayList();} + if (this.ingress == null) { + this.ingress = new ArrayList(); + } V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); @@ -55,41 +61,71 @@ public A setToIngress(int index,V1LoadBalancerIngress item) { _visitables.get("ingress").add(builder); ingress.set(index, builder); } - return (A)this; + return (A) this; } - public A addToIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + public A addToIngress(V1LoadBalancerIngress... items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } public A addAllToIngress(Collection items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } - public A removeFromIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items) { - if (this.ingress == null) return (A)this; - for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + public A removeFromIngress(V1LoadBalancerIngress... items) { + if (this.ingress == null) { + return (A) this; + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; } public A removeAllFromIngress(Collection items) { - if (this.ingress == null) return (A)this; - for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + if (this.ingress == null) { + return (A) this; + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; } public A removeMatchingFromIngress(Predicate predicate) { - if (ingress == null) return (A) this; - final Iterator each = ingress.iterator(); - final List visitables = _visitables.get("ingress"); + if (ingress == null) { + return (A) this; + } + Iterator each = ingress.iterator(); + List visitables = _visitables.get("ingress"); while (each.hasNext()) { - V1LoadBalancerIngressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1LoadBalancerIngressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildIngress() { @@ -141,7 +177,7 @@ public A withIngress(List ingress) { return (A) this; } - public A withIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... ingress) { + public A withIngress(V1LoadBalancerIngress... ingress) { if (this.ingress != null) { this.ingress.clear(); _visitables.remove("ingress"); @@ -155,7 +191,7 @@ public A withIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress.. } public boolean hasIngress() { - return this.ingress != null && !this.ingress.isEmpty(); + return this.ingress != null && !(this.ingress.isEmpty()); } public IngressNested addNewIngress() { @@ -171,47 +207,69 @@ public IngressNested setNewIngressLike(int index,V1LoadBalancerIngress item) } public IngressNested editIngress(int index) { - if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); - return setNewIngressLike(index, buildIngress(index)); + if (index <= ingress.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); } public IngressNested editFirstIngress() { - if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); - return setNewIngressLike(0, buildIngress(0)); + if (ingress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(0, this.buildIngress(0)); } public IngressNested editLastIngress() { int index = ingress.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ingress. The list is empty."); - return setNewIngressLike(index, buildIngress(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); } public IngressNested editMatchingIngress(Predicate predicate) { int index = -1; - for (int i=0;i extends V1LoadBalancerIngressFluent implements VisitableBuilder{ public V1LocalObjectReferenceBuilder() { this(new V1LocalObjectReference()); 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 4e66fc7652..3fa0eaf924 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LocalObjectReferenceFluent> extends BaseFluent{ +public class V1LocalObjectReferenceFluent> extends BaseFluent{ public V1LocalObjectReferenceFluent() { } @@ -19,10 +21,10 @@ public V1LocalObjectReferenceFluent(V1LocalObjectReference instance) { private String name; protected void copyInstance(V1LocalObjectReference instance) { - instance = (instance != null ? instance : new V1LocalObjectReference()); + instance = instance != null ? instance : new V1LocalObjectReference(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } public String getName() { @@ -39,22 +41,33 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LocalObjectReferenceFluent that = (V1LocalObjectReferenceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 037e3d4b48..957c349119 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LocalSubjectAccessReviewBuilder extends V1LocalSubjectAccessReviewFluent implements VisitableBuilder{ public V1LocalSubjectAccessReviewBuilder() { this(new V1LocalSubjectAccessReview()); 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 a9c4c55c3d..9542d4b3ef 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LocalSubjectAccessReviewFluent> extends BaseFluent{ +public class V1LocalSubjectAccessReviewFluent> extends BaseFluent{ public V1LocalSubjectAccessReviewFluent() { } @@ -24,14 +27,14 @@ public V1LocalSubjectAccessReviewFluent(V1LocalSubjectAccessReview instance) { private V1SubjectAccessReviewStatusBuilder status; protected void copyInstance(V1LocalSubjectAccessReview instance) { - instance = (instance != null ? instance : new V1LocalSubjectAccessReview()); + instance = instance != null ? instance : new V1LocalSubjectAccessReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1SubjectAccessReviewSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1SubjectAccessReviewSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SubjectAccessReviewSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1SubjectAccessReviewStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LocalSubjectAccessReviewFluent that = (V1LocalSubjectAccessReviewFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 6d34ea4328..812ccfc42a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LocalVolumeSourceBuilder extends V1LocalVolumeSourceFluent implements VisitableBuilder{ public V1LocalVolumeSourceBuilder() { this(new V1LocalVolumeSource()); 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 7946397e19..82f45426cf 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1LocalVolumeSourceFluent> extends BaseFluent{ +public class V1LocalVolumeSourceFluent> extends BaseFluent{ public V1LocalVolumeSourceFluent() { } @@ -20,11 +22,11 @@ public V1LocalVolumeSourceFluent(V1LocalVolumeSource instance) { private String path; protected void copyInstance(V1LocalVolumeSource instance) { - instance = (instance != null ? instance : new V1LocalVolumeSource()); + instance = instance != null ? instance : new V1LocalVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withPath(instance.getPath()); - } + this.withFsType(instance.getFsType()); + this.withPath(instance.getPath()); + } } public String getFsType() { @@ -54,24 +56,41 @@ public boolean hasPath() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1LocalVolumeSourceFluent that = (V1LocalVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, path, super.hashCode()); + return Objects.hash(fsType, path); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (path != null) { sb.append("path:"); sb.append(path); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + } sb.append("}"); return sb.toString(); } 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 1c5221caa0..e8b952bf34 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ManagedFieldsEntryBuilder extends V1ManagedFieldsEntryFluent implements VisitableBuilder{ public V1ManagedFieldsEntryBuilder() { this(new V1ManagedFieldsEntry()); 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 f46ad73c3a..3b684a29af 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ManagedFieldsEntryFluent> extends BaseFluent{ +public class V1ManagedFieldsEntryFluent> extends BaseFluent{ public V1ManagedFieldsEntryFluent() { } @@ -26,16 +28,16 @@ public V1ManagedFieldsEntryFluent(V1ManagedFieldsEntry instance) { private OffsetDateTime time; protected void copyInstance(V1ManagedFieldsEntry instance) { - instance = (instance != null ? instance : new V1ManagedFieldsEntry()); + instance = instance != null ? instance : new V1ManagedFieldsEntry(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withFieldsType(instance.getFieldsType()); - this.withFieldsV1(instance.getFieldsV1()); - this.withManager(instance.getManager()); - this.withOperation(instance.getOperation()); - this.withSubresource(instance.getSubresource()); - this.withTime(instance.getTime()); - } + this.withApiVersion(instance.getApiVersion()); + this.withFieldsType(instance.getFieldsType()); + this.withFieldsV1(instance.getFieldsV1()); + this.withManager(instance.getManager()); + this.withOperation(instance.getOperation()); + this.withSubresource(instance.getSubresource()); + this.withTime(instance.getTime()); + } } public String getApiVersion() { @@ -130,34 +132,81 @@ public boolean hasTime() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ManagedFieldsEntryFluent that = (V1ManagedFieldsEntryFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(fieldsType, that.fieldsType)) return false; - if (!java.util.Objects.equals(fieldsV1, that.fieldsV1)) return false; - if (!java.util.Objects.equals(manager, that.manager)) return false; - if (!java.util.Objects.equals(operation, that.operation)) return false; - if (!java.util.Objects.equals(subresource, that.subresource)) return false; - if (!java.util.Objects.equals(time, that.time)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(fieldsType, that.fieldsType))) { + return false; + } + if (!(Objects.equals(fieldsV1, that.fieldsV1))) { + return false; + } + if (!(Objects.equals(manager, that.manager))) { + return false; + } + if (!(Objects.equals(operation, that.operation))) { + return false; + } + if (!(Objects.equals(subresource, that.subresource))) { + return false; + } + if (!(Objects.equals(time, that.time))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, fieldsType, fieldsV1, manager, operation, subresource, time, super.hashCode()); + return Objects.hash(apiVersion, fieldsType, fieldsV1, manager, operation, subresource, time); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (fieldsType != null) { sb.append("fieldsType:"); sb.append(fieldsType + ","); } - if (fieldsV1 != null) { sb.append("fieldsV1:"); sb.append(fieldsV1 + ","); } - if (manager != null) { sb.append("manager:"); sb.append(manager + ","); } - if (operation != null) { sb.append("operation:"); sb.append(operation + ","); } - if (subresource != null) { sb.append("subresource:"); sb.append(subresource + ","); } - if (time != null) { sb.append("time:"); sb.append(time); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(fieldsType == null)) { + sb.append("fieldsType:"); + sb.append(fieldsType); + sb.append(","); + } + if (!(fieldsV1 == null)) { + sb.append("fieldsV1:"); + sb.append(fieldsV1); + sb.append(","); + } + if (!(manager == null)) { + sb.append("manager:"); + sb.append(manager); + sb.append(","); + } + if (!(operation == null)) { + sb.append("operation:"); + sb.append(operation); + sb.append(","); + } + if (!(subresource == null)) { + sb.append("subresource:"); + sb.append(subresource); + sb.append(","); + } + if (!(time == null)) { + sb.append("time:"); + sb.append(time); + } sb.append("}"); return sb.toString(); } 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 ac8cb2d9d6..ee2d634878 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MatchConditionBuilder extends V1MatchConditionFluent implements VisitableBuilder{ public V1MatchConditionBuilder() { this(new V1MatchCondition()); 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 b91c231711..aae50388d5 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1MatchConditionFluent> extends BaseFluent{ +public class V1MatchConditionFluent> extends BaseFluent{ public V1MatchConditionFluent() { } @@ -20,11 +22,11 @@ public V1MatchConditionFluent(V1MatchCondition instance) { private String name; protected void copyInstance(V1MatchCondition instance) { - instance = (instance != null ? instance : new V1MatchCondition()); + instance = instance != null ? instance : new V1MatchCondition(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } } public String getExpression() { @@ -54,24 +56,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1MatchConditionFluent that = (V1MatchConditionFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, name, super.hashCode()); + return Objects.hash(expression, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + 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(); } 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 fdae6d54dc..998d73f297 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MatchResourcesBuilder extends V1MatchResourcesFluent implements VisitableBuilder{ public V1MatchResourcesBuilder() { this(new V1MatchResources()); 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 6bb1ba5bd2..b17627df03 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1MatchResourcesFluent> extends BaseFluent{ +public class V1MatchResourcesFluent> extends BaseFluent{ public V1MatchResourcesFluent() { } @@ -30,18 +33,20 @@ public V1MatchResourcesFluent(V1MatchResources instance) { private ArrayList resourceRules; protected void copyInstance(V1MatchResources instance) { - instance = (instance != null ? instance : new V1MatchResources()); + instance = instance != null ? instance : new V1MatchResources(); if (instance != null) { - this.withExcludeResourceRules(instance.getExcludeResourceRules()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withResourceRules(instance.getResourceRules()); - } + this.withExcludeResourceRules(instance.getExcludeResourceRules()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withResourceRules(instance.getResourceRules()); + } } public A addToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); @@ -50,11 +55,13 @@ public A addToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); @@ -63,41 +70,71 @@ public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToExcludeResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + public A addToExcludeResourceRules(V1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; } public A addAllToExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; } - public A removeFromExcludeResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + public A removeFromExcludeResourceRules(V1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } public A removeAllFromExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromExcludeResourceRules(Predicate predicate) { - if (excludeResourceRules == null) return (A) this; - final Iterator each = excludeResourceRules.iterator(); - final List visitables = _visitables.get("excludeResourceRules"); + if (excludeResourceRules == null) { + return (A) this; + } + Iterator each = excludeResourceRules.iterator(); + List visitables = _visitables.get("excludeResourceRules"); while (each.hasNext()) { - V1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildExcludeResourceRules() { @@ -149,7 +186,7 @@ public A withExcludeResourceRules(List excludeResourc return (A) this; } - public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... excludeResourceRules) { + public A withExcludeResourceRules(V1NamedRuleWithOperations... excludeResourceRules) { if (this.excludeResourceRules != null) { this.excludeResourceRules.clear(); _visitables.remove("excludeResourceRules"); @@ -163,7 +200,7 @@ public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1NamedRul } public boolean hasExcludeResourceRules() { - return this.excludeResourceRules != null && !this.excludeResourceRules.isEmpty(); + return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); } public ExcludeResourceRulesNested addNewExcludeResourceRule() { @@ -179,28 +216,39 @@ public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1N } public ExcludeResourceRulesNested editExcludeResourceRule(int index) { - if (excludeResourceRules.size() <= index) throw new RuntimeException("Can't edit excludeResourceRules. Index exceeds size."); - return setNewExcludeResourceRuleLike(index, buildExcludeResourceRule(index)); + if (index <= excludeResourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } public ExcludeResourceRulesNested editFirstExcludeResourceRule() { - if (excludeResourceRules.size() == 0) throw new RuntimeException("Can't edit first excludeResourceRules. The list is empty."); - return setNewExcludeResourceRuleLike(0, buildExcludeResourceRule(0)); + if (excludeResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(0, this.buildExcludeResourceRule(0)); } public ExcludeResourceRulesNested editLastExcludeResourceRule() { int index = excludeResourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last excludeResourceRules. The list is empty."); - return setNewExcludeResourceRuleLike(index, buildExcludeResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i withNewNamespaceSelectorLike(V1LabelSelector i } public NamespaceSelectorNested editNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(null)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } public V1LabelSelector buildObjectSelector() { @@ -285,19 +333,21 @@ public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { } public ObjectSelectorNested editObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(null)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } public ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(item)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } public A addToResourceRules(int index,V1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -306,11 +356,13 @@ public A addToResourceRules(int index,V1NamedRuleWithOperations item) { _visitables.get("resourceRules").add(builder); resourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToResourceRules(int index,V1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -319,41 +371,71 @@ public A setToResourceRules(int index,V1NamedRuleWithOperations item) { _visitables.get("resourceRules").add(builder); resourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public A addToResourceRules(V1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... items) { - if (this.resourceRules == null) return (A)this; - for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public A removeFromResourceRules(V1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1NamedRuleWithOperations item : items) {V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + if (this.resourceRules == null) { + return (A) this; + } + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromResourceRules(Predicate predicate) { - if (resourceRules == null) return (A) this; - final Iterator each = resourceRules.iterator(); - final List visitables = _visitables.get("resourceRules"); + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); while (each.hasNext()) { - V1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResourceRules() { @@ -405,7 +487,7 @@ public A withResourceRules(List resourceRules) { return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... resourceRules) { + public A withResourceRules(V1NamedRuleWithOperations... resourceRules) { if (this.resourceRules != null) { this.resourceRules.clear(); _visitables.remove("resourceRules"); @@ -419,7 +501,7 @@ public A withResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOp } public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } public ResourceRulesNested addNewResourceRule() { @@ -435,55 +517,101 @@ public ResourceRulesNested setNewResourceRuleLike(int index,V1NamedRuleWithOp } public ResourceRulesNested editResourceRule(int index) { - if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index <= resourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); - return setNewResourceRuleLike(0, buildResourceRule(0)); + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); } public ResourceRulesNested editLastResourceRule() { int index = resourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1NamedRuleWithOperationsFlue int index; public N and() { - return (N) V1MatchResourcesFluent.this.setToExcludeResourceRules(index,builder.build()); + return (N) V1MatchResourcesFluent.this.setToExcludeResourceRules(index, builder.build()); } public N endExcludeResourceRule() { @@ -546,7 +674,7 @@ public class ResourceRulesNested extends V1NamedRuleWithOperationsFluent implements VisitableBuilder{ public V1ModifyVolumeStatusBuilder() { this(new V1ModifyVolumeStatus()); 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 35135c122d..7391c4f1fc 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ModifyVolumeStatusFluent> extends BaseFluent{ +public class V1ModifyVolumeStatusFluent> extends BaseFluent{ public V1ModifyVolumeStatusFluent() { } @@ -20,11 +22,11 @@ public V1ModifyVolumeStatusFluent(V1ModifyVolumeStatus instance) { private String targetVolumeAttributesClassName; protected void copyInstance(V1ModifyVolumeStatus instance) { - instance = (instance != null ? instance : new V1ModifyVolumeStatus()); + instance = instance != null ? instance : new V1ModifyVolumeStatus(); if (instance != null) { - this.withStatus(instance.getStatus()); - this.withTargetVolumeAttributesClassName(instance.getTargetVolumeAttributesClassName()); - } + this.withStatus(instance.getStatus()); + this.withTargetVolumeAttributesClassName(instance.getTargetVolumeAttributesClassName()); + } } public String getStatus() { @@ -54,24 +56,41 @@ public boolean hasTargetVolumeAttributesClassName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ModifyVolumeStatusFluent that = (V1ModifyVolumeStatusFluent) o; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(targetVolumeAttributesClassName, that.targetVolumeAttributesClassName)) return false; + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(targetVolumeAttributesClassName, that.targetVolumeAttributesClassName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(status, targetVolumeAttributesClassName, super.hashCode()); + return Objects.hash(status, targetVolumeAttributesClassName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (targetVolumeAttributesClassName != null) { sb.append("targetVolumeAttributesClassName:"); sb.append(targetVolumeAttributesClassName); } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(targetVolumeAttributesClassName == null)) { + sb.append("targetVolumeAttributesClassName:"); + sb.append(targetVolumeAttributesClassName); + } sb.append("}"); return sb.toString(); } 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 4f4ecd525e..66dd31dddf 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MutatingWebhookBuilder extends V1MutatingWebhookFluent implements VisitableBuilder{ public V1MutatingWebhookBuilder() { this(new V1MutatingWebhook()); 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 5a60b05589..dee4cd9bc2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MutatingWebhookConfigurationBuilder extends V1MutatingWebhookConfigurationFluent implements VisitableBuilder{ public V1MutatingWebhookConfigurationBuilder() { this(new V1MutatingWebhookConfiguration()); 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 1fff741550..30beb09a02 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1MutatingWebhookConfigurationFluent> extends BaseFluent{ +public class V1MutatingWebhookConfigurationFluent> extends BaseFluent{ public V1MutatingWebhookConfigurationFluent() { } @@ -29,13 +32,13 @@ public V1MutatingWebhookConfigurationFluent(V1MutatingWebhookConfiguration insta private ArrayList webhooks; protected void copyInstance(V1MutatingWebhookConfiguration instance) { - instance = (instance != null ? instance : new V1MutatingWebhookConfiguration()); + instance = instance != null ? instance : new V1MutatingWebhookConfiguration(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withWebhooks(instance.getWebhooks()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withWebhooks(instance.getWebhooks()); + } } public String getApiVersion() { @@ -93,19 +96,21 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public A addToWebhooks(int index,V1MutatingWebhook item) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); @@ -114,11 +119,13 @@ public A addToWebhooks(int index,V1MutatingWebhook item) { _visitables.get("webhooks").add(builder); webhooks.add(index, builder); } - return (A)this; + return (A) this; } public A setToWebhooks(int index,V1MutatingWebhook item) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); @@ -127,41 +134,71 @@ public A setToWebhooks(int index,V1MutatingWebhook item) { _visitables.get("webhooks").add(builder); webhooks.set(index, builder); } - return (A)this; + return (A) this; } - public A addToWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} - for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; + public A addToWebhooks(V1MutatingWebhook... items) { + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").add(builder); + this.webhooks.add(builder); + } + return (A) this; } public A addAllToWebhooks(Collection items) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} - for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").add(builder); + this.webhooks.add(builder); + } + return (A) this; } - public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items) { - if (this.webhooks == null) return (A)this; - for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder); this.webhooks.remove(builder);} return (A)this; + public A removeFromWebhooks(V1MutatingWebhook... items) { + if (this.webhooks == null) { + return (A) this; + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; } public A removeAllFromWebhooks(Collection items) { - if (this.webhooks == null) return (A)this; - for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder); this.webhooks.remove(builder);} return (A)this; + if (this.webhooks == null) { + return (A) this; + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; } public A removeMatchingFromWebhooks(Predicate predicate) { - if (webhooks == null) return (A) this; - final Iterator each = webhooks.iterator(); - final List visitables = _visitables.get("webhooks"); + if (webhooks == null) { + return (A) this; + } + Iterator each = webhooks.iterator(); + List visitables = _visitables.get("webhooks"); while (each.hasNext()) { - V1MutatingWebhookBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1MutatingWebhookBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildWebhooks() { @@ -213,7 +250,7 @@ public A withWebhooks(List webhooks) { return (A) this; } - public A withWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... webhooks) { + public A withWebhooks(V1MutatingWebhook... webhooks) { if (this.webhooks != null) { this.webhooks.clear(); _visitables.remove("webhooks"); @@ -227,7 +264,7 @@ public A withWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... w } public boolean hasWebhooks() { - return this.webhooks != null && !this.webhooks.isEmpty(); + return this.webhooks != null && !(this.webhooks.isEmpty()); } public WebhooksNested addNewWebhook() { @@ -243,53 +280,93 @@ public WebhooksNested setNewWebhookLike(int index,V1MutatingWebhook item) { } public WebhooksNested editWebhook(int index) { - if (webhooks.size() <= index) throw new RuntimeException("Can't edit webhooks. Index exceeds size."); - return setNewWebhookLike(index, buildWebhook(index)); + if (index <= webhooks.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } public WebhooksNested editFirstWebhook() { - if (webhooks.size() == 0) throw new RuntimeException("Can't edit first webhooks. The list is empty."); - return setNewWebhookLike(0, buildWebhook(0)); + if (webhooks.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "webhooks")); + } + return this.setNewWebhookLike(0, this.buildWebhook(0)); } public WebhooksNested editLastWebhook() { int index = webhooks.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last webhooks. The list is empty."); - return setNewWebhookLike(index, buildWebhook(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } public WebhooksNested editMatchingWebhook(Predicate predicate) { int index = -1; - for (int i=0;i extends V1MutatingWebhookFluent int index; public N and() { - return (N) V1MutatingWebhookConfigurationFluent.this.setToWebhooks(index,builder.build()); + return (N) V1MutatingWebhookConfigurationFluent.this.setToWebhooks(index, builder.build()); } public N endWebhook() { 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 23449c2103..f535f3184f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MutatingWebhookConfigurationListBuilder extends V1MutatingWebhookConfigurationListFluent implements VisitableBuilder{ public V1MutatingWebhookConfigurationListBuilder() { this(new V1MutatingWebhookConfigurationList()); 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 2b5da2a2c3..6bee2ddee6 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1MutatingWebhookConfigurationListFluent> extends BaseFluent{ +public class V1MutatingWebhookConfigurationListFluent> extends BaseFluent{ public V1MutatingWebhookConfigurationListFluent() { } @@ -29,13 +32,13 @@ public V1MutatingWebhookConfigurationListFluent(V1MutatingWebhookConfigurationLi private V1ListMetaBuilder metadata; protected void copyInstance(V1MutatingWebhookConfigurationList instance) { - instance = (instance != null ? instance : new V1MutatingWebhookConfigurationList()); + instance = instance != null ? instance : new V1MutatingWebhookConfigurationList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1MutatingWebhookConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1MutatingWebhookConfiguration item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1MutatingWebhookConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1MutatingWebhookConfiguration item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1MutatingWebhookConfiguration... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { - if (this.items == null) return (A)this; - for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1MutatingWebhookConfiguration... items) { + if (this.items == null) { + return (A) this; + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1MutatingWebhookConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1MutatingWebhookConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { + public A withItems(V1MutatingWebhookConfiguration... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfigur } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1MutatingWebhookConfiguration it } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1MutatingWebhookConfigurationListFluent that = (V1MutatingWebhookConfigurationListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1MutatingWebhookConfigurationFluent> extends BaseFluent{ +public class V1MutatingWebhookFluent> extends BaseFluent{ public V1MutatingWebhookFluent() { } @@ -38,52 +41,77 @@ public V1MutatingWebhookFluent(V1MutatingWebhook instance) { private Integer timeoutSeconds; protected void copyInstance(V1MutatingWebhook instance) { - instance = (instance != null ? instance : new V1MutatingWebhook()); + instance = instance != null ? instance : new V1MutatingWebhook(); if (instance != null) { - this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); - this.withClientConfig(instance.getClientConfig()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withName(instance.getName()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withReinvocationPolicy(instance.getReinvocationPolicy()); - this.withRules(instance.getRules()); - this.withSideEffects(instance.getSideEffects()); - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); + this.withClientConfig(instance.getClientConfig()); + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withName(instance.getName()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withReinvocationPolicy(instance.getReinvocationPolicy()); + this.withRules(instance.getRules()); + this.withSideEffects(instance.getSideEffects()); + this.withTimeoutSeconds(instance.getTimeoutSeconds()); + } } public A addToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } this.admissionReviewVersions.add(index, item); - return (A)this; + return (A) this; } public A setToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - this.admissionReviewVersions.set(index, item); return (A)this; + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + this.admissionReviewVersions.set(index, item); + return (A) this; } - public A addToAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; + public A addToAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + return (A) this; } public A addAllToAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + return (A) this; } - public A removeFromAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) return (A)this; - for (String item : items) { this.admissionReviewVersions.remove(item);} return (A)this; + public A removeFromAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.admissionReviewVersions.remove(item); + } + return (A) this; } public A removeAllFromAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) return (A)this; - for (String item : items) { this.admissionReviewVersions.remove(item);} return (A)this; + if (this.admissionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.admissionReviewVersions.remove(item); + } + return (A) this; } public List getAdmissionReviewVersions() { @@ -132,7 +160,7 @@ public A withAdmissionReviewVersions(List admissionReviewVersions) { return (A) this; } - public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions) { + public A withAdmissionReviewVersions(String... admissionReviewVersions) { if (this.admissionReviewVersions != null) { this.admissionReviewVersions.clear(); _visitables.remove("admissionReviewVersions"); @@ -146,7 +174,7 @@ public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions } public boolean hasAdmissionReviewVersions() { - return this.admissionReviewVersions != null && !this.admissionReviewVersions.isEmpty(); + return this.admissionReviewVersions != null && !(this.admissionReviewVersions.isEmpty()); } public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { @@ -178,15 +206,15 @@ public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1Webh } public ClientConfigNested editClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(null)); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); } public ClientConfigNested editOrNewClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); } public ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(item)); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); } public String getFailurePolicy() { @@ -203,7 +231,9 @@ public boolean hasFailurePolicy() { } public A addToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); @@ -212,11 +242,13 @@ public A addToMatchConditions(int index,V1MatchCondition item) { _visitables.get("matchConditions").add(builder); matchConditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); @@ -225,41 +257,71 @@ public A setToMatchConditions(int index,V1MatchCondition item) { _visitables.get("matchConditions").add(builder); matchConditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + public A addToMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } - public A removeFromMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... items) { - if (this.matchConditions == null) return (A)this; - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + public A removeFromMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) return (A)this; - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + if (this.matchConditions == null) { + return (A) this; + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) return (A) this; - final Iterator each = matchConditions.iterator(); - final List visitables = _visitables.get("matchConditions"); + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); while (each.hasNext()) { - V1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMatchConditions() { @@ -311,7 +373,7 @@ public A withMatchConditions(List matchConditions) { return (A) this; } - public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... matchConditions) { + public A withMatchConditions(V1MatchCondition... matchConditions) { if (this.matchConditions != null) { this.matchConditions.clear(); _visitables.remove("matchConditions"); @@ -325,7 +387,7 @@ public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchConditio } public boolean hasMatchConditions() { - return this.matchConditions != null && !this.matchConditions.isEmpty(); + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } public MatchConditionsNested addNewMatchCondition() { @@ -341,28 +403,39 @@ public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondit } public MatchConditionsNested editMatchCondition(int index) { - if (matchConditions.size() <= index) throw new RuntimeException("Can't edit matchConditions. Index exceeds size."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); + if (index <= matchConditions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) throw new RuntimeException("Can't edit first matchConditions. The list is empty."); - return setNewMatchConditionLike(0, buildMatchCondition(0)); + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); } public MatchConditionsNested editLastMatchCondition() { int index = matchConditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchConditions. The list is empty."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { int index = -1; - for (int i=0;i withNewNamespaceSelectorLike(V1LabelSelector i } public NamespaceSelectorNested editNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(null)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } public V1LabelSelector buildObjectSelector() { @@ -460,15 +533,15 @@ public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { } public ObjectSelectorNested editObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(null)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } public ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(item)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } public String getReinvocationPolicy() { @@ -485,7 +558,9 @@ public boolean hasReinvocationPolicy() { } public A addToRules(int index,V1RuleWithOperations item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -494,11 +569,13 @@ public A addToRules(int index,V1RuleWithOperations item) { _visitables.get("rules").add(builder); rules.add(index, builder); } - return (A)this; + return (A) this; } public A setToRules(int index,V1RuleWithOperations item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -507,41 +584,71 @@ public A setToRules(int index,V1RuleWithOperations item) { _visitables.get("rules").add(builder); rules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public A addToRules(V1RuleWithOperations... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) return (A)this; - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A removeFromRules(V1RuleWithOperations... items) { + if (this.rules == null) { + return (A) this; + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + if (this.rules == null) { + return (A) this; + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1RuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1RuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRules() { @@ -593,7 +700,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules) { + public A withRules(V1RuleWithOperations... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -607,7 +714,7 @@ public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... r } public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + return this.rules != null && !(this.rules.isEmpty()); } public RulesNested addNewRule() { @@ -623,28 +730,39 @@ public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { } public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); + if (index <= rules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } public RulesNested editLastRule() { int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1MatchConditionFluent extends V1RuleWithOperationsFluent> i int index; public N and() { - return (N) V1MutatingWebhookFluent.this.setToRules(index,builder.build()); + return (N) V1MutatingWebhookFluent.this.setToRules(index, builder.build()); } public N endRule() { 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 eec568ae18..b161064a73 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NFSVolumeSourceBuilder extends V1NFSVolumeSourceFluent implements VisitableBuilder{ public V1NFSVolumeSourceBuilder() { this(new V1NFSVolumeSource()); 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 0e3d89bfcc..f9041fa1e2 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NFSVolumeSourceFluent> extends BaseFluent{ +public class V1NFSVolumeSourceFluent> extends BaseFluent{ public V1NFSVolumeSourceFluent() { } @@ -22,12 +24,12 @@ public V1NFSVolumeSourceFluent(V1NFSVolumeSource instance) { private String server; protected void copyInstance(V1NFSVolumeSource instance) { - instance = (instance != null ? instance : new V1NFSVolumeSource()); + instance = instance != null ? instance : new V1NFSVolumeSource(); if (instance != null) { - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - this.withServer(instance.getServer()); - } + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + this.withServer(instance.getServer()); + } } public String getPath() { @@ -70,26 +72,49 @@ public boolean hasServer() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NFSVolumeSourceFluent that = (V1NFSVolumeSourceFluent) o; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(server, that.server)) return false; + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(server, that.server))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(path, readOnly, server, super.hashCode()); + return Objects.hash(path, readOnly, server); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (server != null) { sb.append("server:"); sb.append(server); } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(server == null)) { + sb.append("server:"); + sb.append(server); + } sb.append("}"); return sb.toString(); } 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 7b7592469d..e3f4ceae2a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamedRuleWithOperationsBuilder extends V1NamedRuleWithOperationsFluent implements VisitableBuilder{ public V1NamedRuleWithOperationsBuilder() { this(new V1NamedRuleWithOperations()); 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 d76ebb3c3e..9382ea5d25 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NamedRuleWithOperationsFluent> extends BaseFluent{ +public class V1NamedRuleWithOperationsFluent> extends BaseFluent{ public V1NamedRuleWithOperationsFluent() { } @@ -28,46 +30,71 @@ public V1NamedRuleWithOperationsFluent(V1NamedRuleWithOperations instance) { private String scope; protected void copyInstance(V1NamedRuleWithOperations instance) { - instance = (instance != null ? instance : new V1NamedRuleWithOperations()); + instance = instance != null ? instance : new V1NamedRuleWithOperations(); if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withApiVersions(instance.getApiVersions()); - this.withOperations(instance.getOperations()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withScope(instance.getScope()); - } + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); + } } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + return (A) this; } public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.set(index, item); return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } - public A removeFromApiGroups(java.lang.String... items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public List getApiGroups() { @@ -116,7 +143,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -130,38 +157,63 @@ public A withApiGroups(java.lang.String... apiGroups) { } public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } public A addToApiVersions(int index,String item) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } this.apiVersions.add(index, item); - return (A)this; + return (A) this; } public A setToApiVersions(int index,String item) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - this.apiVersions.set(index, item); return (A)this; + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(index, item); + return (A) this; } - public A addToApiVersions(java.lang.String... items) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - for (String item : items) {this.apiVersions.add(item);} return (A)this; + public A addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); + } + return (A) this; } public A addAllToApiVersions(Collection items) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - for (String item : items) {this.apiVersions.add(item);} return (A)this; + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); + } + return (A) this; } - public A removeFromApiVersions(java.lang.String... items) { - if (this.apiVersions == null) return (A)this; - for (String item : items) { this.apiVersions.remove(item);} return (A)this; + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } public A removeAllFromApiVersions(Collection items) { - if (this.apiVersions == null) return (A)this; - for (String item : items) { this.apiVersions.remove(item);} return (A)this; + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } public List getApiVersions() { @@ -210,7 +262,7 @@ public A withApiVersions(List apiVersions) { return (A) this; } - public A withApiVersions(java.lang.String... apiVersions) { + public A withApiVersions(String... apiVersions) { if (this.apiVersions != null) { this.apiVersions.clear(); _visitables.remove("apiVersions"); @@ -224,38 +276,63 @@ public A withApiVersions(java.lang.String... apiVersions) { } public boolean hasApiVersions() { - return this.apiVersions != null && !this.apiVersions.isEmpty(); + return this.apiVersions != null && !(this.apiVersions.isEmpty()); } public A addToOperations(int index,String item) { - if (this.operations == null) {this.operations = new ArrayList();} + if (this.operations == null) { + this.operations = new ArrayList(); + } this.operations.add(index, item); - return (A)this; + return (A) this; } public A setToOperations(int index,String item) { - if (this.operations == null) {this.operations = new ArrayList();} - this.operations.set(index, item); return (A)this; + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.set(index, item); + return (A) this; } - public A addToOperations(java.lang.String... items) { - if (this.operations == null) {this.operations = new ArrayList();} - for (String item : items) {this.operations.add(item);} return (A)this; + public A addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } public A addAllToOperations(Collection items) { - if (this.operations == null) {this.operations = new ArrayList();} - for (String item : items) {this.operations.add(item);} return (A)this; + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } - public A removeFromOperations(java.lang.String... items) { - if (this.operations == null) return (A)this; - for (String item : items) { this.operations.remove(item);} return (A)this; + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } public A removeAllFromOperations(Collection items) { - if (this.operations == null) return (A)this; - for (String item : items) { this.operations.remove(item);} return (A)this; + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } public List getOperations() { @@ -304,7 +381,7 @@ public A withOperations(List operations) { return (A) this; } - public A withOperations(java.lang.String... operations) { + public A withOperations(String... operations) { if (this.operations != null) { this.operations.clear(); _visitables.remove("operations"); @@ -318,38 +395,63 @@ public A withOperations(java.lang.String... operations) { } public boolean hasOperations() { - return this.operations != null && !this.operations.isEmpty(); + return this.operations != null && !(this.operations.isEmpty()); } public A addToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } this.resourceNames.add(index, item); - return (A)this; + return (A) this; } public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - this.resourceNames.set(index, item); return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(index, item); + return (A) this; } - public A addToResourceNames(java.lang.String... items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } - public A removeFromResourceNames(java.lang.String... items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public List getResourceNames() { @@ -398,7 +500,7 @@ public A withResourceNames(List resourceNames) { return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { + public A withResourceNames(String... resourceNames) { if (this.resourceNames != null) { this.resourceNames.clear(); _visitables.remove("resourceNames"); @@ -412,38 +514,63 @@ public A withResourceNames(java.lang.String... resourceNames) { } public boolean hasResourceNames() { - return this.resourceNames != null && !this.resourceNames.isEmpty(); + return this.resourceNames != null && !(this.resourceNames.isEmpty()); } public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } this.resources.add(index, item); - return (A)this; + return (A) this; } public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public A removeFromResources(java.lang.String... items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public List getResources() { @@ -492,7 +619,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -506,7 +633,7 @@ public A withResources(java.lang.String... resources) { } public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + return this.resources != null && !(this.resources.isEmpty()); } public String getScope() { @@ -523,32 +650,73 @@ public boolean hasScope() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NamedRuleWithOperationsFluent that = (V1NamedRuleWithOperationsFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(apiVersions, that.apiVersions)) return false; - if (!java.util.Objects.equals(operations, that.operations)) return false; - if (!java.util.Objects.equals(resourceNames, that.resourceNames)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(scope, that.scope)) return false; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope, super.hashCode()); + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } - if (apiVersions != null && !apiVersions.isEmpty()) { sb.append("apiVersions:"); sb.append(apiVersions + ","); } - if (operations != null && !operations.isEmpty()) { sb.append("operations:"); sb.append(operations + ","); } - if (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } - if (scope != null) { sb.append("scope:"); sb.append(scope); } + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(apiVersions == null) && !(apiVersions.isEmpty())) { + sb.append("apiVersions:"); + sb.append(apiVersions); + sb.append(","); + } + if (!(operations == null) && !(operations.isEmpty())) { + sb.append("operations:"); + sb.append(operations); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } sb.append("}"); return sb.toString(); } 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 8a99993529..c29aa148f1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceBuilder extends V1NamespaceFluent implements VisitableBuilder{ public V1NamespaceBuilder() { this(new V1Namespace()); 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 ad14a9ad29..433a5f9d6e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceConditionBuilder extends V1NamespaceConditionFluent implements VisitableBuilder{ public V1NamespaceConditionBuilder() { this(new V1NamespaceCondition()); 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 f63f11dfa7..91ecbb63d7 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceConditionFluent> extends BaseFluent{ +public class V1NamespaceConditionFluent> extends BaseFluent{ public V1NamespaceConditionFluent() { } @@ -24,14 +26,14 @@ public V1NamespaceConditionFluent(V1NamespaceCondition instance) { private String type; protected void copyInstance(V1NamespaceCondition instance) { - instance = (instance != null ? instance : new V1NamespaceCondition()); + instance = instance != null ? instance : new V1NamespaceCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NamespaceConditionFluent that = (V1NamespaceConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 0e07895cc1..871e98f548 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceFluent> extends BaseFluent{ +public class V1NamespaceFluent> extends BaseFluent{ public V1NamespaceFluent() { } @@ -24,14 +27,14 @@ public V1NamespaceFluent(V1Namespace instance) { private V1NamespaceStatusBuilder status; protected void copyInstance(V1Namespace instance) { - instance = (instance != null ? instance : new V1Namespace()); + instance = instance != null ? instance : new V1Namespace(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1NamespaceSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1NamespaceSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1NamespaceSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1NamespaceSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1NamespaceSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1NamespaceStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1NamespaceStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1NamespaceStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1NamespaceStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1NamespaceStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NamespaceFluent that = (V1NamespaceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 9b8899945a..e6056aa107 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceListBuilder extends V1NamespaceListFluent implements VisitableBuilder{ public V1NamespaceListBuilder() { this(new V1NamespaceList()); 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 d4c5a873f7..4b9e264a84 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceListFluent> extends BaseFluent{ +public class V1NamespaceListFluent> extends BaseFluent{ public V1NamespaceListFluent() { } @@ -29,13 +32,13 @@ public V1NamespaceListFluent(V1NamespaceList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1NamespaceList instance) { - instance = (instance != null ? instance : new V1NamespaceList()); + instance = instance != null ? instance : new V1NamespaceList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Namespace item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1NamespaceBuilder builder = new V1NamespaceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Namespace item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Namespace item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1NamespaceBuilder builder = new V1NamespaceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Namespace item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Namespace... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Namespace... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Namespace... items) { - if (this.items == null) return (A)this; - for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Namespace... items) { + if (this.items == null) { + return (A) this; + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1NamespaceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NamespaceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Namespace... items) { + public A withItems(V1Namespace... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Namespace... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Namespace item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NamespaceListFluent that = (V1NamespaceListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1NamespaceFluent> implements int index; public N and() { - return (N) V1NamespaceListFluent.this.setToItems(index,builder.build()); + return (N) V1NamespaceListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 cd7d90b327..374495d757 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceSpecBuilder extends V1NamespaceSpecFluent implements VisitableBuilder{ public V1NamespaceSpecBuilder() { this(new V1NamespaceSpec()); 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 28a44d6c74..314a65f468 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceSpecFluent> extends BaseFluent{ +public class V1NamespaceSpecFluent> extends BaseFluent{ public V1NamespaceSpecFluent() { } @@ -23,41 +25,66 @@ public V1NamespaceSpecFluent(V1NamespaceSpec instance) { private List finalizers; protected void copyInstance(V1NamespaceSpec instance) { - instance = (instance != null ? instance : new V1NamespaceSpec()); + instance = instance != null ? instance : new V1NamespaceSpec(); if (instance != null) { - this.withFinalizers(instance.getFinalizers()); - } + this.withFinalizers(instance.getFinalizers()); + } } public A addToFinalizers(int index,String item) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } this.finalizers.add(index, item); - return (A)this; + return (A) this; } public A setToFinalizers(int index,String item) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - this.finalizers.set(index, item); return (A)this; + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + this.finalizers.set(index, item); + return (A) this; } - public A addToFinalizers(java.lang.String... items) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - for (String item : items) {this.finalizers.add(item);} return (A)this; + public A addToFinalizers(String... items) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + for (String item : items) { + this.finalizers.add(item); + } + return (A) this; } public A addAllToFinalizers(Collection items) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - for (String item : items) {this.finalizers.add(item);} return (A)this; + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + for (String item : items) { + this.finalizers.add(item); + } + return (A) this; } - public A removeFromFinalizers(java.lang.String... items) { - if (this.finalizers == null) return (A)this; - for (String item : items) { this.finalizers.remove(item);} return (A)this; + public A removeFromFinalizers(String... items) { + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; } public A removeAllFromFinalizers(Collection items) { - if (this.finalizers == null) return (A)this; - for (String item : items) { this.finalizers.remove(item);} return (A)this; + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; } public List getFinalizers() { @@ -106,7 +133,7 @@ public A withFinalizers(List finalizers) { return (A) this; } - public A withFinalizers(java.lang.String... finalizers) { + public A withFinalizers(String... finalizers) { if (this.finalizers != null) { this.finalizers.clear(); _visitables.remove("finalizers"); @@ -120,26 +147,37 @@ public A withFinalizers(java.lang.String... finalizers) { } public boolean hasFinalizers() { - return this.finalizers != null && !this.finalizers.isEmpty(); + return this.finalizers != null && !(this.finalizers.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NamespaceSpecFluent that = (V1NamespaceSpecFluent) o; - if (!java.util.Objects.equals(finalizers, that.finalizers)) return false; + if (!(Objects.equals(finalizers, that.finalizers))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(finalizers, super.hashCode()); + return Objects.hash(finalizers); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (finalizers != null && !finalizers.isEmpty()) { sb.append("finalizers:"); sb.append(finalizers); } + if (!(finalizers == null) && !(finalizers.isEmpty())) { + sb.append("finalizers:"); + sb.append(finalizers); + } sb.append("}"); return sb.toString(); } 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 88bc412236..3669487b01 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceStatusBuilder extends V1NamespaceStatusFluent implements VisitableBuilder{ public V1NamespaceStatusBuilder() { this(new V1NamespaceStatus()); 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 26a45072cd..7bab3347be 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceStatusFluent> extends BaseFluent{ +public class V1NamespaceStatusFluent> extends BaseFluent{ public V1NamespaceStatusFluent() { } @@ -27,15 +29,17 @@ public V1NamespaceStatusFluent(V1NamespaceStatus instance) { private String phase; protected void copyInstance(V1NamespaceStatus instance) { - instance = (instance != null ? instance : new V1NamespaceStatus()); + instance = instance != null ? instance : new V1NamespaceStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - this.withPhase(instance.getPhase()); - } + this.withConditions(instance.getConditions()); + this.withPhase(instance.getPhase()); + } } public A addToConditions(int index,V1NamespaceCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -44,11 +48,13 @@ public A addToConditions(int index,V1NamespaceCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1NamespaceCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -57,41 +63,71 @@ public A setToConditions(int index,V1NamespaceCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1NamespaceCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items) { - if (this.conditions == null) return (A)this; - for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1NamespaceCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1NamespaceConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NamespaceConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -143,7 +179,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... conditions) { + public A withConditions(V1NamespaceCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -157,7 +193,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -173,28 +209,39 @@ public ConditionsNested setNewConditionLike(int index,V1NamespaceCondition it } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1NamespaceConditionFluent implements VisitableBuilder{ + public V1NetworkDeviceDataBuilder() { + this(new V1NetworkDeviceData()); + } + + public V1NetworkDeviceDataBuilder(V1NetworkDeviceDataFluent fluent) { + this(fluent, new V1NetworkDeviceData()); + } + + public V1NetworkDeviceDataBuilder(V1NetworkDeviceDataFluent fluent,V1NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NetworkDeviceDataBuilder(V1NetworkDeviceData instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1NetworkDeviceDataFluent fluent; + + public V1NetworkDeviceData build() { + V1NetworkDeviceData buildable = new V1NetworkDeviceData(); + buildable.setHardwareAddress(fluent.getHardwareAddress()); + buildable.setInterfaceName(fluent.getInterfaceName()); + buildable.setIps(fluent.getIps()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java similarity index 52% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java index ea208c58af..aceea49676 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,24 +15,24 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3NetworkDeviceDataFluent> extends BaseFluent{ - public V1alpha3NetworkDeviceDataFluent() { +public class V1NetworkDeviceDataFluent> extends BaseFluent{ + public V1NetworkDeviceDataFluent() { } - public V1alpha3NetworkDeviceDataFluent(V1alpha3NetworkDeviceData instance) { + public V1NetworkDeviceDataFluent(V1NetworkDeviceData instance) { this.copyInstance(instance); } private String hardwareAddress; private String interfaceName; private List ips; - protected void copyInstance(V1alpha3NetworkDeviceData instance) { - instance = (instance != null ? instance : new V1alpha3NetworkDeviceData()); + protected void copyInstance(V1NetworkDeviceData instance) { + instance = instance != null ? instance : new V1NetworkDeviceData(); if (instance != null) { - this.withHardwareAddress(instance.getHardwareAddress()); - this.withInterfaceName(instance.getInterfaceName()); - this.withIps(instance.getIps()); - } + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); + } } public String getHardwareAddress() { @@ -60,34 +62,59 @@ public boolean hasInterfaceName() { } public A addToIps(int index,String item) { - if (this.ips == null) {this.ips = new ArrayList();} + if (this.ips == null) { + this.ips = new ArrayList(); + } this.ips.add(index, item); - return (A)this; + return (A) this; } public A setToIps(int index,String item) { - if (this.ips == null) {this.ips = new ArrayList();} - this.ips.set(index, item); return (A)this; + if (this.ips == null) { + this.ips = new ArrayList(); + } + this.ips.set(index, item); + return (A) this; } - public A addToIps(java.lang.String... items) { - if (this.ips == null) {this.ips = new ArrayList();} - for (String item : items) {this.ips.add(item);} return (A)this; + public A addToIps(String... items) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + for (String item : items) { + this.ips.add(item); + } + return (A) this; } public A addAllToIps(Collection items) { - if (this.ips == null) {this.ips = new ArrayList();} - for (String item : items) {this.ips.add(item);} return (A)this; + if (this.ips == null) { + this.ips = new ArrayList(); + } + for (String item : items) { + this.ips.add(item); + } + return (A) this; } - public A removeFromIps(java.lang.String... items) { - if (this.ips == null) return (A)this; - for (String item : items) { this.ips.remove(item);} return (A)this; + public A removeFromIps(String... items) { + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(item); + } + return (A) this; } public A removeAllFromIps(Collection items) { - if (this.ips == null) return (A)this; - for (String item : items) { this.ips.remove(item);} return (A)this; + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(item); + } + return (A) this; } public List getIps() { @@ -136,7 +163,7 @@ public A withIps(List ips) { return (A) this; } - public A withIps(java.lang.String... ips) { + public A withIps(String... ips) { if (this.ips != null) { this.ips.clear(); _visitables.remove("ips"); @@ -150,30 +177,53 @@ public A withIps(java.lang.String... ips) { } public boolean hasIps() { - return this.ips != null && !this.ips.isEmpty(); + return this.ips != null && !(this.ips.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3NetworkDeviceDataFluent that = (V1alpha3NetworkDeviceDataFluent) o; - if (!java.util.Objects.equals(hardwareAddress, that.hardwareAddress)) return false; - if (!java.util.Objects.equals(interfaceName, that.interfaceName)) return false; - if (!java.util.Objects.equals(ips, that.ips)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkDeviceDataFluent that = (V1NetworkDeviceDataFluent) o; + if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { + return false; + } + if (!(Objects.equals(interfaceName, that.interfaceName))) { + return false; + } + if (!(Objects.equals(ips, that.ips))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(hardwareAddress, interfaceName, ips, super.hashCode()); + return Objects.hash(hardwareAddress, interfaceName, ips); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hardwareAddress != null) { sb.append("hardwareAddress:"); sb.append(hardwareAddress + ","); } - if (interfaceName != null) { sb.append("interfaceName:"); sb.append(interfaceName + ","); } - if (ips != null && !ips.isEmpty()) { sb.append("ips:"); sb.append(ips); } + if (!(hardwareAddress == null)) { + sb.append("hardwareAddress:"); + sb.append(hardwareAddress); + sb.append(","); + } + if (!(interfaceName == null)) { + sb.append("interfaceName:"); + sb.append(interfaceName); + sb.append(","); + } + if (!(ips == null) && !(ips.isEmpty())) { + sb.append("ips:"); + sb.append(ips); + } sb.append("}"); return sb.toString(); } 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 773809aa29..1f05b421bc 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyBuilder extends V1NetworkPolicyFluent implements VisitableBuilder{ public V1NetworkPolicyBuilder() { this(new V1NetworkPolicy()); 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 8a095c6d16..11a938e2c9 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyEgressRuleBuilder extends V1NetworkPolicyEgressRuleFluent implements VisitableBuilder{ public V1NetworkPolicyEgressRuleBuilder() { this(new V1NetworkPolicyEgressRule()); 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 2fa4527247..2297c1edc9 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyEgressRuleFluent> extends BaseFluent{ +public class V1NetworkPolicyEgressRuleFluent> extends BaseFluent{ public V1NetworkPolicyEgressRuleFluent() { } @@ -27,15 +29,17 @@ public V1NetworkPolicyEgressRuleFluent(V1NetworkPolicyEgressRule instance) { private ArrayList to; protected void copyInstance(V1NetworkPolicyEgressRule instance) { - instance = (instance != null ? instance : new V1NetworkPolicyEgressRule()); + instance = instance != null ? instance : new V1NetworkPolicyEgressRule(); if (instance != null) { - this.withPorts(instance.getPorts()); - this.withTo(instance.getTo()); - } + this.withPorts(instance.getPorts()); + this.withTo(instance.getTo()); + } } public A addToPorts(int index,V1NetworkPolicyPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -44,11 +48,13 @@ public A addToPorts(int index,V1NetworkPolicyPort item) { _visitables.get("ports").add(builder); ports.add(index, builder); } - return (A)this; + return (A) this; } public A setToPorts(int index,V1NetworkPolicyPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -57,41 +63,71 @@ public A setToPorts(int index,V1NetworkPolicyPort item) { _visitables.get("ports").add(builder); ports.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A addToPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) return (A)this; - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeFromPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + return (A) this; + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - V1NetworkPolicyPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPorts() { @@ -143,7 +179,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports) { + public A withPorts(V1NetworkPolicyPort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -157,7 +193,7 @@ public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... po } public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + return this.ports != null && !(this.ports.isEmpty()); } public PortsNested addNewPort() { @@ -173,32 +209,45 @@ public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (index <= ports.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public PortsNested editLastPort() { int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.to == null) { + this.to = new ArrayList(); + } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= to.size()) { _visitables.get("to").add(builder); @@ -207,11 +256,13 @@ public A addToTo(int index,V1NetworkPolicyPeer item) { _visitables.get("to").add(builder); to.add(index, builder); } - return (A)this; + return (A) this; } public A setToTo(int index,V1NetworkPolicyPeer item) { - if (this.to == null) {this.to = new ArrayList();} + if (this.to == null) { + this.to = new ArrayList(); + } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= to.size()) { _visitables.get("to").add(builder); @@ -220,41 +271,71 @@ public A setToTo(int index,V1NetworkPolicyPeer item) { _visitables.get("to").add(builder); to.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.to == null) {this.to = new ArrayList();} - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").add(builder);this.to.add(builder);} return (A)this; + public A addToTo(V1NetworkPolicyPeer... items) { + if (this.to == null) { + this.to = new ArrayList(); + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").add(builder); + this.to.add(builder); + } + return (A) this; } public A addAllToTo(Collection items) { - if (this.to == null) {this.to = new ArrayList();} - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").add(builder);this.to.add(builder);} return (A)this; + if (this.to == null) { + this.to = new ArrayList(); + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").add(builder); + this.to.add(builder); + } + return (A) this; } - public A removeFromTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.to == null) return (A)this; - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").remove(builder); this.to.remove(builder);} return (A)this; + public A removeFromTo(V1NetworkPolicyPeer... items) { + if (this.to == null) { + return (A) this; + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").remove(builder); + this.to.remove(builder); + } + return (A) this; } public A removeAllFromTo(Collection items) { - if (this.to == null) return (A)this; - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").remove(builder); this.to.remove(builder);} return (A)this; + if (this.to == null) { + return (A) this; + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").remove(builder); + this.to.remove(builder); + } + return (A) this; } public A removeMatchingFromTo(Predicate predicate) { - if (to == null) return (A) this; - final Iterator each = to.iterator(); - final List visitables = _visitables.get("to"); + if (to == null) { + return (A) this; + } + Iterator each = to.iterator(); + List visitables = _visitables.get("to"); while (each.hasNext()) { - V1NetworkPolicyPeerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyPeerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTo() { @@ -306,7 +387,7 @@ public A withTo(List to) { return (A) this; } - public A withTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... to) { + public A withTo(V1NetworkPolicyPeer... to) { if (this.to != null) { this.to.clear(); _visitables.remove("to"); @@ -320,7 +401,7 @@ public A withTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... to) { } public boolean hasTo() { - return this.to != null && !this.to.isEmpty(); + return this.to != null && !(this.to.isEmpty()); } public ToNested addNewTo() { @@ -336,49 +417,77 @@ public ToNested setNewToLike(int index,V1NetworkPolicyPeer item) { } public ToNested editTo(int index) { - if (to.size() <= index) throw new RuntimeException("Can't edit to. Index exceeds size."); - return setNewToLike(index, buildTo(index)); + if (index <= to.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "to")); + } + return this.setNewToLike(index, this.buildTo(index)); } public ToNested editFirstTo() { - if (to.size() == 0) throw new RuntimeException("Can't edit first to. The list is empty."); - return setNewToLike(0, buildTo(0)); + if (to.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "to")); + } + return this.setNewToLike(0, this.buildTo(0)); } public ToNested editLastTo() { int index = to.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last to. The list is empty."); - return setNewToLike(index, buildTo(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "to")); + } + return this.setNewToLike(index, this.buildTo(index)); } public ToNested editMatchingTo(Predicate predicate) { int index = -1; - for (int i=0;i extends V1NetworkPolicyPortFluent> im int index; public N and() { - return (N) V1NetworkPolicyEgressRuleFluent.this.setToPorts(index,builder.build()); + return (N) V1NetworkPolicyEgressRuleFluent.this.setToPorts(index, builder.build()); } public N endPort() { @@ -409,7 +518,7 @@ public class ToNested extends V1NetworkPolicyPeerFluent> implemen int index; public N and() { - return (N) V1NetworkPolicyEgressRuleFluent.this.setToTo(index,builder.build()); + return (N) V1NetworkPolicyEgressRuleFluent.this.setToTo(index, builder.build()); } public N endTo() { 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 6b55c7a017..a9a1cee422 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyFluent> extends BaseFluent{ +public class V1NetworkPolicyFluent> extends BaseFluent{ public V1NetworkPolicyFluent() { } @@ -23,13 +26,13 @@ public V1NetworkPolicyFluent(V1NetworkPolicy instance) { private V1NetworkPolicySpecBuilder spec; protected void copyInstance(V1NetworkPolicy instance) { - instance = (instance != null ? instance : new V1NetworkPolicy()); + instance = instance != null ? instance : new V1NetworkPolicy(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1NetworkPolicySpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1NetworkPolicySpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1NetworkPolicySpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1NetworkPolicySpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1NetworkPolicySpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NetworkPolicyFluent that = (V1NetworkPolicyFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 fb1ef85751..c7a645b026 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyIngressRuleBuilder extends V1NetworkPolicyIngressRuleFluent implements VisitableBuilder{ public V1NetworkPolicyIngressRuleBuilder() { this(new V1NetworkPolicyIngressRule()); 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 bb412dc230..514fdbe9af 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyIngressRuleFluent> extends BaseFluent{ +public class V1NetworkPolicyIngressRuleFluent> extends BaseFluent{ public V1NetworkPolicyIngressRuleFluent() { } @@ -27,15 +29,17 @@ public V1NetworkPolicyIngressRuleFluent(V1NetworkPolicyIngressRule instance) { private ArrayList ports; protected void copyInstance(V1NetworkPolicyIngressRule instance) { - instance = (instance != null ? instance : new V1NetworkPolicyIngressRule()); + instance = instance != null ? instance : new V1NetworkPolicyIngressRule(); if (instance != null) { - this.withFrom(instance.getFrom()); - this.withPorts(instance.getPorts()); - } + this.withFrom(instance.getFrom()); + this.withPorts(instance.getPorts()); + } } public A addToFrom(int index,V1NetworkPolicyPeer item) { - if (this.from == null) {this.from = new ArrayList();} + if (this.from == null) { + this.from = new ArrayList(); + } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= from.size()) { _visitables.get("from").add(builder); @@ -44,11 +48,13 @@ public A addToFrom(int index,V1NetworkPolicyPeer item) { _visitables.get("from").add(builder); from.add(index, builder); } - return (A)this; + return (A) this; } public A setToFrom(int index,V1NetworkPolicyPeer item) { - if (this.from == null) {this.from = new ArrayList();} + if (this.from == null) { + this.from = new ArrayList(); + } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= from.size()) { _visitables.get("from").add(builder); @@ -57,41 +63,71 @@ public A setToFrom(int index,V1NetworkPolicyPeer item) { _visitables.get("from").add(builder); from.set(index, builder); } - return (A)this; + return (A) this; } - public A addToFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.from == null) {this.from = new ArrayList();} - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").add(builder);this.from.add(builder);} return (A)this; + public A addToFrom(V1NetworkPolicyPeer... items) { + if (this.from == null) { + this.from = new ArrayList(); + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").add(builder); + this.from.add(builder); + } + return (A) this; } public A addAllToFrom(Collection items) { - if (this.from == null) {this.from = new ArrayList();} - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").add(builder);this.from.add(builder);} return (A)this; + if (this.from == null) { + this.from = new ArrayList(); + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").add(builder); + this.from.add(builder); + } + return (A) this; } - public A removeFromFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.from == null) return (A)this; - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").remove(builder); this.from.remove(builder);} return (A)this; + public A removeFromFrom(V1NetworkPolicyPeer... items) { + if (this.from == null) { + return (A) this; + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").remove(builder); + this.from.remove(builder); + } + return (A) this; } public A removeAllFromFrom(Collection items) { - if (this.from == null) return (A)this; - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").remove(builder); this.from.remove(builder);} return (A)this; + if (this.from == null) { + return (A) this; + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").remove(builder); + this.from.remove(builder); + } + return (A) this; } public A removeMatchingFromFrom(Predicate predicate) { - if (from == null) return (A) this; - final Iterator each = from.iterator(); - final List visitables = _visitables.get("from"); + if (from == null) { + return (A) this; + } + Iterator each = from.iterator(); + List visitables = _visitables.get("from"); while (each.hasNext()) { - V1NetworkPolicyPeerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyPeerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildFrom() { @@ -143,7 +179,7 @@ public A withFrom(List from) { return (A) this; } - public A withFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... from) { + public A withFrom(V1NetworkPolicyPeer... from) { if (this.from != null) { this.from.clear(); _visitables.remove("from"); @@ -157,7 +193,7 @@ public A withFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... fro } public boolean hasFrom() { - return this.from != null && !this.from.isEmpty(); + return this.from != null && !(this.from.isEmpty()); } public FromNested addNewFrom() { @@ -173,32 +209,45 @@ public FromNested setNewFromLike(int index,V1NetworkPolicyPeer item) { } public FromNested editFrom(int index) { - if (from.size() <= index) throw new RuntimeException("Can't edit from. Index exceeds size."); - return setNewFromLike(index, buildFrom(index)); + if (index <= from.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "from")); + } + return this.setNewFromLike(index, this.buildFrom(index)); } public FromNested editFirstFrom() { - if (from.size() == 0) throw new RuntimeException("Can't edit first from. The list is empty."); - return setNewFromLike(0, buildFrom(0)); + if (from.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "from")); + } + return this.setNewFromLike(0, this.buildFrom(0)); } public FromNested editLastFrom() { int index = from.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last from. The list is empty."); - return setNewFromLike(index, buildFrom(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "from")); + } + return this.setNewFromLike(index, this.buildFrom(index)); } public FromNested editMatchingFrom(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -207,11 +256,13 @@ public A addToPorts(int index,V1NetworkPolicyPort item) { _visitables.get("ports").add(builder); ports.add(index, builder); } - return (A)this; + return (A) this; } public A setToPorts(int index,V1NetworkPolicyPort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -220,41 +271,71 @@ public A setToPorts(int index,V1NetworkPolicyPort item) { _visitables.get("ports").add(builder); ports.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A addToPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) return (A)this; - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeFromPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + return (A) this; + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - V1NetworkPolicyPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPorts() { @@ -306,7 +387,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports) { + public A withPorts(V1NetworkPolicyPort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -320,7 +401,7 @@ public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... po } public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + return this.ports != null && !(this.ports.isEmpty()); } public PortsNested addNewPort() { @@ -336,49 +417,77 @@ public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (index <= ports.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public PortsNested editLastPort() { int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i=0;i extends V1NetworkPolicyPeerFluent> impl int index; public N and() { - return (N) V1NetworkPolicyIngressRuleFluent.this.setToFrom(index,builder.build()); + return (N) V1NetworkPolicyIngressRuleFluent.this.setToFrom(index, builder.build()); } public N endFrom() { @@ -409,7 +518,7 @@ public class PortsNested extends V1NetworkPolicyPortFluent> im int index; public N and() { - return (N) V1NetworkPolicyIngressRuleFluent.this.setToPorts(index,builder.build()); + return (N) V1NetworkPolicyIngressRuleFluent.this.setToPorts(index, builder.build()); } public N endPort() { 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 6a9d8aa834..e7b30614de 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyListBuilder extends V1NetworkPolicyListFluent implements VisitableBuilder{ public V1NetworkPolicyListBuilder() { this(new V1NetworkPolicyList()); 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 0e35d3bed2..81c397ccd3 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyListFluent> extends BaseFluent{ +public class V1NetworkPolicyListFluent> extends BaseFluent{ public V1NetworkPolicyListFluent() { } @@ -29,13 +32,13 @@ public V1NetworkPolicyListFluent(V1NetworkPolicyList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1NetworkPolicyList instance) { - instance = (instance != null ? instance : new V1NetworkPolicyList()); + instance = instance != null ? instance : new V1NetworkPolicyList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1NetworkPolicy item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1NetworkPolicy item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1NetworkPolicy item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1NetworkPolicy item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1NetworkPolicy... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { - if (this.items == null) return (A)this; - for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1NetworkPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1NetworkPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { + public A withItems(V1NetworkPolicy... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1NetworkPolicy item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NetworkPolicyListFluent that = (V1NetworkPolicyListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1NetworkPolicyFluent> implem int index; public N and() { - return (N) V1NetworkPolicyListFluent.this.setToItems(index,builder.build()); + return (N) V1NetworkPolicyListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 d006afd5c6..d81ad3e7d7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyPeerBuilder extends V1NetworkPolicyPeerFluent implements VisitableBuilder{ public V1NetworkPolicyPeerBuilder() { this(new V1NetworkPolicyPeer()); 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 fb983d7202..365148f466 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyPeerFluent> extends BaseFluent{ +public class V1NetworkPolicyPeerFluent> extends BaseFluent{ public V1NetworkPolicyPeerFluent() { } @@ -22,12 +25,12 @@ public V1NetworkPolicyPeerFluent(V1NetworkPolicyPeer instance) { private V1LabelSelectorBuilder podSelector; protected void copyInstance(V1NetworkPolicyPeer instance) { - instance = (instance != null ? instance : new V1NetworkPolicyPeer()); + instance = instance != null ? instance : new V1NetworkPolicyPeer(); if (instance != null) { - this.withIpBlock(instance.getIpBlock()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withPodSelector(instance.getPodSelector()); - } + this.withIpBlock(instance.getIpBlock()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withPodSelector(instance.getPodSelector()); + } } public V1IPBlock buildIpBlock() { @@ -59,15 +62,15 @@ public IpBlockNested withNewIpBlockLike(V1IPBlock item) { } public IpBlockNested editIpBlock() { - return withNewIpBlockLike(java.util.Optional.ofNullable(buildIpBlock()).orElse(null)); + return this.withNewIpBlockLike(Optional.ofNullable(this.buildIpBlock()).orElse(null)); } public IpBlockNested editOrNewIpBlock() { - return withNewIpBlockLike(java.util.Optional.ofNullable(buildIpBlock()).orElse(new V1IPBlockBuilder().build())); + return this.withNewIpBlockLike(Optional.ofNullable(this.buildIpBlock()).orElse(new V1IPBlockBuilder().build())); } public IpBlockNested editOrNewIpBlockLike(V1IPBlock item) { - return withNewIpBlockLike(java.util.Optional.ofNullable(buildIpBlock()).orElse(item)); + return this.withNewIpBlockLike(Optional.ofNullable(this.buildIpBlock()).orElse(item)); } public V1LabelSelector buildNamespaceSelector() { @@ -99,15 +102,15 @@ public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector i } public NamespaceSelectorNested editNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(null)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } public V1LabelSelector buildPodSelector() { @@ -139,38 +142,61 @@ public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { } public PodSelectorNested editPodSelector() { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(null)); + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(null)); } public PodSelectorNested editOrNewPodSelector() { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); } public PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(item)); + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NetworkPolicyPeerFluent that = (V1NetworkPolicyPeerFluent) o; - if (!java.util.Objects.equals(ipBlock, that.ipBlock)) return false; - if (!java.util.Objects.equals(namespaceSelector, that.namespaceSelector)) return false; - if (!java.util.Objects.equals(podSelector, that.podSelector)) return false; + if (!(Objects.equals(ipBlock, that.ipBlock))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(podSelector, that.podSelector))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(ipBlock, namespaceSelector, podSelector, super.hashCode()); + return Objects.hash(ipBlock, namespaceSelector, podSelector); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ipBlock != null) { sb.append("ipBlock:"); sb.append(ipBlock + ","); } - if (namespaceSelector != null) { sb.append("namespaceSelector:"); sb.append(namespaceSelector + ","); } - if (podSelector != null) { sb.append("podSelector:"); sb.append(podSelector); } + if (!(ipBlock == null)) { + sb.append("ipBlock:"); + sb.append(ipBlock); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(podSelector == null)) { + sb.append("podSelector:"); + sb.append(podSelector); + } sb.append("}"); return sb.toString(); } 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 1cf86692d1..62db5ad13f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyPortBuilder extends V1NetworkPolicyPortFluent implements VisitableBuilder{ public V1NetworkPolicyPortBuilder() { this(new V1NetworkPolicyPort()); 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 9ddfbc3a83..02e93c71d6 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyPortFluent> extends BaseFluent{ +public class V1NetworkPolicyPortFluent> extends BaseFluent{ public V1NetworkPolicyPortFluent() { } @@ -23,12 +25,12 @@ public V1NetworkPolicyPortFluent(V1NetworkPolicyPort instance) { private String protocol; protected void copyInstance(V1NetworkPolicyPort instance) { - instance = (instance != null ? instance : new V1NetworkPolicyPort()); + instance = instance != null ? instance : new V1NetworkPolicyPort(); if (instance != null) { - this.withEndPort(instance.getEndPort()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } + this.withEndPort(instance.getEndPort()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } public Integer getEndPort() { @@ -58,11 +60,11 @@ public boolean hasPort() { } public A withNewPort(int value) { - return (A)withPort(new IntOrString(value)); + return (A) this.withPort(new IntOrString(value)); } public A withNewPort(String value) { - return (A)withPort(new IntOrString(value)); + return (A) this.withPort(new IntOrString(value)); } public String getProtocol() { @@ -79,26 +81,49 @@ public boolean hasProtocol() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NetworkPolicyPortFluent that = (V1NetworkPolicyPortFluent) o; - if (!java.util.Objects.equals(endPort, that.endPort)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; + if (!(Objects.equals(endPort, that.endPort))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(endPort, port, protocol, super.hashCode()); + return Objects.hash(endPort, port, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (endPort != null) { sb.append("endPort:"); sb.append(endPort + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(endPort == null)) { + sb.append("endPort:"); + sb.append(endPort); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } 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 606047d3cf..34e84fed56 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicySpecBuilder extends V1NetworkPolicySpecFluent implements VisitableBuilder{ public V1NetworkPolicySpecBuilder() { this(new V1NetworkPolicySpec()); 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 313a84ecc5..c6a07b07d6 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicySpecFluent> extends BaseFluent{ +public class V1NetworkPolicySpecFluent> extends BaseFluent{ public V1NetworkPolicySpecFluent() { } @@ -29,17 +32,19 @@ public V1NetworkPolicySpecFluent(V1NetworkPolicySpec instance) { private List policyTypes; protected void copyInstance(V1NetworkPolicySpec instance) { - instance = (instance != null ? instance : new V1NetworkPolicySpec()); + instance = instance != null ? instance : new V1NetworkPolicySpec(); if (instance != null) { - this.withEgress(instance.getEgress()); - this.withIngress(instance.getIngress()); - this.withPodSelector(instance.getPodSelector()); - this.withPolicyTypes(instance.getPolicyTypes()); - } + this.withEgress(instance.getEgress()); + this.withIngress(instance.getIngress()); + this.withPodSelector(instance.getPodSelector()); + this.withPolicyTypes(instance.getPolicyTypes()); + } } public A addToEgress(int index,V1NetworkPolicyEgressRule item) { - if (this.egress == null) {this.egress = new ArrayList();} + if (this.egress == null) { + this.egress = new ArrayList(); + } V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); if (index < 0 || index >= egress.size()) { _visitables.get("egress").add(builder); @@ -48,11 +53,13 @@ public A addToEgress(int index,V1NetworkPolicyEgressRule item) { _visitables.get("egress").add(builder); egress.add(index, builder); } - return (A)this; + return (A) this; } public A setToEgress(int index,V1NetworkPolicyEgressRule item) { - if (this.egress == null) {this.egress = new ArrayList();} + if (this.egress == null) { + this.egress = new ArrayList(); + } V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); if (index < 0 || index >= egress.size()) { _visitables.get("egress").add(builder); @@ -61,41 +68,71 @@ public A setToEgress(int index,V1NetworkPolicyEgressRule item) { _visitables.get("egress").add(builder); egress.set(index, builder); } - return (A)this; + return (A) this; } - public A addToEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) { - if (this.egress == null) {this.egress = new ArrayList();} - for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").add(builder);this.egress.add(builder);} return (A)this; + public A addToEgress(V1NetworkPolicyEgressRule... items) { + if (this.egress == null) { + this.egress = new ArrayList(); + } + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").add(builder); + this.egress.add(builder); + } + return (A) this; } public A addAllToEgress(Collection items) { - if (this.egress == null) {this.egress = new ArrayList();} - for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").add(builder);this.egress.add(builder);} return (A)this; + if (this.egress == null) { + this.egress = new ArrayList(); + } + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").add(builder); + this.egress.add(builder); + } + return (A) this; } - public A removeFromEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) { - if (this.egress == null) return (A)this; - for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").remove(builder); this.egress.remove(builder);} return (A)this; + public A removeFromEgress(V1NetworkPolicyEgressRule... items) { + if (this.egress == null) { + return (A) this; + } + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").remove(builder); + this.egress.remove(builder); + } + return (A) this; } public A removeAllFromEgress(Collection items) { - if (this.egress == null) return (A)this; - for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").remove(builder); this.egress.remove(builder);} return (A)this; + if (this.egress == null) { + return (A) this; + } + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").remove(builder); + this.egress.remove(builder); + } + return (A) this; } public A removeMatchingFromEgress(Predicate predicate) { - if (egress == null) return (A) this; - final Iterator each = egress.iterator(); - final List visitables = _visitables.get("egress"); + if (egress == null) { + return (A) this; + } + Iterator each = egress.iterator(); + List visitables = _visitables.get("egress"); while (each.hasNext()) { - V1NetworkPolicyEgressRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyEgressRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildEgress() { @@ -147,7 +184,7 @@ public A withEgress(List egress) { return (A) this; } - public A withEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... egress) { + public A withEgress(V1NetworkPolicyEgressRule... egress) { if (this.egress != null) { this.egress.clear(); _visitables.remove("egress"); @@ -161,7 +198,7 @@ public A withEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRul } public boolean hasEgress() { - return this.egress != null && !this.egress.isEmpty(); + return this.egress != null && !(this.egress.isEmpty()); } public EgressNested addNewEgress() { @@ -177,32 +214,45 @@ public EgressNested setNewEgressLike(int index,V1NetworkPolicyEgressRule item } public EgressNested editEgress(int index) { - if (egress.size() <= index) throw new RuntimeException("Can't edit egress. Index exceeds size."); - return setNewEgressLike(index, buildEgress(index)); + if (index <= egress.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "egress")); + } + return this.setNewEgressLike(index, this.buildEgress(index)); } public EgressNested editFirstEgress() { - if (egress.size() == 0) throw new RuntimeException("Can't edit first egress. The list is empty."); - return setNewEgressLike(0, buildEgress(0)); + if (egress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "egress")); + } + return this.setNewEgressLike(0, this.buildEgress(0)); } public EgressNested editLastEgress() { int index = egress.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last egress. The list is empty."); - return setNewEgressLike(index, buildEgress(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "egress")); + } + return this.setNewEgressLike(index, this.buildEgress(index)); } public EgressNested editMatchingEgress(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.ingress == null) { + this.ingress = new ArrayList(); + } V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); @@ -211,11 +261,13 @@ public A addToIngress(int index,V1NetworkPolicyIngressRule item) { _visitables.get("ingress").add(builder); ingress.add(index, builder); } - return (A)this; + return (A) this; } public A setToIngress(int index,V1NetworkPolicyIngressRule item) { - if (this.ingress == null) {this.ingress = new ArrayList();} + if (this.ingress == null) { + this.ingress = new ArrayList(); + } V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); @@ -224,41 +276,71 @@ public A setToIngress(int index,V1NetworkPolicyIngressRule item) { _visitables.get("ingress").add(builder); ingress.set(index, builder); } - return (A)this; + return (A) this; } - public A addToIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + public A addToIngress(V1NetworkPolicyIngressRule... items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } public A addAllToIngress(Collection items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } - public A removeFromIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) { - if (this.ingress == null) return (A)this; - for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + public A removeFromIngress(V1NetworkPolicyIngressRule... items) { + if (this.ingress == null) { + return (A) this; + } + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; } public A removeAllFromIngress(Collection items) { - if (this.ingress == null) return (A)this; - for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + if (this.ingress == null) { + return (A) this; + } + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; } public A removeMatchingFromIngress(Predicate predicate) { - if (ingress == null) return (A) this; - final Iterator each = ingress.iterator(); - final List visitables = _visitables.get("ingress"); + if (ingress == null) { + return (A) this; + } + Iterator each = ingress.iterator(); + List visitables = _visitables.get("ingress"); while (each.hasNext()) { - V1NetworkPolicyIngressRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyIngressRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildIngress() { @@ -310,7 +392,7 @@ public A withIngress(List ingress) { return (A) this; } - public A withIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... ingress) { + public A withIngress(V1NetworkPolicyIngressRule... ingress) { if (this.ingress != null) { this.ingress.clear(); _visitables.remove("ingress"); @@ -324,7 +406,7 @@ public A withIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressR } public boolean hasIngress() { - return this.ingress != null && !this.ingress.isEmpty(); + return this.ingress != null && !(this.ingress.isEmpty()); } public IngressNested addNewIngress() { @@ -340,28 +422,39 @@ public IngressNested setNewIngressLike(int index,V1NetworkPolicyIngressRule i } public IngressNested editIngress(int index) { - if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); - return setNewIngressLike(index, buildIngress(index)); + if (index <= ingress.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); } public IngressNested editFirstIngress() { - if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); - return setNewIngressLike(0, buildIngress(0)); + if (ingress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(0, this.buildIngress(0)); } public IngressNested editLastIngress() { int index = ingress.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ingress. The list is empty."); - return setNewIngressLike(index, buildIngress(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); } public IngressNested editMatchingIngress(Predicate predicate) { int index = -1; - for (int i=0;i withNewPodSelectorLike(V1LabelSelector item) { } public PodSelectorNested editPodSelector() { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(null)); + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(null)); } public PodSelectorNested editOrNewPodSelector() { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); } public PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(item)); + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(item)); } public A addToPolicyTypes(int index,String item) { - if (this.policyTypes == null) {this.policyTypes = new ArrayList();} + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); + } this.policyTypes.add(index, item); - return (A)this; + return (A) this; } public A setToPolicyTypes(int index,String item) { - if (this.policyTypes == null) {this.policyTypes = new ArrayList();} - this.policyTypes.set(index, item); return (A)this; + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); + } + this.policyTypes.set(index, item); + return (A) this; } - public A addToPolicyTypes(java.lang.String... items) { - if (this.policyTypes == null) {this.policyTypes = new ArrayList();} - for (String item : items) {this.policyTypes.add(item);} return (A)this; + public A addToPolicyTypes(String... items) { + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); + } + for (String item : items) { + this.policyTypes.add(item); + } + return (A) this; } public A addAllToPolicyTypes(Collection items) { - if (this.policyTypes == null) {this.policyTypes = new ArrayList();} - for (String item : items) {this.policyTypes.add(item);} return (A)this; + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); + } + for (String item : items) { + this.policyTypes.add(item); + } + return (A) this; } - public A removeFromPolicyTypes(java.lang.String... items) { - if (this.policyTypes == null) return (A)this; - for (String item : items) { this.policyTypes.remove(item);} return (A)this; + public A removeFromPolicyTypes(String... items) { + if (this.policyTypes == null) { + return (A) this; + } + for (String item : items) { + this.policyTypes.remove(item); + } + return (A) this; } public A removeAllFromPolicyTypes(Collection items) { - if (this.policyTypes == null) return (A)this; - for (String item : items) { this.policyTypes.remove(item);} return (A)this; + if (this.policyTypes == null) { + return (A) this; + } + for (String item : items) { + this.policyTypes.remove(item); + } + return (A) this; } public List getPolicyTypes() { @@ -481,7 +599,7 @@ public A withPolicyTypes(List policyTypes) { return (A) this; } - public A withPolicyTypes(java.lang.String... policyTypes) { + public A withPolicyTypes(String... policyTypes) { if (this.policyTypes != null) { this.policyTypes.clear(); _visitables.remove("policyTypes"); @@ -495,32 +613,61 @@ public A withPolicyTypes(java.lang.String... policyTypes) { } public boolean hasPolicyTypes() { - return this.policyTypes != null && !this.policyTypes.isEmpty(); + return this.policyTypes != null && !(this.policyTypes.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NetworkPolicySpecFluent that = (V1NetworkPolicySpecFluent) o; - if (!java.util.Objects.equals(egress, that.egress)) return false; - if (!java.util.Objects.equals(ingress, that.ingress)) return false; - if (!java.util.Objects.equals(podSelector, that.podSelector)) return false; - if (!java.util.Objects.equals(policyTypes, that.policyTypes)) return false; + if (!(Objects.equals(egress, that.egress))) { + return false; + } + if (!(Objects.equals(ingress, that.ingress))) { + return false; + } + if (!(Objects.equals(podSelector, that.podSelector))) { + return false; + } + if (!(Objects.equals(policyTypes, that.policyTypes))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(egress, ingress, podSelector, policyTypes, super.hashCode()); + return Objects.hash(egress, ingress, podSelector, policyTypes); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (egress != null && !egress.isEmpty()) { sb.append("egress:"); sb.append(egress + ","); } - if (ingress != null && !ingress.isEmpty()) { sb.append("ingress:"); sb.append(ingress + ","); } - if (podSelector != null) { sb.append("podSelector:"); sb.append(podSelector + ","); } - if (policyTypes != null && !policyTypes.isEmpty()) { sb.append("policyTypes:"); sb.append(policyTypes); } + if (!(egress == null) && !(egress.isEmpty())) { + sb.append("egress:"); + sb.append(egress); + sb.append(","); + } + if (!(ingress == null) && !(ingress.isEmpty())) { + sb.append("ingress:"); + sb.append(ingress); + sb.append(","); + } + if (!(podSelector == null)) { + sb.append("podSelector:"); + sb.append(podSelector); + sb.append(","); + } + if (!(policyTypes == null) && !(policyTypes.isEmpty())) { + sb.append("policyTypes:"); + sb.append(policyTypes); + } sb.append("}"); return sb.toString(); } @@ -533,7 +680,7 @@ public class EgressNested extends V1NetworkPolicyEgressRuleFluent extends V1NetworkPolicyIngressRuleFluent implements VisitableBuilder{ public V1NodeAddressBuilder() { this(new V1NodeAddress()); 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 63710862b3..86e1502fb3 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NodeAddressFluent> extends BaseFluent{ +public class V1NodeAddressFluent> extends BaseFluent{ public V1NodeAddressFluent() { } @@ -20,11 +22,11 @@ public V1NodeAddressFluent(V1NodeAddress instance) { private String type; protected void copyInstance(V1NodeAddress instance) { - instance = (instance != null ? instance : new V1NodeAddress()); + instance = instance != null ? instance : new V1NodeAddress(); if (instance != null) { - this.withAddress(instance.getAddress()); - this.withType(instance.getType()); - } + this.withAddress(instance.getAddress()); + this.withType(instance.getType()); + } } public String getAddress() { @@ -54,24 +56,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeAddressFluent that = (V1NodeAddressFluent) o; - if (!java.util.Objects.equals(address, that.address)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(address, that.address))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(address, type, super.hashCode()); + return Objects.hash(address, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (address != null) { sb.append("address:"); sb.append(address + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(address == null)) { + sb.append("address:"); + sb.append(address); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 13f9d4aaeb..688cca382c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeAffinityBuilder extends V1NodeAffinityFluent implements VisitableBuilder{ public V1NodeAffinityBuilder() { this(new V1NodeAffinity()); 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 30c16ca41e..b5f475d2cd 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeAffinityFluent> extends BaseFluent{ +public class V1NodeAffinityFluent> extends BaseFluent{ public V1NodeAffinityFluent() { } @@ -27,15 +30,17 @@ public V1NodeAffinityFluent(V1NodeAffinity instance) { private V1NodeSelectorBuilder requiredDuringSchedulingIgnoredDuringExecution; protected void copyInstance(V1NodeAffinity instance) { - instance = (instance != null ? instance : new V1NodeAffinity()); + instance = instance != null ? instance : new V1NodeAffinity(); if (instance != null) { - this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); + } } public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -44,11 +49,13 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Prefer _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } - return (A)this; + return (A) this; } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -57,41 +64,71 @@ public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Prefer _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + if (preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - V1PreferredSchedulingTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PreferredSchedulingTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPreferredDuringSchedulingIgnoredDuringExecution() { @@ -143,7 +180,7 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution(List addNewPreferredDuringSchedulingIgnoredDuringExecution() { @@ -173,28 +210,39 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredD } public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { - if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (index <= preferredDuringSchedulingIgnoredDuringExecution.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { - if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i=0;i withNewRequiredDu } public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution() { - return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(java.util.Optional.ofNullable(buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(null)); + return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(null)); } public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecution() { - return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(java.util.Optional.ofNullable(buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(new V1NodeSelectorBuilder().build())); + return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(new V1NodeSelectorBuilder().build())); } public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { - return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(java.util.Optional.ofNullable(buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(item)); + return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeAffinityFluent that = (V1NodeAffinityFluent) o; - if (!java.util.Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution)) return false; - if (!java.util.Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution)) return false; + if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + if (!(Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution, super.hashCode()); + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (preferredDuringSchedulingIgnoredDuringExecution != null && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty()) { sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); sb.append(preferredDuringSchedulingIgnoredDuringExecution + ","); } - if (requiredDuringSchedulingIgnoredDuringExecution != null) { sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); sb.append(requiredDuringSchedulingIgnoredDuringExecution); } + if (!(preferredDuringSchedulingIgnoredDuringExecution == null) && !(preferredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); + sb.append(preferredDuringSchedulingIgnoredDuringExecution); + sb.append(","); + } + if (!(requiredDuringSchedulingIgnoredDuringExecution == null)) { + sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); + sb.append(requiredDuringSchedulingIgnoredDuringExecution); + } sb.append("}"); return sb.toString(); } @@ -268,7 +333,7 @@ public class PreferredDuringSchedulingIgnoredDuringExecutionNested extends V1 int index; public N and() { - return (N) V1NodeAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1NodeAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endPreferredDuringSchedulingIgnoredDuringExecution() { 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 e3df806dc0..f03d4c0f7c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeBuilder extends V1NodeFluent implements VisitableBuilder{ public V1NodeBuilder() { this(new V1Node()); 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 88454e9e66..4b9b5a457c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeConditionBuilder extends V1NodeConditionFluent implements VisitableBuilder{ public V1NodeConditionBuilder() { this(new V1NodeCondition()); 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 6cc7d33f41..bc00ac4bfb 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NodeConditionFluent> extends BaseFluent{ +public class V1NodeConditionFluent> extends BaseFluent{ public V1NodeConditionFluent() { } @@ -25,15 +27,15 @@ public V1NodeConditionFluent(V1NodeCondition instance) { private String type; protected void copyInstance(V1NodeCondition instance) { - instance = (instance != null ? instance : new V1NodeCondition()); + instance = instance != null ? instance : new V1NodeCondition(); if (instance != null) { - this.withLastHeartbeatTime(instance.getLastHeartbeatTime()); - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastHeartbeatTime(instance.getLastHeartbeatTime()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastHeartbeatTime() { @@ -115,32 +117,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeConditionFluent that = (V1NodeConditionFluent) o; - if (!java.util.Objects.equals(lastHeartbeatTime, that.lastHeartbeatTime)) return false; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(lastHeartbeatTime, that.lastHeartbeatTime))) { + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastHeartbeatTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastHeartbeatTime, lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastHeartbeatTime != null) { sb.append("lastHeartbeatTime:"); sb.append(lastHeartbeatTime + ","); } - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(lastHeartbeatTime == null)) { + sb.append("lastHeartbeatTime:"); + sb.append(lastHeartbeatTime); + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 fe38f8407b..46e1b1fd8e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeConfigSourceBuilder extends V1NodeConfigSourceFluent implements VisitableBuilder{ public V1NodeConfigSourceBuilder() { this(new V1NodeConfigSource()); 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 8375836170..99a5a69c9f 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeConfigSourceFluent> extends BaseFluent{ +public class V1NodeConfigSourceFluent> extends BaseFluent{ public V1NodeConfigSourceFluent() { } @@ -20,10 +23,10 @@ public V1NodeConfigSourceFluent(V1NodeConfigSource instance) { private V1ConfigMapNodeConfigSourceBuilder configMap; protected void copyInstance(V1NodeConfigSource instance) { - instance = (instance != null ? instance : new V1NodeConfigSource()); + instance = instance != null ? instance : new V1NodeConfigSource(); if (instance != null) { - this.withConfigMap(instance.getConfigMap()); - } + this.withConfigMap(instance.getConfigMap()); + } } public V1ConfigMapNodeConfigSource buildConfigMap() { @@ -55,34 +58,45 @@ public ConfigMapNested withNewConfigMapLike(V1ConfigMapNodeConfigSource item) } public ConfigMapNested editConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(null)); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); } public ConfigMapNested editOrNewConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(new V1ConfigMapNodeConfigSourceBuilder().build())); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(new V1ConfigMapNodeConfigSourceBuilder().build())); } public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapNodeConfigSource item) { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(item)); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeConfigSourceFluent that = (V1NodeConfigSourceFluent) o; - if (!java.util.Objects.equals(configMap, that.configMap)) return false; + if (!(Objects.equals(configMap, that.configMap))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(configMap, super.hashCode()); + return Objects.hash(configMap); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (configMap != null) { sb.append("configMap:"); sb.append(configMap); } + if (!(configMap == null)) { + sb.append("configMap:"); + sb.append(configMap); + } sb.append("}"); return sb.toString(); } 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 0d14d091da..028ee96a27 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeConfigStatusBuilder extends V1NodeConfigStatusFluent implements VisitableBuilder{ public V1NodeConfigStatusBuilder() { this(new V1NodeConfigStatus()); 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 2cac576d5f..f27c358ef1 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeConfigStatusFluent> extends BaseFluent{ +public class V1NodeConfigStatusFluent> extends BaseFluent{ public V1NodeConfigStatusFluent() { } @@ -23,13 +26,13 @@ public V1NodeConfigStatusFluent(V1NodeConfigStatus instance) { private V1NodeConfigSourceBuilder lastKnownGood; protected void copyInstance(V1NodeConfigStatus instance) { - instance = (instance != null ? instance : new V1NodeConfigStatus()); + instance = instance != null ? instance : new V1NodeConfigStatus(); if (instance != null) { - this.withActive(instance.getActive()); - this.withAssigned(instance.getAssigned()); - this.withError(instance.getError()); - this.withLastKnownGood(instance.getLastKnownGood()); - } + this.withActive(instance.getActive()); + this.withAssigned(instance.getAssigned()); + this.withError(instance.getError()); + this.withLastKnownGood(instance.getLastKnownGood()); + } } public V1NodeConfigSource buildActive() { @@ -61,15 +64,15 @@ public ActiveNested withNewActiveLike(V1NodeConfigSource item) { } public ActiveNested editActive() { - return withNewActiveLike(java.util.Optional.ofNullable(buildActive()).orElse(null)); + return this.withNewActiveLike(Optional.ofNullable(this.buildActive()).orElse(null)); } public ActiveNested editOrNewActive() { - return withNewActiveLike(java.util.Optional.ofNullable(buildActive()).orElse(new V1NodeConfigSourceBuilder().build())); + return this.withNewActiveLike(Optional.ofNullable(this.buildActive()).orElse(new V1NodeConfigSourceBuilder().build())); } public ActiveNested editOrNewActiveLike(V1NodeConfigSource item) { - return withNewActiveLike(java.util.Optional.ofNullable(buildActive()).orElse(item)); + return this.withNewActiveLike(Optional.ofNullable(this.buildActive()).orElse(item)); } public V1NodeConfigSource buildAssigned() { @@ -101,15 +104,15 @@ public AssignedNested withNewAssignedLike(V1NodeConfigSource item) { } public AssignedNested editAssigned() { - return withNewAssignedLike(java.util.Optional.ofNullable(buildAssigned()).orElse(null)); + return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(null)); } public AssignedNested editOrNewAssigned() { - return withNewAssignedLike(java.util.Optional.ofNullable(buildAssigned()).orElse(new V1NodeConfigSourceBuilder().build())); + return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(new V1NodeConfigSourceBuilder().build())); } public AssignedNested editOrNewAssignedLike(V1NodeConfigSource item) { - return withNewAssignedLike(java.util.Optional.ofNullable(buildAssigned()).orElse(item)); + return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(item)); } public String getError() { @@ -154,40 +157,69 @@ public LastKnownGoodNested withNewLastKnownGoodLike(V1NodeConfigSource item) } public LastKnownGoodNested editLastKnownGood() { - return withNewLastKnownGoodLike(java.util.Optional.ofNullable(buildLastKnownGood()).orElse(null)); + return this.withNewLastKnownGoodLike(Optional.ofNullable(this.buildLastKnownGood()).orElse(null)); } public LastKnownGoodNested editOrNewLastKnownGood() { - return withNewLastKnownGoodLike(java.util.Optional.ofNullable(buildLastKnownGood()).orElse(new V1NodeConfigSourceBuilder().build())); + return this.withNewLastKnownGoodLike(Optional.ofNullable(this.buildLastKnownGood()).orElse(new V1NodeConfigSourceBuilder().build())); } public LastKnownGoodNested editOrNewLastKnownGoodLike(V1NodeConfigSource item) { - return withNewLastKnownGoodLike(java.util.Optional.ofNullable(buildLastKnownGood()).orElse(item)); + return this.withNewLastKnownGoodLike(Optional.ofNullable(this.buildLastKnownGood()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeConfigStatusFluent that = (V1NodeConfigStatusFluent) o; - if (!java.util.Objects.equals(active, that.active)) return false; - if (!java.util.Objects.equals(assigned, that.assigned)) return false; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(lastKnownGood, that.lastKnownGood)) return false; + if (!(Objects.equals(active, that.active))) { + return false; + } + if (!(Objects.equals(assigned, that.assigned))) { + return false; + } + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(lastKnownGood, that.lastKnownGood))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(active, assigned, error, lastKnownGood, super.hashCode()); + return Objects.hash(active, assigned, error, lastKnownGood); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (active != null) { sb.append("active:"); sb.append(active + ","); } - if (assigned != null) { sb.append("assigned:"); sb.append(assigned + ","); } - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (lastKnownGood != null) { sb.append("lastKnownGood:"); sb.append(lastKnownGood); } + if (!(active == null)) { + sb.append("active:"); + sb.append(active); + sb.append(","); + } + if (!(assigned == null)) { + sb.append("assigned:"); + sb.append(assigned); + sb.append(","); + } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(lastKnownGood == null)) { + sb.append("lastKnownGood:"); + sb.append(lastKnownGood); + } sb.append("}"); return sb.toString(); } 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 2ce9e7fc27..b49d67abd5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeDaemonEndpointsBuilder extends V1NodeDaemonEndpointsFluent implements VisitableBuilder{ public V1NodeDaemonEndpointsBuilder() { this(new V1NodeDaemonEndpoints()); 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 a71f7e4a4b..36b4b5ab9e 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeDaemonEndpointsFluent> extends BaseFluent{ +public class V1NodeDaemonEndpointsFluent> extends BaseFluent{ public V1NodeDaemonEndpointsFluent() { } @@ -20,10 +23,10 @@ public V1NodeDaemonEndpointsFluent(V1NodeDaemonEndpoints instance) { private V1DaemonEndpointBuilder kubeletEndpoint; protected void copyInstance(V1NodeDaemonEndpoints instance) { - instance = (instance != null ? instance : new V1NodeDaemonEndpoints()); + instance = instance != null ? instance : new V1NodeDaemonEndpoints(); if (instance != null) { - this.withKubeletEndpoint(instance.getKubeletEndpoint()); - } + this.withKubeletEndpoint(instance.getKubeletEndpoint()); + } } public V1DaemonEndpoint buildKubeletEndpoint() { @@ -55,34 +58,45 @@ public KubeletEndpointNested withNewKubeletEndpointLike(V1DaemonEndpoint item } public KubeletEndpointNested editKubeletEndpoint() { - return withNewKubeletEndpointLike(java.util.Optional.ofNullable(buildKubeletEndpoint()).orElse(null)); + return this.withNewKubeletEndpointLike(Optional.ofNullable(this.buildKubeletEndpoint()).orElse(null)); } public KubeletEndpointNested editOrNewKubeletEndpoint() { - return withNewKubeletEndpointLike(java.util.Optional.ofNullable(buildKubeletEndpoint()).orElse(new V1DaemonEndpointBuilder().build())); + return this.withNewKubeletEndpointLike(Optional.ofNullable(this.buildKubeletEndpoint()).orElse(new V1DaemonEndpointBuilder().build())); } public KubeletEndpointNested editOrNewKubeletEndpointLike(V1DaemonEndpoint item) { - return withNewKubeletEndpointLike(java.util.Optional.ofNullable(buildKubeletEndpoint()).orElse(item)); + return this.withNewKubeletEndpointLike(Optional.ofNullable(this.buildKubeletEndpoint()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeDaemonEndpointsFluent that = (V1NodeDaemonEndpointsFluent) o; - if (!java.util.Objects.equals(kubeletEndpoint, that.kubeletEndpoint)) return false; + if (!(Objects.equals(kubeletEndpoint, that.kubeletEndpoint))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(kubeletEndpoint, super.hashCode()); + return Objects.hash(kubeletEndpoint); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (kubeletEndpoint != null) { sb.append("kubeletEndpoint:"); sb.append(kubeletEndpoint); } + if (!(kubeletEndpoint == null)) { + sb.append("kubeletEndpoint:"); + sb.append(kubeletEndpoint); + } sb.append("}"); return sb.toString(); } 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 a15a12aa6c..235307006f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeFeaturesBuilder extends V1NodeFeaturesFluent implements VisitableBuilder{ public V1NodeFeaturesBuilder() { this(new V1NodeFeatures()); 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 fcf4992e62..0e12b47b5e 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NodeFeaturesFluent> extends BaseFluent{ +public class V1NodeFeaturesFluent> extends BaseFluent{ public V1NodeFeaturesFluent() { } @@ -20,10 +22,10 @@ public V1NodeFeaturesFluent(V1NodeFeatures instance) { private Boolean supplementalGroupsPolicy; protected void copyInstance(V1NodeFeatures instance) { - instance = (instance != null ? instance : new V1NodeFeatures()); + instance = instance != null ? instance : new V1NodeFeatures(); if (instance != null) { - this.withSupplementalGroupsPolicy(instance.getSupplementalGroupsPolicy()); - } + this.withSupplementalGroupsPolicy(instance.getSupplementalGroupsPolicy()); + } } public Boolean getSupplementalGroupsPolicy() { @@ -40,22 +42,33 @@ public boolean hasSupplementalGroupsPolicy() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeFeaturesFluent that = (V1NodeFeaturesFluent) o; - if (!java.util.Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy)) return false; + if (!(Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(supplementalGroupsPolicy, super.hashCode()); + return Objects.hash(supplementalGroupsPolicy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (supplementalGroupsPolicy != null) { sb.append("supplementalGroupsPolicy:"); sb.append(supplementalGroupsPolicy); } + if (!(supplementalGroupsPolicy == null)) { + sb.append("supplementalGroupsPolicy:"); + sb.append(supplementalGroupsPolicy); + } sb.append("}"); return sb.toString(); } 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 7f9e472d41..c9f354f7ea 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeFluent> extends BaseFluent{ +public class V1NodeFluent> extends BaseFluent{ public V1NodeFluent() { } @@ -24,14 +27,14 @@ public V1NodeFluent(V1Node instance) { private V1NodeStatusBuilder status; protected void copyInstance(V1Node instance) { - instance = (instance != null ? instance : new V1Node()); + instance = instance != null ? instance : new V1Node(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1NodeSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1NodeSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1NodeSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1NodeSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1NodeSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1NodeStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1NodeStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1NodeStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1NodeStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1NodeStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeFluent that = (V1NodeFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 57d4af176c..28598868b2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeListBuilder extends V1NodeListFluent implements VisitableBuilder{ public V1NodeListBuilder() { this(new V1NodeList()); 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 1f57bd9d23..76cb116f42 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeListFluent> extends BaseFluent{ +public class V1NodeListFluent> extends BaseFluent{ public V1NodeListFluent() { } @@ -29,13 +32,13 @@ public V1NodeListFluent(V1NodeList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1NodeList instance) { - instance = (instance != null ? instance : new V1NodeList()); + instance = instance != null ? instance : new V1NodeList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Node item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1NodeBuilder builder = new V1NodeBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Node item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Node item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1NodeBuilder builder = new V1NodeBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Node item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Node... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Node... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Node... items) { - if (this.items == null) return (A)this; - for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Node... items) { + if (this.items == null) { + return (A) this; + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1NodeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Node... items) { + public A withItems(V1Node... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Node... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Node item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeListFluent that = (V1NodeListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1NodeFluent> implements Nest int index; public N and() { - return (N) V1NodeListFluent.this.setToItems(index,builder.build()); + return (N) V1NodeListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 333cb9ff0a..2d787f46c7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeRuntimeHandlerBuilder extends V1NodeRuntimeHandlerFluent implements VisitableBuilder{ public V1NodeRuntimeHandlerBuilder() { this(new V1NodeRuntimeHandler()); 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 12d9d75401..7d3a723070 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeRuntimeHandlerFeaturesBuilder extends V1NodeRuntimeHandlerFeaturesFluent implements VisitableBuilder{ public V1NodeRuntimeHandlerFeaturesBuilder() { this(new V1NodeRuntimeHandlerFeatures()); 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 cd39a00aab..e74e5a268e 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NodeRuntimeHandlerFeaturesFluent> extends BaseFluent{ +public class V1NodeRuntimeHandlerFeaturesFluent> extends BaseFluent{ public V1NodeRuntimeHandlerFeaturesFluent() { } @@ -21,11 +23,11 @@ public V1NodeRuntimeHandlerFeaturesFluent(V1NodeRuntimeHandlerFeatures instance) private Boolean userNamespaces; protected void copyInstance(V1NodeRuntimeHandlerFeatures instance) { - instance = (instance != null ? instance : new V1NodeRuntimeHandlerFeatures()); + instance = instance != null ? instance : new V1NodeRuntimeHandlerFeatures(); if (instance != null) { - this.withRecursiveReadOnlyMounts(instance.getRecursiveReadOnlyMounts()); - this.withUserNamespaces(instance.getUserNamespaces()); - } + this.withRecursiveReadOnlyMounts(instance.getRecursiveReadOnlyMounts()); + this.withUserNamespaces(instance.getUserNamespaces()); + } } public Boolean getRecursiveReadOnlyMounts() { @@ -55,24 +57,41 @@ public boolean hasUserNamespaces() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeRuntimeHandlerFeaturesFluent that = (V1NodeRuntimeHandlerFeaturesFluent) o; - if (!java.util.Objects.equals(recursiveReadOnlyMounts, that.recursiveReadOnlyMounts)) return false; - if (!java.util.Objects.equals(userNamespaces, that.userNamespaces)) return false; + if (!(Objects.equals(recursiveReadOnlyMounts, that.recursiveReadOnlyMounts))) { + return false; + } + if (!(Objects.equals(userNamespaces, that.userNamespaces))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(recursiveReadOnlyMounts, userNamespaces, super.hashCode()); + return Objects.hash(recursiveReadOnlyMounts, userNamespaces); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (recursiveReadOnlyMounts != null) { sb.append("recursiveReadOnlyMounts:"); sb.append(recursiveReadOnlyMounts + ","); } - if (userNamespaces != null) { sb.append("userNamespaces:"); sb.append(userNamespaces); } + if (!(recursiveReadOnlyMounts == null)) { + sb.append("recursiveReadOnlyMounts:"); + sb.append(recursiveReadOnlyMounts); + sb.append(","); + } + if (!(userNamespaces == null)) { + sb.append("userNamespaces:"); + sb.append(userNamespaces); + } sb.append("}"); return sb.toString(); } 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 5fd2d64b3e..1d8709cd2e 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeRuntimeHandlerFluent> extends BaseFluent{ +public class V1NodeRuntimeHandlerFluent> extends BaseFluent{ public V1NodeRuntimeHandlerFluent() { } @@ -21,11 +24,11 @@ public V1NodeRuntimeHandlerFluent(V1NodeRuntimeHandler instance) { private String name; protected void copyInstance(V1NodeRuntimeHandler instance) { - instance = (instance != null ? instance : new V1NodeRuntimeHandler()); + instance = instance != null ? instance : new V1NodeRuntimeHandler(); if (instance != null) { - this.withFeatures(instance.getFeatures()); - this.withName(instance.getName()); - } + this.withFeatures(instance.getFeatures()); + this.withName(instance.getName()); + } } public V1NodeRuntimeHandlerFeatures buildFeatures() { @@ -57,15 +60,15 @@ public FeaturesNested withNewFeaturesLike(V1NodeRuntimeHandlerFeatures item) } public FeaturesNested editFeatures() { - return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(null)); + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(null)); } public FeaturesNested editOrNewFeatures() { - return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(new V1NodeRuntimeHandlerFeaturesBuilder().build())); + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(new V1NodeRuntimeHandlerFeaturesBuilder().build())); } public FeaturesNested editOrNewFeaturesLike(V1NodeRuntimeHandlerFeatures item) { - return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(item)); + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(item)); } public String getName() { @@ -82,24 +85,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeRuntimeHandlerFluent that = (V1NodeRuntimeHandlerFluent) o; - if (!java.util.Objects.equals(features, that.features)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(features, that.features))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(features, name, super.hashCode()); + return Objects.hash(features, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (features != null) { sb.append("features:"); sb.append(features + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(features == null)) { + sb.append("features:"); + sb.append(features); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 2395959cca..d13aeb0a81 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeSelectorBuilder extends V1NodeSelectorFluent implements VisitableBuilder{ public V1NodeSelectorBuilder() { this(new V1NodeSelector()); 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 d4d79d7ef8..a1b29848a9 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSelectorFluent> extends BaseFluent{ +public class V1NodeSelectorFluent> extends BaseFluent{ public V1NodeSelectorFluent() { } @@ -26,14 +28,16 @@ public V1NodeSelectorFluent(V1NodeSelector instance) { private ArrayList nodeSelectorTerms; protected void copyInstance(V1NodeSelector instance) { - instance = (instance != null ? instance : new V1NodeSelector()); + instance = instance != null ? instance : new V1NodeSelector(); if (instance != null) { - this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); - } + this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); + } } public A addToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { - if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} + if (this.nodeSelectorTerms == null) { + this.nodeSelectorTerms = new ArrayList(); + } V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); if (index < 0 || index >= nodeSelectorTerms.size()) { _visitables.get("nodeSelectorTerms").add(builder); @@ -42,11 +46,13 @@ public A addToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { _visitables.get("nodeSelectorTerms").add(builder); nodeSelectorTerms.add(index, builder); } - return (A)this; + return (A) this; } public A setToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { - if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} + if (this.nodeSelectorTerms == null) { + this.nodeSelectorTerms = new ArrayList(); + } V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); if (index < 0 || index >= nodeSelectorTerms.size()) { _visitables.get("nodeSelectorTerms").add(builder); @@ -55,41 +61,71 @@ public A setToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { _visitables.get("nodeSelectorTerms").add(builder); nodeSelectorTerms.set(index, builder); } - return (A)this; + return (A) this; } - public A addToNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items) { - if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} - for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").add(builder);this.nodeSelectorTerms.add(builder);} return (A)this; + public A addToNodeSelectorTerms(V1NodeSelectorTerm... items) { + if (this.nodeSelectorTerms == null) { + this.nodeSelectorTerms = new ArrayList(); + } + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").add(builder); + this.nodeSelectorTerms.add(builder); + } + return (A) this; } public A addAllToNodeSelectorTerms(Collection items) { - if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} - for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").add(builder);this.nodeSelectorTerms.add(builder);} return (A)this; + if (this.nodeSelectorTerms == null) { + this.nodeSelectorTerms = new ArrayList(); + } + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").add(builder); + this.nodeSelectorTerms.add(builder); + } + return (A) this; } - public A removeFromNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items) { - if (this.nodeSelectorTerms == null) return (A)this; - for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").remove(builder); this.nodeSelectorTerms.remove(builder);} return (A)this; + public A removeFromNodeSelectorTerms(V1NodeSelectorTerm... items) { + if (this.nodeSelectorTerms == null) { + return (A) this; + } + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").remove(builder); + this.nodeSelectorTerms.remove(builder); + } + return (A) this; } public A removeAllFromNodeSelectorTerms(Collection items) { - if (this.nodeSelectorTerms == null) return (A)this; - for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").remove(builder); this.nodeSelectorTerms.remove(builder);} return (A)this; + if (this.nodeSelectorTerms == null) { + return (A) this; + } + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").remove(builder); + this.nodeSelectorTerms.remove(builder); + } + return (A) this; } public A removeMatchingFromNodeSelectorTerms(Predicate predicate) { - if (nodeSelectorTerms == null) return (A) this; - final Iterator each = nodeSelectorTerms.iterator(); - final List visitables = _visitables.get("nodeSelectorTerms"); + if (nodeSelectorTerms == null) { + return (A) this; + } + Iterator each = nodeSelectorTerms.iterator(); + List visitables = _visitables.get("nodeSelectorTerms"); while (each.hasNext()) { - V1NodeSelectorTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NodeSelectorTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildNodeSelectorTerms() { @@ -141,7 +177,7 @@ public A withNodeSelectorTerms(List nodeSelectorTerms) { return (A) this; } - public A withNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... nodeSelectorTerms) { + public A withNodeSelectorTerms(V1NodeSelectorTerm... nodeSelectorTerms) { if (this.nodeSelectorTerms != null) { this.nodeSelectorTerms.clear(); _visitables.remove("nodeSelectorTerms"); @@ -155,7 +191,7 @@ public A withNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelecto } public boolean hasNodeSelectorTerms() { - return this.nodeSelectorTerms != null && !this.nodeSelectorTerms.isEmpty(); + return this.nodeSelectorTerms != null && !(this.nodeSelectorTerms.isEmpty()); } public NodeSelectorTermsNested addNewNodeSelectorTerm() { @@ -171,47 +207,69 @@ public NodeSelectorTermsNested setNewNodeSelectorTermLike(int index,V1NodeSel } public NodeSelectorTermsNested editNodeSelectorTerm(int index) { - if (nodeSelectorTerms.size() <= index) throw new RuntimeException("Can't edit nodeSelectorTerms. Index exceeds size."); - return setNewNodeSelectorTermLike(index, buildNodeSelectorTerm(index)); + if (index <= nodeSelectorTerms.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nodeSelectorTerms")); + } + return this.setNewNodeSelectorTermLike(index, this.buildNodeSelectorTerm(index)); } public NodeSelectorTermsNested editFirstNodeSelectorTerm() { - if (nodeSelectorTerms.size() == 0) throw new RuntimeException("Can't edit first nodeSelectorTerms. The list is empty."); - return setNewNodeSelectorTermLike(0, buildNodeSelectorTerm(0)); + if (nodeSelectorTerms.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "nodeSelectorTerms")); + } + return this.setNewNodeSelectorTermLike(0, this.buildNodeSelectorTerm(0)); } public NodeSelectorTermsNested editLastNodeSelectorTerm() { int index = nodeSelectorTerms.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last nodeSelectorTerms. The list is empty."); - return setNewNodeSelectorTermLike(index, buildNodeSelectorTerm(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "nodeSelectorTerms")); + } + return this.setNewNodeSelectorTermLike(index, this.buildNodeSelectorTerm(index)); } public NodeSelectorTermsNested editMatchingNodeSelectorTerm(Predicate predicate) { int index = -1; - for (int i=0;i extends V1NodeSelectorTermFluent implements VisitableBuilder{ public V1NodeSelectorRequirementBuilder() { this(new V1NodeSelectorRequirement()); 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 c5c86aaaa1..f031cfb5b8 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSelectorRequirementFluent> extends BaseFluent{ +public class V1NodeSelectorRequirementFluent> extends BaseFluent{ public V1NodeSelectorRequirementFluent() { } @@ -25,12 +27,12 @@ public V1NodeSelectorRequirementFluent(V1NodeSelectorRequirement instance) { private List values; protected void copyInstance(V1NodeSelectorRequirement instance) { - instance = (instance != null ? instance : new V1NodeSelectorRequirement()); + instance = instance != null ? instance : new V1NodeSelectorRequirement(); if (instance != null) { - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } } public String getKey() { @@ -60,34 +62,59 @@ public boolean hasOperator() { } public A addToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} + if (this.values == null) { + this.values = new ArrayList(); + } this.values.add(index, item); - return (A)this; + return (A) this; } public A setToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public A addToValues(java.lang.String... items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + public A addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } public A addAllToValues(Collection items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } - public A removeFromValues(java.lang.String... items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public A removeAllFromValues(Collection items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public List getValues() { @@ -136,7 +163,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.String... values) { + public A withValues(String... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -150,30 +177,53 @@ public A withValues(java.lang.String... values) { } public boolean hasValues() { - return this.values != null && !this.values.isEmpty(); + return this.values != null && !(this.values.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeSelectorRequirementFluent that = (V1NodeSelectorRequirementFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(values, that.values)) return false; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(key, operator, values, super.hashCode()); + return Objects.hash(key, operator, values); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } sb.append("}"); return sb.toString(); } 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 afa36b4901..af9c29504d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeSelectorTermBuilder extends V1NodeSelectorTermFluent implements VisitableBuilder{ public V1NodeSelectorTermBuilder() { this(new V1NodeSelectorTerm()); 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 532398e0b6..518b9d3897 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSelectorTermFluent> extends BaseFluent{ +public class V1NodeSelectorTermFluent> extends BaseFluent{ public V1NodeSelectorTermFluent() { } @@ -27,15 +29,17 @@ public V1NodeSelectorTermFluent(V1NodeSelectorTerm instance) { private ArrayList matchFields; protected void copyInstance(V1NodeSelectorTerm instance) { - instance = (instance != null ? instance : new V1NodeSelectorTerm()); + instance = instance != null ? instance : new V1NodeSelectorTerm(); if (instance != null) { - this.withMatchExpressions(instance.getMatchExpressions()); - this.withMatchFields(instance.getMatchFields()); - } + this.withMatchExpressions(instance.getMatchExpressions()); + this.withMatchFields(instance.getMatchFields()); + } } public A addToMatchExpressions(int index,V1NodeSelectorRequirement item) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); @@ -44,11 +48,13 @@ public A addToMatchExpressions(int index,V1NodeSelectorRequirement item) { _visitables.get("matchExpressions").add(builder); matchExpressions.add(index, builder); } - return (A)this; + return (A) this; } public A setToMatchExpressions(int index,V1NodeSelectorRequirement item) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); @@ -57,41 +63,71 @@ public A setToMatchExpressions(int index,V1NodeSelectorRequirement item) { _visitables.get("matchExpressions").add(builder); matchExpressions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + public A addToMatchExpressions(V1NodeSelectorRequirement... items) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } public A addAllToMatchExpressions(Collection items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } - public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchExpressions == null) return (A)this; - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + public A removeFromMatchExpressions(V1NodeSelectorRequirement... items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; } public A removeAllFromMatchExpressions(Collection items) { - if (this.matchExpressions == null) return (A)this; - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + if (this.matchExpressions == null) { + return (A) this; + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; } public A removeMatchingFromMatchExpressions(Predicate predicate) { - if (matchExpressions == null) return (A) this; - final Iterator each = matchExpressions.iterator(); - final List visitables = _visitables.get("matchExpressions"); + if (matchExpressions == null) { + return (A) this; + } + Iterator each = matchExpressions.iterator(); + List visitables = _visitables.get("matchExpressions"); while (each.hasNext()) { - V1NodeSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NodeSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMatchExpressions() { @@ -143,7 +179,7 @@ public A withMatchExpressions(List matchExpressions) return (A) this; } - public A withMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchExpressions) { + public A withMatchExpressions(V1NodeSelectorRequirement... matchExpressions) { if (this.matchExpressions != null) { this.matchExpressions.clear(); _visitables.remove("matchExpressions"); @@ -157,7 +193,7 @@ public A withMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelector } public boolean hasMatchExpressions() { - return this.matchExpressions != null && !this.matchExpressions.isEmpty(); + return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); } public MatchExpressionsNested addNewMatchExpression() { @@ -173,32 +209,45 @@ public MatchExpressionsNested setNewMatchExpressionLike(int index,V1NodeSelec } public MatchExpressionsNested editMatchExpression(int index) { - if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + if (index <= matchExpressions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } public MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); - return setNewMatchExpressionLike(0, buildMatchExpression(0)); + if (matchExpressions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(0, this.buildMatchExpression(0)); } public MatchExpressionsNested editLastMatchExpression() { int index = matchExpressions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.matchFields == null) { + this.matchFields = new ArrayList(); + } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= matchFields.size()) { _visitables.get("matchFields").add(builder); @@ -207,11 +256,13 @@ public A addToMatchFields(int index,V1NodeSelectorRequirement item) { _visitables.get("matchFields").add(builder); matchFields.add(index, builder); } - return (A)this; + return (A) this; } public A setToMatchFields(int index,V1NodeSelectorRequirement item) { - if (this.matchFields == null) {this.matchFields = new ArrayList();} + if (this.matchFields == null) { + this.matchFields = new ArrayList(); + } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= matchFields.size()) { _visitables.get("matchFields").add(builder); @@ -220,41 +271,71 @@ public A setToMatchFields(int index,V1NodeSelectorRequirement item) { _visitables.get("matchFields").add(builder); matchFields.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchFields == null) {this.matchFields = new ArrayList();} - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").add(builder);this.matchFields.add(builder);} return (A)this; + public A addToMatchFields(V1NodeSelectorRequirement... items) { + if (this.matchFields == null) { + this.matchFields = new ArrayList(); + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchFields").add(builder); + this.matchFields.add(builder); + } + return (A) this; } public A addAllToMatchFields(Collection items) { - if (this.matchFields == null) {this.matchFields = new ArrayList();} - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").add(builder);this.matchFields.add(builder);} return (A)this; + if (this.matchFields == null) { + this.matchFields = new ArrayList(); + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchFields").add(builder); + this.matchFields.add(builder); + } + return (A) this; } - public A removeFromMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchFields == null) return (A)this; - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").remove(builder); this.matchFields.remove(builder);} return (A)this; + public A removeFromMatchFields(V1NodeSelectorRequirement... items) { + if (this.matchFields == null) { + return (A) this; + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchFields").remove(builder); + this.matchFields.remove(builder); + } + return (A) this; } public A removeAllFromMatchFields(Collection items) { - if (this.matchFields == null) return (A)this; - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").remove(builder); this.matchFields.remove(builder);} return (A)this; + if (this.matchFields == null) { + return (A) this; + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchFields").remove(builder); + this.matchFields.remove(builder); + } + return (A) this; } public A removeMatchingFromMatchFields(Predicate predicate) { - if (matchFields == null) return (A) this; - final Iterator each = matchFields.iterator(); - final List visitables = _visitables.get("matchFields"); + if (matchFields == null) { + return (A) this; + } + Iterator each = matchFields.iterator(); + List visitables = _visitables.get("matchFields"); while (each.hasNext()) { - V1NodeSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NodeSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMatchFields() { @@ -306,7 +387,7 @@ public A withMatchFields(List matchFields) { return (A) this; } - public A withMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchFields) { + public A withMatchFields(V1NodeSelectorRequirement... matchFields) { if (this.matchFields != null) { this.matchFields.clear(); _visitables.remove("matchFields"); @@ -320,7 +401,7 @@ public A withMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequi } public boolean hasMatchFields() { - return this.matchFields != null && !this.matchFields.isEmpty(); + return this.matchFields != null && !(this.matchFields.isEmpty()); } public MatchFieldsNested addNewMatchField() { @@ -336,49 +417,77 @@ public MatchFieldsNested setNewMatchFieldLike(int index,V1NodeSelectorRequire } public MatchFieldsNested editMatchField(int index) { - if (matchFields.size() <= index) throw new RuntimeException("Can't edit matchFields. Index exceeds size."); - return setNewMatchFieldLike(index, buildMatchField(index)); + if (index <= matchFields.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchFields")); + } + return this.setNewMatchFieldLike(index, this.buildMatchField(index)); } public MatchFieldsNested editFirstMatchField() { - if (matchFields.size() == 0) throw new RuntimeException("Can't edit first matchFields. The list is empty."); - return setNewMatchFieldLike(0, buildMatchField(0)); + if (matchFields.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchFields")); + } + return this.setNewMatchFieldLike(0, this.buildMatchField(0)); } public MatchFieldsNested editLastMatchField() { int index = matchFields.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchFields. The list is empty."); - return setNewMatchFieldLike(index, buildMatchField(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchFields")); + } + return this.setNewMatchFieldLike(index, this.buildMatchField(index)); } public MatchFieldsNested editMatchingMatchField(Predicate predicate) { int index = -1; - for (int i=0;i extends V1NodeSelectorRequirementFluent extends V1NodeSelectorRequirementFluent implements VisitableBuilder{ public V1NodeSpecBuilder() { this(new V1NodeSpec()); 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 748b6e2a78..f84b025a39 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 @@ -1,23 +1,26 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSpecFluent> extends BaseFluent{ +public class V1NodeSpecFluent> extends BaseFluent{ public V1NodeSpecFluent() { } @@ -33,16 +36,16 @@ public V1NodeSpecFluent(V1NodeSpec instance) { private Boolean unschedulable; protected void copyInstance(V1NodeSpec instance) { - instance = (instance != null ? instance : new V1NodeSpec()); + instance = instance != null ? instance : new V1NodeSpec(); if (instance != null) { - this.withConfigSource(instance.getConfigSource()); - this.withExternalID(instance.getExternalID()); - this.withPodCIDR(instance.getPodCIDR()); - this.withPodCIDRs(instance.getPodCIDRs()); - this.withProviderID(instance.getProviderID()); - this.withTaints(instance.getTaints()); - this.withUnschedulable(instance.getUnschedulable()); - } + this.withConfigSource(instance.getConfigSource()); + this.withExternalID(instance.getExternalID()); + this.withPodCIDR(instance.getPodCIDR()); + this.withPodCIDRs(instance.getPodCIDRs()); + this.withProviderID(instance.getProviderID()); + this.withTaints(instance.getTaints()); + this.withUnschedulable(instance.getUnschedulable()); + } } public V1NodeConfigSource buildConfigSource() { @@ -74,15 +77,15 @@ public ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item) { } public ConfigSourceNested editConfigSource() { - return withNewConfigSourceLike(java.util.Optional.ofNullable(buildConfigSource()).orElse(null)); + return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(null)); } public ConfigSourceNested editOrNewConfigSource() { - return withNewConfigSourceLike(java.util.Optional.ofNullable(buildConfigSource()).orElse(new V1NodeConfigSourceBuilder().build())); + return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(new V1NodeConfigSourceBuilder().build())); } public ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item) { - return withNewConfigSourceLike(java.util.Optional.ofNullable(buildConfigSource()).orElse(item)); + return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(item)); } public String getExternalID() { @@ -112,34 +115,59 @@ public boolean hasPodCIDR() { } public A addToPodCIDRs(int index,String item) { - if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); + } this.podCIDRs.add(index, item); - return (A)this; + return (A) this; } public A setToPodCIDRs(int index,String item) { - if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} - this.podCIDRs.set(index, item); return (A)this; + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); + } + this.podCIDRs.set(index, item); + return (A) this; } - public A addToPodCIDRs(java.lang.String... items) { - if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} - for (String item : items) {this.podCIDRs.add(item);} return (A)this; + public A addToPodCIDRs(String... items) { + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); + } + for (String item : items) { + this.podCIDRs.add(item); + } + return (A) this; } public A addAllToPodCIDRs(Collection items) { - if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} - for (String item : items) {this.podCIDRs.add(item);} return (A)this; + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); + } + for (String item : items) { + this.podCIDRs.add(item); + } + return (A) this; } - public A removeFromPodCIDRs(java.lang.String... items) { - if (this.podCIDRs == null) return (A)this; - for (String item : items) { this.podCIDRs.remove(item);} return (A)this; + public A removeFromPodCIDRs(String... items) { + if (this.podCIDRs == null) { + return (A) this; + } + for (String item : items) { + this.podCIDRs.remove(item); + } + return (A) this; } public A removeAllFromPodCIDRs(Collection items) { - if (this.podCIDRs == null) return (A)this; - for (String item : items) { this.podCIDRs.remove(item);} return (A)this; + if (this.podCIDRs == null) { + return (A) this; + } + for (String item : items) { + this.podCIDRs.remove(item); + } + return (A) this; } public List getPodCIDRs() { @@ -188,7 +216,7 @@ public A withPodCIDRs(List podCIDRs) { return (A) this; } - public A withPodCIDRs(java.lang.String... podCIDRs) { + public A withPodCIDRs(String... podCIDRs) { if (this.podCIDRs != null) { this.podCIDRs.clear(); _visitables.remove("podCIDRs"); @@ -202,7 +230,7 @@ public A withPodCIDRs(java.lang.String... podCIDRs) { } public boolean hasPodCIDRs() { - return this.podCIDRs != null && !this.podCIDRs.isEmpty(); + return this.podCIDRs != null && !(this.podCIDRs.isEmpty()); } public String getProviderID() { @@ -219,7 +247,9 @@ public boolean hasProviderID() { } public A addToTaints(int index,V1Taint item) { - if (this.taints == null) {this.taints = new ArrayList();} + if (this.taints == null) { + this.taints = new ArrayList(); + } V1TaintBuilder builder = new V1TaintBuilder(item); if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); @@ -228,11 +258,13 @@ public A addToTaints(int index,V1Taint item) { _visitables.get("taints").add(builder); taints.add(index, builder); } - return (A)this; + return (A) this; } public A setToTaints(int index,V1Taint item) { - if (this.taints == null) {this.taints = new ArrayList();} + if (this.taints == null) { + this.taints = new ArrayList(); + } V1TaintBuilder builder = new V1TaintBuilder(item); if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); @@ -241,41 +273,71 @@ public A setToTaints(int index,V1Taint item) { _visitables.get("taints").add(builder); taints.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTaints(io.kubernetes.client.openapi.models.V1Taint... items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + public A addToTaints(V1Taint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } public A addAllToTaints(Collection items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } - public A removeFromTaints(io.kubernetes.client.openapi.models.V1Taint... items) { - if (this.taints == null) return (A)this; - for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + public A removeFromTaints(V1Taint... items) { + if (this.taints == null) { + return (A) this; + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } public A removeAllFromTaints(Collection items) { - if (this.taints == null) return (A)this; - for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + if (this.taints == null) { + return (A) this; + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } public A removeMatchingFromTaints(Predicate predicate) { - if (taints == null) return (A) this; - final Iterator each = taints.iterator(); - final List visitables = _visitables.get("taints"); + if (taints == null) { + return (A) this; + } + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); while (each.hasNext()) { - V1TaintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1TaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTaints() { @@ -327,7 +389,7 @@ public A withTaints(List taints) { return (A) this; } - public A withTaints(io.kubernetes.client.openapi.models.V1Taint... taints) { + public A withTaints(V1Taint... taints) { if (this.taints != null) { this.taints.clear(); _visitables.remove("taints"); @@ -341,7 +403,7 @@ public A withTaints(io.kubernetes.client.openapi.models.V1Taint... taints) { } public boolean hasTaints() { - return this.taints != null && !this.taints.isEmpty(); + return this.taints != null && !(this.taints.isEmpty()); } public TaintsNested addNewTaint() { @@ -357,28 +419,39 @@ public TaintsNested setNewTaintLike(int index,V1Taint item) { } public TaintsNested editTaint(int index) { - if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); - return setNewTaintLike(index, buildTaint(index)); + if (index <= taints.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } public TaintsNested editFirstTaint() { - if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); - return setNewTaintLike(0, buildTaint(0)); + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(0, this.buildTaint(0)); } public TaintsNested editLastTaint() { int index = taints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); - return setNewTaintLike(index, buildTaint(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } public TaintsNested editMatchingTaint(Predicate predicate) { int index = -1; - for (int i=0;i extends V1TaintFluent> implements N int index; public N and() { - return (N) V1NodeSpecFluent.this.setToTaints(index,builder.build()); + return (N) V1NodeSpecFluent.this.setToTaints(index, builder.build()); } public N endTaint() { 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 4ee08c2208..84ff1db4fb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeStatusBuilder extends V1NodeStatusFluent implements VisitableBuilder{ public V1NodeStatusBuilder() { this(new V1NodeStatus()); 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 b2b4d65857..a20b0956a5 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.RuntimeException; import java.util.Iterator; import io.kubernetes.client.custom.Quantity; @@ -19,7 +22,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NodeStatusFluent> extends BaseFluent{ +public class V1NodeStatusFluent> extends BaseFluent{ public V1NodeStatusFluent() { } @@ -41,26 +44,28 @@ public V1NodeStatusFluent(V1NodeStatus instance) { private List volumesInUse; protected void copyInstance(V1NodeStatus instance) { - instance = (instance != null ? instance : new V1NodeStatus()); + instance = instance != null ? instance : new V1NodeStatus(); if (instance != null) { - this.withAddresses(instance.getAddresses()); - this.withAllocatable(instance.getAllocatable()); - this.withCapacity(instance.getCapacity()); - this.withConditions(instance.getConditions()); - this.withConfig(instance.getConfig()); - this.withDaemonEndpoints(instance.getDaemonEndpoints()); - this.withFeatures(instance.getFeatures()); - this.withImages(instance.getImages()); - this.withNodeInfo(instance.getNodeInfo()); - this.withPhase(instance.getPhase()); - this.withRuntimeHandlers(instance.getRuntimeHandlers()); - this.withVolumesAttached(instance.getVolumesAttached()); - this.withVolumesInUse(instance.getVolumesInUse()); - } + this.withAddresses(instance.getAddresses()); + this.withAllocatable(instance.getAllocatable()); + this.withCapacity(instance.getCapacity()); + this.withConditions(instance.getConditions()); + this.withConfig(instance.getConfig()); + this.withDaemonEndpoints(instance.getDaemonEndpoints()); + this.withFeatures(instance.getFeatures()); + this.withImages(instance.getImages()); + this.withNodeInfo(instance.getNodeInfo()); + this.withPhase(instance.getPhase()); + this.withRuntimeHandlers(instance.getRuntimeHandlers()); + this.withVolumesAttached(instance.getVolumesAttached()); + this.withVolumesInUse(instance.getVolumesInUse()); + } } public A addToAddresses(int index,V1NodeAddress item) { - if (this.addresses == null) {this.addresses = new ArrayList();} + if (this.addresses == null) { + this.addresses = new ArrayList(); + } V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); @@ -69,11 +74,13 @@ public A addToAddresses(int index,V1NodeAddress item) { _visitables.get("addresses").add(builder); addresses.add(index, builder); } - return (A)this; + return (A) this; } public A setToAddresses(int index,V1NodeAddress item) { - if (this.addresses == null) {this.addresses = new ArrayList();} + if (this.addresses == null) { + this.addresses = new ArrayList(); + } V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); @@ -82,41 +89,71 @@ public A setToAddresses(int index,V1NodeAddress item) { _visitables.get("addresses").add(builder); addresses.set(index, builder); } - return (A)this; + return (A) this; } - public A addToAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; + public A addToAddresses(V1NodeAddress... items) { + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").add(builder); + this.addresses.add(builder); + } + return (A) this; } public A addAllToAddresses(Collection items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").add(builder); + this.addresses.add(builder); + } + return (A) this; } - public A removeFromAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items) { - if (this.addresses == null) return (A)this; - for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").remove(builder); this.addresses.remove(builder);} return (A)this; + public A removeFromAddresses(V1NodeAddress... items) { + if (this.addresses == null) { + return (A) this; + } + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); + } + return (A) this; } public A removeAllFromAddresses(Collection items) { - if (this.addresses == null) return (A)this; - for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").remove(builder); this.addresses.remove(builder);} return (A)this; + if (this.addresses == null) { + return (A) this; + } + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); + } + return (A) this; } public A removeMatchingFromAddresses(Predicate predicate) { - if (addresses == null) return (A) this; - final Iterator each = addresses.iterator(); - final List visitables = _visitables.get("addresses"); + if (addresses == null) { + return (A) this; + } + Iterator each = addresses.iterator(); + List visitables = _visitables.get("addresses"); while (each.hasNext()) { - V1NodeAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NodeAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildAddresses() { @@ -168,7 +205,7 @@ public A withAddresses(List addresses) { return (A) this; } - public A withAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... addresses) { + public A withAddresses(V1NodeAddress... addresses) { if (this.addresses != null) { this.addresses.clear(); _visitables.remove("addresses"); @@ -182,7 +219,7 @@ public A withAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... addr } public boolean hasAddresses() { - return this.addresses != null && !this.addresses.isEmpty(); + return this.addresses != null && !(this.addresses.isEmpty()); } public AddressesNested addNewAddress() { @@ -198,48 +235,83 @@ public AddressesNested setNewAddressLike(int index,V1NodeAddress item) { } public AddressesNested editAddress(int index) { - if (addresses.size() <= index) throw new RuntimeException("Can't edit addresses. Index exceeds size."); - return setNewAddressLike(index, buildAddress(index)); + if (index <= addresses.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } public AddressesNested editFirstAddress() { - if (addresses.size() == 0) throw new RuntimeException("Can't edit first addresses. The list is empty."); - return setNewAddressLike(0, buildAddress(0)); + if (addresses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(0, this.buildAddress(0)); } public AddressesNested editLastAddress() { int index = addresses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last addresses. The list is empty."); - return setNewAddressLike(index, buildAddress(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } public AddressesNested editMatchingAddress(Predicate predicate) { int index = -1; - for (int i=0;i map) { - if(this.allocatable == null && map != null) { this.allocatable = new LinkedHashMap(); } - if(map != null) { this.allocatable.putAll(map);} return (A)this; + if (this.allocatable == null && map != null) { + this.allocatable = new LinkedHashMap(); + } + if (map != null) { + this.allocatable.putAll(map); + } + return (A) this; } public A removeFromAllocatable(String key) { - if(this.allocatable == null) { return (A) this; } - if(key != null && this.allocatable != null) {this.allocatable.remove(key);} return (A)this; + if (this.allocatable == null) { + return (A) this; + } + if (key != null && this.allocatable != null) { + this.allocatable.remove(key); + } + return (A) this; } public A removeFromAllocatable(Map map) { - if(this.allocatable == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.allocatable != null){this.allocatable.remove(key);}}} return (A)this; + if (this.allocatable == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatable != null) { + this.allocatable.remove(key); + } + } + } + return (A) this; } public Map getAllocatable() { @@ -260,23 +332,47 @@ public boolean hasAllocatable() { } public A addToCapacity(String key,Quantity value) { - if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } - if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.capacity.put(key, value); + } + return (A) this; } public A addToCapacity(Map map) { - if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } - if(map != null) { this.capacity.putAll(map);} return (A)this; + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); + } + return (A) this; } public A removeFromCapacity(String key) { - if(this.capacity == null) { return (A) this; } - if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (key != null && this.capacity != null) { + this.capacity.remove(key); + } + return (A) this; } public A removeFromCapacity(Map map) { - if(this.capacity == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } + } + } + return (A) this; } public Map getCapacity() { @@ -297,7 +393,9 @@ public boolean hasCapacity() { } public A addToConditions(int index,V1NodeCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -306,11 +404,13 @@ public A addToConditions(int index,V1NodeCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1NodeCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -319,41 +419,71 @@ public A setToConditions(int index,V1NodeCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1NodeCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items) { - if (this.conditions == null) return (A)this; - for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1NodeCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1NodeConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NodeConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -405,7 +535,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1NodeCondition... conditions) { + public A withConditions(V1NodeCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -419,7 +549,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1NodeCondition... c } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -435,28 +565,39 @@ public ConditionsNested setNewConditionLike(int index,V1NodeCondition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 withNewConfigLike(V1NodeConfigStatus item) { } public ConfigNested editConfig() { - return withNewConfigLike(java.util.Optional.ofNullable(buildConfig()).orElse(null)); + return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(null)); } public ConfigNested editOrNewConfig() { - return withNewConfigLike(java.util.Optional.ofNullable(buildConfig()).orElse(new V1NodeConfigStatusBuilder().build())); + return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(new V1NodeConfigStatusBuilder().build())); } public ConfigNested editOrNewConfigLike(V1NodeConfigStatus item) { - return withNewConfigLike(java.util.Optional.ofNullable(buildConfig()).orElse(item)); + return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(item)); } public V1NodeDaemonEndpoints buildDaemonEndpoints() { @@ -528,15 +669,15 @@ public DaemonEndpointsNested withNewDaemonEndpointsLike(V1NodeDaemonEndpoints } public DaemonEndpointsNested editDaemonEndpoints() { - return withNewDaemonEndpointsLike(java.util.Optional.ofNullable(buildDaemonEndpoints()).orElse(null)); + return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(null)); } public DaemonEndpointsNested editOrNewDaemonEndpoints() { - return withNewDaemonEndpointsLike(java.util.Optional.ofNullable(buildDaemonEndpoints()).orElse(new V1NodeDaemonEndpointsBuilder().build())); + return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(new V1NodeDaemonEndpointsBuilder().build())); } public DaemonEndpointsNested editOrNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { - return withNewDaemonEndpointsLike(java.util.Optional.ofNullable(buildDaemonEndpoints()).orElse(item)); + return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(item)); } public V1NodeFeatures buildFeatures() { @@ -568,19 +709,21 @@ public FeaturesNested withNewFeaturesLike(V1NodeFeatures item) { } public FeaturesNested editFeatures() { - return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(null)); + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(null)); } public FeaturesNested editOrNewFeatures() { - return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(new V1NodeFeaturesBuilder().build())); + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(new V1NodeFeaturesBuilder().build())); } public FeaturesNested editOrNewFeaturesLike(V1NodeFeatures item) { - return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(item)); + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(item)); } public A addToImages(int index,V1ContainerImage item) { - if (this.images == null) {this.images = new ArrayList();} + if (this.images == null) { + this.images = new ArrayList(); + } V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); if (index < 0 || index >= images.size()) { _visitables.get("images").add(builder); @@ -589,11 +732,13 @@ public A addToImages(int index,V1ContainerImage item) { _visitables.get("images").add(builder); images.add(index, builder); } - return (A)this; + return (A) this; } public A setToImages(int index,V1ContainerImage item) { - if (this.images == null) {this.images = new ArrayList();} + if (this.images == null) { + this.images = new ArrayList(); + } V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); if (index < 0 || index >= images.size()) { _visitables.get("images").add(builder); @@ -602,41 +747,71 @@ public A setToImages(int index,V1ContainerImage item) { _visitables.get("images").add(builder); images.set(index, builder); } - return (A)this; + return (A) this; } - public A addToImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) { - if (this.images == null) {this.images = new ArrayList();} - for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").add(builder);this.images.add(builder);} return (A)this; + public A addToImages(V1ContainerImage... items) { + if (this.images == null) { + this.images = new ArrayList(); + } + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").add(builder); + this.images.add(builder); + } + return (A) this; } public A addAllToImages(Collection items) { - if (this.images == null) {this.images = new ArrayList();} - for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").add(builder);this.images.add(builder);} return (A)this; + if (this.images == null) { + this.images = new ArrayList(); + } + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").add(builder); + this.images.add(builder); + } + return (A) this; } - public A removeFromImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) { - if (this.images == null) return (A)this; - for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").remove(builder); this.images.remove(builder);} return (A)this; + public A removeFromImages(V1ContainerImage... items) { + if (this.images == null) { + return (A) this; + } + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").remove(builder); + this.images.remove(builder); + } + return (A) this; } public A removeAllFromImages(Collection items) { - if (this.images == null) return (A)this; - for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").remove(builder); this.images.remove(builder);} return (A)this; + if (this.images == null) { + return (A) this; + } + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").remove(builder); + this.images.remove(builder); + } + return (A) this; } public A removeMatchingFromImages(Predicate predicate) { - if (images == null) return (A) this; - final Iterator each = images.iterator(); - final List visitables = _visitables.get("images"); + if (images == null) { + return (A) this; + } + Iterator each = images.iterator(); + List visitables = _visitables.get("images"); while (each.hasNext()) { - V1ContainerImageBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerImageBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildImages() { @@ -688,7 +863,7 @@ public A withImages(List images) { return (A) this; } - public A withImages(io.kubernetes.client.openapi.models.V1ContainerImage... images) { + public A withImages(V1ContainerImage... images) { if (this.images != null) { this.images.clear(); _visitables.remove("images"); @@ -702,7 +877,7 @@ public A withImages(io.kubernetes.client.openapi.models.V1ContainerImage... imag } public boolean hasImages() { - return this.images != null && !this.images.isEmpty(); + return this.images != null && !(this.images.isEmpty()); } public ImagesNested addNewImage() { @@ -718,28 +893,39 @@ public ImagesNested setNewImageLike(int index,V1ContainerImage item) { } public ImagesNested editImage(int index) { - if (images.size() <= index) throw new RuntimeException("Can't edit images. Index exceeds size."); - return setNewImageLike(index, buildImage(index)); + if (index <= images.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "images")); + } + return this.setNewImageLike(index, this.buildImage(index)); } public ImagesNested editFirstImage() { - if (images.size() == 0) throw new RuntimeException("Can't edit first images. The list is empty."); - return setNewImageLike(0, buildImage(0)); + if (images.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "images")); + } + return this.setNewImageLike(0, this.buildImage(0)); } public ImagesNested editLastImage() { int index = images.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last images. The list is empty."); - return setNewImageLike(index, buildImage(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "images")); + } + return this.setNewImageLike(index, this.buildImage(index)); } public ImagesNested editMatchingImage(Predicate predicate) { int index = -1; - for (int i=0;i withNewNodeInfoLike(V1NodeSystemInfo item) { } public NodeInfoNested editNodeInfo() { - return withNewNodeInfoLike(java.util.Optional.ofNullable(buildNodeInfo()).orElse(null)); + return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(null)); } public NodeInfoNested editOrNewNodeInfo() { - return withNewNodeInfoLike(java.util.Optional.ofNullable(buildNodeInfo()).orElse(new V1NodeSystemInfoBuilder().build())); + return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(new V1NodeSystemInfoBuilder().build())); } public NodeInfoNested editOrNewNodeInfoLike(V1NodeSystemInfo item) { - return withNewNodeInfoLike(java.util.Optional.ofNullable(buildNodeInfo()).orElse(item)); + return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(item)); } public String getPhase() { @@ -796,7 +982,9 @@ public boolean hasPhase() { } public A addToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { - if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList(); + } V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); if (index < 0 || index >= runtimeHandlers.size()) { _visitables.get("runtimeHandlers").add(builder); @@ -805,11 +993,13 @@ public A addToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { _visitables.get("runtimeHandlers").add(builder); runtimeHandlers.add(index, builder); } - return (A)this; + return (A) this; } public A setToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { - if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList(); + } V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); if (index < 0 || index >= runtimeHandlers.size()) { _visitables.get("runtimeHandlers").add(builder); @@ -818,41 +1008,71 @@ public A setToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { _visitables.get("runtimeHandlers").add(builder); runtimeHandlers.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRuntimeHandlers(io.kubernetes.client.openapi.models.V1NodeRuntimeHandler... items) { - if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} - for (V1NodeRuntimeHandler item : items) {V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item);_visitables.get("runtimeHandlers").add(builder);this.runtimeHandlers.add(builder);} return (A)this; + public A addToRuntimeHandlers(V1NodeRuntimeHandler... items) { + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList(); + } + for (V1NodeRuntimeHandler item : items) { + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + _visitables.get("runtimeHandlers").add(builder); + this.runtimeHandlers.add(builder); + } + return (A) this; } public A addAllToRuntimeHandlers(Collection items) { - if (this.runtimeHandlers == null) {this.runtimeHandlers = new ArrayList();} - for (V1NodeRuntimeHandler item : items) {V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item);_visitables.get("runtimeHandlers").add(builder);this.runtimeHandlers.add(builder);} return (A)this; + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList(); + } + for (V1NodeRuntimeHandler item : items) { + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + _visitables.get("runtimeHandlers").add(builder); + this.runtimeHandlers.add(builder); + } + return (A) this; } - public A removeFromRuntimeHandlers(io.kubernetes.client.openapi.models.V1NodeRuntimeHandler... items) { - if (this.runtimeHandlers == null) return (A)this; - for (V1NodeRuntimeHandler item : items) {V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item);_visitables.get("runtimeHandlers").remove(builder); this.runtimeHandlers.remove(builder);} return (A)this; + public A removeFromRuntimeHandlers(V1NodeRuntimeHandler... items) { + if (this.runtimeHandlers == null) { + return (A) this; + } + for (V1NodeRuntimeHandler item : items) { + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + _visitables.get("runtimeHandlers").remove(builder); + this.runtimeHandlers.remove(builder); + } + return (A) this; } public A removeAllFromRuntimeHandlers(Collection items) { - if (this.runtimeHandlers == null) return (A)this; - for (V1NodeRuntimeHandler item : items) {V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item);_visitables.get("runtimeHandlers").remove(builder); this.runtimeHandlers.remove(builder);} return (A)this; + if (this.runtimeHandlers == null) { + return (A) this; + } + for (V1NodeRuntimeHandler item : items) { + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + _visitables.get("runtimeHandlers").remove(builder); + this.runtimeHandlers.remove(builder); + } + return (A) this; } public A removeMatchingFromRuntimeHandlers(Predicate predicate) { - if (runtimeHandlers == null) return (A) this; - final Iterator each = runtimeHandlers.iterator(); - final List visitables = _visitables.get("runtimeHandlers"); + if (runtimeHandlers == null) { + return (A) this; + } + Iterator each = runtimeHandlers.iterator(); + List visitables = _visitables.get("runtimeHandlers"); while (each.hasNext()) { - V1NodeRuntimeHandlerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NodeRuntimeHandlerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRuntimeHandlers() { @@ -904,7 +1124,7 @@ public A withRuntimeHandlers(List runtimeHandlers) { return (A) this; } - public A withRuntimeHandlers(io.kubernetes.client.openapi.models.V1NodeRuntimeHandler... runtimeHandlers) { + public A withRuntimeHandlers(V1NodeRuntimeHandler... runtimeHandlers) { if (this.runtimeHandlers != null) { this.runtimeHandlers.clear(); _visitables.remove("runtimeHandlers"); @@ -918,7 +1138,7 @@ public A withRuntimeHandlers(io.kubernetes.client.openapi.models.V1NodeRuntimeHa } public boolean hasRuntimeHandlers() { - return this.runtimeHandlers != null && !this.runtimeHandlers.isEmpty(); + return this.runtimeHandlers != null && !(this.runtimeHandlers.isEmpty()); } public RuntimeHandlersNested addNewRuntimeHandler() { @@ -934,32 +1154,45 @@ public RuntimeHandlersNested setNewRuntimeHandlerLike(int index,V1NodeRuntime } public RuntimeHandlersNested editRuntimeHandler(int index) { - if (runtimeHandlers.size() <= index) throw new RuntimeException("Can't edit runtimeHandlers. Index exceeds size."); - return setNewRuntimeHandlerLike(index, buildRuntimeHandler(index)); + if (index <= runtimeHandlers.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "runtimeHandlers")); + } + return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); } public RuntimeHandlersNested editFirstRuntimeHandler() { - if (runtimeHandlers.size() == 0) throw new RuntimeException("Can't edit first runtimeHandlers. The list is empty."); - return setNewRuntimeHandlerLike(0, buildRuntimeHandler(0)); + if (runtimeHandlers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "runtimeHandlers")); + } + return this.setNewRuntimeHandlerLike(0, this.buildRuntimeHandler(0)); } public RuntimeHandlersNested editLastRuntimeHandler() { int index = runtimeHandlers.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last runtimeHandlers. The list is empty."); - return setNewRuntimeHandlerLike(index, buildRuntimeHandler(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "runtimeHandlers")); + } + return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); } public RuntimeHandlersNested editMatchingRuntimeHandler(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); + } V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); if (index < 0 || index >= volumesAttached.size()) { _visitables.get("volumesAttached").add(builder); @@ -968,11 +1201,13 @@ public A addToVolumesAttached(int index,V1AttachedVolume item) { _visitables.get("volumesAttached").add(builder); volumesAttached.add(index, builder); } - return (A)this; + return (A) this; } public A setToVolumesAttached(int index,V1AttachedVolume item) { - if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); + } V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); if (index < 0 || index >= volumesAttached.size()) { _visitables.get("volumesAttached").add(builder); @@ -981,41 +1216,71 @@ public A setToVolumesAttached(int index,V1AttachedVolume item) { _visitables.get("volumesAttached").add(builder); volumesAttached.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items) { - if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} - for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").add(builder);this.volumesAttached.add(builder);} return (A)this; + public A addToVolumesAttached(V1AttachedVolume... items) { + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); + } + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").add(builder); + this.volumesAttached.add(builder); + } + return (A) this; } public A addAllToVolumesAttached(Collection items) { - if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} - for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").add(builder);this.volumesAttached.add(builder);} return (A)this; + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); + } + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").add(builder); + this.volumesAttached.add(builder); + } + return (A) this; } - public A removeFromVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items) { - if (this.volumesAttached == null) return (A)this; - for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").remove(builder); this.volumesAttached.remove(builder);} return (A)this; + public A removeFromVolumesAttached(V1AttachedVolume... items) { + if (this.volumesAttached == null) { + return (A) this; + } + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").remove(builder); + this.volumesAttached.remove(builder); + } + return (A) this; } public A removeAllFromVolumesAttached(Collection items) { - if (this.volumesAttached == null) return (A)this; - for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").remove(builder); this.volumesAttached.remove(builder);} return (A)this; + if (this.volumesAttached == null) { + return (A) this; + } + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").remove(builder); + this.volumesAttached.remove(builder); + } + return (A) this; } public A removeMatchingFromVolumesAttached(Predicate predicate) { - if (volumesAttached == null) return (A) this; - final Iterator each = volumesAttached.iterator(); - final List visitables = _visitables.get("volumesAttached"); + if (volumesAttached == null) { + return (A) this; + } + Iterator each = volumesAttached.iterator(); + List visitables = _visitables.get("volumesAttached"); while (each.hasNext()) { - V1AttachedVolumeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1AttachedVolumeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVolumesAttached() { @@ -1067,7 +1332,7 @@ public A withVolumesAttached(List volumesAttached) { return (A) this; } - public A withVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... volumesAttached) { + public A withVolumesAttached(V1AttachedVolume... volumesAttached) { if (this.volumesAttached != null) { this.volumesAttached.clear(); _visitables.remove("volumesAttached"); @@ -1081,7 +1346,7 @@ public A withVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolum } public boolean hasVolumesAttached() { - return this.volumesAttached != null && !this.volumesAttached.isEmpty(); + return this.volumesAttached != null && !(this.volumesAttached.isEmpty()); } public VolumesAttachedNested addNewVolumesAttached() { @@ -1097,59 +1362,95 @@ public VolumesAttachedNested setNewVolumesAttachedLike(int index,V1AttachedVo } public VolumesAttachedNested editVolumesAttached(int index) { - if (volumesAttached.size() <= index) throw new RuntimeException("Can't edit volumesAttached. Index exceeds size."); - return setNewVolumesAttachedLike(index, buildVolumesAttached(index)); + if (index <= volumesAttached.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumesAttached")); + } + return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); } public VolumesAttachedNested editFirstVolumesAttached() { - if (volumesAttached.size() == 0) throw new RuntimeException("Can't edit first volumesAttached. The list is empty."); - return setNewVolumesAttachedLike(0, buildVolumesAttached(0)); + if (volumesAttached.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumesAttached")); + } + return this.setNewVolumesAttachedLike(0, this.buildVolumesAttached(0)); } public VolumesAttachedNested editLastVolumesAttached() { int index = volumesAttached.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumesAttached. The list is empty."); - return setNewVolumesAttachedLike(index, buildVolumesAttached(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumesAttached")); + } + return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); } public VolumesAttachedNested editMatchingVolumesAttached(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); + } this.volumesInUse.add(index, item); - return (A)this; + return (A) this; } public A setToVolumesInUse(int index,String item) { - if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} - this.volumesInUse.set(index, item); return (A)this; + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); + } + this.volumesInUse.set(index, item); + return (A) this; } - public A addToVolumesInUse(java.lang.String... items) { - if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} - for (String item : items) {this.volumesInUse.add(item);} return (A)this; + public A addToVolumesInUse(String... items) { + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); + } + for (String item : items) { + this.volumesInUse.add(item); + } + return (A) this; } public A addAllToVolumesInUse(Collection items) { - if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} - for (String item : items) {this.volumesInUse.add(item);} return (A)this; + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); + } + for (String item : items) { + this.volumesInUse.add(item); + } + return (A) this; } - public A removeFromVolumesInUse(java.lang.String... items) { - if (this.volumesInUse == null) return (A)this; - for (String item : items) { this.volumesInUse.remove(item);} return (A)this; + public A removeFromVolumesInUse(String... items) { + if (this.volumesInUse == null) { + return (A) this; + } + for (String item : items) { + this.volumesInUse.remove(item); + } + return (A) this; } public A removeAllFromVolumesInUse(Collection items) { - if (this.volumesInUse == null) return (A)this; - for (String item : items) { this.volumesInUse.remove(item);} return (A)this; + if (this.volumesInUse == null) { + return (A) this; + } + for (String item : items) { + this.volumesInUse.remove(item); + } + return (A) this; } public List getVolumesInUse() { @@ -1198,7 +1499,7 @@ public A withVolumesInUse(List volumesInUse) { return (A) this; } - public A withVolumesInUse(java.lang.String... volumesInUse) { + public A withVolumesInUse(String... volumesInUse) { if (this.volumesInUse != null) { this.volumesInUse.clear(); _visitables.remove("volumesInUse"); @@ -1212,50 +1513,133 @@ public A withVolumesInUse(java.lang.String... volumesInUse) { } public boolean hasVolumesInUse() { - return this.volumesInUse != null && !this.volumesInUse.isEmpty(); + return this.volumesInUse != null && !(this.volumesInUse.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeStatusFluent that = (V1NodeStatusFluent) o; - if (!java.util.Objects.equals(addresses, that.addresses)) return false; - if (!java.util.Objects.equals(allocatable, that.allocatable)) return false; - if (!java.util.Objects.equals(capacity, that.capacity)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(config, that.config)) return false; - if (!java.util.Objects.equals(daemonEndpoints, that.daemonEndpoints)) return false; - if (!java.util.Objects.equals(features, that.features)) return false; - if (!java.util.Objects.equals(images, that.images)) return false; - if (!java.util.Objects.equals(nodeInfo, that.nodeInfo)) return false; - if (!java.util.Objects.equals(phase, that.phase)) return false; - if (!java.util.Objects.equals(runtimeHandlers, that.runtimeHandlers)) return false; - if (!java.util.Objects.equals(volumesAttached, that.volumesAttached)) return false; - if (!java.util.Objects.equals(volumesInUse, that.volumesInUse)) return false; + if (!(Objects.equals(addresses, that.addresses))) { + return false; + } + if (!(Objects.equals(allocatable, that.allocatable))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(daemonEndpoints, that.daemonEndpoints))) { + return false; + } + if (!(Objects.equals(features, that.features))) { + return false; + } + if (!(Objects.equals(images, that.images))) { + return false; + } + if (!(Objects.equals(nodeInfo, that.nodeInfo))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } + if (!(Objects.equals(runtimeHandlers, that.runtimeHandlers))) { + return false; + } + if (!(Objects.equals(volumesAttached, that.volumesAttached))) { + return false; + } + if (!(Objects.equals(volumesInUse, that.volumesInUse))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, features, images, nodeInfo, phase, runtimeHandlers, volumesAttached, volumesInUse, super.hashCode()); + return Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, features, images, nodeInfo, phase, runtimeHandlers, volumesAttached, volumesInUse); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (addresses != null && !addresses.isEmpty()) { sb.append("addresses:"); sb.append(addresses + ","); } - if (allocatable != null && !allocatable.isEmpty()) { sb.append("allocatable:"); sb.append(allocatable + ","); } - if (capacity != null && !capacity.isEmpty()) { sb.append("capacity:"); sb.append(capacity + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (config != null) { sb.append("config:"); sb.append(config + ","); } - if (daemonEndpoints != null) { sb.append("daemonEndpoints:"); sb.append(daemonEndpoints + ","); } - if (features != null) { sb.append("features:"); sb.append(features + ","); } - if (images != null && !images.isEmpty()) { sb.append("images:"); sb.append(images + ","); } - if (nodeInfo != null) { sb.append("nodeInfo:"); sb.append(nodeInfo + ","); } - if (phase != null) { sb.append("phase:"); sb.append(phase + ","); } - if (runtimeHandlers != null && !runtimeHandlers.isEmpty()) { sb.append("runtimeHandlers:"); sb.append(runtimeHandlers + ","); } - if (volumesAttached != null && !volumesAttached.isEmpty()) { sb.append("volumesAttached:"); sb.append(volumesAttached + ","); } - if (volumesInUse != null && !volumesInUse.isEmpty()) { sb.append("volumesInUse:"); sb.append(volumesInUse); } + if (!(addresses == null) && !(addresses.isEmpty())) { + sb.append("addresses:"); + sb.append(addresses); + sb.append(","); + } + if (!(allocatable == null) && !(allocatable.isEmpty())) { + sb.append("allocatable:"); + sb.append(allocatable); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(config == null)) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(daemonEndpoints == null)) { + sb.append("daemonEndpoints:"); + sb.append(daemonEndpoints); + sb.append(","); + } + if (!(features == null)) { + sb.append("features:"); + sb.append(features); + sb.append(","); + } + if (!(images == null) && !(images.isEmpty())) { + sb.append("images:"); + sb.append(images); + sb.append(","); + } + if (!(nodeInfo == null)) { + sb.append("nodeInfo:"); + sb.append(nodeInfo); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + sb.append(","); + } + if (!(runtimeHandlers == null) && !(runtimeHandlers.isEmpty())) { + sb.append("runtimeHandlers:"); + sb.append(runtimeHandlers); + sb.append(","); + } + if (!(volumesAttached == null) && !(volumesAttached.isEmpty())) { + sb.append("volumesAttached:"); + sb.append(volumesAttached); + sb.append(","); + } + if (!(volumesInUse == null) && !(volumesInUse.isEmpty())) { + sb.append("volumesInUse:"); + sb.append(volumesInUse); + } sb.append("}"); return sb.toString(); } @@ -1268,7 +1652,7 @@ public class AddressesNested extends V1NodeAddressFluent> int index; public N and() { - return (N) V1NodeStatusFluent.this.setToAddresses(index,builder.build()); + return (N) V1NodeStatusFluent.this.setToAddresses(index, builder.build()); } public N endAddress() { @@ -1286,7 +1670,7 @@ public class ConditionsNested extends V1NodeConditionFluent extends V1ContainerImageFluent> imp int index; public N and() { - return (N) V1NodeStatusFluent.this.setToImages(index,builder.build()); + return (N) V1NodeStatusFluent.this.setToImages(index, builder.build()); } public N endImage() { @@ -1386,7 +1770,7 @@ public class RuntimeHandlersNested extends V1NodeRuntimeHandlerFluent extends V1AttachedVolumeFluent implements VisitableBuilder{ public V1NodeSwapStatusBuilder() { this(new V1NodeSwapStatus()); 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 f058a6369a..16e0257d91 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSwapStatusFluent> extends BaseFluent{ +public class V1NodeSwapStatusFluent> extends BaseFluent{ public V1NodeSwapStatusFluent() { } @@ -20,10 +22,10 @@ public V1NodeSwapStatusFluent(V1NodeSwapStatus instance) { private Long capacity; protected void copyInstance(V1NodeSwapStatus instance) { - instance = (instance != null ? instance : new V1NodeSwapStatus()); + instance = instance != null ? instance : new V1NodeSwapStatus(); if (instance != null) { - this.withCapacity(instance.getCapacity()); - } + this.withCapacity(instance.getCapacity()); + } } public Long getCapacity() { @@ -40,22 +42,33 @@ public boolean hasCapacity() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeSwapStatusFluent that = (V1NodeSwapStatusFluent) o; - if (!java.util.Objects.equals(capacity, that.capacity)) return false; + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(capacity, super.hashCode()); + return Objects.hash(capacity); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (capacity != null) { sb.append("capacity:"); sb.append(capacity); } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + } sb.append("}"); return sb.toString(); } 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 aa3b9bac14..7e544d3e82 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeSystemInfoBuilder extends V1NodeSystemInfoFluent implements VisitableBuilder{ public V1NodeSystemInfoBuilder() { this(new V1NodeSystemInfo()); 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 71e108de03..e1ffe2ba14 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSystemInfoFluent> extends BaseFluent{ +public class V1NodeSystemInfoFluent> extends BaseFluent{ public V1NodeSystemInfoFluent() { } @@ -30,20 +33,20 @@ public V1NodeSystemInfoFluent(V1NodeSystemInfo instance) { private String systemUUID; protected void copyInstance(V1NodeSystemInfo instance) { - instance = (instance != null ? instance : new V1NodeSystemInfo()); + instance = instance != null ? instance : new V1NodeSystemInfo(); if (instance != null) { - this.withArchitecture(instance.getArchitecture()); - this.withBootID(instance.getBootID()); - this.withContainerRuntimeVersion(instance.getContainerRuntimeVersion()); - this.withKernelVersion(instance.getKernelVersion()); - this.withKubeProxyVersion(instance.getKubeProxyVersion()); - this.withKubeletVersion(instance.getKubeletVersion()); - this.withMachineID(instance.getMachineID()); - this.withOperatingSystem(instance.getOperatingSystem()); - this.withOsImage(instance.getOsImage()); - this.withSwap(instance.getSwap()); - this.withSystemUUID(instance.getSystemUUID()); - } + this.withArchitecture(instance.getArchitecture()); + this.withBootID(instance.getBootID()); + this.withContainerRuntimeVersion(instance.getContainerRuntimeVersion()); + this.withKernelVersion(instance.getKernelVersion()); + this.withKubeProxyVersion(instance.getKubeProxyVersion()); + this.withKubeletVersion(instance.getKubeletVersion()); + this.withMachineID(instance.getMachineID()); + this.withOperatingSystem(instance.getOperatingSystem()); + this.withOsImage(instance.getOsImage()); + this.withSwap(instance.getSwap()); + this.withSystemUUID(instance.getSystemUUID()); + } } public String getArchitecture() { @@ -192,15 +195,15 @@ public SwapNested withNewSwapLike(V1NodeSwapStatus item) { } public SwapNested editSwap() { - return withNewSwapLike(java.util.Optional.ofNullable(buildSwap()).orElse(null)); + return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(null)); } public SwapNested editOrNewSwap() { - return withNewSwapLike(java.util.Optional.ofNullable(buildSwap()).orElse(new V1NodeSwapStatusBuilder().build())); + return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(new V1NodeSwapStatusBuilder().build())); } public SwapNested editOrNewSwapLike(V1NodeSwapStatus item) { - return withNewSwapLike(java.util.Optional.ofNullable(buildSwap()).orElse(item)); + return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(item)); } public String getSystemUUID() { @@ -217,42 +220,113 @@ public boolean hasSystemUUID() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeSystemInfoFluent that = (V1NodeSystemInfoFluent) o; - if (!java.util.Objects.equals(architecture, that.architecture)) return false; - if (!java.util.Objects.equals(bootID, that.bootID)) return false; - if (!java.util.Objects.equals(containerRuntimeVersion, that.containerRuntimeVersion)) return false; - if (!java.util.Objects.equals(kernelVersion, that.kernelVersion)) return false; - if (!java.util.Objects.equals(kubeProxyVersion, that.kubeProxyVersion)) return false; - if (!java.util.Objects.equals(kubeletVersion, that.kubeletVersion)) return false; - if (!java.util.Objects.equals(machineID, that.machineID)) return false; - if (!java.util.Objects.equals(operatingSystem, that.operatingSystem)) return false; - if (!java.util.Objects.equals(osImage, that.osImage)) return false; - if (!java.util.Objects.equals(swap, that.swap)) return false; - if (!java.util.Objects.equals(systemUUID, that.systemUUID)) return false; + if (!(Objects.equals(architecture, that.architecture))) { + return false; + } + if (!(Objects.equals(bootID, that.bootID))) { + return false; + } + if (!(Objects.equals(containerRuntimeVersion, that.containerRuntimeVersion))) { + return false; + } + if (!(Objects.equals(kernelVersion, that.kernelVersion))) { + return false; + } + if (!(Objects.equals(kubeProxyVersion, that.kubeProxyVersion))) { + return false; + } + if (!(Objects.equals(kubeletVersion, that.kubeletVersion))) { + return false; + } + if (!(Objects.equals(machineID, that.machineID))) { + return false; + } + if (!(Objects.equals(operatingSystem, that.operatingSystem))) { + return false; + } + if (!(Objects.equals(osImage, that.osImage))) { + return false; + } + if (!(Objects.equals(swap, that.swap))) { + return false; + } + if (!(Objects.equals(systemUUID, that.systemUUID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, swap, systemUUID, super.hashCode()); + return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, swap, systemUUID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (architecture != null) { sb.append("architecture:"); sb.append(architecture + ","); } - if (bootID != null) { sb.append("bootID:"); sb.append(bootID + ","); } - if (containerRuntimeVersion != null) { sb.append("containerRuntimeVersion:"); sb.append(containerRuntimeVersion + ","); } - if (kernelVersion != null) { sb.append("kernelVersion:"); sb.append(kernelVersion + ","); } - if (kubeProxyVersion != null) { sb.append("kubeProxyVersion:"); sb.append(kubeProxyVersion + ","); } - if (kubeletVersion != null) { sb.append("kubeletVersion:"); sb.append(kubeletVersion + ","); } - if (machineID != null) { sb.append("machineID:"); sb.append(machineID + ","); } - if (operatingSystem != null) { sb.append("operatingSystem:"); sb.append(operatingSystem + ","); } - if (osImage != null) { sb.append("osImage:"); sb.append(osImage + ","); } - if (swap != null) { sb.append("swap:"); sb.append(swap + ","); } - if (systemUUID != null) { sb.append("systemUUID:"); sb.append(systemUUID); } + if (!(architecture == null)) { + sb.append("architecture:"); + sb.append(architecture); + sb.append(","); + } + if (!(bootID == null)) { + sb.append("bootID:"); + sb.append(bootID); + sb.append(","); + } + if (!(containerRuntimeVersion == null)) { + sb.append("containerRuntimeVersion:"); + sb.append(containerRuntimeVersion); + sb.append(","); + } + if (!(kernelVersion == null)) { + sb.append("kernelVersion:"); + sb.append(kernelVersion); + sb.append(","); + } + if (!(kubeProxyVersion == null)) { + sb.append("kubeProxyVersion:"); + sb.append(kubeProxyVersion); + sb.append(","); + } + if (!(kubeletVersion == null)) { + sb.append("kubeletVersion:"); + sb.append(kubeletVersion); + sb.append(","); + } + if (!(machineID == null)) { + sb.append("machineID:"); + sb.append(machineID); + sb.append(","); + } + if (!(operatingSystem == null)) { + sb.append("operatingSystem:"); + sb.append(operatingSystem); + sb.append(","); + } + if (!(osImage == null)) { + sb.append("osImage:"); + sb.append(osImage); + sb.append(","); + } + if (!(swap == null)) { + sb.append("swap:"); + sb.append(swap); + sb.append(","); + } + if (!(systemUUID == null)) { + sb.append("systemUUID:"); + sb.append(systemUUID); + } sb.append("}"); return sb.toString(); } 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 907aae7433..296d56dd40 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NonResourceAttributesBuilder extends V1NonResourceAttributesFluent implements VisitableBuilder{ public V1NonResourceAttributesBuilder() { this(new V1NonResourceAttributes()); 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 76a19ecdef..262f458ecc 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NonResourceAttributesFluent> extends BaseFluent{ +public class V1NonResourceAttributesFluent> extends BaseFluent{ public V1NonResourceAttributesFluent() { } @@ -20,11 +22,11 @@ public V1NonResourceAttributesFluent(V1NonResourceAttributes instance) { private String verb; protected void copyInstance(V1NonResourceAttributes instance) { - instance = (instance != null ? instance : new V1NonResourceAttributes()); + instance = instance != null ? instance : new V1NonResourceAttributes(); if (instance != null) { - this.withPath(instance.getPath()); - this.withVerb(instance.getVerb()); - } + this.withPath(instance.getPath()); + this.withVerb(instance.getVerb()); + } } public String getPath() { @@ -54,24 +56,41 @@ public boolean hasVerb() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NonResourceAttributesFluent that = (V1NonResourceAttributesFluent) o; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(verb, that.verb)) return false; + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(verb, that.verb))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(path, verb, super.hashCode()); + return Objects.hash(path, verb); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (verb != null) { sb.append("verb:"); sb.append(verb); } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(verb == null)) { + sb.append("verb:"); + sb.append(verb); + } sb.append("}"); return sb.toString(); } 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 05a18445de..7f3a6174f5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NonResourcePolicyRuleBuilder extends V1NonResourcePolicyRuleFluent implements VisitableBuilder{ public V1NonResourcePolicyRuleBuilder() { this(new V1NonResourcePolicyRule()); 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 1ea96e5420..a5fd694b02 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NonResourcePolicyRuleFluent> extends BaseFluent{ +public class V1NonResourcePolicyRuleFluent> extends BaseFluent{ public V1NonResourcePolicyRuleFluent() { } @@ -24,42 +26,67 @@ public V1NonResourcePolicyRuleFluent(V1NonResourcePolicyRule instance) { private List verbs; protected void copyInstance(V1NonResourcePolicyRule instance) { - instance = (instance != null ? instance : new V1NonResourcePolicyRule()); + instance = instance != null ? instance : new V1NonResourcePolicyRule(); if (instance != null) { - this.withNonResourceURLs(instance.getNonResourceURLs()); - this.withVerbs(instance.getVerbs()); - } + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withVerbs(instance.getVerbs()); + } } public A addToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } this.nonResourceURLs.add(index, item); - return (A)this; + return (A) this; } public A setToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - this.nonResourceURLs.set(index, item); return (A)this; + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.set(index, item); + return (A) this; } - public A addToNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; + public A addToNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(item); + } + return (A) this; } public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(item); + } + return (A) this; } - public A removeFromNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; + public A removeFromNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; } public A removeAllFromNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; } public List getNonResourceURLs() { @@ -108,7 +135,7 @@ public A withNonResourceURLs(List nonResourceURLs) { return (A) this; } - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { + public A withNonResourceURLs(String... nonResourceURLs) { if (this.nonResourceURLs != null) { this.nonResourceURLs.clear(); _visitables.remove("nonResourceURLs"); @@ -122,38 +149,63 @@ public A withNonResourceURLs(java.lang.String... nonResourceURLs) { } public boolean hasNonResourceURLs() { - return this.nonResourceURLs != null && !this.nonResourceURLs.isEmpty(); + return this.nonResourceURLs != null && !(this.nonResourceURLs.isEmpty()); } public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} + if (this.verbs == null) { + this.verbs = new ArrayList(); + } this.verbs.add(index, item); - return (A)this; + return (A) this; } public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public List getVerbs() { @@ -202,7 +254,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -216,28 +268,45 @@ public A withVerbs(java.lang.String... verbs) { } public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); + return this.verbs != null && !(this.verbs.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NonResourcePolicyRuleFluent that = (V1NonResourcePolicyRuleFluent) o; - if (!java.util.Objects.equals(nonResourceURLs, that.nonResourceURLs)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; + if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); + return Objects.hash(nonResourceURLs, verbs); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } + if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { + sb.append("nonResourceURLs:"); + sb.append(nonResourceURLs); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } sb.append("}"); return sb.toString(); } 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 a7926f2619..3000218afc 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NonResourceRuleBuilder extends V1NonResourceRuleFluent implements VisitableBuilder{ public V1NonResourceRuleBuilder() { this(new V1NonResourceRule()); 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 263319bc4d..8896b9ce33 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1NonResourceRuleFluent> extends BaseFluent{ +public class V1NonResourceRuleFluent> extends BaseFluent{ public V1NonResourceRuleFluent() { } @@ -24,42 +26,67 @@ public V1NonResourceRuleFluent(V1NonResourceRule instance) { private List verbs; protected void copyInstance(V1NonResourceRule instance) { - instance = (instance != null ? instance : new V1NonResourceRule()); + instance = instance != null ? instance : new V1NonResourceRule(); if (instance != null) { - this.withNonResourceURLs(instance.getNonResourceURLs()); - this.withVerbs(instance.getVerbs()); - } + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withVerbs(instance.getVerbs()); + } } public A addToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } this.nonResourceURLs.add(index, item); - return (A)this; + return (A) this; } public A setToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - this.nonResourceURLs.set(index, item); return (A)this; + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.set(index, item); + return (A) this; } - public A addToNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; + public A addToNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(item); + } + return (A) this; } public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(item); + } + return (A) this; } - public A removeFromNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; + public A removeFromNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; } public A removeAllFromNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; } public List getNonResourceURLs() { @@ -108,7 +135,7 @@ public A withNonResourceURLs(List nonResourceURLs) { return (A) this; } - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { + public A withNonResourceURLs(String... nonResourceURLs) { if (this.nonResourceURLs != null) { this.nonResourceURLs.clear(); _visitables.remove("nonResourceURLs"); @@ -122,38 +149,63 @@ public A withNonResourceURLs(java.lang.String... nonResourceURLs) { } public boolean hasNonResourceURLs() { - return this.nonResourceURLs != null && !this.nonResourceURLs.isEmpty(); + return this.nonResourceURLs != null && !(this.nonResourceURLs.isEmpty()); } public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} + if (this.verbs == null) { + this.verbs = new ArrayList(); + } this.verbs.add(index, item); - return (A)this; + return (A) this; } public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public List getVerbs() { @@ -202,7 +254,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -216,28 +268,45 @@ public A withVerbs(java.lang.String... verbs) { } public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); + return this.verbs != null && !(this.verbs.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NonResourceRuleFluent that = (V1NonResourceRuleFluent) o; - if (!java.util.Objects.equals(nonResourceURLs, that.nonResourceURLs)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; + if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); + return Objects.hash(nonResourceURLs, verbs); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } + if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { + sb.append("nonResourceURLs:"); + sb.append(nonResourceURLs); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } sb.append("}"); return sb.toString(); } 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 4eca119cac..5ee38b9702 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ObjectFieldSelectorBuilder extends V1ObjectFieldSelectorFluent implements VisitableBuilder{ public V1ObjectFieldSelectorBuilder() { this(new V1ObjectFieldSelector()); 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 a20298c2f4..3b124afaa0 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ObjectFieldSelectorFluent> extends BaseFluent{ +public class V1ObjectFieldSelectorFluent> extends BaseFluent{ public V1ObjectFieldSelectorFluent() { } @@ -20,11 +22,11 @@ public V1ObjectFieldSelectorFluent(V1ObjectFieldSelector instance) { private String fieldPath; protected void copyInstance(V1ObjectFieldSelector instance) { - instance = (instance != null ? instance : new V1ObjectFieldSelector()); + instance = instance != null ? instance : new V1ObjectFieldSelector(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withFieldPath(instance.getFieldPath()); - } + this.withApiVersion(instance.getApiVersion()); + this.withFieldPath(instance.getFieldPath()); + } } public String getApiVersion() { @@ -54,24 +56,41 @@ public boolean hasFieldPath() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ObjectFieldSelectorFluent that = (V1ObjectFieldSelectorFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(fieldPath, that.fieldPath)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(fieldPath, that.fieldPath))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, fieldPath, super.hashCode()); + return Objects.hash(apiVersion, fieldPath); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (fieldPath != null) { sb.append("fieldPath:"); sb.append(fieldPath); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(fieldPath == null)) { + sb.append("fieldPath:"); + sb.append(fieldPath); + } sb.append("}"); return sb.toString(); } 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 cb61ffcd3c..628c2cd957 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ObjectMetaBuilder extends V1ObjectMetaFluent implements VisitableBuilder{ public V1ObjectMetaBuilder() { this(new V1ObjectMeta()); 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 a2a857b24b..030bb64db3 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 @@ -1,17 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.time.OffsetDateTime; import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; @@ -20,7 +22,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ObjectMetaFluent> extends BaseFluent{ +public class V1ObjectMetaFluent> extends BaseFluent{ public V1ObjectMetaFluent() { } @@ -44,44 +46,68 @@ public V1ObjectMetaFluent(V1ObjectMeta instance) { private String uid; protected void copyInstance(V1ObjectMeta instance) { - instance = (instance != null ? instance : new V1ObjectMeta()); + instance = instance != null ? instance : new V1ObjectMeta(); if (instance != null) { - this.withAnnotations(instance.getAnnotations()); - this.withCreationTimestamp(instance.getCreationTimestamp()); - this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); - this.withDeletionTimestamp(instance.getDeletionTimestamp()); - this.withFinalizers(instance.getFinalizers()); - this.withGenerateName(instance.getGenerateName()); - this.withGeneration(instance.getGeneration()); - this.withLabels(instance.getLabels()); - this.withManagedFields(instance.getManagedFields()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withOwnerReferences(instance.getOwnerReferences()); - this.withResourceVersion(instance.getResourceVersion()); - this.withSelfLink(instance.getSelfLink()); - this.withUid(instance.getUid()); - } + this.withAnnotations(instance.getAnnotations()); + this.withCreationTimestamp(instance.getCreationTimestamp()); + this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); + this.withDeletionTimestamp(instance.getDeletionTimestamp()); + this.withFinalizers(instance.getFinalizers()); + this.withGenerateName(instance.getGenerateName()); + this.withGeneration(instance.getGeneration()); + this.withLabels(instance.getLabels()); + this.withManagedFields(instance.getManagedFields()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withOwnerReferences(instance.getOwnerReferences()); + this.withResourceVersion(instance.getResourceVersion()); + this.withSelfLink(instance.getSelfLink()); + this.withUid(instance.getUid()); + } } public A addToAnnotations(String key,String value) { - if(this.annotations == null && key != null && value != null) { this.annotations = new LinkedHashMap(); } - if(key != null && value != null) {this.annotations.put(key, value);} return (A)this; + if (this.annotations == null && key != null && value != null) { + this.annotations = new LinkedHashMap(); + } + if (key != null && value != null) { + this.annotations.put(key, value); + } + return (A) this; } public A addToAnnotations(Map map) { - if(this.annotations == null && map != null) { this.annotations = new LinkedHashMap(); } - if(map != null) { this.annotations.putAll(map);} return (A)this; + if (this.annotations == null && map != null) { + this.annotations = new LinkedHashMap(); + } + if (map != null) { + this.annotations.putAll(map); + } + return (A) this; } public A removeFromAnnotations(String key) { - if(this.annotations == null) { return (A) this; } - if(key != null && this.annotations != null) {this.annotations.remove(key);} return (A)this; + if (this.annotations == null) { + return (A) this; + } + if (key != null && this.annotations != null) { + this.annotations.remove(key); + } + return (A) this; } public A removeFromAnnotations(Map map) { - if(this.annotations == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.annotations != null){this.annotations.remove(key);}}} return (A)this; + if (this.annotations == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.annotations != null) { + this.annotations.remove(key); + } + } + } + return (A) this; } public Map getAnnotations() { @@ -141,34 +167,59 @@ public boolean hasDeletionTimestamp() { } public A addToFinalizers(int index,String item) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } this.finalizers.add(index, item); - return (A)this; + return (A) this; } public A setToFinalizers(int index,String item) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - this.finalizers.set(index, item); return (A)this; + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + this.finalizers.set(index, item); + return (A) this; } - public A addToFinalizers(java.lang.String... items) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - for (String item : items) {this.finalizers.add(item);} return (A)this; + public A addToFinalizers(String... items) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + for (String item : items) { + this.finalizers.add(item); + } + return (A) this; } public A addAllToFinalizers(Collection items) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - for (String item : items) {this.finalizers.add(item);} return (A)this; + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + for (String item : items) { + this.finalizers.add(item); + } + return (A) this; } - public A removeFromFinalizers(java.lang.String... items) { - if (this.finalizers == null) return (A)this; - for (String item : items) { this.finalizers.remove(item);} return (A)this; + public A removeFromFinalizers(String... items) { + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; } public A removeAllFromFinalizers(Collection items) { - if (this.finalizers == null) return (A)this; - for (String item : items) { this.finalizers.remove(item);} return (A)this; + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; } public List getFinalizers() { @@ -217,7 +268,7 @@ public A withFinalizers(List finalizers) { return (A) this; } - public A withFinalizers(java.lang.String... finalizers) { + public A withFinalizers(String... finalizers) { if (this.finalizers != null) { this.finalizers.clear(); _visitables.remove("finalizers"); @@ -231,7 +282,7 @@ public A withFinalizers(java.lang.String... finalizers) { } public boolean hasFinalizers() { - return this.finalizers != null && !this.finalizers.isEmpty(); + return this.finalizers != null && !(this.finalizers.isEmpty()); } public String getGenerateName() { @@ -261,23 +312,47 @@ public boolean hasGeneration() { } public A addToLabels(String key,String value) { - if(this.labels == null && key != null && value != null) { this.labels = new LinkedHashMap(); } - if(key != null && value != null) {this.labels.put(key, value);} return (A)this; + if (this.labels == null && key != null && value != null) { + this.labels = new LinkedHashMap(); + } + if (key != null && value != null) { + this.labels.put(key, value); + } + return (A) this; } public A addToLabels(Map map) { - if(this.labels == null && map != null) { this.labels = new LinkedHashMap(); } - if(map != null) { this.labels.putAll(map);} return (A)this; + if (this.labels == null && map != null) { + this.labels = new LinkedHashMap(); + } + if (map != null) { + this.labels.putAll(map); + } + return (A) this; } public A removeFromLabels(String key) { - if(this.labels == null) { return (A) this; } - if(key != null && this.labels != null) {this.labels.remove(key);} return (A)this; + if (this.labels == null) { + return (A) this; + } + if (key != null && this.labels != null) { + this.labels.remove(key); + } + return (A) this; } public A removeFromLabels(Map map) { - if(this.labels == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.labels != null){this.labels.remove(key);}}} return (A)this; + if (this.labels == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.labels != null) { + this.labels.remove(key); + } + } + } + return (A) this; } public Map getLabels() { @@ -298,7 +373,9 @@ public boolean hasLabels() { } public A addToManagedFields(int index,V1ManagedFieldsEntry item) { - if (this.managedFields == null) {this.managedFields = new ArrayList();} + if (this.managedFields == null) { + this.managedFields = new ArrayList(); + } V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); if (index < 0 || index >= managedFields.size()) { _visitables.get("managedFields").add(builder); @@ -307,11 +384,13 @@ public A addToManagedFields(int index,V1ManagedFieldsEntry item) { _visitables.get("managedFields").add(builder); managedFields.add(index, builder); } - return (A)this; + return (A) this; } public A setToManagedFields(int index,V1ManagedFieldsEntry item) { - if (this.managedFields == null) {this.managedFields = new ArrayList();} + if (this.managedFields == null) { + this.managedFields = new ArrayList(); + } V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); if (index < 0 || index >= managedFields.size()) { _visitables.get("managedFields").add(builder); @@ -320,41 +399,71 @@ public A setToManagedFields(int index,V1ManagedFieldsEntry item) { _visitables.get("managedFields").add(builder); managedFields.set(index, builder); } - return (A)this; + return (A) this; } - public A addToManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items) { - if (this.managedFields == null) {this.managedFields = new ArrayList();} - for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").add(builder);this.managedFields.add(builder);} return (A)this; + public A addToManagedFields(V1ManagedFieldsEntry... items) { + if (this.managedFields == null) { + this.managedFields = new ArrayList(); + } + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").add(builder); + this.managedFields.add(builder); + } + return (A) this; } public A addAllToManagedFields(Collection items) { - if (this.managedFields == null) {this.managedFields = new ArrayList();} - for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").add(builder);this.managedFields.add(builder);} return (A)this; + if (this.managedFields == null) { + this.managedFields = new ArrayList(); + } + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").add(builder); + this.managedFields.add(builder); + } + return (A) this; } - public A removeFromManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items) { - if (this.managedFields == null) return (A)this; - for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").remove(builder); this.managedFields.remove(builder);} return (A)this; + public A removeFromManagedFields(V1ManagedFieldsEntry... items) { + if (this.managedFields == null) { + return (A) this; + } + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").remove(builder); + this.managedFields.remove(builder); + } + return (A) this; } public A removeAllFromManagedFields(Collection items) { - if (this.managedFields == null) return (A)this; - for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").remove(builder); this.managedFields.remove(builder);} return (A)this; + if (this.managedFields == null) { + return (A) this; + } + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").remove(builder); + this.managedFields.remove(builder); + } + return (A) this; } public A removeMatchingFromManagedFields(Predicate predicate) { - if (managedFields == null) return (A) this; - final Iterator each = managedFields.iterator(); - final List visitables = _visitables.get("managedFields"); + if (managedFields == null) { + return (A) this; + } + Iterator each = managedFields.iterator(); + List visitables = _visitables.get("managedFields"); while (each.hasNext()) { - V1ManagedFieldsEntryBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ManagedFieldsEntryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildManagedFields() { @@ -406,7 +515,7 @@ public A withManagedFields(List managedFields) { return (A) this; } - public A withManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... managedFields) { + public A withManagedFields(V1ManagedFieldsEntry... managedFields) { if (this.managedFields != null) { this.managedFields.clear(); _visitables.remove("managedFields"); @@ -420,7 +529,7 @@ public A withManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEn } public boolean hasManagedFields() { - return this.managedFields != null && !this.managedFields.isEmpty(); + return this.managedFields != null && !(this.managedFields.isEmpty()); } public ManagedFieldsNested addNewManagedField() { @@ -436,28 +545,39 @@ public ManagedFieldsNested setNewManagedFieldLike(int index,V1ManagedFieldsEn } public ManagedFieldsNested editManagedField(int index) { - if (managedFields.size() <= index) throw new RuntimeException("Can't edit managedFields. Index exceeds size."); - return setNewManagedFieldLike(index, buildManagedField(index)); + if (index <= managedFields.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "managedFields")); + } + return this.setNewManagedFieldLike(index, this.buildManagedField(index)); } public ManagedFieldsNested editFirstManagedField() { - if (managedFields.size() == 0) throw new RuntimeException("Can't edit first managedFields. The list is empty."); - return setNewManagedFieldLike(0, buildManagedField(0)); + if (managedFields.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "managedFields")); + } + return this.setNewManagedFieldLike(0, this.buildManagedField(0)); } public ManagedFieldsNested editLastManagedField() { int index = managedFields.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last managedFields. The list is empty."); - return setNewManagedFieldLike(index, buildManagedField(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "managedFields")); + } + return this.setNewManagedFieldLike(index, this.buildManagedField(index)); } public ManagedFieldsNested editMatchingManagedField(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); + } V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); if (index < 0 || index >= ownerReferences.size()) { _visitables.get("ownerReferences").add(builder); @@ -496,11 +618,13 @@ public A addToOwnerReferences(int index,V1OwnerReference item) { _visitables.get("ownerReferences").add(builder); ownerReferences.add(index, builder); } - return (A)this; + return (A) this; } public A setToOwnerReferences(int index,V1OwnerReference item) { - if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); + } V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); if (index < 0 || index >= ownerReferences.size()) { _visitables.get("ownerReferences").add(builder); @@ -509,41 +633,71 @@ public A setToOwnerReferences(int index,V1OwnerReference item) { _visitables.get("ownerReferences").add(builder); ownerReferences.set(index, builder); } - return (A)this; + return (A) this; } - public A addToOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items) { - if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} - for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").add(builder);this.ownerReferences.add(builder);} return (A)this; + public A addToOwnerReferences(V1OwnerReference... items) { + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); + } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").add(builder); + this.ownerReferences.add(builder); + } + return (A) this; } public A addAllToOwnerReferences(Collection items) { - if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} - for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").add(builder);this.ownerReferences.add(builder);} return (A)this; + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); + } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").add(builder); + this.ownerReferences.add(builder); + } + return (A) this; } - public A removeFromOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items) { - if (this.ownerReferences == null) return (A)this; - for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").remove(builder); this.ownerReferences.remove(builder);} return (A)this; + public A removeFromOwnerReferences(V1OwnerReference... items) { + if (this.ownerReferences == null) { + return (A) this; + } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").remove(builder); + this.ownerReferences.remove(builder); + } + return (A) this; } public A removeAllFromOwnerReferences(Collection items) { - if (this.ownerReferences == null) return (A)this; - for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").remove(builder); this.ownerReferences.remove(builder);} return (A)this; + if (this.ownerReferences == null) { + return (A) this; + } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").remove(builder); + this.ownerReferences.remove(builder); + } + return (A) this; } public A removeMatchingFromOwnerReferences(Predicate predicate) { - if (ownerReferences == null) return (A) this; - final Iterator each = ownerReferences.iterator(); - final List visitables = _visitables.get("ownerReferences"); + if (ownerReferences == null) { + return (A) this; + } + Iterator each = ownerReferences.iterator(); + List visitables = _visitables.get("ownerReferences"); while (each.hasNext()) { - V1OwnerReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1OwnerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildOwnerReferences() { @@ -595,7 +749,7 @@ public A withOwnerReferences(List ownerReferences) { return (A) this; } - public A withOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... ownerReferences) { + public A withOwnerReferences(V1OwnerReference... ownerReferences) { if (this.ownerReferences != null) { this.ownerReferences.clear(); _visitables.remove("ownerReferences"); @@ -609,7 +763,7 @@ public A withOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReferenc } public boolean hasOwnerReferences() { - return this.ownerReferences != null && !this.ownerReferences.isEmpty(); + return this.ownerReferences != null && !(this.ownerReferences.isEmpty()); } public OwnerReferencesNested addNewOwnerReference() { @@ -625,28 +779,39 @@ public OwnerReferencesNested setNewOwnerReferenceLike(int index,V1OwnerRefere } public OwnerReferencesNested editOwnerReference(int index) { - if (ownerReferences.size() <= index) throw new RuntimeException("Can't edit ownerReferences. Index exceeds size."); - return setNewOwnerReferenceLike(index, buildOwnerReference(index)); + if (index <= ownerReferences.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); } public OwnerReferencesNested editFirstOwnerReference() { - if (ownerReferences.size() == 0) throw new RuntimeException("Can't edit first ownerReferences. The list is empty."); - return setNewOwnerReferenceLike(0, buildOwnerReference(0)); + if (ownerReferences.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(0, this.buildOwnerReference(0)); } public OwnerReferencesNested editLastOwnerReference() { int index = ownerReferences.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ownerReferences. The list is empty."); - return setNewOwnerReferenceLike(index, buildOwnerReference(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); } public OwnerReferencesNested editMatchingOwnerReference(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ManagedFieldsEntryFluent extends V1OwnerReferenceFluent implements VisitableBuilder{ public V1ObjectReferenceBuilder() { this(new V1ObjectReference()); 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 321a24325f..99cdcb3ca4 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ObjectReferenceFluent> extends BaseFluent{ +public class V1ObjectReferenceFluent> extends BaseFluent{ public V1ObjectReferenceFluent() { } @@ -25,16 +27,16 @@ public V1ObjectReferenceFluent(V1ObjectReference instance) { private String uid; protected void copyInstance(V1ObjectReference instance) { - instance = (instance != null ? instance : new V1ObjectReference()); + instance = instance != null ? instance : new V1ObjectReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withFieldPath(instance.getFieldPath()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResourceVersion(instance.getResourceVersion()); - this.withUid(instance.getUid()); - } + this.withApiVersion(instance.getApiVersion()); + this.withFieldPath(instance.getFieldPath()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResourceVersion(instance.getResourceVersion()); + this.withUid(instance.getUid()); + } } public String getApiVersion() { @@ -129,34 +131,81 @@ public boolean hasUid() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ObjectReferenceFluent that = (V1ObjectReferenceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(fieldPath, that.fieldPath)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(resourceVersion, that.resourceVersion)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(fieldPath, that.fieldPath))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, fieldPath, kind, name, namespace, resourceVersion, uid, super.hashCode()); + return Objects.hash(apiVersion, fieldPath, kind, name, namespace, resourceVersion, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (fieldPath != null) { sb.append("fieldPath:"); sb.append(fieldPath + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(fieldPath == null)) { + sb.append("fieldPath:"); + sb.append(fieldPath); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..98425c0ce8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1OpaqueDeviceConfigurationBuilder extends V1OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + public V1OpaqueDeviceConfigurationBuilder() { + this(new V1OpaqueDeviceConfiguration()); + } + + public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfigurationFluent fluent) { + this(fluent, new V1OpaqueDeviceConfiguration()); + } + + public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfigurationFluent fluent,V1OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1OpaqueDeviceConfigurationFluent fluent; + + public V1OpaqueDeviceConfiguration build() { + V1OpaqueDeviceConfiguration buildable = new V1OpaqueDeviceConfiguration(); + buildable.setDriver(fluent.getDriver()); + buildable.setParameters(fluent.getParameters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java new file mode 100644 index 0000000000..5ab37eb6a8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java @@ -0,0 +1,99 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1OpaqueDeviceConfigurationFluent> extends BaseFluent{ + public V1OpaqueDeviceConfigurationFluent() { + } + + public V1OpaqueDeviceConfigurationFluent(V1OpaqueDeviceConfiguration instance) { + this.copyInstance(instance); + } + private String driver; + private Object parameters; + + protected void copyInstance(V1OpaqueDeviceConfiguration instance) { + instance = instance != null ? instance : new V1OpaqueDeviceConfiguration(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public Object getParameters() { + return this.parameters; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1OpaqueDeviceConfigurationFluent that = (V1OpaqueDeviceConfigurationFluent) o; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(driver, parameters); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(parameters == null)) { + sb.append("parameters:"); + sb.append(parameters); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java index 006bacfd7f..efb6c56397 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1OverheadBuilder extends V1OverheadFluent implements VisitableBuilder{ public V1OverheadBuilder() { this(new V1Overhead()); 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 19a0f8d0e8..3e40e830c9 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -12,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1OverheadFluent> extends BaseFluent{ +public class V1OverheadFluent> extends BaseFluent{ public V1OverheadFluent() { } @@ -22,30 +24,54 @@ public V1OverheadFluent(V1Overhead instance) { private Map podFixed; protected void copyInstance(V1Overhead instance) { - instance = (instance != null ? instance : new V1Overhead()); + instance = instance != null ? instance : new V1Overhead(); if (instance != null) { - this.withPodFixed(instance.getPodFixed()); - } + this.withPodFixed(instance.getPodFixed()); + } } public A addToPodFixed(String key,Quantity value) { - if(this.podFixed == null && key != null && value != null) { this.podFixed = new LinkedHashMap(); } - if(key != null && value != null) {this.podFixed.put(key, value);} return (A)this; + if (this.podFixed == null && key != null && value != null) { + this.podFixed = new LinkedHashMap(); + } + if (key != null && value != null) { + this.podFixed.put(key, value); + } + return (A) this; } public A addToPodFixed(Map map) { - if(this.podFixed == null && map != null) { this.podFixed = new LinkedHashMap(); } - if(map != null) { this.podFixed.putAll(map);} return (A)this; + if (this.podFixed == null && map != null) { + this.podFixed = new LinkedHashMap(); + } + if (map != null) { + this.podFixed.putAll(map); + } + return (A) this; } public A removeFromPodFixed(String key) { - if(this.podFixed == null) { return (A) this; } - if(key != null && this.podFixed != null) {this.podFixed.remove(key);} return (A)this; + if (this.podFixed == null) { + return (A) this; + } + if (key != null && this.podFixed != null) { + this.podFixed.remove(key); + } + return (A) this; } public A removeFromPodFixed(Map map) { - if(this.podFixed == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.podFixed != null){this.podFixed.remove(key);}}} return (A)this; + if (this.podFixed == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.podFixed != null) { + this.podFixed.remove(key); + } + } + } + return (A) this; } public Map getPodFixed() { @@ -66,22 +92,33 @@ public boolean hasPodFixed() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1OverheadFluent that = (V1OverheadFluent) o; - if (!java.util.Objects.equals(podFixed, that.podFixed)) return false; + if (!(Objects.equals(podFixed, that.podFixed))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(podFixed, super.hashCode()); + return Objects.hash(podFixed); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (podFixed != null && !podFixed.isEmpty()) { sb.append("podFixed:"); sb.append(podFixed); } + if (!(podFixed == null) && !(podFixed.isEmpty())) { + sb.append("podFixed:"); + sb.append(podFixed); + } sb.append("}"); return sb.toString(); } 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 7d292fa113..b07463f0d2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1OwnerReferenceBuilder extends V1OwnerReferenceFluent implements VisitableBuilder{ public V1OwnerReferenceBuilder() { this(new V1OwnerReference()); 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 272276b27d..a7abc50c17 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1OwnerReferenceFluent> extends BaseFluent{ +public class V1OwnerReferenceFluent> extends BaseFluent{ public V1OwnerReferenceFluent() { } @@ -25,15 +27,15 @@ public V1OwnerReferenceFluent(V1OwnerReference instance) { private String uid; protected void copyInstance(V1OwnerReference instance) { - instance = (instance != null ? instance : new V1OwnerReference()); + instance = instance != null ? instance : new V1OwnerReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withBlockOwnerDeletion(instance.getBlockOwnerDeletion()); - this.withController(instance.getController()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withUid(instance.getUid()); - } + this.withApiVersion(instance.getApiVersion()); + this.withBlockOwnerDeletion(instance.getBlockOwnerDeletion()); + this.withController(instance.getController()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withUid(instance.getUid()); + } } public String getApiVersion() { @@ -115,32 +117,73 @@ public boolean hasUid() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1OwnerReferenceFluent that = (V1OwnerReferenceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(blockOwnerDeletion, that.blockOwnerDeletion)) return false; - if (!java.util.Objects.equals(controller, that.controller)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(blockOwnerDeletion, that.blockOwnerDeletion))) { + return false; + } + if (!(Objects.equals(controller, that.controller))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, blockOwnerDeletion, controller, kind, name, uid, super.hashCode()); + return Objects.hash(apiVersion, blockOwnerDeletion, controller, kind, name, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (blockOwnerDeletion != null) { sb.append("blockOwnerDeletion:"); sb.append(blockOwnerDeletion + ","); } - if (controller != null) { sb.append("controller:"); sb.append(controller + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(blockOwnerDeletion == null)) { + sb.append("blockOwnerDeletion:"); + sb.append(blockOwnerDeletion); + sb.append(","); + } + if (!(controller == null)) { + sb.append("controller:"); + sb.append(controller); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + 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(); } 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 1800023ec1..8bc259e90e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ParamKindBuilder extends V1ParamKindFluent implements VisitableBuilder{ public V1ParamKindBuilder() { this(new V1ParamKind()); 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 f99f5d41d0..7486435d1a 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ParamKindFluent> extends BaseFluent{ +public class V1ParamKindFluent> extends BaseFluent{ public V1ParamKindFluent() { } @@ -20,11 +22,11 @@ public V1ParamKindFluent(V1ParamKind instance) { private String kind; protected void copyInstance(V1ParamKind instance) { - instance = (instance != null ? instance : new V1ParamKind()); + instance = instance != null ? instance : new V1ParamKind(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + } } public String getApiVersion() { @@ -54,24 +56,41 @@ public boolean hasKind() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ParamKindFluent that = (V1ParamKindFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, super.hashCode()); + return Objects.hash(apiVersion, kind); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + 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/V1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java index e4a453db6d..08162a7f4a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ParamRefBuilder extends V1ParamRefFluent implements VisitableBuilder{ public V1ParamRefBuilder() { this(new V1ParamRef()); 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 a83db9fe05..3fc2b2afcf 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ParamRefFluent> extends BaseFluent{ +public class V1ParamRefFluent> extends BaseFluent{ public V1ParamRefFluent() { } @@ -23,13 +26,13 @@ public V1ParamRefFluent(V1ParamRef instance) { private V1LabelSelectorBuilder selector; protected void copyInstance(V1ParamRef instance) { - instance = (instance != null ? instance : new V1ParamRef()); + instance = instance != null ? instance : new V1ParamRef(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); - this.withSelector(instance.getSelector()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); + this.withSelector(instance.getSelector()); + } } public String getName() { @@ -100,40 +103,69 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ParamRefFluent that = (V1ParamRefFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, namespace, parameterNotFoundAction, selector, super.hashCode()); + return Objects.hash(name, namespace, parameterNotFoundAction, selector); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (parameterNotFoundAction != null) { sb.append("parameterNotFoundAction:"); sb.append(parameterNotFoundAction + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(parameterNotFoundAction == null)) { + sb.append("parameterNotFoundAction:"); + sb.append(parameterNotFoundAction); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } sb.append("}"); return sb.toString(); } 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 bd002edbab..bdb938fbc2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ParentReferenceBuilder extends V1ParentReferenceFluent implements VisitableBuilder{ public V1ParentReferenceBuilder() { this(new V1ParentReference()); 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 0102d4d1b7..0fd50d3f45 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ParentReferenceFluent> extends BaseFluent{ +public class V1ParentReferenceFluent> extends BaseFluent{ public V1ParentReferenceFluent() { } @@ -22,13 +24,13 @@ public V1ParentReferenceFluent(V1ParentReference instance) { private String resource; protected void copyInstance(V1ParentReference instance) { - instance = (instance != null ? instance : new V1ParentReference()); + instance = instance != null ? instance : new V1ParentReference(); if (instance != null) { - this.withGroup(instance.getGroup()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResource(instance.getResource()); - } + this.withGroup(instance.getGroup()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResource(instance.getResource()); + } } public String getGroup() { @@ -84,28 +86,57 @@ public boolean hasResource() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ParentReferenceFluent that = (V1ParentReferenceFluent) o; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(group, name, namespace, resource, super.hashCode()); + return Objects.hash(group, name, namespace, resource); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource); } + 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); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } sb.append("}"); return sb.toString(); } 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 bddd3062ee..6d5d4f240f 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeBuilder extends V1PersistentVolumeFluent implements VisitableBuilder{ public V1PersistentVolumeBuilder() { this(new V1PersistentVolume()); 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 77485612ac..77d24e470b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimBuilder extends V1PersistentVolumeClaimFluent implements VisitableBuilder{ public V1PersistentVolumeClaimBuilder() { this(new V1PersistentVolumeClaim()); 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 a60d586e24..0cc1819063 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimConditionBuilder extends V1PersistentVolumeClaimConditionFluent implements VisitableBuilder{ public V1PersistentVolumeClaimConditionBuilder() { this(new V1PersistentVolumeClaimCondition()); 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 3d94ff0e18..f8c84074a5 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimConditionFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimConditionFluent> extends BaseFluent{ public V1PersistentVolumeClaimConditionFluent() { } @@ -25,15 +27,15 @@ public V1PersistentVolumeClaimConditionFluent(V1PersistentVolumeClaimCondition i private String type; protected void copyInstance(V1PersistentVolumeClaimCondition instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimCondition()); + instance = instance != null ? instance : new V1PersistentVolumeClaimCondition(); if (instance != null) { - this.withLastProbeTime(instance.getLastProbeTime()); - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastProbeTime(instance.getLastProbeTime()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastProbeTime() { @@ -115,32 +117,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeClaimConditionFluent that = (V1PersistentVolumeClaimConditionFluent) o; - if (!java.util.Objects.equals(lastProbeTime, that.lastProbeTime)) return false; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastProbeTime != null) { sb.append("lastProbeTime:"); sb.append(lastProbeTime + ","); } - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(lastProbeTime == null)) { + sb.append("lastProbeTime:"); + sb.append(lastProbeTime); + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 cd916a4dc1..9370e4ad29 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimFluent> extends BaseFluent{ public V1PersistentVolumeClaimFluent() { } @@ -24,14 +27,14 @@ public V1PersistentVolumeClaimFluent(V1PersistentVolumeClaim instance) { private V1PersistentVolumeClaimStatusBuilder status; protected void copyInstance(V1PersistentVolumeClaim instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaim()); + instance = instance != null ? instance : new V1PersistentVolumeClaim(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1PersistentVolumeClaimSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1PersistentVolumeClaimSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PersistentVolumeClaimSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1PersistentVolumeClaimStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1PersistentVolumeClaimStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1PersistentVolumeClaimStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PersistentVolumeClaimStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1PersistentVolumeClaimStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeClaimFluent that = (V1PersistentVolumeClaimFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 7c30fd749b..d63f7beb3b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimListBuilder extends V1PersistentVolumeClaimListFluent implements VisitableBuilder{ public V1PersistentVolumeClaimListBuilder() { this(new V1PersistentVolumeClaimList()); 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 92ba2b1a2e..78ab50e008 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimListFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimListFluent> extends BaseFluent{ public V1PersistentVolumeClaimListFluent() { } @@ -29,13 +32,13 @@ public V1PersistentVolumeClaimListFluent(V1PersistentVolumeClaimList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1PersistentVolumeClaimList instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimList()); + instance = instance != null ? instance : new V1PersistentVolumeClaimList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1PersistentVolumeClaim item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1PersistentVolumeClaim item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1PersistentVolumeClaim item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1PersistentVolumeClaim item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1PersistentVolumeClaim... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.items == null) return (A)this; - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1PersistentVolumeClaim... items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1PersistentVolumeClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PersistentVolumeClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { + public A withItems(V1PersistentVolumeClaim... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim.. } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1PersistentVolumeClaim item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeClaimListFluent that = (V1PersistentVolumeClaimListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1PersistentVolumeClaimFluent int index; public N and() { - return (N) V1PersistentVolumeClaimListFluent.this.setToItems(index,builder.build()); + return (N) V1PersistentVolumeClaimListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 effa6daefb..dbd4b87857 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimSpecBuilder extends V1PersistentVolumeClaimSpecFluent implements VisitableBuilder{ public V1PersistentVolumeClaimSpecBuilder() { this(new V1PersistentVolumeClaimSpec()); 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 755ea57e7d..75f8a99c33 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 @@ -1,5 +1,6 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -7,6 +8,8 @@ import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimSpecFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimSpecFluent> extends BaseFluent{ public V1PersistentVolumeClaimSpecFluent() { } @@ -32,49 +35,74 @@ public V1PersistentVolumeClaimSpecFluent(V1PersistentVolumeClaimSpec instance) { private String volumeName; protected void copyInstance(V1PersistentVolumeClaimSpec instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimSpec()); + instance = instance != null ? instance : new V1PersistentVolumeClaimSpec(); if (instance != null) { - this.withAccessModes(instance.getAccessModes()); - this.withDataSource(instance.getDataSource()); - this.withDataSourceRef(instance.getDataSourceRef()); - this.withResources(instance.getResources()); - this.withSelector(instance.getSelector()); - this.withStorageClassName(instance.getStorageClassName()); - this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); - this.withVolumeMode(instance.getVolumeMode()); - this.withVolumeName(instance.getVolumeName()); - } + this.withAccessModes(instance.getAccessModes()); + this.withDataSource(instance.getDataSource()); + this.withDataSourceRef(instance.getDataSourceRef()); + this.withResources(instance.getResources()); + this.withSelector(instance.getSelector()); + this.withStorageClassName(instance.getStorageClassName()); + this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); + this.withVolumeMode(instance.getVolumeMode()); + this.withVolumeName(instance.getVolumeName()); + } } public A addToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } this.accessModes.add(index, item); - return (A)this; + return (A) this; } public A setToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - this.accessModes.set(index, item); return (A)this; + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.set(index, item); + return (A) this; } - public A addToAccessModes(java.lang.String... items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + public A addToAccessModes(String... items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } public A addAllToAccessModes(Collection items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } - public A removeFromAccessModes(java.lang.String... items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + public A removeFromAccessModes(String... items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; } public A removeAllFromAccessModes(Collection items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; } public List getAccessModes() { @@ -123,7 +151,7 @@ public A withAccessModes(List accessModes) { return (A) this; } - public A withAccessModes(java.lang.String... accessModes) { + public A withAccessModes(String... accessModes) { if (this.accessModes != null) { this.accessModes.clear(); _visitables.remove("accessModes"); @@ -137,7 +165,7 @@ public A withAccessModes(java.lang.String... accessModes) { } public boolean hasAccessModes() { - return this.accessModes != null && !this.accessModes.isEmpty(); + return this.accessModes != null && !(this.accessModes.isEmpty()); } public V1TypedLocalObjectReference buildDataSource() { @@ -169,15 +197,15 @@ public DataSourceNested withNewDataSourceLike(V1TypedLocalObjectReference ite } public DataSourceNested editDataSource() { - return withNewDataSourceLike(java.util.Optional.ofNullable(buildDataSource()).orElse(null)); + return this.withNewDataSourceLike(Optional.ofNullable(this.buildDataSource()).orElse(null)); } public DataSourceNested editOrNewDataSource() { - return withNewDataSourceLike(java.util.Optional.ofNullable(buildDataSource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); + return this.withNewDataSourceLike(Optional.ofNullable(this.buildDataSource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); } public DataSourceNested editOrNewDataSourceLike(V1TypedLocalObjectReference item) { - return withNewDataSourceLike(java.util.Optional.ofNullable(buildDataSource()).orElse(item)); + return this.withNewDataSourceLike(Optional.ofNullable(this.buildDataSource()).orElse(item)); } public V1TypedObjectReference buildDataSourceRef() { @@ -209,15 +237,15 @@ public DataSourceRefNested withNewDataSourceRefLike(V1TypedObjectReference it } public DataSourceRefNested editDataSourceRef() { - return withNewDataSourceRefLike(java.util.Optional.ofNullable(buildDataSourceRef()).orElse(null)); + return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(null)); } public DataSourceRefNested editOrNewDataSourceRef() { - return withNewDataSourceRefLike(java.util.Optional.ofNullable(buildDataSourceRef()).orElse(new V1TypedObjectReferenceBuilder().build())); + return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(new V1TypedObjectReferenceBuilder().build())); } public DataSourceRefNested editOrNewDataSourceRefLike(V1TypedObjectReference item) { - return withNewDataSourceRefLike(java.util.Optional.ofNullable(buildDataSourceRef()).orElse(item)); + return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(item)); } public V1VolumeResourceRequirements buildResources() { @@ -249,15 +277,15 @@ public ResourcesNested withNewResourcesLike(V1VolumeResourceRequirements item } public ResourcesNested editResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } public ResourcesNested editOrNewResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1VolumeResourceRequirementsBuilder().build())); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1VolumeResourceRequirementsBuilder().build())); } public ResourcesNested editOrNewResourcesLike(V1VolumeResourceRequirements item) { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } public V1LabelSelector buildSelector() { @@ -289,15 +317,15 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public String getStorageClassName() { @@ -353,38 +381,97 @@ public boolean hasVolumeName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeClaimSpecFluent that = (V1PersistentVolumeClaimSpecFluent) o; - if (!java.util.Objects.equals(accessModes, that.accessModes)) return false; - if (!java.util.Objects.equals(dataSource, that.dataSource)) return false; - if (!java.util.Objects.equals(dataSourceRef, that.dataSourceRef)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(storageClassName, that.storageClassName)) return false; - if (!java.util.Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName)) return false; - if (!java.util.Objects.equals(volumeMode, that.volumeMode)) return false; - if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; + if (!(Objects.equals(accessModes, that.accessModes))) { + return false; + } + if (!(Objects.equals(dataSource, that.dataSource))) { + return false; + } + if (!(Objects.equals(dataSourceRef, that.dataSourceRef))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(storageClassName, that.storageClassName))) { + return false; + } + if (!(Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName))) { + return false; + } + if (!(Objects.equals(volumeMode, that.volumeMode))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeAttributesClassName, volumeMode, volumeName, super.hashCode()); + return Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeAttributesClassName, volumeMode, volumeName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (accessModes != null && !accessModes.isEmpty()) { sb.append("accessModes:"); sb.append(accessModes + ","); } - if (dataSource != null) { sb.append("dataSource:"); sb.append(dataSource + ","); } - if (dataSourceRef != null) { sb.append("dataSourceRef:"); sb.append(dataSourceRef + ","); } - if (resources != null) { sb.append("resources:"); sb.append(resources + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName + ","); } - if (volumeAttributesClassName != null) { sb.append("volumeAttributesClassName:"); sb.append(volumeAttributesClassName + ","); } - if (volumeMode != null) { sb.append("volumeMode:"); sb.append(volumeMode + ","); } - if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName); } + if (!(accessModes == null) && !(accessModes.isEmpty())) { + sb.append("accessModes:"); + sb.append(accessModes); + sb.append(","); + } + if (!(dataSource == null)) { + sb.append("dataSource:"); + sb.append(dataSource); + sb.append(","); + } + if (!(dataSourceRef == null)) { + sb.append("dataSourceRef:"); + sb.append(dataSourceRef); + sb.append(","); + } + if (!(resources == null)) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(storageClassName == null)) { + sb.append("storageClassName:"); + sb.append(storageClassName); + sb.append(","); + } + if (!(volumeAttributesClassName == null)) { + sb.append("volumeAttributesClassName:"); + sb.append(volumeAttributesClassName); + sb.append(","); + } + if (!(volumeMode == null)) { + sb.append("volumeMode:"); + sb.append(volumeMode); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + } sb.append("}"); return sb.toString(); } 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 ed81387b44..cb611d2a09 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimStatusBuilder extends V1PersistentVolumeClaimStatusFluent implements VisitableBuilder{ public V1PersistentVolumeClaimStatusBuilder() { this(new V1PersistentVolumeClaimStatus()); 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 91b3d8a182..054e8db204 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; import io.kubernetes.client.custom.Quantity; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; @@ -19,7 +22,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimStatusFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimStatusFluent> extends BaseFluent{ public V1PersistentVolumeClaimStatusFluent() { } @@ -36,48 +39,73 @@ public V1PersistentVolumeClaimStatusFluent(V1PersistentVolumeClaimStatus instanc private String phase; protected void copyInstance(V1PersistentVolumeClaimStatus instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimStatus()); + instance = instance != null ? instance : new V1PersistentVolumeClaimStatus(); if (instance != null) { - this.withAccessModes(instance.getAccessModes()); - this.withAllocatedResourceStatuses(instance.getAllocatedResourceStatuses()); - this.withAllocatedResources(instance.getAllocatedResources()); - this.withCapacity(instance.getCapacity()); - this.withConditions(instance.getConditions()); - this.withCurrentVolumeAttributesClassName(instance.getCurrentVolumeAttributesClassName()); - this.withModifyVolumeStatus(instance.getModifyVolumeStatus()); - this.withPhase(instance.getPhase()); - } + this.withAccessModes(instance.getAccessModes()); + this.withAllocatedResourceStatuses(instance.getAllocatedResourceStatuses()); + this.withAllocatedResources(instance.getAllocatedResources()); + this.withCapacity(instance.getCapacity()); + this.withConditions(instance.getConditions()); + this.withCurrentVolumeAttributesClassName(instance.getCurrentVolumeAttributesClassName()); + this.withModifyVolumeStatus(instance.getModifyVolumeStatus()); + this.withPhase(instance.getPhase()); + } } public A addToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } this.accessModes.add(index, item); - return (A)this; + return (A) this; } public A setToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - this.accessModes.set(index, item); return (A)this; + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.set(index, item); + return (A) this; } - public A addToAccessModes(java.lang.String... items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + public A addToAccessModes(String... items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } public A addAllToAccessModes(Collection items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } - public A removeFromAccessModes(java.lang.String... items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + public A removeFromAccessModes(String... items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; } public A removeAllFromAccessModes(Collection items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; } public List getAccessModes() { @@ -126,7 +154,7 @@ public A withAccessModes(List accessModes) { return (A) this; } - public A withAccessModes(java.lang.String... accessModes) { + public A withAccessModes(String... accessModes) { if (this.accessModes != null) { this.accessModes.clear(); _visitables.remove("accessModes"); @@ -140,27 +168,51 @@ public A withAccessModes(java.lang.String... accessModes) { } public boolean hasAccessModes() { - return this.accessModes != null && !this.accessModes.isEmpty(); + return this.accessModes != null && !(this.accessModes.isEmpty()); } public A addToAllocatedResourceStatuses(String key,String value) { - if(this.allocatedResourceStatuses == null && key != null && value != null) { this.allocatedResourceStatuses = new LinkedHashMap(); } - if(key != null && value != null) {this.allocatedResourceStatuses.put(key, value);} return (A)this; + if (this.allocatedResourceStatuses == null && key != null && value != null) { + this.allocatedResourceStatuses = new LinkedHashMap(); + } + if (key != null && value != null) { + this.allocatedResourceStatuses.put(key, value); + } + return (A) this; } public A addToAllocatedResourceStatuses(Map map) { - if(this.allocatedResourceStatuses == null && map != null) { this.allocatedResourceStatuses = new LinkedHashMap(); } - if(map != null) { this.allocatedResourceStatuses.putAll(map);} return (A)this; + if (this.allocatedResourceStatuses == null && map != null) { + this.allocatedResourceStatuses = new LinkedHashMap(); + } + if (map != null) { + this.allocatedResourceStatuses.putAll(map); + } + return (A) this; } public A removeFromAllocatedResourceStatuses(String key) { - if(this.allocatedResourceStatuses == null) { return (A) this; } - if(key != null && this.allocatedResourceStatuses != null) {this.allocatedResourceStatuses.remove(key);} return (A)this; + if (this.allocatedResourceStatuses == null) { + return (A) this; + } + if (key != null && this.allocatedResourceStatuses != null) { + this.allocatedResourceStatuses.remove(key); + } + return (A) this; } public A removeFromAllocatedResourceStatuses(Map map) { - if(this.allocatedResourceStatuses == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.allocatedResourceStatuses != null){this.allocatedResourceStatuses.remove(key);}}} return (A)this; + if (this.allocatedResourceStatuses == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResourceStatuses != null) { + this.allocatedResourceStatuses.remove(key); + } + } + } + return (A) this; } public Map getAllocatedResourceStatuses() { @@ -181,23 +233,47 @@ public boolean hasAllocatedResourceStatuses() { } public A addToAllocatedResources(String key,Quantity value) { - if(this.allocatedResources == null && key != null && value != null) { this.allocatedResources = new LinkedHashMap(); } - if(key != null && value != null) {this.allocatedResources.put(key, value);} return (A)this; + if (this.allocatedResources == null && key != null && value != null) { + this.allocatedResources = new LinkedHashMap(); + } + if (key != null && value != null) { + this.allocatedResources.put(key, value); + } + return (A) this; } public A addToAllocatedResources(Map map) { - if(this.allocatedResources == null && map != null) { this.allocatedResources = new LinkedHashMap(); } - if(map != null) { this.allocatedResources.putAll(map);} return (A)this; + if (this.allocatedResources == null && map != null) { + this.allocatedResources = new LinkedHashMap(); + } + if (map != null) { + this.allocatedResources.putAll(map); + } + return (A) this; } public A removeFromAllocatedResources(String key) { - if(this.allocatedResources == null) { return (A) this; } - if(key != null && this.allocatedResources != null) {this.allocatedResources.remove(key);} return (A)this; + if (this.allocatedResources == null) { + return (A) this; + } + if (key != null && this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + return (A) this; } public A removeFromAllocatedResources(Map map) { - if(this.allocatedResources == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.allocatedResources != null){this.allocatedResources.remove(key);}}} return (A)this; + if (this.allocatedResources == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + } + } + return (A) this; } public Map getAllocatedResources() { @@ -218,23 +294,47 @@ public boolean hasAllocatedResources() { } public A addToCapacity(String key,Quantity value) { - if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } - if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.capacity.put(key, value); + } + return (A) this; } public A addToCapacity(Map map) { - if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } - if(map != null) { this.capacity.putAll(map);} return (A)this; + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); + } + return (A) this; } public A removeFromCapacity(String key) { - if(this.capacity == null) { return (A) this; } - if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (key != null && this.capacity != null) { + this.capacity.remove(key); + } + return (A) this; } public A removeFromCapacity(Map map) { - if(this.capacity == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } + } + } + return (A) this; } public Map getCapacity() { @@ -255,7 +355,9 @@ public boolean hasCapacity() { } public A addToConditions(int index,V1PersistentVolumeClaimCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -264,11 +366,13 @@ public A addToConditions(int index,V1PersistentVolumeClaimCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1PersistentVolumeClaimCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -277,41 +381,71 @@ public A setToConditions(int index,V1PersistentVolumeClaimCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1PersistentVolumeClaimCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items) { - if (this.conditions == null) return (A)this; - for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1PersistentVolumeClaimCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1PersistentVolumeClaimConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PersistentVolumeClaimConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -363,7 +497,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... conditions) { + public A withConditions(V1PersistentVolumeClaimCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -377,7 +511,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeCl } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -393,28 +527,39 @@ public ConditionsNested setNewConditionLike(int index,V1PersistentVolumeClaim } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 withNewModifyVolumeStatusLike(V1ModifyVolumeS } public ModifyVolumeStatusNested editModifyVolumeStatus() { - return withNewModifyVolumeStatusLike(java.util.Optional.ofNullable(buildModifyVolumeStatus()).orElse(null)); + return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(null)); } public ModifyVolumeStatusNested editOrNewModifyVolumeStatus() { - return withNewModifyVolumeStatusLike(java.util.Optional.ofNullable(buildModifyVolumeStatus()).orElse(new V1ModifyVolumeStatusBuilder().build())); + return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(new V1ModifyVolumeStatusBuilder().build())); } public ModifyVolumeStatusNested editOrNewModifyVolumeStatusLike(V1ModifyVolumeStatus item) { - return withNewModifyVolumeStatusLike(java.util.Optional.ofNullable(buildModifyVolumeStatus()).orElse(item)); + return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(item)); } public String getPhase() { @@ -484,36 +629,89 @@ public boolean hasPhase() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeClaimStatusFluent that = (V1PersistentVolumeClaimStatusFluent) o; - if (!java.util.Objects.equals(accessModes, that.accessModes)) return false; - if (!java.util.Objects.equals(allocatedResourceStatuses, that.allocatedResourceStatuses)) return false; - if (!java.util.Objects.equals(allocatedResources, that.allocatedResources)) return false; - if (!java.util.Objects.equals(capacity, that.capacity)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(currentVolumeAttributesClassName, that.currentVolumeAttributesClassName)) return false; - if (!java.util.Objects.equals(modifyVolumeStatus, that.modifyVolumeStatus)) return false; - if (!java.util.Objects.equals(phase, that.phase)) return false; + if (!(Objects.equals(accessModes, that.accessModes))) { + return false; + } + if (!(Objects.equals(allocatedResourceStatuses, that.allocatedResourceStatuses))) { + return false; + } + if (!(Objects.equals(allocatedResources, that.allocatedResources))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentVolumeAttributesClassName, that.currentVolumeAttributesClassName))) { + return false; + } + if (!(Objects.equals(modifyVolumeStatus, that.modifyVolumeStatus))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, modifyVolumeStatus, phase, super.hashCode()); + return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, modifyVolumeStatus, phase); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (accessModes != null && !accessModes.isEmpty()) { sb.append("accessModes:"); sb.append(accessModes + ","); } - if (allocatedResourceStatuses != null && !allocatedResourceStatuses.isEmpty()) { sb.append("allocatedResourceStatuses:"); sb.append(allocatedResourceStatuses + ","); } - if (allocatedResources != null && !allocatedResources.isEmpty()) { sb.append("allocatedResources:"); sb.append(allocatedResources + ","); } - if (capacity != null && !capacity.isEmpty()) { sb.append("capacity:"); sb.append(capacity + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (currentVolumeAttributesClassName != null) { sb.append("currentVolumeAttributesClassName:"); sb.append(currentVolumeAttributesClassName + ","); } - if (modifyVolumeStatus != null) { sb.append("modifyVolumeStatus:"); sb.append(modifyVolumeStatus + ","); } - if (phase != null) { sb.append("phase:"); sb.append(phase); } + if (!(accessModes == null) && !(accessModes.isEmpty())) { + sb.append("accessModes:"); + sb.append(accessModes); + sb.append(","); + } + if (!(allocatedResourceStatuses == null) && !(allocatedResourceStatuses.isEmpty())) { + sb.append("allocatedResourceStatuses:"); + sb.append(allocatedResourceStatuses); + sb.append(","); + } + if (!(allocatedResources == null) && !(allocatedResources.isEmpty())) { + sb.append("allocatedResources:"); + sb.append(allocatedResources); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(currentVolumeAttributesClassName == null)) { + sb.append("currentVolumeAttributesClassName:"); + sb.append(currentVolumeAttributesClassName); + sb.append(","); + } + if (!(modifyVolumeStatus == null)) { + sb.append("modifyVolumeStatus:"); + sb.append(modifyVolumeStatus); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + } sb.append("}"); return sb.toString(); } @@ -526,7 +724,7 @@ public class ConditionsNested extends V1PersistentVolumeClaimConditionFluent< int index; public N and() { - return (N) V1PersistentVolumeClaimStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1PersistentVolumeClaimStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 57564498f2..fa28095a77 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimTemplateBuilder extends V1PersistentVolumeClaimTemplateFluent implements VisitableBuilder{ public V1PersistentVolumeClaimTemplateBuilder() { this(new V1PersistentVolumeClaimTemplate()); 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 b7eff06060..d9c61b5402 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimTemplateFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimTemplateFluent> extends BaseFluent{ public V1PersistentVolumeClaimTemplateFluent() { } @@ -21,11 +24,11 @@ public V1PersistentVolumeClaimTemplateFluent(V1PersistentVolumeClaimTemplate ins private V1PersistentVolumeClaimSpecBuilder spec; protected void copyInstance(V1PersistentVolumeClaimTemplate instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimTemplate()); + instance = instance != null ? instance : new V1PersistentVolumeClaimTemplate(); if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public V1ObjectMeta buildMetadata() { @@ -57,15 +60,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1PersistentVolumeClaimSpec buildSpec() { @@ -97,36 +100,53 @@ public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1PersistentVolumeClaimSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PersistentVolumeClaimSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeClaimTemplateFluent that = (V1PersistentVolumeClaimTemplateFluent) o; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); + return Objects.hash(metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } sb.append("}"); return sb.toString(); } 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 1f7b5f334d..855308dd47 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimVolumeSourceBuilder extends V1PersistentVolumeClaimVolumeSourceFluent implements VisitableBuilder{ public V1PersistentVolumeClaimVolumeSourceBuilder() { this(new V1PersistentVolumeClaimVolumeSource()); 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 e342d604dd..9041c8b663 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimVolumeSourceFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimVolumeSourceFluent> extends BaseFluent{ public V1PersistentVolumeClaimVolumeSourceFluent() { } @@ -21,11 +23,11 @@ public V1PersistentVolumeClaimVolumeSourceFluent(V1PersistentVolumeClaimVolumeSo private Boolean readOnly; protected void copyInstance(V1PersistentVolumeClaimVolumeSource instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimVolumeSource()); + instance = instance != null ? instance : new V1PersistentVolumeClaimVolumeSource(); if (instance != null) { - this.withClaimName(instance.getClaimName()); - this.withReadOnly(instance.getReadOnly()); - } + this.withClaimName(instance.getClaimName()); + this.withReadOnly(instance.getReadOnly()); + } } public String getClaimName() { @@ -55,24 +57,41 @@ public boolean hasReadOnly() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeClaimVolumeSourceFluent that = (V1PersistentVolumeClaimVolumeSourceFluent) o; - if (!java.util.Objects.equals(claimName, that.claimName)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; + if (!(Objects.equals(claimName, that.claimName))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(claimName, readOnly, super.hashCode()); + return Objects.hash(claimName, readOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (claimName != null) { sb.append("claimName:"); sb.append(claimName + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } + if (!(claimName == null)) { + sb.append("claimName:"); + sb.append(claimName); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } sb.append("}"); return sb.toString(); } 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 6b9d26baeb..d2aa9c5f95 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeFluent> extends BaseFluent{ +public class V1PersistentVolumeFluent> extends BaseFluent{ public V1PersistentVolumeFluent() { } @@ -24,14 +27,14 @@ public V1PersistentVolumeFluent(V1PersistentVolume instance) { private V1PersistentVolumeStatusBuilder status; protected void copyInstance(V1PersistentVolume instance) { - instance = (instance != null ? instance : new V1PersistentVolume()); + instance = instance != null ? instance : new V1PersistentVolume(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1PersistentVolumeSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1PersistentVolumeSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1PersistentVolumeSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PersistentVolumeSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1PersistentVolumeSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1PersistentVolumeStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1PersistentVolumeStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1PersistentVolumeStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PersistentVolumeStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1PersistentVolumeStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeFluent that = (V1PersistentVolumeFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 727622cffd..5659d65355 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeListBuilder extends V1PersistentVolumeListFluent implements VisitableBuilder{ public V1PersistentVolumeListBuilder() { this(new V1PersistentVolumeList()); 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 4f131ebd03..530023e9e9 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeListFluent> extends BaseFluent{ +public class V1PersistentVolumeListFluent> extends BaseFluent{ public V1PersistentVolumeListFluent() { } @@ -29,13 +32,13 @@ public V1PersistentVolumeListFluent(V1PersistentVolumeList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1PersistentVolumeList instance) { - instance = (instance != null ? instance : new V1PersistentVolumeList()); + instance = instance != null ? instance : new V1PersistentVolumeList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1PersistentVolume item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1PersistentVolume item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1PersistentVolume item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1PersistentVolume item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1PersistentVolume... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { - if (this.items == null) return (A)this; - for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1PersistentVolume... items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1PersistentVolumeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PersistentVolumeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { + public A withItems(V1PersistentVolume... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolume... ite } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1PersistentVolume item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeListFluent that = (V1PersistentVolumeListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1PersistentVolumeFluent> imp int index; public N and() { - return (N) V1PersistentVolumeListFluent.this.setToItems(index,builder.build()); + return (N) V1PersistentVolumeListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 68520012ee..16a2f73fa0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeSpecBuilder extends V1PersistentVolumeSpecFluent implements VisitableBuilder{ public V1PersistentVolumeSpecBuilder() { this(new V1PersistentVolumeSpec()); 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 862e5793e8..5aed6c54ba 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 @@ -8,7 +8,10 @@ import java.util.LinkedHashMap; import java.util.function.Predicate; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeSpecFluent> extends BaseFluent{ +public class V1PersistentVolumeSpecFluent> extends BaseFluent{ public V1PersistentVolumeSpecFluent() { } @@ -57,71 +60,96 @@ public V1PersistentVolumeSpecFluent(V1PersistentVolumeSpec instance) { private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; protected void copyInstance(V1PersistentVolumeSpec instance) { - instance = (instance != null ? instance : new V1PersistentVolumeSpec()); + instance = instance != null ? instance : new V1PersistentVolumeSpec(); if (instance != null) { - this.withAccessModes(instance.getAccessModes()); - this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); - this.withAzureDisk(instance.getAzureDisk()); - this.withAzureFile(instance.getAzureFile()); - this.withCapacity(instance.getCapacity()); - this.withCephfs(instance.getCephfs()); - this.withCinder(instance.getCinder()); - this.withClaimRef(instance.getClaimRef()); - this.withCsi(instance.getCsi()); - this.withFc(instance.getFc()); - this.withFlexVolume(instance.getFlexVolume()); - this.withFlocker(instance.getFlocker()); - this.withGcePersistentDisk(instance.getGcePersistentDisk()); - this.withGlusterfs(instance.getGlusterfs()); - this.withHostPath(instance.getHostPath()); - this.withIscsi(instance.getIscsi()); - this.withLocal(instance.getLocal()); - this.withMountOptions(instance.getMountOptions()); - this.withNfs(instance.getNfs()); - this.withNodeAffinity(instance.getNodeAffinity()); - this.withPersistentVolumeReclaimPolicy(instance.getPersistentVolumeReclaimPolicy()); - this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); - this.withPortworxVolume(instance.getPortworxVolume()); - this.withQuobyte(instance.getQuobyte()); - this.withRbd(instance.getRbd()); - this.withScaleIO(instance.getScaleIO()); - this.withStorageClassName(instance.getStorageClassName()); - this.withStorageos(instance.getStorageos()); - this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); - this.withVolumeMode(instance.getVolumeMode()); - this.withVsphereVolume(instance.getVsphereVolume()); - } + this.withAccessModes(instance.getAccessModes()); + this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); + this.withAzureDisk(instance.getAzureDisk()); + this.withAzureFile(instance.getAzureFile()); + this.withCapacity(instance.getCapacity()); + this.withCephfs(instance.getCephfs()); + this.withCinder(instance.getCinder()); + this.withClaimRef(instance.getClaimRef()); + this.withCsi(instance.getCsi()); + this.withFc(instance.getFc()); + this.withFlexVolume(instance.getFlexVolume()); + this.withFlocker(instance.getFlocker()); + this.withGcePersistentDisk(instance.getGcePersistentDisk()); + this.withGlusterfs(instance.getGlusterfs()); + this.withHostPath(instance.getHostPath()); + this.withIscsi(instance.getIscsi()); + this.withLocal(instance.getLocal()); + this.withMountOptions(instance.getMountOptions()); + this.withNfs(instance.getNfs()); + this.withNodeAffinity(instance.getNodeAffinity()); + this.withPersistentVolumeReclaimPolicy(instance.getPersistentVolumeReclaimPolicy()); + this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); + this.withPortworxVolume(instance.getPortworxVolume()); + this.withQuobyte(instance.getQuobyte()); + this.withRbd(instance.getRbd()); + this.withScaleIO(instance.getScaleIO()); + this.withStorageClassName(instance.getStorageClassName()); + this.withStorageos(instance.getStorageos()); + this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); + this.withVolumeMode(instance.getVolumeMode()); + this.withVsphereVolume(instance.getVsphereVolume()); + } } public A addToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } this.accessModes.add(index, item); - return (A)this; + return (A) this; } public A setToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - this.accessModes.set(index, item); return (A)this; + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.set(index, item); + return (A) this; } - public A addToAccessModes(java.lang.String... items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + public A addToAccessModes(String... items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } public A addAllToAccessModes(Collection items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } - public A removeFromAccessModes(java.lang.String... items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + public A removeFromAccessModes(String... items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; } public A removeAllFromAccessModes(Collection items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; } public List getAccessModes() { @@ -170,7 +198,7 @@ public A withAccessModes(List accessModes) { return (A) this; } - public A withAccessModes(java.lang.String... accessModes) { + public A withAccessModes(String... accessModes) { if (this.accessModes != null) { this.accessModes.clear(); _visitables.remove("accessModes"); @@ -184,7 +212,7 @@ public A withAccessModes(java.lang.String... accessModes) { } public boolean hasAccessModes() { - return this.accessModes != null && !this.accessModes.isEmpty(); + return this.accessModes != null && !(this.accessModes.isEmpty()); } public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { @@ -216,15 +244,15 @@ public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasti } public AwsElasticBlockStoreNested editAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(null)); + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(null)); } public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); } public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(item)); + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(item)); } public V1AzureDiskVolumeSource buildAzureDisk() { @@ -256,15 +284,15 @@ public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { } public AzureDiskNested editAzureDisk() { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(null)); + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(null)); } public AzureDiskNested editOrNewAzureDisk() { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); } public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(item)); + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(item)); } public V1AzureFilePersistentVolumeSource buildAzureFile() { @@ -296,35 +324,59 @@ public AzureFileNested withNewAzureFileLike(V1AzureFilePersistentVolumeSource } public AzureFileNested editAzureFile() { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(null)); + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(null)); } public AzureFileNested editOrNewAzureFile() { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(new V1AzureFilePersistentVolumeSourceBuilder().build())); + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(new V1AzureFilePersistentVolumeSourceBuilder().build())); } public AzureFileNested editOrNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(item)); + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(item)); } public A addToCapacity(String key,Quantity value) { - if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } - if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.capacity.put(key, value); + } + return (A) this; } public A addToCapacity(Map map) { - if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } - if(map != null) { this.capacity.putAll(map);} return (A)this; + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); + } + return (A) this; } public A removeFromCapacity(String key) { - if(this.capacity == null) { return (A) this; } - if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (key != null && this.capacity != null) { + this.capacity.remove(key); + } + return (A) this; } public A removeFromCapacity(Map map) { - if(this.capacity == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } + } + } + return (A) this; } public Map getCapacity() { @@ -373,15 +425,15 @@ public CephfsNested withNewCephfsLike(V1CephFSPersistentVolumeSource item) { } public CephfsNested editCephfs() { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(null)); + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(null)); } public CephfsNested editOrNewCephfs() { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(new V1CephFSPersistentVolumeSourceBuilder().build())); + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(new V1CephFSPersistentVolumeSourceBuilder().build())); } public CephfsNested editOrNewCephfsLike(V1CephFSPersistentVolumeSource item) { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(item)); + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(item)); } public V1CinderPersistentVolumeSource buildCinder() { @@ -413,15 +465,15 @@ public CinderNested withNewCinderLike(V1CinderPersistentVolumeSource item) { } public CinderNested editCinder() { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(null)); + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(null)); } public CinderNested editOrNewCinder() { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(new V1CinderPersistentVolumeSourceBuilder().build())); + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(new V1CinderPersistentVolumeSourceBuilder().build())); } public CinderNested editOrNewCinderLike(V1CinderPersistentVolumeSource item) { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(item)); + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(item)); } public V1ObjectReference buildClaimRef() { @@ -453,15 +505,15 @@ public ClaimRefNested withNewClaimRefLike(V1ObjectReference item) { } public ClaimRefNested editClaimRef() { - return withNewClaimRefLike(java.util.Optional.ofNullable(buildClaimRef()).orElse(null)); + return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(null)); } public ClaimRefNested editOrNewClaimRef() { - return withNewClaimRefLike(java.util.Optional.ofNullable(buildClaimRef()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(new V1ObjectReferenceBuilder().build())); } public ClaimRefNested editOrNewClaimRefLike(V1ObjectReference item) { - return withNewClaimRefLike(java.util.Optional.ofNullable(buildClaimRef()).orElse(item)); + return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(item)); } public V1CSIPersistentVolumeSource buildCsi() { @@ -493,15 +545,15 @@ public CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item) { } public CsiNested editCsi() { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(null)); + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(null)); } public CsiNested editOrNewCsi() { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(new V1CSIPersistentVolumeSourceBuilder().build())); + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(new V1CSIPersistentVolumeSourceBuilder().build())); } public CsiNested editOrNewCsiLike(V1CSIPersistentVolumeSource item) { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(item)); + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(item)); } public V1FCVolumeSource buildFc() { @@ -533,15 +585,15 @@ public FcNested withNewFcLike(V1FCVolumeSource item) { } public FcNested editFc() { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(null)); + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(null)); } public FcNested editOrNewFc() { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); } public FcNested editOrNewFcLike(V1FCVolumeSource item) { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(item)); + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(item)); } public V1FlexPersistentVolumeSource buildFlexVolume() { @@ -573,15 +625,15 @@ public FlexVolumeNested withNewFlexVolumeLike(V1FlexPersistentVolumeSource it } public FlexVolumeNested editFlexVolume() { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(null)); + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(null)); } public FlexVolumeNested editOrNewFlexVolume() { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(new V1FlexPersistentVolumeSourceBuilder().build())); + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(new V1FlexPersistentVolumeSourceBuilder().build())); } public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(item)); + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(item)); } public V1FlockerVolumeSource buildFlocker() { @@ -613,15 +665,15 @@ public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { } public FlockerNested editFlocker() { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(null)); + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(null)); } public FlockerNested editOrNewFlocker() { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); } public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(item)); + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(item)); } public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { @@ -653,15 +705,15 @@ public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDi } public GcePersistentDiskNested editGcePersistentDisk() { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(null)); + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(null)); } public GcePersistentDiskNested editOrNewGcePersistentDisk() { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); } public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(item)); + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(item)); } public V1GlusterfsPersistentVolumeSource buildGlusterfs() { @@ -693,15 +745,15 @@ public GlusterfsNested withNewGlusterfsLike(V1GlusterfsPersistentVolumeSource } public GlusterfsNested editGlusterfs() { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(null)); + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(null)); } public GlusterfsNested editOrNewGlusterfs() { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(new V1GlusterfsPersistentVolumeSourceBuilder().build())); + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(new V1GlusterfsPersistentVolumeSourceBuilder().build())); } public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(item)); + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(item)); } public V1HostPathVolumeSource buildHostPath() { @@ -733,15 +785,15 @@ public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { } public HostPathNested editHostPath() { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(null)); + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(null)); } public HostPathNested editOrNewHostPath() { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); } public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(item)); + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(item)); } public V1ISCSIPersistentVolumeSource buildIscsi() { @@ -773,15 +825,15 @@ public IscsiNested withNewIscsiLike(V1ISCSIPersistentVolumeSource item) { } public IscsiNested editIscsi() { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(null)); + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(null)); } public IscsiNested editOrNewIscsi() { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(new V1ISCSIPersistentVolumeSourceBuilder().build())); + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(new V1ISCSIPersistentVolumeSourceBuilder().build())); } public IscsiNested editOrNewIscsiLike(V1ISCSIPersistentVolumeSource item) { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(item)); + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(item)); } public V1LocalVolumeSource buildLocal() { @@ -813,46 +865,71 @@ public LocalNested withNewLocalLike(V1LocalVolumeSource item) { } public LocalNested editLocal() { - return withNewLocalLike(java.util.Optional.ofNullable(buildLocal()).orElse(null)); + return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(null)); } public LocalNested editOrNewLocal() { - return withNewLocalLike(java.util.Optional.ofNullable(buildLocal()).orElse(new V1LocalVolumeSourceBuilder().build())); + return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(new V1LocalVolumeSourceBuilder().build())); } public LocalNested editOrNewLocalLike(V1LocalVolumeSource item) { - return withNewLocalLike(java.util.Optional.ofNullable(buildLocal()).orElse(item)); + return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(item)); } public A addToMountOptions(int index,String item) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } this.mountOptions.add(index, item); - return (A)this; + return (A) this; } public A setToMountOptions(int index,String item) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - this.mountOptions.set(index, item); return (A)this; + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + this.mountOptions.set(index, item); + return (A) this; } - public A addToMountOptions(java.lang.String... items) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - for (String item : items) {this.mountOptions.add(item);} return (A)this; + public A addToMountOptions(String... items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + for (String item : items) { + this.mountOptions.add(item); + } + return (A) this; } public A addAllToMountOptions(Collection items) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - for (String item : items) {this.mountOptions.add(item);} return (A)this; + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + for (String item : items) { + this.mountOptions.add(item); + } + return (A) this; } - public A removeFromMountOptions(java.lang.String... items) { - if (this.mountOptions == null) return (A)this; - for (String item : items) { this.mountOptions.remove(item);} return (A)this; + public A removeFromMountOptions(String... items) { + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); + } + return (A) this; } public A removeAllFromMountOptions(Collection items) { - if (this.mountOptions == null) return (A)this; - for (String item : items) { this.mountOptions.remove(item);} return (A)this; + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); + } + return (A) this; } public List getMountOptions() { @@ -901,7 +978,7 @@ public A withMountOptions(List mountOptions) { return (A) this; } - public A withMountOptions(java.lang.String... mountOptions) { + public A withMountOptions(String... mountOptions) { if (this.mountOptions != null) { this.mountOptions.clear(); _visitables.remove("mountOptions"); @@ -915,7 +992,7 @@ public A withMountOptions(java.lang.String... mountOptions) { } public boolean hasMountOptions() { - return this.mountOptions != null && !this.mountOptions.isEmpty(); + return this.mountOptions != null && !(this.mountOptions.isEmpty()); } public V1NFSVolumeSource buildNfs() { @@ -947,15 +1024,15 @@ public NfsNested withNewNfsLike(V1NFSVolumeSource item) { } public NfsNested editNfs() { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(null)); + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(null)); } public NfsNested editOrNewNfs() { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); } public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(item)); + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(item)); } public V1VolumeNodeAffinity buildNodeAffinity() { @@ -987,15 +1064,15 @@ public NodeAffinityNested withNewNodeAffinityLike(V1VolumeNodeAffinity item) } public NodeAffinityNested editNodeAffinity() { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(null)); + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(null)); } public NodeAffinityNested editOrNewNodeAffinity() { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(new V1VolumeNodeAffinityBuilder().build())); + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(new V1VolumeNodeAffinityBuilder().build())); } public NodeAffinityNested editOrNewNodeAffinityLike(V1VolumeNodeAffinity item) { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(item)); + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(item)); } public String getPersistentVolumeReclaimPolicy() { @@ -1040,15 +1117,15 @@ public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPer } public PhotonPersistentDiskNested editPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(null)); + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(null)); } public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); } public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(item)); + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(item)); } public V1PortworxVolumeSource buildPortworxVolume() { @@ -1080,15 +1157,15 @@ public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource } public PortworxVolumeNested editPortworxVolume() { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(null)); + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(null)); } public PortworxVolumeNested editOrNewPortworxVolume() { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); } public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(item)); + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(item)); } public V1QuobyteVolumeSource buildQuobyte() { @@ -1120,15 +1197,15 @@ public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { } public QuobyteNested editQuobyte() { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(null)); + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(null)); } public QuobyteNested editOrNewQuobyte() { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); } public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(item)); + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(item)); } public V1RBDPersistentVolumeSource buildRbd() { @@ -1160,15 +1237,15 @@ public RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item) { } public RbdNested editRbd() { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(null)); + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(null)); } public RbdNested editOrNewRbd() { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(new V1RBDPersistentVolumeSourceBuilder().build())); + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(new V1RBDPersistentVolumeSourceBuilder().build())); } public RbdNested editOrNewRbdLike(V1RBDPersistentVolumeSource item) { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(item)); + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(item)); } public V1ScaleIOPersistentVolumeSource buildScaleIO() { @@ -1200,15 +1277,15 @@ public ScaleIONested withNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) } public ScaleIONested editScaleIO() { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(null)); + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(null)); } public ScaleIONested editOrNewScaleIO() { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(new V1ScaleIOPersistentVolumeSourceBuilder().build())); + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(new V1ScaleIOPersistentVolumeSourceBuilder().build())); } public ScaleIONested editOrNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(item)); + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(item)); } public String getStorageClassName() { @@ -1253,15 +1330,15 @@ public StorageosNested withNewStorageosLike(V1StorageOSPersistentVolumeSource } public StorageosNested editStorageos() { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(null)); + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(null)); } public StorageosNested editOrNewStorageos() { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(new V1StorageOSPersistentVolumeSourceBuilder().build())); + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(new V1StorageOSPersistentVolumeSourceBuilder().build())); } public StorageosNested editOrNewStorageosLike(V1StorageOSPersistentVolumeSource item) { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(item)); + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(item)); } public String getVolumeAttributesClassName() { @@ -1319,94 +1396,285 @@ public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolum } public VsphereVolumeNested editVsphereVolume() { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(null)); + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(null)); } public VsphereVolumeNested editOrNewVsphereVolume() { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); } public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(item)); + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeSpecFluent that = (V1PersistentVolumeSpecFluent) o; - if (!java.util.Objects.equals(accessModes, that.accessModes)) return false; - if (!java.util.Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore)) return false; - if (!java.util.Objects.equals(azureDisk, that.azureDisk)) return false; - if (!java.util.Objects.equals(azureFile, that.azureFile)) return false; - if (!java.util.Objects.equals(capacity, that.capacity)) return false; - if (!java.util.Objects.equals(cephfs, that.cephfs)) return false; - if (!java.util.Objects.equals(cinder, that.cinder)) return false; - if (!java.util.Objects.equals(claimRef, that.claimRef)) return false; - if (!java.util.Objects.equals(csi, that.csi)) return false; - if (!java.util.Objects.equals(fc, that.fc)) return false; - if (!java.util.Objects.equals(flexVolume, that.flexVolume)) return false; - if (!java.util.Objects.equals(flocker, that.flocker)) return false; - if (!java.util.Objects.equals(gcePersistentDisk, that.gcePersistentDisk)) return false; - if (!java.util.Objects.equals(glusterfs, that.glusterfs)) return false; - if (!java.util.Objects.equals(hostPath, that.hostPath)) return false; - if (!java.util.Objects.equals(iscsi, that.iscsi)) return false; - if (!java.util.Objects.equals(local, that.local)) return false; - if (!java.util.Objects.equals(mountOptions, that.mountOptions)) return false; - if (!java.util.Objects.equals(nfs, that.nfs)) return false; - if (!java.util.Objects.equals(nodeAffinity, that.nodeAffinity)) return false; - if (!java.util.Objects.equals(persistentVolumeReclaimPolicy, that.persistentVolumeReclaimPolicy)) return false; - if (!java.util.Objects.equals(photonPersistentDisk, that.photonPersistentDisk)) return false; - if (!java.util.Objects.equals(portworxVolume, that.portworxVolume)) return false; - if (!java.util.Objects.equals(quobyte, that.quobyte)) return false; - if (!java.util.Objects.equals(rbd, that.rbd)) return false; - if (!java.util.Objects.equals(scaleIO, that.scaleIO)) return false; - if (!java.util.Objects.equals(storageClassName, that.storageClassName)) return false; - if (!java.util.Objects.equals(storageos, that.storageos)) return false; - if (!java.util.Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName)) return false; - if (!java.util.Objects.equals(volumeMode, that.volumeMode)) return false; - if (!java.util.Objects.equals(vsphereVolume, that.vsphereVolume)) return false; + if (!(Objects.equals(accessModes, that.accessModes))) { + return false; + } + if (!(Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore))) { + return false; + } + if (!(Objects.equals(azureDisk, that.azureDisk))) { + return false; + } + if (!(Objects.equals(azureFile, that.azureFile))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(cephfs, that.cephfs))) { + return false; + } + if (!(Objects.equals(cinder, that.cinder))) { + return false; + } + if (!(Objects.equals(claimRef, that.claimRef))) { + return false; + } + if (!(Objects.equals(csi, that.csi))) { + return false; + } + if (!(Objects.equals(fc, that.fc))) { + return false; + } + if (!(Objects.equals(flexVolume, that.flexVolume))) { + return false; + } + if (!(Objects.equals(flocker, that.flocker))) { + return false; + } + if (!(Objects.equals(gcePersistentDisk, that.gcePersistentDisk))) { + return false; + } + if (!(Objects.equals(glusterfs, that.glusterfs))) { + return false; + } + if (!(Objects.equals(hostPath, that.hostPath))) { + return false; + } + if (!(Objects.equals(iscsi, that.iscsi))) { + return false; + } + if (!(Objects.equals(local, that.local))) { + return false; + } + if (!(Objects.equals(mountOptions, that.mountOptions))) { + return false; + } + if (!(Objects.equals(nfs, that.nfs))) { + return false; + } + if (!(Objects.equals(nodeAffinity, that.nodeAffinity))) { + return false; + } + if (!(Objects.equals(persistentVolumeReclaimPolicy, that.persistentVolumeReclaimPolicy))) { + return false; + } + if (!(Objects.equals(photonPersistentDisk, that.photonPersistentDisk))) { + return false; + } + if (!(Objects.equals(portworxVolume, that.portworxVolume))) { + return false; + } + if (!(Objects.equals(quobyte, that.quobyte))) { + return false; + } + if (!(Objects.equals(rbd, that.rbd))) { + return false; + } + if (!(Objects.equals(scaleIO, that.scaleIO))) { + return false; + } + if (!(Objects.equals(storageClassName, that.storageClassName))) { + return false; + } + if (!(Objects.equals(storageos, that.storageos))) { + return false; + } + if (!(Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName))) { + return false; + } + if (!(Objects.equals(volumeMode, that.volumeMode))) { + return false; + } + if (!(Objects.equals(vsphereVolume, that.vsphereVolume))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeAttributesClassName, volumeMode, vsphereVolume, super.hashCode()); + return Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeAttributesClassName, volumeMode, vsphereVolume); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (accessModes != null && !accessModes.isEmpty()) { sb.append("accessModes:"); sb.append(accessModes + ","); } - if (awsElasticBlockStore != null) { sb.append("awsElasticBlockStore:"); sb.append(awsElasticBlockStore + ","); } - if (azureDisk != null) { sb.append("azureDisk:"); sb.append(azureDisk + ","); } - if (azureFile != null) { sb.append("azureFile:"); sb.append(azureFile + ","); } - if (capacity != null && !capacity.isEmpty()) { sb.append("capacity:"); sb.append(capacity + ","); } - if (cephfs != null) { sb.append("cephfs:"); sb.append(cephfs + ","); } - if (cinder != null) { sb.append("cinder:"); sb.append(cinder + ","); } - if (claimRef != null) { sb.append("claimRef:"); sb.append(claimRef + ","); } - if (csi != null) { sb.append("csi:"); sb.append(csi + ","); } - if (fc != null) { sb.append("fc:"); sb.append(fc + ","); } - if (flexVolume != null) { sb.append("flexVolume:"); sb.append(flexVolume + ","); } - if (flocker != null) { sb.append("flocker:"); sb.append(flocker + ","); } - if (gcePersistentDisk != null) { sb.append("gcePersistentDisk:"); sb.append(gcePersistentDisk + ","); } - if (glusterfs != null) { sb.append("glusterfs:"); sb.append(glusterfs + ","); } - if (hostPath != null) { sb.append("hostPath:"); sb.append(hostPath + ","); } - if (iscsi != null) { sb.append("iscsi:"); sb.append(iscsi + ","); } - if (local != null) { sb.append("local:"); sb.append(local + ","); } - if (mountOptions != null && !mountOptions.isEmpty()) { sb.append("mountOptions:"); sb.append(mountOptions + ","); } - if (nfs != null) { sb.append("nfs:"); sb.append(nfs + ","); } - if (nodeAffinity != null) { sb.append("nodeAffinity:"); sb.append(nodeAffinity + ","); } - if (persistentVolumeReclaimPolicy != null) { sb.append("persistentVolumeReclaimPolicy:"); sb.append(persistentVolumeReclaimPolicy + ","); } - if (photonPersistentDisk != null) { sb.append("photonPersistentDisk:"); sb.append(photonPersistentDisk + ","); } - if (portworxVolume != null) { sb.append("portworxVolume:"); sb.append(portworxVolume + ","); } - if (quobyte != null) { sb.append("quobyte:"); sb.append(quobyte + ","); } - if (rbd != null) { sb.append("rbd:"); sb.append(rbd + ","); } - if (scaleIO != null) { sb.append("scaleIO:"); sb.append(scaleIO + ","); } - if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName + ","); } - if (storageos != null) { sb.append("storageos:"); sb.append(storageos + ","); } - if (volumeAttributesClassName != null) { sb.append("volumeAttributesClassName:"); sb.append(volumeAttributesClassName + ","); } - if (volumeMode != null) { sb.append("volumeMode:"); sb.append(volumeMode + ","); } - if (vsphereVolume != null) { sb.append("vsphereVolume:"); sb.append(vsphereVolume); } + if (!(accessModes == null) && !(accessModes.isEmpty())) { + sb.append("accessModes:"); + sb.append(accessModes); + sb.append(","); + } + if (!(awsElasticBlockStore == null)) { + sb.append("awsElasticBlockStore:"); + sb.append(awsElasticBlockStore); + sb.append(","); + } + if (!(azureDisk == null)) { + sb.append("azureDisk:"); + sb.append(azureDisk); + sb.append(","); + } + if (!(azureFile == null)) { + sb.append("azureFile:"); + sb.append(azureFile); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(cephfs == null)) { + sb.append("cephfs:"); + sb.append(cephfs); + sb.append(","); + } + if (!(cinder == null)) { + sb.append("cinder:"); + sb.append(cinder); + sb.append(","); + } + if (!(claimRef == null)) { + sb.append("claimRef:"); + sb.append(claimRef); + sb.append(","); + } + if (!(csi == null)) { + sb.append("csi:"); + sb.append(csi); + sb.append(","); + } + if (!(fc == null)) { + sb.append("fc:"); + sb.append(fc); + sb.append(","); + } + if (!(flexVolume == null)) { + sb.append("flexVolume:"); + sb.append(flexVolume); + sb.append(","); + } + if (!(flocker == null)) { + sb.append("flocker:"); + sb.append(flocker); + sb.append(","); + } + if (!(gcePersistentDisk == null)) { + sb.append("gcePersistentDisk:"); + sb.append(gcePersistentDisk); + sb.append(","); + } + if (!(glusterfs == null)) { + sb.append("glusterfs:"); + sb.append(glusterfs); + sb.append(","); + } + if (!(hostPath == null)) { + sb.append("hostPath:"); + sb.append(hostPath); + sb.append(","); + } + if (!(iscsi == null)) { + sb.append("iscsi:"); + sb.append(iscsi); + sb.append(","); + } + if (!(local == null)) { + sb.append("local:"); + sb.append(local); + sb.append(","); + } + if (!(mountOptions == null) && !(mountOptions.isEmpty())) { + sb.append("mountOptions:"); + sb.append(mountOptions); + sb.append(","); + } + if (!(nfs == null)) { + sb.append("nfs:"); + sb.append(nfs); + sb.append(","); + } + if (!(nodeAffinity == null)) { + sb.append("nodeAffinity:"); + sb.append(nodeAffinity); + sb.append(","); + } + if (!(persistentVolumeReclaimPolicy == null)) { + sb.append("persistentVolumeReclaimPolicy:"); + sb.append(persistentVolumeReclaimPolicy); + sb.append(","); + } + if (!(photonPersistentDisk == null)) { + sb.append("photonPersistentDisk:"); + sb.append(photonPersistentDisk); + sb.append(","); + } + if (!(portworxVolume == null)) { + sb.append("portworxVolume:"); + sb.append(portworxVolume); + sb.append(","); + } + if (!(quobyte == null)) { + sb.append("quobyte:"); + sb.append(quobyte); + sb.append(","); + } + if (!(rbd == null)) { + sb.append("rbd:"); + sb.append(rbd); + sb.append(","); + } + if (!(scaleIO == null)) { + sb.append("scaleIO:"); + sb.append(scaleIO); + sb.append(","); + } + if (!(storageClassName == null)) { + sb.append("storageClassName:"); + sb.append(storageClassName); + sb.append(","); + } + if (!(storageos == null)) { + sb.append("storageos:"); + sb.append(storageos); + sb.append(","); + } + if (!(volumeAttributesClassName == null)) { + sb.append("volumeAttributesClassName:"); + sb.append(volumeAttributesClassName); + sb.append(","); + } + if (!(volumeMode == null)) { + sb.append("volumeMode:"); + sb.append(volumeMode); + sb.append(","); + } + if (!(vsphereVolume == null)) { + sb.append("vsphereVolume:"); + sb.append(vsphereVolume); + } sb.append("}"); return sb.toString(); } 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 2f6f320fdb..79d2da188a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeStatusBuilder extends V1PersistentVolumeStatusFluent implements VisitableBuilder{ public V1PersistentVolumeStatusBuilder() { this(new V1PersistentVolumeStatus()); 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 5ef7db1309..a224915086 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeStatusFluent> extends BaseFluent{ +public class V1PersistentVolumeStatusFluent> extends BaseFluent{ public V1PersistentVolumeStatusFluent() { } @@ -23,13 +25,13 @@ public V1PersistentVolumeStatusFluent(V1PersistentVolumeStatus instance) { private String reason; protected void copyInstance(V1PersistentVolumeStatus instance) { - instance = (instance != null ? instance : new V1PersistentVolumeStatus()); + instance = instance != null ? instance : new V1PersistentVolumeStatus(); if (instance != null) { - this.withLastPhaseTransitionTime(instance.getLastPhaseTransitionTime()); - this.withMessage(instance.getMessage()); - this.withPhase(instance.getPhase()); - this.withReason(instance.getReason()); - } + this.withLastPhaseTransitionTime(instance.getLastPhaseTransitionTime()); + this.withMessage(instance.getMessage()); + this.withPhase(instance.getPhase()); + this.withReason(instance.getReason()); + } } public OffsetDateTime getLastPhaseTransitionTime() { @@ -85,28 +87,57 @@ public boolean hasReason() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PersistentVolumeStatusFluent that = (V1PersistentVolumeStatusFluent) o; - if (!java.util.Objects.equals(lastPhaseTransitionTime, that.lastPhaseTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(phase, that.phase)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; + if (!(Objects.equals(lastPhaseTransitionTime, that.lastPhaseTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastPhaseTransitionTime, message, phase, reason, super.hashCode()); + return Objects.hash(lastPhaseTransitionTime, message, phase, reason); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastPhaseTransitionTime != null) { sb.append("lastPhaseTransitionTime:"); sb.append(lastPhaseTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (phase != null) { sb.append("phase:"); sb.append(phase + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } + if (!(lastPhaseTransitionTime == null)) { + sb.append("lastPhaseTransitionTime:"); + sb.append(lastPhaseTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } 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 17ece9ca5d..6d0395bfcb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PhotonPersistentDiskVolumeSourceBuilder extends V1PhotonPersistentDiskVolumeSourceFluent implements VisitableBuilder{ public V1PhotonPersistentDiskVolumeSourceBuilder() { this(new V1PhotonPersistentDiskVolumeSource()); 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 a07e46450b..db692a8c04 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PhotonPersistentDiskVolumeSourceFluent> extends BaseFluent{ +public class V1PhotonPersistentDiskVolumeSourceFluent> extends BaseFluent{ public V1PhotonPersistentDiskVolumeSourceFluent() { } @@ -20,11 +22,11 @@ public V1PhotonPersistentDiskVolumeSourceFluent(V1PhotonPersistentDiskVolumeSour private String pdID; protected void copyInstance(V1PhotonPersistentDiskVolumeSource instance) { - instance = (instance != null ? instance : new V1PhotonPersistentDiskVolumeSource()); + instance = instance != null ? instance : new V1PhotonPersistentDiskVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withPdID(instance.getPdID()); - } + this.withFsType(instance.getFsType()); + this.withPdID(instance.getPdID()); + } } public String getFsType() { @@ -54,24 +56,41 @@ public boolean hasPdID() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PhotonPersistentDiskVolumeSourceFluent that = (V1PhotonPersistentDiskVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(pdID, that.pdID)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(pdID, that.pdID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, pdID, super.hashCode()); + return Objects.hash(fsType, pdID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (pdID != null) { sb.append("pdID:"); sb.append(pdID); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(pdID == null)) { + sb.append("pdID:"); + sb.append(pdID); + } sb.append("}"); return sb.toString(); } 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 29d928a9df..6a2d053e73 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodAffinityBuilder extends V1PodAffinityFluent implements VisitableBuilder{ public V1PodAffinityBuilder() { this(new V1PodAffinity()); 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 244d13ab81..29cab6c418 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodAffinityFluent> extends BaseFluent{ +public class V1PodAffinityFluent> extends BaseFluent{ public V1PodAffinityFluent() { } @@ -27,15 +29,17 @@ public V1PodAffinityFluent(V1PodAffinity instance) { private ArrayList requiredDuringSchedulingIgnoredDuringExecution; protected void copyInstance(V1PodAffinity instance) { - instance = (instance != null ? instance : new V1PodAffinity()); + instance = instance != null ? instance : new V1PodAffinity(); if (instance != null) { - this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); + } } public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -44,11 +48,13 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } - return (A)this; + return (A) this; } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -57,41 +63,71 @@ public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + if (preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - V1WeightedPodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1WeightedPodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPreferredDuringSchedulingIgnoredDuringExecution() { @@ -143,7 +179,7 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution(List addNewPreferredDuringSchedulingIgnoredDuringExecution() { @@ -173,32 +209,45 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredD } public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { - if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (index <= preferredDuringSchedulingIgnoredDuringExecution.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { - if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -207,11 +256,13 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffi _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); } - return (A)this; + return (A) this; } public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -220,41 +271,71 @@ public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffi _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (requiredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); + if (requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - V1PodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRequiredDuringSchedulingIgnoredDuringExecution() { @@ -306,7 +387,7 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution(List addNewRequiredDuringSchedulingIgnoredDuringExecution() { @@ -336,49 +417,77 @@ public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDur } public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { - if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + if (index <= requiredDuringSchedulingIgnoredDuringExecution.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { - if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); + if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildRequiredDuringSchedulingIgnoredDuringExecution(0)); } public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i=0;i extends V1 int index; public N and() { - return (N) V1PodAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1PodAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endPreferredDuringSchedulingIgnoredDuringExecution() { @@ -409,7 +518,7 @@ public class RequiredDuringSchedulingIgnoredDuringExecutionNested extends V1P int index; public N and() { - return (N) V1PodAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1PodAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endRequiredDuringSchedulingIgnoredDuringExecution() { 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 84699c1afe..7f8b844065 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodAffinityTermBuilder extends V1PodAffinityTermFluent implements VisitableBuilder{ public V1PodAffinityTermBuilder() { this(new V1PodAffinityTerm()); 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 bfb6d3abcc..09994e26f5 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodAffinityTermFluent> extends BaseFluent{ +public class V1PodAffinityTermFluent> extends BaseFluent{ public V1PodAffinityTermFluent() { } @@ -29,15 +32,15 @@ public V1PodAffinityTermFluent(V1PodAffinityTerm instance) { private String topologyKey; protected void copyInstance(V1PodAffinityTerm instance) { - instance = (instance != null ? instance : new V1PodAffinityTerm()); + instance = instance != null ? instance : new V1PodAffinityTerm(); if (instance != null) { - this.withLabelSelector(instance.getLabelSelector()); - this.withMatchLabelKeys(instance.getMatchLabelKeys()); - this.withMismatchLabelKeys(instance.getMismatchLabelKeys()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withNamespaces(instance.getNamespaces()); - this.withTopologyKey(instance.getTopologyKey()); - } + this.withLabelSelector(instance.getLabelSelector()); + this.withMatchLabelKeys(instance.getMatchLabelKeys()); + this.withMismatchLabelKeys(instance.getMismatchLabelKeys()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withNamespaces(instance.getNamespaces()); + this.withTopologyKey(instance.getTopologyKey()); + } } public V1LabelSelector buildLabelSelector() { @@ -69,46 +72,71 @@ public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { } public LabelSelectorNested editLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(null)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } public LabelSelectorNested editOrNewLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); } public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(item)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } public A addToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } this.matchLabelKeys.add(index, item); - return (A)this; + return (A) this; } public A setToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} - this.matchLabelKeys.set(index, item); return (A)this; + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + this.matchLabelKeys.set(index, item); + return (A) this; } - public A addToMatchLabelKeys(java.lang.String... items) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} - for (String item : items) {this.matchLabelKeys.add(item);} return (A)this; + public A addToMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.matchLabelKeys.add(item); + } + return (A) this; } public A addAllToMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} - for (String item : items) {this.matchLabelKeys.add(item);} return (A)this; + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.matchLabelKeys.add(item); + } + return (A) this; } - public A removeFromMatchLabelKeys(java.lang.String... items) { - if (this.matchLabelKeys == null) return (A)this; - for (String item : items) { this.matchLabelKeys.remove(item);} return (A)this; + public A removeFromMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.matchLabelKeys.remove(item); + } + return (A) this; } public A removeAllFromMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) return (A)this; - for (String item : items) { this.matchLabelKeys.remove(item);} return (A)this; + if (this.matchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.matchLabelKeys.remove(item); + } + return (A) this; } public List getMatchLabelKeys() { @@ -157,7 +185,7 @@ public A withMatchLabelKeys(List matchLabelKeys) { return (A) this; } - public A withMatchLabelKeys(java.lang.String... matchLabelKeys) { + public A withMatchLabelKeys(String... matchLabelKeys) { if (this.matchLabelKeys != null) { this.matchLabelKeys.clear(); _visitables.remove("matchLabelKeys"); @@ -171,38 +199,63 @@ public A withMatchLabelKeys(java.lang.String... matchLabelKeys) { } public boolean hasMatchLabelKeys() { - return this.matchLabelKeys != null && !this.matchLabelKeys.isEmpty(); + return this.matchLabelKeys != null && !(this.matchLabelKeys.isEmpty()); } public A addToMismatchLabelKeys(int index,String item) { - if (this.mismatchLabelKeys == null) {this.mismatchLabelKeys = new ArrayList();} + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } this.mismatchLabelKeys.add(index, item); - return (A)this; + return (A) this; } public A setToMismatchLabelKeys(int index,String item) { - if (this.mismatchLabelKeys == null) {this.mismatchLabelKeys = new ArrayList();} - this.mismatchLabelKeys.set(index, item); return (A)this; + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } + this.mismatchLabelKeys.set(index, item); + return (A) this; } - public A addToMismatchLabelKeys(java.lang.String... items) { - if (this.mismatchLabelKeys == null) {this.mismatchLabelKeys = new ArrayList();} - for (String item : items) {this.mismatchLabelKeys.add(item);} return (A)this; + public A addToMismatchLabelKeys(String... items) { + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.mismatchLabelKeys.add(item); + } + return (A) this; } public A addAllToMismatchLabelKeys(Collection items) { - if (this.mismatchLabelKeys == null) {this.mismatchLabelKeys = new ArrayList();} - for (String item : items) {this.mismatchLabelKeys.add(item);} return (A)this; + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.mismatchLabelKeys.add(item); + } + return (A) this; } - public A removeFromMismatchLabelKeys(java.lang.String... items) { - if (this.mismatchLabelKeys == null) return (A)this; - for (String item : items) { this.mismatchLabelKeys.remove(item);} return (A)this; + public A removeFromMismatchLabelKeys(String... items) { + if (this.mismatchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.mismatchLabelKeys.remove(item); + } + return (A) this; } public A removeAllFromMismatchLabelKeys(Collection items) { - if (this.mismatchLabelKeys == null) return (A)this; - for (String item : items) { this.mismatchLabelKeys.remove(item);} return (A)this; + if (this.mismatchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.mismatchLabelKeys.remove(item); + } + return (A) this; } public List getMismatchLabelKeys() { @@ -251,7 +304,7 @@ public A withMismatchLabelKeys(List mismatchLabelKeys) { return (A) this; } - public A withMismatchLabelKeys(java.lang.String... mismatchLabelKeys) { + public A withMismatchLabelKeys(String... mismatchLabelKeys) { if (this.mismatchLabelKeys != null) { this.mismatchLabelKeys.clear(); _visitables.remove("mismatchLabelKeys"); @@ -265,7 +318,7 @@ public A withMismatchLabelKeys(java.lang.String... mismatchLabelKeys) { } public boolean hasMismatchLabelKeys() { - return this.mismatchLabelKeys != null && !this.mismatchLabelKeys.isEmpty(); + return this.mismatchLabelKeys != null && !(this.mismatchLabelKeys.isEmpty()); } public V1LabelSelector buildNamespaceSelector() { @@ -297,46 +350,71 @@ public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector i } public NamespaceSelectorNested editNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(null)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } public A addToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } this.namespaces.add(index, item); - return (A)this; + return (A) this; } public A setToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - this.namespaces.set(index, item); return (A)this; + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + this.namespaces.set(index, item); + return (A) this; } - public A addToNamespaces(java.lang.String... items) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - for (String item : items) {this.namespaces.add(item);} return (A)this; + public A addToNamespaces(String... items) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + for (String item : items) { + this.namespaces.add(item); + } + return (A) this; } public A addAllToNamespaces(Collection items) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - for (String item : items) {this.namespaces.add(item);} return (A)this; + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + for (String item : items) { + this.namespaces.add(item); + } + return (A) this; } - public A removeFromNamespaces(java.lang.String... items) { - if (this.namespaces == null) return (A)this; - for (String item : items) { this.namespaces.remove(item);} return (A)this; + public A removeFromNamespaces(String... items) { + if (this.namespaces == null) { + return (A) this; + } + for (String item : items) { + this.namespaces.remove(item); + } + return (A) this; } public A removeAllFromNamespaces(Collection items) { - if (this.namespaces == null) return (A)this; - for (String item : items) { this.namespaces.remove(item);} return (A)this; + if (this.namespaces == null) { + return (A) this; + } + for (String item : items) { + this.namespaces.remove(item); + } + return (A) this; } public List getNamespaces() { @@ -385,7 +463,7 @@ public A withNamespaces(List namespaces) { return (A) this; } - public A withNamespaces(java.lang.String... namespaces) { + public A withNamespaces(String... namespaces) { if (this.namespaces != null) { this.namespaces.clear(); _visitables.remove("namespaces"); @@ -399,7 +477,7 @@ public A withNamespaces(java.lang.String... namespaces) { } public boolean hasNamespaces() { - return this.namespaces != null && !this.namespaces.isEmpty(); + return this.namespaces != null && !(this.namespaces.isEmpty()); } public String getTopologyKey() { @@ -416,32 +494,73 @@ public boolean hasTopologyKey() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodAffinityTermFluent that = (V1PodAffinityTermFluent) o; - if (!java.util.Objects.equals(labelSelector, that.labelSelector)) return false; - if (!java.util.Objects.equals(matchLabelKeys, that.matchLabelKeys)) return false; - if (!java.util.Objects.equals(mismatchLabelKeys, that.mismatchLabelKeys)) return false; - if (!java.util.Objects.equals(namespaceSelector, that.namespaceSelector)) return false; - if (!java.util.Objects.equals(namespaces, that.namespaces)) return false; - if (!java.util.Objects.equals(topologyKey, that.topologyKey)) return false; + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(matchLabelKeys, that.matchLabelKeys))) { + return false; + } + if (!(Objects.equals(mismatchLabelKeys, that.mismatchLabelKeys))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(namespaces, that.namespaces))) { + return false; + } + if (!(Objects.equals(topologyKey, that.topologyKey))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(labelSelector, matchLabelKeys, mismatchLabelKeys, namespaceSelector, namespaces, topologyKey, super.hashCode()); + return Objects.hash(labelSelector, matchLabelKeys, mismatchLabelKeys, namespaceSelector, namespaces, topologyKey); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector + ","); } - if (matchLabelKeys != null && !matchLabelKeys.isEmpty()) { sb.append("matchLabelKeys:"); sb.append(matchLabelKeys + ","); } - if (mismatchLabelKeys != null && !mismatchLabelKeys.isEmpty()) { sb.append("mismatchLabelKeys:"); sb.append(mismatchLabelKeys + ","); } - if (namespaceSelector != null) { sb.append("namespaceSelector:"); sb.append(namespaceSelector + ","); } - if (namespaces != null && !namespaces.isEmpty()) { sb.append("namespaces:"); sb.append(namespaces + ","); } - if (topologyKey != null) { sb.append("topologyKey:"); sb.append(topologyKey); } + if (!(labelSelector == null)) { + sb.append("labelSelector:"); + sb.append(labelSelector); + sb.append(","); + } + if (!(matchLabelKeys == null) && !(matchLabelKeys.isEmpty())) { + sb.append("matchLabelKeys:"); + sb.append(matchLabelKeys); + sb.append(","); + } + if (!(mismatchLabelKeys == null) && !(mismatchLabelKeys.isEmpty())) { + sb.append("mismatchLabelKeys:"); + sb.append(mismatchLabelKeys); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(namespaces == null) && !(namespaces.isEmpty())) { + sb.append("namespaces:"); + sb.append(namespaces); + sb.append(","); + } + if (!(topologyKey == null)) { + sb.append("topologyKey:"); + sb.append(topologyKey); + } sb.append("}"); return sb.toString(); } 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 10032e45d1..5c54684e43 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodAntiAffinityBuilder extends V1PodAntiAffinityFluent implements VisitableBuilder{ public V1PodAntiAffinityBuilder() { this(new V1PodAntiAffinity()); 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 52507283be..86bb2732a0 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodAntiAffinityFluent> extends BaseFluent{ +public class V1PodAntiAffinityFluent> extends BaseFluent{ public V1PodAntiAffinityFluent() { } @@ -27,15 +29,17 @@ public V1PodAntiAffinityFluent(V1PodAntiAffinity instance) { private ArrayList requiredDuringSchedulingIgnoredDuringExecution; protected void copyInstance(V1PodAntiAffinity instance) { - instance = (instance != null ? instance : new V1PodAntiAffinity()); + instance = instance != null ? instance : new V1PodAntiAffinity(); if (instance != null) { - this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); + } } public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -44,11 +48,13 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } - return (A)this; + return (A) this; } public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -57,41 +63,71 @@ public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + if (preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - V1WeightedPodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1WeightedPodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPreferredDuringSchedulingIgnoredDuringExecution() { @@ -143,7 +179,7 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution(List addNewPreferredDuringSchedulingIgnoredDuringExecution() { @@ -173,32 +209,45 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredD } public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { - if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (index <= preferredDuringSchedulingIgnoredDuringExecution.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { - if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -207,11 +256,13 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffi _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); } - return (A)this; + return (A) this; } public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -220,41 +271,71 @@ public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffi _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (requiredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); + if (requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - V1PodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRequiredDuringSchedulingIgnoredDuringExecution() { @@ -306,7 +387,7 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution(List addNewRequiredDuringSchedulingIgnoredDuringExecution() { @@ -336,49 +417,77 @@ public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDur } public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { - if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + if (index <= requiredDuringSchedulingIgnoredDuringExecution.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { - if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); + if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildRequiredDuringSchedulingIgnoredDuringExecution(0)); } public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; - for (int i=0;i extends V1 int index; public N and() { - return (N) V1PodAntiAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1PodAntiAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endPreferredDuringSchedulingIgnoredDuringExecution() { @@ -409,7 +518,7 @@ public class RequiredDuringSchedulingIgnoredDuringExecutionNested extends V1P int index; public N and() { - return (N) V1PodAntiAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1PodAntiAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endRequiredDuringSchedulingIgnoredDuringExecution() { 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 1bd54ed696..85c1d258e1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodBuilder extends V1PodFluent implements VisitableBuilder{ public V1PodBuilder() { this(new V1Pod()); 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 new file mode 100644 index 0000000000..b81698d0da --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1PodCertificateProjectionBuilder extends V1PodCertificateProjectionFluent implements VisitableBuilder{ + public V1PodCertificateProjectionBuilder() { + this(new V1PodCertificateProjection()); + } + + public V1PodCertificateProjectionBuilder(V1PodCertificateProjectionFluent fluent) { + this(fluent, new V1PodCertificateProjection()); + } + + public V1PodCertificateProjectionBuilder(V1PodCertificateProjectionFluent fluent,V1PodCertificateProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PodCertificateProjectionBuilder(V1PodCertificateProjection instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1PodCertificateProjectionFluent fluent; + + public V1PodCertificateProjection build() { + V1PodCertificateProjection buildable = new V1PodCertificateProjection(); + buildable.setCertificateChainPath(fluent.getCertificateChainPath()); + buildable.setCredentialBundlePath(fluent.getCredentialBundlePath()); + buildable.setKeyPath(fluent.getKeyPath()); + buildable.setKeyType(fluent.getKeyType()); + buildable.setMaxExpirationSeconds(fluent.getMaxExpirationSeconds()); + buildable.setSignerName(fluent.getSignerName()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..3978f0430c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java @@ -0,0 +1,192 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.Integer; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PodCertificateProjectionFluent> extends BaseFluent{ + public V1PodCertificateProjectionFluent() { + } + + public V1PodCertificateProjectionFluent(V1PodCertificateProjection instance) { + this.copyInstance(instance); + } + private String certificateChainPath; + private String credentialBundlePath; + private String keyPath; + private String keyType; + private Integer maxExpirationSeconds; + private String signerName; + + protected void copyInstance(V1PodCertificateProjection instance) { + instance = instance != null ? instance : new V1PodCertificateProjection(); + if (instance != null) { + this.withCertificateChainPath(instance.getCertificateChainPath()); + this.withCredentialBundlePath(instance.getCredentialBundlePath()); + this.withKeyPath(instance.getKeyPath()); + this.withKeyType(instance.getKeyType()); + this.withMaxExpirationSeconds(instance.getMaxExpirationSeconds()); + this.withSignerName(instance.getSignerName()); + } + } + + public String getCertificateChainPath() { + return this.certificateChainPath; + } + + public A withCertificateChainPath(String certificateChainPath) { + this.certificateChainPath = certificateChainPath; + return (A) this; + } + + public boolean hasCertificateChainPath() { + return this.certificateChainPath != null; + } + + public String getCredentialBundlePath() { + return this.credentialBundlePath; + } + + public A withCredentialBundlePath(String credentialBundlePath) { + this.credentialBundlePath = credentialBundlePath; + return (A) this; + } + + public boolean hasCredentialBundlePath() { + return this.credentialBundlePath != null; + } + + public String getKeyPath() { + return this.keyPath; + } + + public A withKeyPath(String keyPath) { + this.keyPath = keyPath; + return (A) this; + } + + public boolean hasKeyPath() { + return this.keyPath != null; + } + + public String getKeyType() { + return this.keyType; + } + + public A withKeyType(String keyType) { + this.keyType = keyType; + return (A) this; + } + + public boolean hasKeyType() { + return this.keyType != null; + } + + public Integer getMaxExpirationSeconds() { + return this.maxExpirationSeconds; + } + + public A withMaxExpirationSeconds(Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + return (A) this; + } + + public boolean hasMaxExpirationSeconds() { + return this.maxExpirationSeconds != null; + } + + public String getSignerName() { + return this.signerName; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodCertificateProjectionFluent that = (V1PodCertificateProjectionFluent) o; + if (!(Objects.equals(certificateChainPath, that.certificateChainPath))) { + return false; + } + if (!(Objects.equals(credentialBundlePath, that.credentialBundlePath))) { + return false; + } + if (!(Objects.equals(keyPath, that.keyPath))) { + return false; + } + if (!(Objects.equals(keyType, that.keyType))) { + return false; + } + if (!(Objects.equals(maxExpirationSeconds, that.maxExpirationSeconds))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(certificateChainPath, credentialBundlePath, keyPath, keyType, maxExpirationSeconds, signerName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(certificateChainPath == null)) { + sb.append("certificateChainPath:"); + sb.append(certificateChainPath); + sb.append(","); + } + if (!(credentialBundlePath == null)) { + sb.append("credentialBundlePath:"); + sb.append(credentialBundlePath); + sb.append(","); + } + if (!(keyPath == null)) { + sb.append("keyPath:"); + sb.append(keyPath); + sb.append(","); + } + if (!(keyType == null)) { + sb.append("keyType:"); + sb.append(keyType); + sb.append(","); + } + if (!(maxExpirationSeconds == null)) { + sb.append("maxExpirationSeconds:"); + sb.append(maxExpirationSeconds); + sb.append(","); + } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + } + sb.append("}"); + return sb.toString(); + } + + +} \ 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 fb10672317..a0439bec01 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodConditionBuilder extends V1PodConditionFluent implements VisitableBuilder{ public V1PodConditionBuilder() { this(new V1PodCondition()); 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 b40a9d3048..c46ce402d4 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodConditionFluent> extends BaseFluent{ +public class V1PodConditionFluent> extends BaseFluent{ public V1PodConditionFluent() { } @@ -27,16 +29,16 @@ public V1PodConditionFluent(V1PodCondition instance) { private String type; protected void copyInstance(V1PodCondition instance) { - instance = (instance != null ? instance : new V1PodCondition()); + instance = instance != null ? instance : new V1PodCondition(); if (instance != null) { - this.withLastProbeTime(instance.getLastProbeTime()); - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastProbeTime(instance.getLastProbeTime()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastProbeTime() { @@ -131,34 +133,81 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodConditionFluent that = (V1PodConditionFluent) o; - if (!java.util.Objects.equals(lastProbeTime, that.lastProbeTime)) return false; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { + return false; + } + 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; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); + return Objects.hash(lastProbeTime, lastTransitionTime, message, observedGeneration, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastProbeTime != null) { sb.append("lastProbeTime:"); sb.append(lastProbeTime + ","); } - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(lastProbeTime == null)) { + sb.append("lastProbeTime:"); + sb.append(lastProbeTime); + 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 (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 14bfa78965..5061663bab 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDNSConfigBuilder extends V1PodDNSConfigFluent implements VisitableBuilder{ public V1PodDNSConfigBuilder() { this(new V1PodDNSConfig()); 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 9e6bbbabb7..1bd6c71229 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodDNSConfigFluent> extends BaseFluent{ +public class V1PodDNSConfigFluent> extends BaseFluent{ public V1PodDNSConfigFluent() { } @@ -28,43 +30,68 @@ public V1PodDNSConfigFluent(V1PodDNSConfig instance) { private List searches; protected void copyInstance(V1PodDNSConfig instance) { - instance = (instance != null ? instance : new V1PodDNSConfig()); + instance = instance != null ? instance : new V1PodDNSConfig(); if (instance != null) { - this.withNameservers(instance.getNameservers()); - this.withOptions(instance.getOptions()); - this.withSearches(instance.getSearches()); - } + this.withNameservers(instance.getNameservers()); + this.withOptions(instance.getOptions()); + this.withSearches(instance.getSearches()); + } } public A addToNameservers(int index,String item) { - if (this.nameservers == null) {this.nameservers = new ArrayList();} + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } this.nameservers.add(index, item); - return (A)this; + return (A) this; } public A setToNameservers(int index,String item) { - if (this.nameservers == null) {this.nameservers = new ArrayList();} - this.nameservers.set(index, item); return (A)this; + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } + this.nameservers.set(index, item); + return (A) this; } - public A addToNameservers(java.lang.String... items) { - if (this.nameservers == null) {this.nameservers = new ArrayList();} - for (String item : items) {this.nameservers.add(item);} return (A)this; + public A addToNameservers(String... items) { + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } + for (String item : items) { + this.nameservers.add(item); + } + return (A) this; } public A addAllToNameservers(Collection items) { - if (this.nameservers == null) {this.nameservers = new ArrayList();} - for (String item : items) {this.nameservers.add(item);} return (A)this; + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } + for (String item : items) { + this.nameservers.add(item); + } + return (A) this; } - public A removeFromNameservers(java.lang.String... items) { - if (this.nameservers == null) return (A)this; - for (String item : items) { this.nameservers.remove(item);} return (A)this; + public A removeFromNameservers(String... items) { + if (this.nameservers == null) { + return (A) this; + } + for (String item : items) { + this.nameservers.remove(item); + } + return (A) this; } public A removeAllFromNameservers(Collection items) { - if (this.nameservers == null) return (A)this; - for (String item : items) { this.nameservers.remove(item);} return (A)this; + if (this.nameservers == null) { + return (A) this; + } + for (String item : items) { + this.nameservers.remove(item); + } + return (A) this; } public List getNameservers() { @@ -113,7 +140,7 @@ public A withNameservers(List nameservers) { return (A) this; } - public A withNameservers(java.lang.String... nameservers) { + public A withNameservers(String... nameservers) { if (this.nameservers != null) { this.nameservers.clear(); _visitables.remove("nameservers"); @@ -127,11 +154,13 @@ public A withNameservers(java.lang.String... nameservers) { } public boolean hasNameservers() { - return this.nameservers != null && !this.nameservers.isEmpty(); + return this.nameservers != null && !(this.nameservers.isEmpty()); } public A addToOptions(int index,V1PodDNSConfigOption item) { - if (this.options == null) {this.options = new ArrayList();} + if (this.options == null) { + this.options = new ArrayList(); + } V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); if (index < 0 || index >= options.size()) { _visitables.get("options").add(builder); @@ -140,11 +169,13 @@ public A addToOptions(int index,V1PodDNSConfigOption item) { _visitables.get("options").add(builder); options.add(index, builder); } - return (A)this; + return (A) this; } public A setToOptions(int index,V1PodDNSConfigOption item) { - if (this.options == null) {this.options = new ArrayList();} + if (this.options == null) { + this.options = new ArrayList(); + } V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); if (index < 0 || index >= options.size()) { _visitables.get("options").add(builder); @@ -153,41 +184,71 @@ public A setToOptions(int index,V1PodDNSConfigOption item) { _visitables.get("options").add(builder); options.set(index, builder); } - return (A)this; + return (A) this; } - public A addToOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items) { - if (this.options == null) {this.options = new ArrayList();} - for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").add(builder);this.options.add(builder);} return (A)this; + public A addToOptions(V1PodDNSConfigOption... items) { + if (this.options == null) { + this.options = new ArrayList(); + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").add(builder); + this.options.add(builder); + } + return (A) this; } public A addAllToOptions(Collection items) { - if (this.options == null) {this.options = new ArrayList();} - for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").add(builder);this.options.add(builder);} return (A)this; + if (this.options == null) { + this.options = new ArrayList(); + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").add(builder); + this.options.add(builder); + } + return (A) this; } - public A removeFromOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items) { - if (this.options == null) return (A)this; - for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").remove(builder); this.options.remove(builder);} return (A)this; + public A removeFromOptions(V1PodDNSConfigOption... items) { + if (this.options == null) { + return (A) this; + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").remove(builder); + this.options.remove(builder); + } + return (A) this; } public A removeAllFromOptions(Collection items) { - if (this.options == null) return (A)this; - for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").remove(builder); this.options.remove(builder);} return (A)this; + if (this.options == null) { + return (A) this; + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").remove(builder); + this.options.remove(builder); + } + return (A) this; } public A removeMatchingFromOptions(Predicate predicate) { - if (options == null) return (A) this; - final Iterator each = options.iterator(); - final List visitables = _visitables.get("options"); + if (options == null) { + return (A) this; + } + Iterator each = options.iterator(); + List visitables = _visitables.get("options"); while (each.hasNext()) { - V1PodDNSConfigOptionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodDNSConfigOptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildOptions() { @@ -239,7 +300,7 @@ public A withOptions(List options) { return (A) this; } - public A withOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... options) { + public A withOptions(V1PodDNSConfigOption... options) { if (this.options != null) { this.options.clear(); _visitables.remove("options"); @@ -253,7 +314,7 @@ public A withOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... } public boolean hasOptions() { - return this.options != null && !this.options.isEmpty(); + return this.options != null && !(this.options.isEmpty()); } public OptionsNested addNewOption() { @@ -269,59 +330,95 @@ public OptionsNested setNewOptionLike(int index,V1PodDNSConfigOption item) { } public OptionsNested editOption(int index) { - if (options.size() <= index) throw new RuntimeException("Can't edit options. Index exceeds size."); - return setNewOptionLike(index, buildOption(index)); + if (index <= options.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "options")); + } + return this.setNewOptionLike(index, this.buildOption(index)); } public OptionsNested editFirstOption() { - if (options.size() == 0) throw new RuntimeException("Can't edit first options. The list is empty."); - return setNewOptionLike(0, buildOption(0)); + if (options.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "options")); + } + return this.setNewOptionLike(0, this.buildOption(0)); } public OptionsNested editLastOption() { int index = options.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last options. The list is empty."); - return setNewOptionLike(index, buildOption(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "options")); + } + return this.setNewOptionLike(index, this.buildOption(index)); } public OptionsNested editMatchingOption(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.searches == null) { + this.searches = new ArrayList(); + } this.searches.add(index, item); - return (A)this; + return (A) this; } public A setToSearches(int index,String item) { - if (this.searches == null) {this.searches = new ArrayList();} - this.searches.set(index, item); return (A)this; + if (this.searches == null) { + this.searches = new ArrayList(); + } + this.searches.set(index, item); + return (A) this; } - public A addToSearches(java.lang.String... items) { - if (this.searches == null) {this.searches = new ArrayList();} - for (String item : items) {this.searches.add(item);} return (A)this; + public A addToSearches(String... items) { + if (this.searches == null) { + this.searches = new ArrayList(); + } + for (String item : items) { + this.searches.add(item); + } + return (A) this; } public A addAllToSearches(Collection items) { - if (this.searches == null) {this.searches = new ArrayList();} - for (String item : items) {this.searches.add(item);} return (A)this; + if (this.searches == null) { + this.searches = new ArrayList(); + } + for (String item : items) { + this.searches.add(item); + } + return (A) this; } - public A removeFromSearches(java.lang.String... items) { - if (this.searches == null) return (A)this; - for (String item : items) { this.searches.remove(item);} return (A)this; + public A removeFromSearches(String... items) { + if (this.searches == null) { + return (A) this; + } + for (String item : items) { + this.searches.remove(item); + } + return (A) this; } public A removeAllFromSearches(Collection items) { - if (this.searches == null) return (A)this; - for (String item : items) { this.searches.remove(item);} return (A)this; + if (this.searches == null) { + return (A) this; + } + for (String item : items) { + this.searches.remove(item); + } + return (A) this; } public List getSearches() { @@ -370,7 +467,7 @@ public A withSearches(List searches) { return (A) this; } - public A withSearches(java.lang.String... searches) { + public A withSearches(String... searches) { if (this.searches != null) { this.searches.clear(); _visitables.remove("searches"); @@ -384,30 +481,53 @@ public A withSearches(java.lang.String... searches) { } public boolean hasSearches() { - return this.searches != null && !this.searches.isEmpty(); + return this.searches != null && !(this.searches.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodDNSConfigFluent that = (V1PodDNSConfigFluent) o; - if (!java.util.Objects.equals(nameservers, that.nameservers)) return false; - if (!java.util.Objects.equals(options, that.options)) return false; - if (!java.util.Objects.equals(searches, that.searches)) return false; + if (!(Objects.equals(nameservers, that.nameservers))) { + return false; + } + if (!(Objects.equals(options, that.options))) { + return false; + } + if (!(Objects.equals(searches, that.searches))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(nameservers, options, searches, super.hashCode()); + return Objects.hash(nameservers, options, searches); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nameservers != null && !nameservers.isEmpty()) { sb.append("nameservers:"); sb.append(nameservers + ","); } - if (options != null && !options.isEmpty()) { sb.append("options:"); sb.append(options + ","); } - if (searches != null && !searches.isEmpty()) { sb.append("searches:"); sb.append(searches); } + if (!(nameservers == null) && !(nameservers.isEmpty())) { + sb.append("nameservers:"); + sb.append(nameservers); + sb.append(","); + } + if (!(options == null) && !(options.isEmpty())) { + sb.append("options:"); + sb.append(options); + sb.append(","); + } + if (!(searches == null) && !(searches.isEmpty())) { + sb.append("searches:"); + sb.append(searches); + } sb.append("}"); return sb.toString(); } @@ -420,7 +540,7 @@ public class OptionsNested extends V1PodDNSConfigOptionFluent implements VisitableBuilder{ public V1PodDNSConfigOptionBuilder() { this(new V1PodDNSConfigOption()); 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 529619f733..9ee43b4ba6 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodDNSConfigOptionFluent> extends BaseFluent{ +public class V1PodDNSConfigOptionFluent> extends BaseFluent{ public V1PodDNSConfigOptionFluent() { } @@ -20,11 +22,11 @@ public V1PodDNSConfigOptionFluent(V1PodDNSConfigOption instance) { private String value; protected void copyInstance(V1PodDNSConfigOption instance) { - instance = (instance != null ? instance : new V1PodDNSConfigOption()); + instance = instance != null ? instance : new V1PodDNSConfigOption(); if (instance != null) { - this.withName(instance.getName()); - this.withValue(instance.getValue()); - } + this.withName(instance.getName()); + this.withValue(instance.getValue()); + } } public String getName() { @@ -54,24 +56,41 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodDNSConfigOptionFluent that = (V1PodDNSConfigOptionFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, value, super.hashCode()); + return Objects.hash(name, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 9eec3ce9d6..e3bf224c13 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDisruptionBudgetBuilder extends V1PodDisruptionBudgetFluent implements VisitableBuilder{ public V1PodDisruptionBudgetBuilder() { this(new V1PodDisruptionBudget()); 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 50c80eb8dc..84f8dcfa4f 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetFluent> extends BaseFluent{ +public class V1PodDisruptionBudgetFluent> extends BaseFluent{ public V1PodDisruptionBudgetFluent() { } @@ -24,14 +27,14 @@ public V1PodDisruptionBudgetFluent(V1PodDisruptionBudget instance) { private V1PodDisruptionBudgetStatusBuilder status; protected void copyInstance(V1PodDisruptionBudget instance) { - instance = (instance != null ? instance : new V1PodDisruptionBudget()); + instance = instance != null ? instance : new V1PodDisruptionBudget(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1PodDisruptionBudgetSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1PodDisruptionBudgetSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodDisruptionBudgetSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1PodDisruptionBudgetSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1PodDisruptionBudgetStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1PodDisruptionBudgetStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1PodDisruptionBudgetStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PodDisruptionBudgetStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1PodDisruptionBudgetStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodDisruptionBudgetFluent that = (V1PodDisruptionBudgetFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 979c3504e5..4180030f84 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDisruptionBudgetListBuilder extends V1PodDisruptionBudgetListFluent implements VisitableBuilder{ public V1PodDisruptionBudgetListBuilder() { this(new V1PodDisruptionBudgetList()); 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 902d75ce54..b3cdd88fd9 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetListFluent> extends BaseFluent{ +public class V1PodDisruptionBudgetListFluent> extends BaseFluent{ public V1PodDisruptionBudgetListFluent() { } @@ -29,13 +32,13 @@ public V1PodDisruptionBudgetListFluent(V1PodDisruptionBudgetList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1PodDisruptionBudgetList instance) { - instance = (instance != null ? instance : new V1PodDisruptionBudgetList()); + instance = instance != null ? instance : new V1PodDisruptionBudgetList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1PodDisruptionBudget item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1PodDisruptionBudget item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1PodDisruptionBudget item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1PodDisruptionBudget item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1PodDisruptionBudget... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { - if (this.items == null) return (A)this; - for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1PodDisruptionBudget... items) { + if (this.items == null) { + return (A) this; + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1PodDisruptionBudgetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodDisruptionBudgetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { + public A withItems(V1PodDisruptionBudget... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1PodDisruptionBudget item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodDisruptionBudgetListFluent that = (V1PodDisruptionBudgetListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1PodDisruptionBudgetFluent> int index; public N and() { - return (N) V1PodDisruptionBudgetListFluent.this.setToItems(index,builder.build()); + return (N) V1PodDisruptionBudgetListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 0f9bf75e0a..b0807c9579 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDisruptionBudgetSpecBuilder extends V1PodDisruptionBudgetSpecFluent implements VisitableBuilder{ public V1PodDisruptionBudgetSpecBuilder() { this(new V1PodDisruptionBudgetSpec()); 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 72d0121250..f6994516b0 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import io.kubernetes.client.custom.IntOrString; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetSpecFluent> extends BaseFluent{ +public class V1PodDisruptionBudgetSpecFluent> extends BaseFluent{ public V1PodDisruptionBudgetSpecFluent() { } @@ -24,13 +27,13 @@ public V1PodDisruptionBudgetSpecFluent(V1PodDisruptionBudgetSpec instance) { private String unhealthyPodEvictionPolicy; protected void copyInstance(V1PodDisruptionBudgetSpec instance) { - instance = (instance != null ? instance : new V1PodDisruptionBudgetSpec()); + instance = instance != null ? instance : new V1PodDisruptionBudgetSpec(); if (instance != null) { - this.withMaxUnavailable(instance.getMaxUnavailable()); - this.withMinAvailable(instance.getMinAvailable()); - this.withSelector(instance.getSelector()); - this.withUnhealthyPodEvictionPolicy(instance.getUnhealthyPodEvictionPolicy()); - } + this.withMaxUnavailable(instance.getMaxUnavailable()); + this.withMinAvailable(instance.getMinAvailable()); + this.withSelector(instance.getSelector()); + this.withUnhealthyPodEvictionPolicy(instance.getUnhealthyPodEvictionPolicy()); + } } public IntOrString getMaxUnavailable() { @@ -47,11 +50,11 @@ public boolean hasMaxUnavailable() { } public A withNewMaxUnavailable(int value) { - return (A)withMaxUnavailable(new IntOrString(value)); + return (A) this.withMaxUnavailable(new IntOrString(value)); } public A withNewMaxUnavailable(String value) { - return (A)withMaxUnavailable(new IntOrString(value)); + return (A) this.withMaxUnavailable(new IntOrString(value)); } public IntOrString getMinAvailable() { @@ -68,11 +71,11 @@ public boolean hasMinAvailable() { } public A withNewMinAvailable(int value) { - return (A)withMinAvailable(new IntOrString(value)); + return (A) this.withMinAvailable(new IntOrString(value)); } public A withNewMinAvailable(String value) { - return (A)withMinAvailable(new IntOrString(value)); + return (A) this.withMinAvailable(new IntOrString(value)); } public V1LabelSelector buildSelector() { @@ -104,15 +107,15 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public String getUnhealthyPodEvictionPolicy() { @@ -129,28 +132,57 @@ public boolean hasUnhealthyPodEvictionPolicy() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodDisruptionBudgetSpecFluent that = (V1PodDisruptionBudgetSpecFluent) o; - if (!java.util.Objects.equals(maxUnavailable, that.maxUnavailable)) return false; - if (!java.util.Objects.equals(minAvailable, that.minAvailable)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(unhealthyPodEvictionPolicy, that.unhealthyPodEvictionPolicy)) return false; + if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { + return false; + } + if (!(Objects.equals(minAvailable, that.minAvailable))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(unhealthyPodEvictionPolicy, that.unhealthyPodEvictionPolicy))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(maxUnavailable, minAvailable, selector, unhealthyPodEvictionPolicy, super.hashCode()); + return Objects.hash(maxUnavailable, minAvailable, selector, unhealthyPodEvictionPolicy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable + ","); } - if (minAvailable != null) { sb.append("minAvailable:"); sb.append(minAvailable + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (unhealthyPodEvictionPolicy != null) { sb.append("unhealthyPodEvictionPolicy:"); sb.append(unhealthyPodEvictionPolicy); } + if (!(maxUnavailable == null)) { + sb.append("maxUnavailable:"); + sb.append(maxUnavailable); + sb.append(","); + } + if (!(minAvailable == null)) { + sb.append("minAvailable:"); + sb.append(minAvailable); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(unhealthyPodEvictionPolicy == null)) { + sb.append("unhealthyPodEvictionPolicy:"); + sb.append(unhealthyPodEvictionPolicy); + } sb.append("}"); return sb.toString(); } 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 7791cd450f..853e565808 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDisruptionBudgetStatusBuilder extends V1PodDisruptionBudgetStatusFluent implements VisitableBuilder{ public V1PodDisruptionBudgetStatusBuilder() { this(new V1PodDisruptionBudgetStatus()); 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 2fdb8cc684..cf20d97292 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 @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; import java.lang.Integer; import java.time.OffsetDateTime; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; import java.util.Map; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetStatusFluent> extends BaseFluent{ +public class V1PodDisruptionBudgetStatusFluent> extends BaseFluent{ public V1PodDisruptionBudgetStatusFluent() { } @@ -37,20 +39,22 @@ public V1PodDisruptionBudgetStatusFluent(V1PodDisruptionBudgetStatus instance) { private Long observedGeneration; protected void copyInstance(V1PodDisruptionBudgetStatus instance) { - instance = (instance != null ? instance : new V1PodDisruptionBudgetStatus()); + instance = instance != null ? instance : new V1PodDisruptionBudgetStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - this.withCurrentHealthy(instance.getCurrentHealthy()); - this.withDesiredHealthy(instance.getDesiredHealthy()); - this.withDisruptedPods(instance.getDisruptedPods()); - this.withDisruptionsAllowed(instance.getDisruptionsAllowed()); - this.withExpectedPods(instance.getExpectedPods()); - this.withObservedGeneration(instance.getObservedGeneration()); - } + this.withConditions(instance.getConditions()); + this.withCurrentHealthy(instance.getCurrentHealthy()); + this.withDesiredHealthy(instance.getDesiredHealthy()); + this.withDisruptedPods(instance.getDisruptedPods()); + this.withDisruptionsAllowed(instance.getDisruptionsAllowed()); + this.withExpectedPods(instance.getExpectedPods()); + this.withObservedGeneration(instance.getObservedGeneration()); + } } public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -59,11 +63,13 @@ public A addToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -72,41 +78,71 @@ public A setToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A 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 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; + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -158,7 +194,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + public A withConditions(V1Condition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -172,7 +208,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -188,28 +224,39 @@ public ConditionsNested setNewConditionLike(int index,V1Condition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 map) { - if(this.disruptedPods == null && map != null) { this.disruptedPods = new LinkedHashMap(); } - if(map != null) { this.disruptedPods.putAll(map);} return (A)this; + if (this.disruptedPods == null && map != null) { + this.disruptedPods = new LinkedHashMap(); + } + if (map != null) { + this.disruptedPods.putAll(map); + } + return (A) this; } public A removeFromDisruptedPods(String key) { - if(this.disruptedPods == null) { return (A) this; } - if(key != null && this.disruptedPods != null) {this.disruptedPods.remove(key);} return (A)this; + if (this.disruptedPods == null) { + return (A) this; + } + if (key != null && this.disruptedPods != null) { + this.disruptedPods.remove(key); + } + return (A) this; } public A removeFromDisruptedPods(Map map) { - if(this.disruptedPods == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.disruptedPods != null){this.disruptedPods.remove(key);}}} return (A)this; + if (this.disruptedPods == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.disruptedPods != null) { + this.disruptedPods.remove(key); + } + } + } + return (A) this; } public Map getDisruptedPods() { @@ -315,34 +386,81 @@ public boolean hasObservedGeneration() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodDisruptionBudgetStatusFluent that = (V1PodDisruptionBudgetStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(currentHealthy, that.currentHealthy)) return false; - if (!java.util.Objects.equals(desiredHealthy, that.desiredHealthy)) return false; - if (!java.util.Objects.equals(disruptedPods, that.disruptedPods)) return false; - if (!java.util.Objects.equals(disruptionsAllowed, that.disruptionsAllowed)) return false; - if (!java.util.Objects.equals(expectedPods, that.expectedPods)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentHealthy, that.currentHealthy))) { + return false; + } + if (!(Objects.equals(desiredHealthy, that.desiredHealthy))) { + return false; + } + if (!(Objects.equals(disruptedPods, that.disruptedPods))) { + return false; + } + if (!(Objects.equals(disruptionsAllowed, that.disruptionsAllowed))) { + return false; + } + if (!(Objects.equals(expectedPods, that.expectedPods))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(conditions, currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods, observedGeneration, super.hashCode()); + return Objects.hash(conditions, currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods, observedGeneration); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (currentHealthy != null) { sb.append("currentHealthy:"); sb.append(currentHealthy + ","); } - if (desiredHealthy != null) { sb.append("desiredHealthy:"); sb.append(desiredHealthy + ","); } - if (disruptedPods != null && !disruptedPods.isEmpty()) { sb.append("disruptedPods:"); sb.append(disruptedPods + ","); } - if (disruptionsAllowed != null) { sb.append("disruptionsAllowed:"); sb.append(disruptionsAllowed + ","); } - if (expectedPods != null) { sb.append("expectedPods:"); sb.append(expectedPods + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration); } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(currentHealthy == null)) { + sb.append("currentHealthy:"); + sb.append(currentHealthy); + sb.append(","); + } + if (!(desiredHealthy == null)) { + sb.append("desiredHealthy:"); + sb.append(desiredHealthy); + sb.append(","); + } + if (!(disruptedPods == null) && !(disruptedPods.isEmpty())) { + sb.append("disruptedPods:"); + sb.append(disruptedPods); + sb.append(","); + } + if (!(disruptionsAllowed == null)) { + sb.append("disruptionsAllowed:"); + sb.append(disruptionsAllowed); + sb.append(","); + } + if (!(expectedPods == null)) { + sb.append("expectedPods:"); + sb.append(expectedPods); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + } sb.append("}"); return sb.toString(); } @@ -355,7 +473,7 @@ public class ConditionsNested extends V1ConditionFluent> int index; public N and() { - return (N) V1PodDisruptionBudgetStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1PodDisruptionBudgetStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 new file mode 100644 index 0000000000..cd7c99d511 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1PodExtendedResourceClaimStatusBuilder extends V1PodExtendedResourceClaimStatusFluent implements VisitableBuilder{ + public V1PodExtendedResourceClaimStatusBuilder() { + this(new V1PodExtendedResourceClaimStatus()); + } + + public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatusFluent fluent) { + this(fluent, new V1PodExtendedResourceClaimStatus()); + } + + public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatusFluent fluent,V1PodExtendedResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1PodExtendedResourceClaimStatusFluent fluent; + + public V1PodExtendedResourceClaimStatus build() { + V1PodExtendedResourceClaimStatus buildable = new V1PodExtendedResourceClaimStatus(); + buildable.setRequestMappings(fluent.buildRequestMappings()); + buildable.setResourceClaimName(fluent.getResourceClaimName()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..c418813866 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java @@ -0,0 +1,318 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PodExtendedResourceClaimStatusFluent> extends BaseFluent{ + public V1PodExtendedResourceClaimStatusFluent() { + } + + public V1PodExtendedResourceClaimStatusFluent(V1PodExtendedResourceClaimStatus instance) { + this.copyInstance(instance); + } + private ArrayList requestMappings; + private String resourceClaimName; + + protected void copyInstance(V1PodExtendedResourceClaimStatus instance) { + instance = instance != null ? instance : new V1PodExtendedResourceClaimStatus(); + if (instance != null) { + this.withRequestMappings(instance.getRequestMappings()); + this.withResourceClaimName(instance.getResourceClaimName()); + } + } + + public A addToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList(); + } + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + if (index < 0 || index >= requestMappings.size()) { + _visitables.get("requestMappings").add(builder); + requestMappings.add(builder); + } else { + _visitables.get("requestMappings").add(builder); + requestMappings.add(index, builder); + } + return (A) this; + } + + public A setToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList(); + } + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + if (index < 0 || index >= requestMappings.size()) { + _visitables.get("requestMappings").add(builder); + requestMappings.add(builder); + } else { + _visitables.get("requestMappings").add(builder); + requestMappings.set(index, builder); + } + return (A) this; + } + + public A addToRequestMappings(V1ContainerExtendedResourceRequest... items) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList(); + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").add(builder); + this.requestMappings.add(builder); + } + return (A) this; + } + + public A addAllToRequestMappings(Collection items) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList(); + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").add(builder); + this.requestMappings.add(builder); + } + return (A) this; + } + + public A removeFromRequestMappings(V1ContainerExtendedResourceRequest... items) { + if (this.requestMappings == null) { + return (A) this; + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").remove(builder); + this.requestMappings.remove(builder); + } + return (A) this; + } + + public A removeAllFromRequestMappings(Collection items) { + if (this.requestMappings == null) { + return (A) this; + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").remove(builder); + this.requestMappings.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRequestMappings(Predicate predicate) { + if (requestMappings == null) { + return (A) this; + } + Iterator each = requestMappings.iterator(); + List visitables = _visitables.get("requestMappings"); + while (each.hasNext()) { + V1ContainerExtendedResourceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildRequestMappings() { + return this.requestMappings != null ? build(requestMappings) : null; + } + + public V1ContainerExtendedResourceRequest buildRequestMapping(int index) { + return this.requestMappings.get(index).build(); + } + + public V1ContainerExtendedResourceRequest buildFirstRequestMapping() { + return this.requestMappings.get(0).build(); + } + + public V1ContainerExtendedResourceRequest buildLastRequestMapping() { + return this.requestMappings.get(requestMappings.size() - 1).build(); + } + + public V1ContainerExtendedResourceRequest buildMatchingRequestMapping(Predicate predicate) { + for (V1ContainerExtendedResourceRequestBuilder item : requestMappings) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingRequestMapping(Predicate predicate) { + for (V1ContainerExtendedResourceRequestBuilder item : requestMappings) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRequestMappings(List requestMappings) { + if (this.requestMappings != null) { + this._visitables.get("requestMappings").clear(); + } + if (requestMappings != null) { + this.requestMappings = new ArrayList(); + for (V1ContainerExtendedResourceRequest item : requestMappings) { + this.addToRequestMappings(item); + } + } else { + this.requestMappings = null; + } + return (A) this; + } + + public A withRequestMappings(V1ContainerExtendedResourceRequest... requestMappings) { + if (this.requestMappings != null) { + this.requestMappings.clear(); + _visitables.remove("requestMappings"); + } + if (requestMappings != null) { + for (V1ContainerExtendedResourceRequest item : requestMappings) { + this.addToRequestMappings(item); + } + } + return (A) this; + } + + public boolean hasRequestMappings() { + return this.requestMappings != null && !(this.requestMappings.isEmpty()); + } + + public RequestMappingsNested addNewRequestMapping() { + return new RequestMappingsNested(-1, null); + } + + public RequestMappingsNested addNewRequestMappingLike(V1ContainerExtendedResourceRequest item) { + return new RequestMappingsNested(-1, item); + } + + public RequestMappingsNested setNewRequestMappingLike(int index,V1ContainerExtendedResourceRequest item) { + return new RequestMappingsNested(index, item); + } + + public RequestMappingsNested editRequestMapping(int index) { + if (index <= requestMappings.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requestMappings")); + } + return this.setNewRequestMappingLike(index, this.buildRequestMapping(index)); + } + + public RequestMappingsNested editFirstRequestMapping() { + if (requestMappings.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requestMappings")); + } + return this.setNewRequestMappingLike(0, this.buildRequestMapping(0)); + } + + public RequestMappingsNested editLastRequestMapping() { + int index = requestMappings.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requestMappings")); + } + return this.setNewRequestMappingLike(index, this.buildRequestMapping(index)); + } + + public RequestMappingsNested editMatchingRequestMapping(Predicate predicate) { + int index = -1; + for (int i = 0;i < requestMappings.size();i++) { + if (predicate.test(requestMappings.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requestMappings")); + } + return this.setNewRequestMappingLike(index, this.buildRequestMapping(index)); + } + + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != 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; + } + V1PodExtendedResourceClaimStatusFluent that = (V1PodExtendedResourceClaimStatusFluent) o; + if (!(Objects.equals(requestMappings, that.requestMappings))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(requestMappings, resourceClaimName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requestMappings == null) && !(requestMappings.isEmpty())) { + sb.append("requestMappings:"); + sb.append(requestMappings); + sb.append(","); + } + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); + } + sb.append("}"); + return sb.toString(); + } + public class RequestMappingsNested extends V1ContainerExtendedResourceRequestFluent> implements Nested{ + RequestMappingsNested(int index,V1ContainerExtendedResourceRequest item) { + this.index = index; + this.builder = new V1ContainerExtendedResourceRequestBuilder(this, item); + } + V1ContainerExtendedResourceRequestBuilder builder; + int index; + + public N and() { + return (N) V1PodExtendedResourceClaimStatusFluent.this.setToRequestMappings(index, builder.build()); + } + + public N endRequestMapping() { + return and(); + } + + + } + +} \ No newline at end of file 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 2213f4f8a1..bbbb6bd925 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodFailurePolicyBuilder extends V1PodFailurePolicyFluent implements VisitableBuilder{ public V1PodFailurePolicyBuilder() { this(new V1PodFailurePolicy()); 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 2814b8708d..2a8190943f 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodFailurePolicyFluent> extends BaseFluent{ +public class V1PodFailurePolicyFluent> extends BaseFluent{ public V1PodFailurePolicyFluent() { } @@ -26,14 +28,16 @@ public V1PodFailurePolicyFluent(V1PodFailurePolicy instance) { private ArrayList rules; protected void copyInstance(V1PodFailurePolicy instance) { - instance = (instance != null ? instance : new V1PodFailurePolicy()); + instance = instance != null ? instance : new V1PodFailurePolicy(); if (instance != null) { - this.withRules(instance.getRules()); - } + this.withRules(instance.getRules()); + } } public A addToRules(int index,V1PodFailurePolicyRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -42,11 +46,13 @@ public A addToRules(int index,V1PodFailurePolicyRule item) { _visitables.get("rules").add(builder); rules.add(index, builder); } - return (A)this; + return (A) this; } public A setToRules(int index,V1PodFailurePolicyRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -55,41 +61,71 @@ public A setToRules(int index,V1PodFailurePolicyRule item) { _visitables.get("rules").add(builder); rules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public A addToRules(V1PodFailurePolicyRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items) { - if (this.rules == null) return (A)this; - for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A removeFromRules(V1PodFailurePolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + if (this.rules == null) { + return (A) this; + } + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1PodFailurePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodFailurePolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRules() { @@ -141,7 +177,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... rules) { + public A withRules(V1PodFailurePolicyRule... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -155,7 +191,7 @@ public A withRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... } public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + return this.rules != null && !(this.rules.isEmpty()); } public RulesNested addNewRule() { @@ -171,47 +207,69 @@ public RulesNested setNewRuleLike(int index,V1PodFailurePolicyRule item) { } public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); + if (index <= rules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } public RulesNested editLastRule() { int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1PodFailurePolicyRuleFluent> int index; public N and() { - return (N) V1PodFailurePolicyFluent.this.setToRules(index,builder.build()); + return (N) V1PodFailurePolicyFluent.this.setToRules(index, builder.build()); } public N endRule() { 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 a29df42968..de394b4191 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodFailurePolicyOnExitCodesRequirementBuilder extends V1PodFailurePolicyOnExitCodesRequirementFluent implements VisitableBuilder{ public V1PodFailurePolicyOnExitCodesRequirementBuilder() { this(new V1PodFailurePolicyOnExitCodesRequirement()); 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 341ac86075..e521941af7 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 @@ -1,20 +1,22 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.Integer; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; -import java.lang.String; -import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodFailurePolicyOnExitCodesRequirementFluent> extends BaseFluent{ +public class V1PodFailurePolicyOnExitCodesRequirementFluent> extends BaseFluent{ public V1PodFailurePolicyOnExitCodesRequirementFluent() { } @@ -26,12 +28,12 @@ public V1PodFailurePolicyOnExitCodesRequirementFluent(V1PodFailurePolicyOnExitCo private List values; protected void copyInstance(V1PodFailurePolicyOnExitCodesRequirement instance) { - instance = (instance != null ? instance : new V1PodFailurePolicyOnExitCodesRequirement()); + instance = instance != null ? instance : new V1PodFailurePolicyOnExitCodesRequirement(); if (instance != null) { - this.withContainerName(instance.getContainerName()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } + this.withContainerName(instance.getContainerName()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } } public String getContainerName() { @@ -61,34 +63,59 @@ public boolean hasOperator() { } public A addToValues(int index,Integer item) { - if (this.values == null) {this.values = new ArrayList();} + if (this.values == null) { + this.values = new ArrayList(); + } this.values.add(index, item); - return (A)this; + return (A) this; } public A setToValues(int index,Integer item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public A addToValues(java.lang.Integer... items) { - if (this.values == null) {this.values = new ArrayList();} - for (Integer item : items) {this.values.add(item);} return (A)this; + public A addToValues(Integer... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (Integer item : items) { + this.values.add(item); + } + return (A) this; } public A addAllToValues(Collection items) { - if (this.values == null) {this.values = new ArrayList();} - for (Integer item : items) {this.values.add(item);} return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + for (Integer item : items) { + this.values.add(item); + } + return (A) this; } - public A removeFromValues(java.lang.Integer... items) { - if (this.values == null) return (A)this; - for (Integer item : items) { this.values.remove(item);} return (A)this; + public A removeFromValues(Integer... items) { + if (this.values == null) { + return (A) this; + } + for (Integer item : items) { + this.values.remove(item); + } + return (A) this; } public A removeAllFromValues(Collection items) { - if (this.values == null) return (A)this; - for (Integer item : items) { this.values.remove(item);} return (A)this; + if (this.values == null) { + return (A) this; + } + for (Integer item : items) { + this.values.remove(item); + } + return (A) this; } public List getValues() { @@ -137,7 +164,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.Integer... values) { + public A withValues(Integer... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -151,30 +178,53 @@ public A withValues(java.lang.Integer... values) { } public boolean hasValues() { - return this.values != null && !this.values.isEmpty(); + return this.values != null && !(this.values.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodFailurePolicyOnExitCodesRequirementFluent that = (V1PodFailurePolicyOnExitCodesRequirementFluent) o; - if (!java.util.Objects.equals(containerName, that.containerName)) return false; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(values, that.values)) return false; + if (!(Objects.equals(containerName, that.containerName))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(containerName, operator, values, super.hashCode()); + return Objects.hash(containerName, operator, values); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerName != null) { sb.append("containerName:"); sb.append(containerName + ","); } - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } + if (!(containerName == null)) { + sb.append("containerName:"); + sb.append(containerName); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } sb.append("}"); return sb.toString(); } 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 383251c206..cb61c68de9 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodFailurePolicyOnPodConditionsPatternBuilder extends V1PodFailurePolicyOnPodConditionsPatternFluent implements VisitableBuilder{ public V1PodFailurePolicyOnPodConditionsPatternBuilder() { this(new V1PodFailurePolicyOnPodConditionsPattern()); 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 db49540166..aa8be35704 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodFailurePolicyOnPodConditionsPatternFluent> extends BaseFluent{ +public class V1PodFailurePolicyOnPodConditionsPatternFluent> extends BaseFluent{ public V1PodFailurePolicyOnPodConditionsPatternFluent() { } @@ -20,11 +22,11 @@ public V1PodFailurePolicyOnPodConditionsPatternFluent(V1PodFailurePolicyOnPodCon private String type; protected void copyInstance(V1PodFailurePolicyOnPodConditionsPattern instance) { - instance = (instance != null ? instance : new V1PodFailurePolicyOnPodConditionsPattern()); + instance = instance != null ? instance : new V1PodFailurePolicyOnPodConditionsPattern(); if (instance != null) { - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public String getStatus() { @@ -54,24 +56,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodFailurePolicyOnPodConditionsPatternFluent that = (V1PodFailurePolicyOnPodConditionsPatternFluent) o; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(status, type, super.hashCode()); + return Objects.hash(status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 ef40a89d30..9c56bb031d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodFailurePolicyRuleBuilder extends V1PodFailurePolicyRuleFluent implements VisitableBuilder{ public V1PodFailurePolicyRuleBuilder() { this(new V1PodFailurePolicyRule()); 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 53ccb47072..4c29e80beb 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodFailurePolicyRuleFluent> extends BaseFluent{ +public class V1PodFailurePolicyRuleFluent> extends BaseFluent{ public V1PodFailurePolicyRuleFluent() { } @@ -28,12 +31,12 @@ public V1PodFailurePolicyRuleFluent(V1PodFailurePolicyRule instance) { private ArrayList onPodConditions; protected void copyInstance(V1PodFailurePolicyRule instance) { - instance = (instance != null ? instance : new V1PodFailurePolicyRule()); + instance = instance != null ? instance : new V1PodFailurePolicyRule(); if (instance != null) { - this.withAction(instance.getAction()); - this.withOnExitCodes(instance.getOnExitCodes()); - this.withOnPodConditions(instance.getOnPodConditions()); - } + this.withAction(instance.getAction()); + this.withOnExitCodes(instance.getOnExitCodes()); + this.withOnPodConditions(instance.getOnPodConditions()); + } } public String getAction() { @@ -78,19 +81,21 @@ public OnExitCodesNested withNewOnExitCodesLike(V1PodFailurePolicyOnExitCodes } public OnExitCodesNested editOnExitCodes() { - return withNewOnExitCodesLike(java.util.Optional.ofNullable(buildOnExitCodes()).orElse(null)); + return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(null)); } public OnExitCodesNested editOrNewOnExitCodes() { - return withNewOnExitCodesLike(java.util.Optional.ofNullable(buildOnExitCodes()).orElse(new V1PodFailurePolicyOnExitCodesRequirementBuilder().build())); + return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(new V1PodFailurePolicyOnExitCodesRequirementBuilder().build())); } public OnExitCodesNested editOrNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { - return withNewOnExitCodesLike(java.util.Optional.ofNullable(buildOnExitCodes()).orElse(item)); + return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(item)); } public A addToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { - if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} + if (this.onPodConditions == null) { + this.onPodConditions = new ArrayList(); + } V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); if (index < 0 || index >= onPodConditions.size()) { _visitables.get("onPodConditions").add(builder); @@ -99,11 +104,13 @@ public A addToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern _visitables.get("onPodConditions").add(builder); onPodConditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { - if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} + if (this.onPodConditions == null) { + this.onPodConditions = new ArrayList(); + } V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); if (index < 0 || index >= onPodConditions.size()) { _visitables.get("onPodConditions").add(builder); @@ -112,41 +119,71 @@ public A setToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern _visitables.get("onPodConditions").add(builder); onPodConditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items) { - if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} - for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").add(builder);this.onPodConditions.add(builder);} return (A)this; + public A addToOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) { + if (this.onPodConditions == null) { + this.onPodConditions = new ArrayList(); + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").add(builder); + this.onPodConditions.add(builder); + } + return (A) this; } public A addAllToOnPodConditions(Collection items) { - if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} - for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").add(builder);this.onPodConditions.add(builder);} return (A)this; + if (this.onPodConditions == null) { + this.onPodConditions = new ArrayList(); + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").add(builder); + this.onPodConditions.add(builder); + } + return (A) this; } - public A removeFromOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items) { - if (this.onPodConditions == null) return (A)this; - for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").remove(builder); this.onPodConditions.remove(builder);} return (A)this; + public A removeFromOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) { + if (this.onPodConditions == null) { + return (A) this; + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").remove(builder); + this.onPodConditions.remove(builder); + } + return (A) this; } public A removeAllFromOnPodConditions(Collection items) { - if (this.onPodConditions == null) return (A)this; - for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").remove(builder); this.onPodConditions.remove(builder);} return (A)this; + if (this.onPodConditions == null) { + return (A) this; + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").remove(builder); + this.onPodConditions.remove(builder); + } + return (A) this; } public A removeMatchingFromOnPodConditions(Predicate predicate) { - if (onPodConditions == null) return (A) this; - final Iterator each = onPodConditions.iterator(); - final List visitables = _visitables.get("onPodConditions"); + if (onPodConditions == null) { + return (A) this; + } + Iterator each = onPodConditions.iterator(); + List visitables = _visitables.get("onPodConditions"); while (each.hasNext()) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildOnPodConditions() { @@ -198,7 +235,7 @@ public A withOnPodConditions(List onPo return (A) this; } - public A withOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... onPodConditions) { + public A withOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... onPodConditions) { if (this.onPodConditions != null) { this.onPodConditions.clear(); _visitables.remove("onPodConditions"); @@ -212,7 +249,7 @@ public A withOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePol } public boolean hasOnPodConditions() { - return this.onPodConditions != null && !this.onPodConditions.isEmpty(); + return this.onPodConditions != null && !(this.onPodConditions.isEmpty()); } public OnPodConditionsNested addNewOnPodCondition() { @@ -228,51 +265,85 @@ public OnPodConditionsNested setNewOnPodConditionLike(int index,V1PodFailureP } public OnPodConditionsNested editOnPodCondition(int index) { - if (onPodConditions.size() <= index) throw new RuntimeException("Can't edit onPodConditions. Index exceeds size."); - return setNewOnPodConditionLike(index, buildOnPodCondition(index)); + if (index <= onPodConditions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "onPodConditions")); + } + return this.setNewOnPodConditionLike(index, this.buildOnPodCondition(index)); } public OnPodConditionsNested editFirstOnPodCondition() { - if (onPodConditions.size() == 0) throw new RuntimeException("Can't edit first onPodConditions. The list is empty."); - return setNewOnPodConditionLike(0, buildOnPodCondition(0)); + if (onPodConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "onPodConditions")); + } + return this.setNewOnPodConditionLike(0, this.buildOnPodCondition(0)); } public OnPodConditionsNested editLastOnPodCondition() { int index = onPodConditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last onPodConditions. The list is empty."); - return setNewOnPodConditionLike(index, buildOnPodCondition(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "onPodConditions")); + } + return this.setNewOnPodConditionLike(index, this.buildOnPodCondition(index)); } public OnPodConditionsNested editMatchingOnPodCondition(Predicate predicate) { int index = -1; - for (int i=0;i extends V1PodFailurePolicyOnPodConditionsP int index; public N and() { - return (N) V1PodFailurePolicyRuleFluent.this.setToOnPodConditions(index,builder.build()); + return (N) V1PodFailurePolicyRuleFluent.this.setToOnPodConditions(index, builder.build()); } public N endOnPodCondition() { 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 39ffa72e24..f509e1991e 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodFluent> extends BaseFluent{ +public class V1PodFluent> extends BaseFluent{ public V1PodFluent() { } @@ -24,14 +27,14 @@ public V1PodFluent(V1Pod instance) { private V1PodStatusBuilder status; protected void copyInstance(V1Pod instance) { - instance = (instance != null ? instance : new V1Pod()); + instance = instance != null ? instance : new V1Pod(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1PodSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1PodSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1PodSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1PodSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1PodStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1PodStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1PodStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PodStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1PodStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodFluent that = (V1PodFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 1052ca51a4..19e88c8783 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodIPBuilder extends V1PodIPFluent implements VisitableBuilder{ public V1PodIPBuilder() { this(new V1PodIP()); 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 01133d1523..9c46582f22 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodIPFluent> extends BaseFluent{ +public class V1PodIPFluent> extends BaseFluent{ public V1PodIPFluent() { } @@ -19,10 +21,10 @@ public V1PodIPFluent(V1PodIP instance) { private String ip; protected void copyInstance(V1PodIP instance) { - instance = (instance != null ? instance : new V1PodIP()); + instance = instance != null ? instance : new V1PodIP(); if (instance != null) { - this.withIp(instance.getIp()); - } + this.withIp(instance.getIp()); + } } public String getIp() { @@ -39,22 +41,33 @@ public boolean hasIp() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodIPFluent that = (V1PodIPFluent) o; - if (!java.util.Objects.equals(ip, that.ip)) return false; + if (!(Objects.equals(ip, that.ip))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(ip, super.hashCode()); + return Objects.hash(ip); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ip != null) { sb.append("ip:"); sb.append(ip); } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + } sb.append("}"); return sb.toString(); } 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 a1dac3a58d..80783a9326 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodListBuilder extends V1PodListFluent implements VisitableBuilder{ public V1PodListBuilder() { this(new V1PodList()); 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 95b09a5336..2fd99e5e64 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodListFluent> extends BaseFluent{ +public class V1PodListFluent> extends BaseFluent{ public V1PodListFluent() { } @@ -29,13 +32,13 @@ public V1PodListFluent(V1PodList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1PodList instance) { - instance = (instance != null ? instance : new V1PodList()); + instance = instance != null ? instance : new V1PodList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Pod item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PodBuilder builder = new V1PodBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Pod item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Pod item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PodBuilder builder = new V1PodBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Pod item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Pod... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Pod... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Pod... items) { - if (this.items == null) return (A)this; - for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Pod... items) { + if (this.items == null) { + return (A) this; + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1PodBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Pod... items) { + public A withItems(V1Pod... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Pod... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Pod item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodListFluent that = (V1PodListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1PodFluent> implements Neste int index; public N and() { - return (N) V1PodListFluent.this.setToItems(index,builder.build()); + return (N) V1PodListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 ce5bca133e..a8e9c83a86 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodOSBuilder extends V1PodOSFluent implements VisitableBuilder{ public V1PodOSBuilder() { this(new V1PodOS()); 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 79c5c7a911..42e9bc7fbd 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodOSFluent> extends BaseFluent{ +public class V1PodOSFluent> extends BaseFluent{ public V1PodOSFluent() { } @@ -19,10 +21,10 @@ public V1PodOSFluent(V1PodOS instance) { private String name; protected void copyInstance(V1PodOS instance) { - instance = (instance != null ? instance : new V1PodOS()); + instance = instance != null ? instance : new V1PodOS(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } public String getName() { @@ -39,22 +41,33 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodOSFluent that = (V1PodOSFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 b00d299d29..05b0d2ff4e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodReadinessGateBuilder extends V1PodReadinessGateFluent implements VisitableBuilder{ public V1PodReadinessGateBuilder() { this(new V1PodReadinessGate()); 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 ac4c56f939..1192f82804 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodReadinessGateFluent> extends BaseFluent{ +public class V1PodReadinessGateFluent> extends BaseFluent{ public V1PodReadinessGateFluent() { } @@ -19,10 +21,10 @@ public V1PodReadinessGateFluent(V1PodReadinessGate instance) { private String conditionType; protected void copyInstance(V1PodReadinessGate instance) { - instance = (instance != null ? instance : new V1PodReadinessGate()); + instance = instance != null ? instance : new V1PodReadinessGate(); if (instance != null) { - this.withConditionType(instance.getConditionType()); - } + this.withConditionType(instance.getConditionType()); + } } public String getConditionType() { @@ -39,22 +41,33 @@ public boolean hasConditionType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodReadinessGateFluent that = (V1PodReadinessGateFluent) o; - if (!java.util.Objects.equals(conditionType, that.conditionType)) return false; + if (!(Objects.equals(conditionType, that.conditionType))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(conditionType, super.hashCode()); + return Objects.hash(conditionType); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditionType != null) { sb.append("conditionType:"); sb.append(conditionType); } + if (!(conditionType == null)) { + sb.append("conditionType:"); + sb.append(conditionType); + } sb.append("}"); return sb.toString(); } 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 cdb1faab84..10f9637ab8 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodResourceClaimBuilder extends V1PodResourceClaimFluent implements VisitableBuilder{ public V1PodResourceClaimBuilder() { this(new V1PodResourceClaim()); 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 aaa09f4f25..50f9c1cce4 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodResourceClaimFluent> extends BaseFluent{ +public class V1PodResourceClaimFluent> extends BaseFluent{ public V1PodResourceClaimFluent() { } @@ -21,12 +23,12 @@ public V1PodResourceClaimFluent(V1PodResourceClaim instance) { private String resourceClaimTemplateName; protected void copyInstance(V1PodResourceClaim instance) { - instance = (instance != null ? instance : new V1PodResourceClaim()); + instance = instance != null ? instance : new V1PodResourceClaim(); if (instance != null) { - this.withName(instance.getName()); - this.withResourceClaimName(instance.getResourceClaimName()); - this.withResourceClaimTemplateName(instance.getResourceClaimTemplateName()); - } + this.withName(instance.getName()); + this.withResourceClaimName(instance.getResourceClaimName()); + this.withResourceClaimTemplateName(instance.getResourceClaimTemplateName()); + } } public String getName() { @@ -69,26 +71,49 @@ public boolean hasResourceClaimTemplateName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodResourceClaimFluent that = (V1PodResourceClaimFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resourceClaimName, that.resourceClaimName)) return false; - if (!java.util.Objects.equals(resourceClaimTemplateName, that.resourceClaimTemplateName)) return false; + 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 int hashCode() { - return java.util.Objects.hash(name, resourceClaimName, resourceClaimTemplateName, super.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 + ","); } - if (resourceClaimName != null) { sb.append("resourceClaimName:"); sb.append(resourceClaimName + ","); } - if (resourceClaimTemplateName != null) { sb.append("resourceClaimTemplateName:"); sb.append(resourceClaimTemplateName); } + 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(); } 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 d12e578056..427b6f628e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodResourceClaimStatusBuilder extends V1PodResourceClaimStatusFluent implements VisitableBuilder{ public V1PodResourceClaimStatusBuilder() { this(new V1PodResourceClaimStatus()); 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 224f752358..fc2dd4fd86 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodResourceClaimStatusFluent> extends BaseFluent{ +public class V1PodResourceClaimStatusFluent> extends BaseFluent{ public V1PodResourceClaimStatusFluent() { } @@ -20,11 +22,11 @@ public V1PodResourceClaimStatusFluent(V1PodResourceClaimStatus instance) { private String resourceClaimName; protected void copyInstance(V1PodResourceClaimStatus instance) { - instance = (instance != null ? instance : new V1PodResourceClaimStatus()); + instance = instance != null ? instance : new V1PodResourceClaimStatus(); if (instance != null) { - this.withName(instance.getName()); - this.withResourceClaimName(instance.getResourceClaimName()); - } + this.withName(instance.getName()); + this.withResourceClaimName(instance.getResourceClaimName()); + } } public String getName() { @@ -54,24 +56,41 @@ public boolean hasResourceClaimName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodResourceClaimStatusFluent that = (V1PodResourceClaimStatusFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resourceClaimName, that.resourceClaimName)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, resourceClaimName, super.hashCode()); + return Objects.hash(name, resourceClaimName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (resourceClaimName != null) { sb.append("resourceClaimName:"); sb.append(resourceClaimName); } + 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(); } 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 9ed519a22d..b7be1b3207 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodSchedulingGateBuilder extends V1PodSchedulingGateFluent implements VisitableBuilder{ public V1PodSchedulingGateBuilder() { this(new V1PodSchedulingGate()); 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 cb4b1c268a..d245d93911 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodSchedulingGateFluent> extends BaseFluent{ +public class V1PodSchedulingGateFluent> extends BaseFluent{ public V1PodSchedulingGateFluent() { } @@ -19,10 +21,10 @@ public V1PodSchedulingGateFluent(V1PodSchedulingGate instance) { private String name; protected void copyInstance(V1PodSchedulingGate instance) { - instance = (instance != null ? instance : new V1PodSchedulingGate()); + instance = instance != null ? instance : new V1PodSchedulingGate(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } public String getName() { @@ -39,22 +41,33 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodSchedulingGateFluent that = (V1PodSchedulingGateFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 2df7e39032..dd606f0964 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodSecurityContextBuilder extends V1PodSecurityContextFluent implements VisitableBuilder{ public V1PodSecurityContextBuilder() { this(new V1PodSecurityContext()); 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 e7238c0f4d..d5c9518006 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -18,7 +21,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodSecurityContextFluent> extends BaseFluent{ +public class V1PodSecurityContextFluent> extends BaseFluent{ public V1PodSecurityContextFluent() { } @@ -40,22 +43,22 @@ public V1PodSecurityContextFluent(V1PodSecurityContext instance) { private V1WindowsSecurityContextOptionsBuilder windowsOptions; protected void copyInstance(V1PodSecurityContext instance) { - instance = (instance != null ? instance : new V1PodSecurityContext()); + instance = instance != null ? instance : new V1PodSecurityContext(); if (instance != null) { - this.withAppArmorProfile(instance.getAppArmorProfile()); - this.withFsGroup(instance.getFsGroup()); - this.withFsGroupChangePolicy(instance.getFsGroupChangePolicy()); - this.withRunAsGroup(instance.getRunAsGroup()); - this.withRunAsNonRoot(instance.getRunAsNonRoot()); - this.withRunAsUser(instance.getRunAsUser()); - this.withSeLinuxChangePolicy(instance.getSeLinuxChangePolicy()); - this.withSeLinuxOptions(instance.getSeLinuxOptions()); - this.withSeccompProfile(instance.getSeccompProfile()); - this.withSupplementalGroups(instance.getSupplementalGroups()); - this.withSupplementalGroupsPolicy(instance.getSupplementalGroupsPolicy()); - this.withSysctls(instance.getSysctls()); - this.withWindowsOptions(instance.getWindowsOptions()); - } + this.withAppArmorProfile(instance.getAppArmorProfile()); + this.withFsGroup(instance.getFsGroup()); + this.withFsGroupChangePolicy(instance.getFsGroupChangePolicy()); + this.withRunAsGroup(instance.getRunAsGroup()); + this.withRunAsNonRoot(instance.getRunAsNonRoot()); + this.withRunAsUser(instance.getRunAsUser()); + this.withSeLinuxChangePolicy(instance.getSeLinuxChangePolicy()); + this.withSeLinuxOptions(instance.getSeLinuxOptions()); + this.withSeccompProfile(instance.getSeccompProfile()); + this.withSupplementalGroups(instance.getSupplementalGroups()); + this.withSupplementalGroupsPolicy(instance.getSupplementalGroupsPolicy()); + this.withSysctls(instance.getSysctls()); + this.withWindowsOptions(instance.getWindowsOptions()); + } } public V1AppArmorProfile buildAppArmorProfile() { @@ -87,15 +90,15 @@ public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile ite } public AppArmorProfileNested editAppArmorProfile() { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(null)); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(null)); } public AppArmorProfileNested editOrNewAppArmorProfile() { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); } public AppArmorProfileNested editOrNewAppArmorProfileLike(V1AppArmorProfile item) { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(item)); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(item)); } public Long getFsGroup() { @@ -205,15 +208,15 @@ public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) } public SeLinuxOptionsNested editSeLinuxOptions() { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(null)); + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(null)); } public SeLinuxOptionsNested editOrNewSeLinuxOptions() { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); } public SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(item)); + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(item)); } public V1SeccompProfile buildSeccompProfile() { @@ -245,46 +248,71 @@ public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) } public SeccompProfileNested editSeccompProfile() { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(null)); + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(null)); } public SeccompProfileNested editOrNewSeccompProfile() { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); } public SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(item)); + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(item)); } public A addToSupplementalGroups(int index,Long item) { - if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } this.supplementalGroups.add(index, item); - return (A)this; + return (A) this; } public A setToSupplementalGroups(int index,Long item) { - if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} - this.supplementalGroups.set(index, item); return (A)this; + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + this.supplementalGroups.set(index, item); + return (A) this; } - public A addToSupplementalGroups(java.lang.Long... items) { - if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} - for (Long item : items) {this.supplementalGroups.add(item);} return (A)this; + public A addToSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + for (Long item : items) { + this.supplementalGroups.add(item); + } + return (A) this; } public A addAllToSupplementalGroups(Collection items) { - if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} - for (Long item : items) {this.supplementalGroups.add(item);} return (A)this; + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + for (Long item : items) { + this.supplementalGroups.add(item); + } + return (A) this; } - public A removeFromSupplementalGroups(java.lang.Long... items) { - if (this.supplementalGroups == null) return (A)this; - for (Long item : items) { this.supplementalGroups.remove(item);} return (A)this; + public A removeFromSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(item); + } + return (A) this; } public A removeAllFromSupplementalGroups(Collection items) { - if (this.supplementalGroups == null) return (A)this; - for (Long item : items) { this.supplementalGroups.remove(item);} return (A)this; + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(item); + } + return (A) this; } public List getSupplementalGroups() { @@ -333,7 +361,7 @@ public A withSupplementalGroups(List supplementalGroups) { return (A) this; } - public A withSupplementalGroups(java.lang.Long... supplementalGroups) { + public A withSupplementalGroups(Long... supplementalGroups) { if (this.supplementalGroups != null) { this.supplementalGroups.clear(); _visitables.remove("supplementalGroups"); @@ -347,7 +375,7 @@ public A withSupplementalGroups(java.lang.Long... supplementalGroups) { } public boolean hasSupplementalGroups() { - return this.supplementalGroups != null && !this.supplementalGroups.isEmpty(); + return this.supplementalGroups != null && !(this.supplementalGroups.isEmpty()); } public String getSupplementalGroupsPolicy() { @@ -364,7 +392,9 @@ public boolean hasSupplementalGroupsPolicy() { } public A addToSysctls(int index,V1Sysctl item) { - if (this.sysctls == null) {this.sysctls = new ArrayList();} + if (this.sysctls == null) { + this.sysctls = new ArrayList(); + } V1SysctlBuilder builder = new V1SysctlBuilder(item); if (index < 0 || index >= sysctls.size()) { _visitables.get("sysctls").add(builder); @@ -373,11 +403,13 @@ public A addToSysctls(int index,V1Sysctl item) { _visitables.get("sysctls").add(builder); sysctls.add(index, builder); } - return (A)this; + return (A) this; } public A setToSysctls(int index,V1Sysctl item) { - if (this.sysctls == null) {this.sysctls = new ArrayList();} + if (this.sysctls == null) { + this.sysctls = new ArrayList(); + } V1SysctlBuilder builder = new V1SysctlBuilder(item); if (index < 0 || index >= sysctls.size()) { _visitables.get("sysctls").add(builder); @@ -386,41 +418,71 @@ public A setToSysctls(int index,V1Sysctl item) { _visitables.get("sysctls").add(builder); sysctls.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items) { - if (this.sysctls == null) {this.sysctls = new ArrayList();} - for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").add(builder);this.sysctls.add(builder);} return (A)this; + public A addToSysctls(V1Sysctl... items) { + if (this.sysctls == null) { + this.sysctls = new ArrayList(); + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").add(builder); + this.sysctls.add(builder); + } + return (A) this; } public A addAllToSysctls(Collection items) { - if (this.sysctls == null) {this.sysctls = new ArrayList();} - for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").add(builder);this.sysctls.add(builder);} return (A)this; + if (this.sysctls == null) { + this.sysctls = new ArrayList(); + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").add(builder); + this.sysctls.add(builder); + } + return (A) this; } - public A removeFromSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items) { - if (this.sysctls == null) return (A)this; - for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").remove(builder); this.sysctls.remove(builder);} return (A)this; + public A removeFromSysctls(V1Sysctl... items) { + if (this.sysctls == null) { + return (A) this; + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").remove(builder); + this.sysctls.remove(builder); + } + return (A) this; } public A removeAllFromSysctls(Collection items) { - if (this.sysctls == null) return (A)this; - for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").remove(builder); this.sysctls.remove(builder);} return (A)this; + if (this.sysctls == null) { + return (A) this; + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").remove(builder); + this.sysctls.remove(builder); + } + return (A) this; } public A removeMatchingFromSysctls(Predicate predicate) { - if (sysctls == null) return (A) this; - final Iterator each = sysctls.iterator(); - final List visitables = _visitables.get("sysctls"); + if (sysctls == null) { + return (A) this; + } + Iterator each = sysctls.iterator(); + List visitables = _visitables.get("sysctls"); while (each.hasNext()) { - V1SysctlBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1SysctlBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSysctls() { @@ -472,7 +534,7 @@ public A withSysctls(List sysctls) { return (A) this; } - public A withSysctls(io.kubernetes.client.openapi.models.V1Sysctl... sysctls) { + public A withSysctls(V1Sysctl... sysctls) { if (this.sysctls != null) { this.sysctls.clear(); _visitables.remove("sysctls"); @@ -486,7 +548,7 @@ public A withSysctls(io.kubernetes.client.openapi.models.V1Sysctl... sysctls) { } public boolean hasSysctls() { - return this.sysctls != null && !this.sysctls.isEmpty(); + return this.sysctls != null && !(this.sysctls.isEmpty()); } public SysctlsNested addNewSysctl() { @@ -502,28 +564,39 @@ public SysctlsNested setNewSysctlLike(int index,V1Sysctl item) { } public SysctlsNested editSysctl(int index) { - if (sysctls.size() <= index) throw new RuntimeException("Can't edit sysctls. Index exceeds size."); - return setNewSysctlLike(index, buildSysctl(index)); + if (index <= sysctls.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sysctls")); + } + return this.setNewSysctlLike(index, this.buildSysctl(index)); } public SysctlsNested editFirstSysctl() { - if (sysctls.size() == 0) throw new RuntimeException("Can't edit first sysctls. The list is empty."); - return setNewSysctlLike(0, buildSysctl(0)); + if (sysctls.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sysctls")); + } + return this.setNewSysctlLike(0, this.buildSysctl(0)); } public SysctlsNested editLastSysctl() { int index = sysctls.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last sysctls. The list is empty."); - return setNewSysctlLike(index, buildSysctl(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sysctls")); + } + return this.setNewSysctlLike(index, this.buildSysctl(index)); } public SysctlsNested editMatchingSysctl(Predicate predicate) { int index = -1; - for (int i=0;i withNewWindowsOptionsLike(V1WindowsSecurityContex } public WindowsOptionsNested editWindowsOptions() { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(null)); + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(null)); } public WindowsOptionsNested editOrNewWindowsOptions() { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); } public WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(item)); + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodSecurityContextFluent that = (V1PodSecurityContextFluent) o; - if (!java.util.Objects.equals(appArmorProfile, that.appArmorProfile)) return false; - if (!java.util.Objects.equals(fsGroup, that.fsGroup)) return false; - if (!java.util.Objects.equals(fsGroupChangePolicy, that.fsGroupChangePolicy)) return false; - if (!java.util.Objects.equals(runAsGroup, that.runAsGroup)) return false; - if (!java.util.Objects.equals(runAsNonRoot, that.runAsNonRoot)) return false; - if (!java.util.Objects.equals(runAsUser, that.runAsUser)) return false; - if (!java.util.Objects.equals(seLinuxChangePolicy, that.seLinuxChangePolicy)) return false; - if (!java.util.Objects.equals(seLinuxOptions, that.seLinuxOptions)) return false; - if (!java.util.Objects.equals(seccompProfile, that.seccompProfile)) return false; - if (!java.util.Objects.equals(supplementalGroups, that.supplementalGroups)) return false; - if (!java.util.Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy)) return false; - if (!java.util.Objects.equals(sysctls, that.sysctls)) return false; - if (!java.util.Objects.equals(windowsOptions, that.windowsOptions)) return false; + if (!(Objects.equals(appArmorProfile, that.appArmorProfile))) { + return false; + } + if (!(Objects.equals(fsGroup, that.fsGroup))) { + return false; + } + if (!(Objects.equals(fsGroupChangePolicy, that.fsGroupChangePolicy))) { + return false; + } + if (!(Objects.equals(runAsGroup, that.runAsGroup))) { + return false; + } + if (!(Objects.equals(runAsNonRoot, that.runAsNonRoot))) { + return false; + } + if (!(Objects.equals(runAsUser, that.runAsUser))) { + return false; + } + if (!(Objects.equals(seLinuxChangePolicy, that.seLinuxChangePolicy))) { + return false; + } + if (!(Objects.equals(seLinuxOptions, that.seLinuxOptions))) { + return false; + } + if (!(Objects.equals(seccompProfile, that.seccompProfile))) { + return false; + } + if (!(Objects.equals(supplementalGroups, that.supplementalGroups))) { + return false; + } + if (!(Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy))) { + return false; + } + if (!(Objects.equals(sysctls, that.sysctls))) { + return false; + } + if (!(Objects.equals(windowsOptions, that.windowsOptions))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxChangePolicy, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions, super.hashCode()); + return Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxChangePolicy, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (appArmorProfile != null) { sb.append("appArmorProfile:"); sb.append(appArmorProfile + ","); } - if (fsGroup != null) { sb.append("fsGroup:"); sb.append(fsGroup + ","); } - if (fsGroupChangePolicy != null) { sb.append("fsGroupChangePolicy:"); sb.append(fsGroupChangePolicy + ","); } - if (runAsGroup != null) { sb.append("runAsGroup:"); sb.append(runAsGroup + ","); } - if (runAsNonRoot != null) { sb.append("runAsNonRoot:"); sb.append(runAsNonRoot + ","); } - if (runAsUser != null) { sb.append("runAsUser:"); sb.append(runAsUser + ","); } - if (seLinuxChangePolicy != null) { sb.append("seLinuxChangePolicy:"); sb.append(seLinuxChangePolicy + ","); } - if (seLinuxOptions != null) { sb.append("seLinuxOptions:"); sb.append(seLinuxOptions + ","); } - if (seccompProfile != null) { sb.append("seccompProfile:"); sb.append(seccompProfile + ","); } - if (supplementalGroups != null && !supplementalGroups.isEmpty()) { sb.append("supplementalGroups:"); sb.append(supplementalGroups + ","); } - if (supplementalGroupsPolicy != null) { sb.append("supplementalGroupsPolicy:"); sb.append(supplementalGroupsPolicy + ","); } - if (sysctls != null && !sysctls.isEmpty()) { sb.append("sysctls:"); sb.append(sysctls + ","); } - if (windowsOptions != null) { sb.append("windowsOptions:"); sb.append(windowsOptions); } + if (!(appArmorProfile == null)) { + sb.append("appArmorProfile:"); + sb.append(appArmorProfile); + sb.append(","); + } + if (!(fsGroup == null)) { + sb.append("fsGroup:"); + sb.append(fsGroup); + sb.append(","); + } + if (!(fsGroupChangePolicy == null)) { + sb.append("fsGroupChangePolicy:"); + sb.append(fsGroupChangePolicy); + sb.append(","); + } + if (!(runAsGroup == null)) { + sb.append("runAsGroup:"); + sb.append(runAsGroup); + sb.append(","); + } + if (!(runAsNonRoot == null)) { + sb.append("runAsNonRoot:"); + sb.append(runAsNonRoot); + sb.append(","); + } + if (!(runAsUser == null)) { + sb.append("runAsUser:"); + sb.append(runAsUser); + sb.append(","); + } + if (!(seLinuxChangePolicy == null)) { + sb.append("seLinuxChangePolicy:"); + sb.append(seLinuxChangePolicy); + sb.append(","); + } + if (!(seLinuxOptions == null)) { + sb.append("seLinuxOptions:"); + sb.append(seLinuxOptions); + sb.append(","); + } + if (!(seccompProfile == null)) { + sb.append("seccompProfile:"); + sb.append(seccompProfile); + sb.append(","); + } + if (!(supplementalGroups == null) && !(supplementalGroups.isEmpty())) { + sb.append("supplementalGroups:"); + sb.append(supplementalGroups); + sb.append(","); + } + if (!(supplementalGroupsPolicy == null)) { + sb.append("supplementalGroupsPolicy:"); + sb.append(supplementalGroupsPolicy); + sb.append(","); + } + if (!(sysctls == null) && !(sysctls.isEmpty())) { + sb.append("sysctls:"); + sb.append(sysctls); + sb.append(","); + } + if (!(windowsOptions == null)) { + sb.append("windowsOptions:"); + sb.append(windowsOptions); + } sb.append("}"); return sb.toString(); } @@ -671,7 +827,7 @@ public class SysctlsNested extends V1SysctlFluent> implement int index; public N and() { - return (N) V1PodSecurityContextFluent.this.setToSysctls(index,builder.build()); + return (N) V1PodSecurityContextFluent.this.setToSysctls(index, builder.build()); } public N endSysctl() { 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 982633dfbb..f9669350a7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodSpecBuilder extends V1PodSpecFluent implements VisitableBuilder{ public V1PodSpecBuilder() { this(new V1PodSpec()); @@ -37,6 +38,7 @@ public V1PodSpec build() { buildable.setHostPID(fluent.getHostPID()); buildable.setHostUsers(fluent.getHostUsers()); buildable.setHostname(fluent.getHostname()); + buildable.setHostnameOverride(fluent.getHostnameOverride()); buildable.setImagePullSecrets(fluent.buildImagePullSecrets()); buildable.setInitContainers(fluent.buildInitContainers()); buildable.setNodeName(fluent.getNodeName()); 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 0b34784176..0783ce0451 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 @@ -1,19 +1,22 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; import java.util.ArrayList; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; +import java.util.Map; import java.util.LinkedHashMap; import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; import java.util.List; -import java.lang.Boolean; +import java.util.Optional; import java.lang.Long; +import java.util.Objects; import java.util.Collection; -import java.lang.Object; -import java.util.Map; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; +import java.lang.RuntimeException; import java.util.Iterator; import io.kubernetes.client.custom.Quantity; import java.lang.Integer; @@ -22,7 +25,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PodSpecFluent> extends BaseFluent{ +public class V1PodSpecFluent> extends BaseFluent{ public V1PodSpecFluent() { } @@ -43,6 +46,7 @@ public V1PodSpecFluent(V1PodSpec instance) { private Boolean hostPID; private Boolean hostUsers; private String hostname; + private String hostnameOverride; private ArrayList imagePullSecrets; private ArrayList initContainers; private String nodeName; @@ -71,49 +75,50 @@ public V1PodSpecFluent(V1PodSpec instance) { private ArrayList volumes; protected void copyInstance(V1PodSpec instance) { - instance = (instance != null ? instance : new V1PodSpec()); + instance = instance != null ? instance : new V1PodSpec(); if (instance != null) { - this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); - this.withAffinity(instance.getAffinity()); - this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); - this.withContainers(instance.getContainers()); - this.withDnsConfig(instance.getDnsConfig()); - this.withDnsPolicy(instance.getDnsPolicy()); - this.withEnableServiceLinks(instance.getEnableServiceLinks()); - this.withEphemeralContainers(instance.getEphemeralContainers()); - this.withHostAliases(instance.getHostAliases()); - this.withHostIPC(instance.getHostIPC()); - this.withHostNetwork(instance.getHostNetwork()); - this.withHostPID(instance.getHostPID()); - this.withHostUsers(instance.getHostUsers()); - this.withHostname(instance.getHostname()); - this.withImagePullSecrets(instance.getImagePullSecrets()); - this.withInitContainers(instance.getInitContainers()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withOs(instance.getOs()); - this.withOverhead(instance.getOverhead()); - this.withPreemptionPolicy(instance.getPreemptionPolicy()); - this.withPriority(instance.getPriority()); - this.withPriorityClassName(instance.getPriorityClassName()); - this.withReadinessGates(instance.getReadinessGates()); - this.withResourceClaims(instance.getResourceClaims()); - this.withResources(instance.getResources()); - this.withRestartPolicy(instance.getRestartPolicy()); - this.withRuntimeClassName(instance.getRuntimeClassName()); - this.withSchedulerName(instance.getSchedulerName()); - this.withSchedulingGates(instance.getSchedulingGates()); - this.withSecurityContext(instance.getSecurityContext()); - this.withServiceAccount(instance.getServiceAccount()); - this.withServiceAccountName(instance.getServiceAccountName()); - this.withSetHostnameAsFQDN(instance.getSetHostnameAsFQDN()); - this.withShareProcessNamespace(instance.getShareProcessNamespace()); - this.withSubdomain(instance.getSubdomain()); - this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); - this.withTolerations(instance.getTolerations()); - this.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); - this.withVolumes(instance.getVolumes()); - } + this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); + this.withAffinity(instance.getAffinity()); + this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); + this.withContainers(instance.getContainers()); + this.withDnsConfig(instance.getDnsConfig()); + this.withDnsPolicy(instance.getDnsPolicy()); + this.withEnableServiceLinks(instance.getEnableServiceLinks()); + this.withEphemeralContainers(instance.getEphemeralContainers()); + this.withHostAliases(instance.getHostAliases()); + this.withHostIPC(instance.getHostIPC()); + this.withHostNetwork(instance.getHostNetwork()); + this.withHostPID(instance.getHostPID()); + this.withHostUsers(instance.getHostUsers()); + this.withHostname(instance.getHostname()); + this.withHostnameOverride(instance.getHostnameOverride()); + this.withImagePullSecrets(instance.getImagePullSecrets()); + this.withInitContainers(instance.getInitContainers()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withOs(instance.getOs()); + this.withOverhead(instance.getOverhead()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withPriority(instance.getPriority()); + this.withPriorityClassName(instance.getPriorityClassName()); + this.withReadinessGates(instance.getReadinessGates()); + this.withResourceClaims(instance.getResourceClaims()); + this.withResources(instance.getResources()); + this.withRestartPolicy(instance.getRestartPolicy()); + this.withRuntimeClassName(instance.getRuntimeClassName()); + this.withSchedulerName(instance.getSchedulerName()); + this.withSchedulingGates(instance.getSchedulingGates()); + this.withSecurityContext(instance.getSecurityContext()); + this.withServiceAccount(instance.getServiceAccount()); + this.withServiceAccountName(instance.getServiceAccountName()); + this.withSetHostnameAsFQDN(instance.getSetHostnameAsFQDN()); + this.withShareProcessNamespace(instance.getShareProcessNamespace()); + this.withSubdomain(instance.getSubdomain()); + this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); + this.withTolerations(instance.getTolerations()); + this.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); + this.withVolumes(instance.getVolumes()); + } } public Long getActiveDeadlineSeconds() { @@ -158,15 +163,15 @@ public AffinityNested withNewAffinityLike(V1Affinity item) { } public AffinityNested editAffinity() { - return withNewAffinityLike(java.util.Optional.ofNullable(buildAffinity()).orElse(null)); + return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(null)); } public AffinityNested editOrNewAffinity() { - return withNewAffinityLike(java.util.Optional.ofNullable(buildAffinity()).orElse(new V1AffinityBuilder().build())); + return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(new V1AffinityBuilder().build())); } public AffinityNested editOrNewAffinityLike(V1Affinity item) { - return withNewAffinityLike(java.util.Optional.ofNullable(buildAffinity()).orElse(item)); + return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(item)); } public Boolean getAutomountServiceAccountToken() { @@ -183,7 +188,9 @@ public boolean hasAutomountServiceAccountToken() { } public A addToContainers(int index,V1Container item) { - if (this.containers == null) {this.containers = new ArrayList();} + if (this.containers == null) { + this.containers = new ArrayList(); + } V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= containers.size()) { _visitables.get("containers").add(builder); @@ -192,11 +199,13 @@ public A addToContainers(int index,V1Container item) { _visitables.get("containers").add(builder); containers.add(index, builder); } - return (A)this; + return (A) this; } public A setToContainers(int index,V1Container item) { - if (this.containers == null) {this.containers = new ArrayList();} + if (this.containers == null) { + this.containers = new ArrayList(); + } V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= containers.size()) { _visitables.get("containers").add(builder); @@ -205,41 +214,71 @@ public A setToContainers(int index,V1Container item) { _visitables.get("containers").add(builder); containers.set(index, builder); } - return (A)this; + return (A) this; } - public A addToContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.containers == null) {this.containers = new ArrayList();} - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").add(builder);this.containers.add(builder);} return (A)this; + public A addToContainers(V1Container... items) { + if (this.containers == null) { + this.containers = new ArrayList(); + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").add(builder); + this.containers.add(builder); + } + return (A) this; } public A addAllToContainers(Collection items) { - if (this.containers == null) {this.containers = new ArrayList();} - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").add(builder);this.containers.add(builder);} return (A)this; + if (this.containers == null) { + this.containers = new ArrayList(); + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").add(builder); + this.containers.add(builder); + } + return (A) this; } - public A removeFromContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.containers == null) return (A)this; - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").remove(builder); this.containers.remove(builder);} return (A)this; + public A removeFromContainers(V1Container... items) { + if (this.containers == null) { + return (A) this; + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").remove(builder); + this.containers.remove(builder); + } + return (A) this; } public A removeAllFromContainers(Collection items) { - if (this.containers == null) return (A)this; - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").remove(builder); this.containers.remove(builder);} return (A)this; + if (this.containers == null) { + return (A) this; + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").remove(builder); + this.containers.remove(builder); + } + return (A) this; } public A removeMatchingFromContainers(Predicate predicate) { - if (containers == null) return (A) this; - final Iterator each = containers.iterator(); - final List visitables = _visitables.get("containers"); + if (containers == null) { + return (A) this; + } + Iterator each = containers.iterator(); + List visitables = _visitables.get("containers"); while (each.hasNext()) { - V1ContainerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildContainers() { @@ -291,7 +330,7 @@ public A withContainers(List containers) { return (A) this; } - public A withContainers(io.kubernetes.client.openapi.models.V1Container... containers) { + public A withContainers(V1Container... containers) { if (this.containers != null) { this.containers.clear(); _visitables.remove("containers"); @@ -305,7 +344,7 @@ public A withContainers(io.kubernetes.client.openapi.models.V1Container... conta } public boolean hasContainers() { - return this.containers != null && !this.containers.isEmpty(); + return this.containers != null && !(this.containers.isEmpty()); } public ContainersNested addNewContainer() { @@ -321,28 +360,39 @@ public ContainersNested setNewContainerLike(int index,V1Container item) { } public ContainersNested editContainer(int index) { - if (containers.size() <= index) throw new RuntimeException("Can't edit containers. Index exceeds size."); - return setNewContainerLike(index, buildContainer(index)); + if (index <= containers.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "containers")); + } + return this.setNewContainerLike(index, this.buildContainer(index)); } public ContainersNested editFirstContainer() { - if (containers.size() == 0) throw new RuntimeException("Can't edit first containers. The list is empty."); - return setNewContainerLike(0, buildContainer(0)); + if (containers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "containers")); + } + return this.setNewContainerLike(0, this.buildContainer(0)); } public ContainersNested editLastContainer() { int index = containers.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last containers. The list is empty."); - return setNewContainerLike(index, buildContainer(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "containers")); + } + return this.setNewContainerLike(index, this.buildContainer(index)); } public ContainersNested editMatchingContainer(Predicate predicate) { int index = -1; - for (int i=0;i withNewDnsConfigLike(V1PodDNSConfig item) { } public DnsConfigNested editDnsConfig() { - return withNewDnsConfigLike(java.util.Optional.ofNullable(buildDnsConfig()).orElse(null)); + return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(null)); } public DnsConfigNested editOrNewDnsConfig() { - return withNewDnsConfigLike(java.util.Optional.ofNullable(buildDnsConfig()).orElse(new V1PodDNSConfigBuilder().build())); + return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(new V1PodDNSConfigBuilder().build())); } public DnsConfigNested editOrNewDnsConfigLike(V1PodDNSConfig item) { - return withNewDnsConfigLike(java.util.Optional.ofNullable(buildDnsConfig()).orElse(item)); + return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(item)); } public String getDnsPolicy() { @@ -412,7 +462,9 @@ public boolean hasEnableServiceLinks() { } public A addToEphemeralContainers(int index,V1EphemeralContainer item) { - if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} + if (this.ephemeralContainers == null) { + this.ephemeralContainers = new ArrayList(); + } V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); if (index < 0 || index >= ephemeralContainers.size()) { _visitables.get("ephemeralContainers").add(builder); @@ -421,11 +473,13 @@ public A addToEphemeralContainers(int index,V1EphemeralContainer item) { _visitables.get("ephemeralContainers").add(builder); ephemeralContainers.add(index, builder); } - return (A)this; + return (A) this; } public A setToEphemeralContainers(int index,V1EphemeralContainer item) { - if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} + if (this.ephemeralContainers == null) { + this.ephemeralContainers = new ArrayList(); + } V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); if (index < 0 || index >= ephemeralContainers.size()) { _visitables.get("ephemeralContainers").add(builder); @@ -434,41 +488,71 @@ public A setToEphemeralContainers(int index,V1EphemeralContainer item) { _visitables.get("ephemeralContainers").add(builder); ephemeralContainers.set(index, builder); } - return (A)this; + return (A) this; } - public A addToEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { - if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} - for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").add(builder);this.ephemeralContainers.add(builder);} return (A)this; + public A addToEphemeralContainers(V1EphemeralContainer... items) { + if (this.ephemeralContainers == null) { + this.ephemeralContainers = new ArrayList(); + } + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").add(builder); + this.ephemeralContainers.add(builder); + } + return (A) this; } public A addAllToEphemeralContainers(Collection items) { - if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} - for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").add(builder);this.ephemeralContainers.add(builder);} return (A)this; + if (this.ephemeralContainers == null) { + this.ephemeralContainers = new ArrayList(); + } + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").add(builder); + this.ephemeralContainers.add(builder); + } + return (A) this; } - public A removeFromEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { - if (this.ephemeralContainers == null) return (A)this; - for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").remove(builder); this.ephemeralContainers.remove(builder);} return (A)this; + public A removeFromEphemeralContainers(V1EphemeralContainer... items) { + if (this.ephemeralContainers == null) { + return (A) this; + } + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").remove(builder); + this.ephemeralContainers.remove(builder); + } + return (A) this; } public A removeAllFromEphemeralContainers(Collection items) { - if (this.ephemeralContainers == null) return (A)this; - for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").remove(builder); this.ephemeralContainers.remove(builder);} return (A)this; + if (this.ephemeralContainers == null) { + return (A) this; + } + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").remove(builder); + this.ephemeralContainers.remove(builder); + } + return (A) this; } public A removeMatchingFromEphemeralContainers(Predicate predicate) { - if (ephemeralContainers == null) return (A) this; - final Iterator each = ephemeralContainers.iterator(); - final List visitables = _visitables.get("ephemeralContainers"); + if (ephemeralContainers == null) { + return (A) this; + } + Iterator each = ephemeralContainers.iterator(); + List visitables = _visitables.get("ephemeralContainers"); while (each.hasNext()) { - V1EphemeralContainerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EphemeralContainerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildEphemeralContainers() { @@ -520,7 +604,7 @@ public A withEphemeralContainers(List ephemeralContainers) return (A) this; } - public A withEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... ephemeralContainers) { + public A withEphemeralContainers(V1EphemeralContainer... ephemeralContainers) { if (this.ephemeralContainers != null) { this.ephemeralContainers.clear(); _visitables.remove("ephemeralContainers"); @@ -534,7 +618,7 @@ public A withEphemeralContainers(io.kubernetes.client.openapi.models.V1Ephemeral } public boolean hasEphemeralContainers() { - return this.ephemeralContainers != null && !this.ephemeralContainers.isEmpty(); + return this.ephemeralContainers != null && !(this.ephemeralContainers.isEmpty()); } public EphemeralContainersNested addNewEphemeralContainer() { @@ -550,32 +634,45 @@ public EphemeralContainersNested setNewEphemeralContainerLike(int index,V1Eph } public EphemeralContainersNested editEphemeralContainer(int index) { - if (ephemeralContainers.size() <= index) throw new RuntimeException("Can't edit ephemeralContainers. Index exceeds size."); - return setNewEphemeralContainerLike(index, buildEphemeralContainer(index)); + if (index <= ephemeralContainers.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ephemeralContainers")); + } + return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); } public EphemeralContainersNested editFirstEphemeralContainer() { - if (ephemeralContainers.size() == 0) throw new RuntimeException("Can't edit first ephemeralContainers. The list is empty."); - return setNewEphemeralContainerLike(0, buildEphemeralContainer(0)); + if (ephemeralContainers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ephemeralContainers")); + } + return this.setNewEphemeralContainerLike(0, this.buildEphemeralContainer(0)); } public EphemeralContainersNested editLastEphemeralContainer() { int index = ephemeralContainers.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ephemeralContainers. The list is empty."); - return setNewEphemeralContainerLike(index, buildEphemeralContainer(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ephemeralContainers")); + } + return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); } public EphemeralContainersNested editMatchingEphemeralContainer(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); + } V1HostAliasBuilder builder = new V1HostAliasBuilder(item); if (index < 0 || index >= hostAliases.size()) { _visitables.get("hostAliases").add(builder); @@ -584,11 +681,13 @@ public A addToHostAliases(int index,V1HostAlias item) { _visitables.get("hostAliases").add(builder); hostAliases.add(index, builder); } - return (A)this; + return (A) this; } public A setToHostAliases(int index,V1HostAlias item) { - if (this.hostAliases == null) {this.hostAliases = new ArrayList();} + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); + } V1HostAliasBuilder builder = new V1HostAliasBuilder(item); if (index < 0 || index >= hostAliases.size()) { _visitables.get("hostAliases").add(builder); @@ -597,41 +696,71 @@ public A setToHostAliases(int index,V1HostAlias item) { _visitables.get("hostAliases").add(builder); hostAliases.set(index, builder); } - return (A)this; + return (A) this; } - public A addToHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items) { - if (this.hostAliases == null) {this.hostAliases = new ArrayList();} - for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").add(builder);this.hostAliases.add(builder);} return (A)this; + public A addToHostAliases(V1HostAlias... items) { + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); + } + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").add(builder); + this.hostAliases.add(builder); + } + return (A) this; } public A addAllToHostAliases(Collection items) { - if (this.hostAliases == null) {this.hostAliases = new ArrayList();} - for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").add(builder);this.hostAliases.add(builder);} return (A)this; + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); + } + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").add(builder); + this.hostAliases.add(builder); + } + return (A) this; } - public A removeFromHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items) { - if (this.hostAliases == null) return (A)this; - for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").remove(builder); this.hostAliases.remove(builder);} return (A)this; + public A removeFromHostAliases(V1HostAlias... items) { + if (this.hostAliases == null) { + return (A) this; + } + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").remove(builder); + this.hostAliases.remove(builder); + } + return (A) this; } public A removeAllFromHostAliases(Collection items) { - if (this.hostAliases == null) return (A)this; - for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").remove(builder); this.hostAliases.remove(builder);} return (A)this; + if (this.hostAliases == null) { + return (A) this; + } + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").remove(builder); + this.hostAliases.remove(builder); + } + return (A) this; } public A removeMatchingFromHostAliases(Predicate predicate) { - if (hostAliases == null) return (A) this; - final Iterator each = hostAliases.iterator(); - final List visitables = _visitables.get("hostAliases"); + if (hostAliases == null) { + return (A) this; + } + Iterator each = hostAliases.iterator(); + List visitables = _visitables.get("hostAliases"); while (each.hasNext()) { - V1HostAliasBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1HostAliasBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildHostAliases() { @@ -683,7 +812,7 @@ public A withHostAliases(List hostAliases) { return (A) this; } - public A withHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... hostAliases) { + public A withHostAliases(V1HostAlias... hostAliases) { if (this.hostAliases != null) { this.hostAliases.clear(); _visitables.remove("hostAliases"); @@ -697,7 +826,7 @@ public A withHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... host } public boolean hasHostAliases() { - return this.hostAliases != null && !this.hostAliases.isEmpty(); + return this.hostAliases != null && !(this.hostAliases.isEmpty()); } public HostAliasesNested addNewHostAlias() { @@ -713,28 +842,39 @@ public HostAliasesNested setNewHostAliasLike(int index,V1HostAlias item) { } public HostAliasesNested editHostAlias(int index) { - if (hostAliases.size() <= index) throw new RuntimeException("Can't edit hostAliases. Index exceeds size."); - return setNewHostAliasLike(index, buildHostAlias(index)); + if (index <= hostAliases.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "hostAliases")); + } + return this.setNewHostAliasLike(index, this.buildHostAlias(index)); } public HostAliasesNested editFirstHostAlias() { - if (hostAliases.size() == 0) throw new RuntimeException("Can't edit first hostAliases. The list is empty."); - return setNewHostAliasLike(0, buildHostAlias(0)); + if (hostAliases.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "hostAliases")); + } + return this.setNewHostAliasLike(0, this.buildHostAlias(0)); } public HostAliasesNested editLastHostAlias() { int index = hostAliases.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last hostAliases. The list is empty."); - return setNewHostAliasLike(index, buildHostAlias(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "hostAliases")); + } + return this.setNewHostAliasLike(index, this.buildHostAlias(index)); } public HostAliasesNested editMatchingHostAlias(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); @@ -812,11 +967,13 @@ public A addToImagePullSecrets(int index,V1LocalObjectReference item) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(index, builder); } - return (A)this; + return (A) this; } public A setToImagePullSecrets(int index,V1LocalObjectReference item) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); @@ -825,41 +982,71 @@ public A setToImagePullSecrets(int index,V1LocalObjectReference item) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.set(index, builder); } - return (A)this; + return (A) this; } - public A addToImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; + public A addToImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); + } + return (A) this; } public A addAllToImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); + } + return (A) this; } - public A removeFromImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) return (A)this; - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder); this.imagePullSecrets.remove(builder);} return (A)this; + public A removeFromImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + return (A) this; + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); + } + return (A) this; } public A removeAllFromImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) return (A)this; - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder); this.imagePullSecrets.remove(builder);} return (A)this; + if (this.imagePullSecrets == null) { + return (A) this; + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); + } + return (A) this; } public A removeMatchingFromImagePullSecrets(Predicate predicate) { - if (imagePullSecrets == null) return (A) this; - final Iterator each = imagePullSecrets.iterator(); - final List visitables = _visitables.get("imagePullSecrets"); + if (imagePullSecrets == null) { + return (A) this; + } + Iterator each = imagePullSecrets.iterator(); + List visitables = _visitables.get("imagePullSecrets"); while (each.hasNext()) { - V1LocalObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1LocalObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildImagePullSecrets() { @@ -911,7 +1098,7 @@ public A withImagePullSecrets(List imagePullSecrets) { return (A) this; } - public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets) { + public A withImagePullSecrets(V1LocalObjectReference... imagePullSecrets) { if (this.imagePullSecrets != null) { this.imagePullSecrets.clear(); _visitables.remove("imagePullSecrets"); @@ -925,7 +1112,7 @@ public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectR } public boolean hasImagePullSecrets() { - return this.imagePullSecrets != null && !this.imagePullSecrets.isEmpty(); + return this.imagePullSecrets != null && !(this.imagePullSecrets.isEmpty()); } public ImagePullSecretsNested addNewImagePullSecret() { @@ -941,32 +1128,45 @@ public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObje } public ImagePullSecretsNested editImagePullSecret(int index) { - if (imagePullSecrets.size() <= index) throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); - return setNewImagePullSecretLike(index, buildImagePullSecret(index)); + if (index <= imagePullSecrets.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } public ImagePullSecretsNested editFirstImagePullSecret() { - if (imagePullSecrets.size() == 0) throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); - return setNewImagePullSecretLike(0, buildImagePullSecret(0)); + if (imagePullSecrets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(0, this.buildImagePullSecret(0)); } public ImagePullSecretsNested editLastImagePullSecret() { int index = imagePullSecrets.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last imagePullSecrets. The list is empty."); - return setNewImagePullSecretLike(index, buildImagePullSecret(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.initContainers == null) { + this.initContainers = new ArrayList(); + } V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= initContainers.size()) { _visitables.get("initContainers").add(builder); @@ -975,11 +1175,13 @@ public A addToInitContainers(int index,V1Container item) { _visitables.get("initContainers").add(builder); initContainers.add(index, builder); } - return (A)this; + return (A) this; } public A setToInitContainers(int index,V1Container item) { - if (this.initContainers == null) {this.initContainers = new ArrayList();} + if (this.initContainers == null) { + this.initContainers = new ArrayList(); + } V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= initContainers.size()) { _visitables.get("initContainers").add(builder); @@ -988,41 +1190,71 @@ public A setToInitContainers(int index,V1Container item) { _visitables.get("initContainers").add(builder); initContainers.set(index, builder); } - return (A)this; + return (A) this; } - public A addToInitContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.initContainers == null) {this.initContainers = new ArrayList();} - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").add(builder);this.initContainers.add(builder);} return (A)this; + public A addToInitContainers(V1Container... items) { + if (this.initContainers == null) { + this.initContainers = new ArrayList(); + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").add(builder); + this.initContainers.add(builder); + } + return (A) this; } public A addAllToInitContainers(Collection items) { - if (this.initContainers == null) {this.initContainers = new ArrayList();} - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").add(builder);this.initContainers.add(builder);} return (A)this; + if (this.initContainers == null) { + this.initContainers = new ArrayList(); + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").add(builder); + this.initContainers.add(builder); + } + return (A) this; } - public A removeFromInitContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.initContainers == null) return (A)this; - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").remove(builder); this.initContainers.remove(builder);} return (A)this; + public A removeFromInitContainers(V1Container... items) { + if (this.initContainers == null) { + return (A) this; + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").remove(builder); + this.initContainers.remove(builder); + } + return (A) this; } public A removeAllFromInitContainers(Collection items) { - if (this.initContainers == null) return (A)this; - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").remove(builder); this.initContainers.remove(builder);} return (A)this; + if (this.initContainers == null) { + return (A) this; + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").remove(builder); + this.initContainers.remove(builder); + } + return (A) this; } public A removeMatchingFromInitContainers(Predicate predicate) { - if (initContainers == null) return (A) this; - final Iterator each = initContainers.iterator(); - final List visitables = _visitables.get("initContainers"); + if (initContainers == null) { + return (A) this; + } + Iterator each = initContainers.iterator(); + List visitables = _visitables.get("initContainers"); while (each.hasNext()) { - V1ContainerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildInitContainers() { @@ -1074,7 +1306,7 @@ public A withInitContainers(List initContainers) { return (A) this; } - public A withInitContainers(io.kubernetes.client.openapi.models.V1Container... initContainers) { + public A withInitContainers(V1Container... initContainers) { if (this.initContainers != null) { this.initContainers.clear(); _visitables.remove("initContainers"); @@ -1088,7 +1320,7 @@ public A withInitContainers(io.kubernetes.client.openapi.models.V1Container... i } public boolean hasInitContainers() { - return this.initContainers != null && !this.initContainers.isEmpty(); + return this.initContainers != null && !(this.initContainers.isEmpty()); } public InitContainersNested addNewInitContainer() { @@ -1104,28 +1336,39 @@ public InitContainersNested setNewInitContainerLike(int index,V1Container ite } public InitContainersNested editInitContainer(int index) { - if (initContainers.size() <= index) throw new RuntimeException("Can't edit initContainers. Index exceeds size."); - return setNewInitContainerLike(index, buildInitContainer(index)); + if (index <= initContainers.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "initContainers")); + } + return this.setNewInitContainerLike(index, this.buildInitContainer(index)); } public InitContainersNested editFirstInitContainer() { - if (initContainers.size() == 0) throw new RuntimeException("Can't edit first initContainers. The list is empty."); - return setNewInitContainerLike(0, buildInitContainer(0)); + if (initContainers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "initContainers")); + } + return this.setNewInitContainerLike(0, this.buildInitContainer(0)); } public InitContainersNested editLastInitContainer() { int index = initContainers.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last initContainers. The list is empty."); - return setNewInitContainerLike(index, buildInitContainer(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "initContainers")); + } + return this.setNewInitContainerLike(index, this.buildInitContainer(index)); } public InitContainersNested editMatchingInitContainer(Predicate predicate) { int index = -1; - for (int i=0;i map) { - if(this.nodeSelector == null && map != null) { this.nodeSelector = new LinkedHashMap(); } - if(map != null) { this.nodeSelector.putAll(map);} return (A)this; + if (this.nodeSelector == null && map != null) { + this.nodeSelector = new LinkedHashMap(); + } + if (map != null) { + this.nodeSelector.putAll(map); + } + return (A) this; } public A removeFromNodeSelector(String key) { - if(this.nodeSelector == null) { return (A) this; } - if(key != null && this.nodeSelector != null) {this.nodeSelector.remove(key);} return (A)this; + if (this.nodeSelector == null) { + return (A) this; + } + if (key != null && this.nodeSelector != null) { + this.nodeSelector.remove(key); + } + return (A) this; } public A removeFromNodeSelector(Map map) { - if(this.nodeSelector == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.nodeSelector != null){this.nodeSelector.remove(key);}}} return (A)this; + if (this.nodeSelector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.nodeSelector != null) { + this.nodeSelector.remove(key); + } + } + } + return (A) this; } public Map getNodeSelector() { @@ -1207,35 +1474,59 @@ public OsNested withNewOsLike(V1PodOS item) { } public OsNested editOs() { - return withNewOsLike(java.util.Optional.ofNullable(buildOs()).orElse(null)); + return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(null)); } public OsNested editOrNewOs() { - return withNewOsLike(java.util.Optional.ofNullable(buildOs()).orElse(new V1PodOSBuilder().build())); + return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(new V1PodOSBuilder().build())); } public OsNested editOrNewOsLike(V1PodOS item) { - return withNewOsLike(java.util.Optional.ofNullable(buildOs()).orElse(item)); + return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(item)); } public A addToOverhead(String key,Quantity value) { - if(this.overhead == null && key != null && value != null) { this.overhead = new LinkedHashMap(); } - if(key != null && value != null) {this.overhead.put(key, value);} return (A)this; + if (this.overhead == null && key != null && value != null) { + this.overhead = new LinkedHashMap(); + } + if (key != null && value != null) { + this.overhead.put(key, value); + } + return (A) this; } public A addToOverhead(Map map) { - if(this.overhead == null && map != null) { this.overhead = new LinkedHashMap(); } - if(map != null) { this.overhead.putAll(map);} return (A)this; + if (this.overhead == null && map != null) { + this.overhead = new LinkedHashMap(); + } + if (map != null) { + this.overhead.putAll(map); + } + return (A) this; } public A removeFromOverhead(String key) { - if(this.overhead == null) { return (A) this; } - if(key != null && this.overhead != null) {this.overhead.remove(key);} return (A)this; + if (this.overhead == null) { + return (A) this; + } + if (key != null && this.overhead != null) { + this.overhead.remove(key); + } + return (A) this; } public A removeFromOverhead(Map map) { - if(this.overhead == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.overhead != null){this.overhead.remove(key);}}} return (A)this; + if (this.overhead == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.overhead != null) { + this.overhead.remove(key); + } + } + } + return (A) this; } public Map getOverhead() { @@ -1295,7 +1586,9 @@ public boolean hasPriorityClassName() { } public A addToReadinessGates(int index,V1PodReadinessGate item) { - if (this.readinessGates == null) {this.readinessGates = new ArrayList();} + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); + } V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); if (index < 0 || index >= readinessGates.size()) { _visitables.get("readinessGates").add(builder); @@ -1304,11 +1597,13 @@ public A addToReadinessGates(int index,V1PodReadinessGate item) { _visitables.get("readinessGates").add(builder); readinessGates.add(index, builder); } - return (A)this; + return (A) this; } public A setToReadinessGates(int index,V1PodReadinessGate item) { - if (this.readinessGates == null) {this.readinessGates = new ArrayList();} + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); + } V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); if (index < 0 || index >= readinessGates.size()) { _visitables.get("readinessGates").add(builder); @@ -1317,41 +1612,71 @@ public A setToReadinessGates(int index,V1PodReadinessGate item) { _visitables.get("readinessGates").add(builder); readinessGates.set(index, builder); } - return (A)this; + return (A) this; } - public A addToReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items) { - if (this.readinessGates == null) {this.readinessGates = new ArrayList();} - for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").add(builder);this.readinessGates.add(builder);} return (A)this; + public A addToReadinessGates(V1PodReadinessGate... items) { + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); + } + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").add(builder); + this.readinessGates.add(builder); + } + return (A) this; } public A addAllToReadinessGates(Collection items) { - if (this.readinessGates == null) {this.readinessGates = new ArrayList();} - for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").add(builder);this.readinessGates.add(builder);} return (A)this; + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); + } + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").add(builder); + this.readinessGates.add(builder); + } + return (A) this; } - public A removeFromReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items) { - if (this.readinessGates == null) return (A)this; - for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").remove(builder); this.readinessGates.remove(builder);} return (A)this; + public A removeFromReadinessGates(V1PodReadinessGate... items) { + if (this.readinessGates == null) { + return (A) this; + } + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").remove(builder); + this.readinessGates.remove(builder); + } + return (A) this; } public A removeAllFromReadinessGates(Collection items) { - if (this.readinessGates == null) return (A)this; - for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").remove(builder); this.readinessGates.remove(builder);} return (A)this; + if (this.readinessGates == null) { + return (A) this; + } + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").remove(builder); + this.readinessGates.remove(builder); + } + return (A) this; } public A removeMatchingFromReadinessGates(Predicate predicate) { - if (readinessGates == null) return (A) this; - final Iterator each = readinessGates.iterator(); - final List visitables = _visitables.get("readinessGates"); + if (readinessGates == null) { + return (A) this; + } + Iterator each = readinessGates.iterator(); + List visitables = _visitables.get("readinessGates"); while (each.hasNext()) { - V1PodReadinessGateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodReadinessGateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildReadinessGates() { @@ -1403,7 +1728,7 @@ public A withReadinessGates(List readinessGates) { return (A) this; } - public A withReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... readinessGates) { + public A withReadinessGates(V1PodReadinessGate... readinessGates) { if (this.readinessGates != null) { this.readinessGates.clear(); _visitables.remove("readinessGates"); @@ -1417,7 +1742,7 @@ public A withReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGa } public boolean hasReadinessGates() { - return this.readinessGates != null && !this.readinessGates.isEmpty(); + return this.readinessGates != null && !(this.readinessGates.isEmpty()); } public ReadinessGatesNested addNewReadinessGate() { @@ -1433,32 +1758,45 @@ public ReadinessGatesNested setNewReadinessGateLike(int index,V1PodReadinessG } public ReadinessGatesNested editReadinessGate(int index) { - if (readinessGates.size() <= index) throw new RuntimeException("Can't edit readinessGates. Index exceeds size."); - return setNewReadinessGateLike(index, buildReadinessGate(index)); + if (index <= readinessGates.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "readinessGates")); + } + return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); } public ReadinessGatesNested editFirstReadinessGate() { - if (readinessGates.size() == 0) throw new RuntimeException("Can't edit first readinessGates. The list is empty."); - return setNewReadinessGateLike(0, buildReadinessGate(0)); + if (readinessGates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "readinessGates")); + } + return this.setNewReadinessGateLike(0, this.buildReadinessGate(0)); } public ReadinessGatesNested editLastReadinessGate() { int index = readinessGates.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last readinessGates. The list is empty."); - return setNewReadinessGateLike(index, buildReadinessGate(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "readinessGates")); + } + return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); } public ReadinessGatesNested editMatchingReadinessGate(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); if (index < 0 || index >= resourceClaims.size()) { _visitables.get("resourceClaims").add(builder); @@ -1467,11 +1805,13 @@ public A addToResourceClaims(int index,V1PodResourceClaim item) { _visitables.get("resourceClaims").add(builder); resourceClaims.add(index, builder); } - return (A)this; + return (A) this; } public A setToResourceClaims(int index,V1PodResourceClaim item) { - if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); if (index < 0 || index >= resourceClaims.size()) { _visitables.get("resourceClaims").add(builder); @@ -1480,41 +1820,71 @@ public A setToResourceClaims(int index,V1PodResourceClaim item) { _visitables.get("resourceClaims").add(builder); resourceClaims.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResourceClaims(io.kubernetes.client.openapi.models.V1PodResourceClaim... items) { - if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} - for (V1PodResourceClaim item : items) {V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item);_visitables.get("resourceClaims").add(builder);this.resourceClaims.add(builder);} return (A)this; + public A addToResourceClaims(V1PodResourceClaim... items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; } public A addAllToResourceClaims(Collection items) { - if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} - for (V1PodResourceClaim item : items) {V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item);_visitables.get("resourceClaims").add(builder);this.resourceClaims.add(builder);} return (A)this; + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; } - public A removeFromResourceClaims(io.kubernetes.client.openapi.models.V1PodResourceClaim... items) { - if (this.resourceClaims == null) return (A)this; - for (V1PodResourceClaim item : items) {V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item);_visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder);} return (A)this; + public A removeFromResourceClaims(V1PodResourceClaim... items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; } public A removeAllFromResourceClaims(Collection items) { - if (this.resourceClaims == null) return (A)this; - for (V1PodResourceClaim item : items) {V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item);_visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder);} return (A)this; + if (this.resourceClaims == null) { + return (A) this; + } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; } public A removeMatchingFromResourceClaims(Predicate predicate) { - if (resourceClaims == null) return (A) this; - final Iterator each = resourceClaims.iterator(); - final List visitables = _visitables.get("resourceClaims"); + if (resourceClaims == null) { + return (A) this; + } + Iterator each = resourceClaims.iterator(); + List visitables = _visitables.get("resourceClaims"); while (each.hasNext()) { - V1PodResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResourceClaims() { @@ -1566,7 +1936,7 @@ public A withResourceClaims(List resourceClaims) { return (A) this; } - public A withResourceClaims(io.kubernetes.client.openapi.models.V1PodResourceClaim... resourceClaims) { + public A withResourceClaims(V1PodResourceClaim... resourceClaims) { if (this.resourceClaims != null) { this.resourceClaims.clear(); _visitables.remove("resourceClaims"); @@ -1580,7 +1950,7 @@ public A withResourceClaims(io.kubernetes.client.openapi.models.V1PodResourceCla } public boolean hasResourceClaims() { - return this.resourceClaims != null && !this.resourceClaims.isEmpty(); + return this.resourceClaims != null && !(this.resourceClaims.isEmpty()); } public ResourceClaimsNested addNewResourceClaim() { @@ -1596,28 +1966,39 @@ public ResourceClaimsNested setNewResourceClaimLike(int index,V1PodResourceCl } public ResourceClaimsNested editResourceClaim(int index) { - if (resourceClaims.size() <= index) throw new RuntimeException("Can't edit resourceClaims. Index exceeds size."); - return setNewResourceClaimLike(index, buildResourceClaim(index)); + if (index <= resourceClaims.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); } public ResourceClaimsNested editFirstResourceClaim() { - if (resourceClaims.size() == 0) throw new RuntimeException("Can't edit first resourceClaims. The list is empty."); - return setNewResourceClaimLike(0, buildResourceClaim(0)); + 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("Can't edit last resourceClaims. The list is empty."); - return setNewResourceClaimLike(index, buildResourceClaim(index)); + 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 withNewResourcesLike(V1ResourceRequirements item) { } public ResourcesNested editResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } public ResourcesNested editOrNewResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } public String getRestartPolicy() { @@ -1700,7 +2081,9 @@ public boolean hasSchedulerName() { } public A addToSchedulingGates(int index,V1PodSchedulingGate item) { - if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); + } V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); if (index < 0 || index >= schedulingGates.size()) { _visitables.get("schedulingGates").add(builder); @@ -1709,11 +2092,13 @@ public A addToSchedulingGates(int index,V1PodSchedulingGate item) { _visitables.get("schedulingGates").add(builder); schedulingGates.add(index, builder); } - return (A)this; + return (A) this; } public A setToSchedulingGates(int index,V1PodSchedulingGate item) { - if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); + } V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); if (index < 0 || index >= schedulingGates.size()) { _visitables.get("schedulingGates").add(builder); @@ -1722,41 +2107,71 @@ public A setToSchedulingGates(int index,V1PodSchedulingGate item) { _visitables.get("schedulingGates").add(builder); schedulingGates.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSchedulingGates(io.kubernetes.client.openapi.models.V1PodSchedulingGate... items) { - if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} - for (V1PodSchedulingGate item : items) {V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item);_visitables.get("schedulingGates").add(builder);this.schedulingGates.add(builder);} return (A)this; + public A addToSchedulingGates(V1PodSchedulingGate... items) { + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").add(builder); + this.schedulingGates.add(builder); + } + return (A) this; } public A addAllToSchedulingGates(Collection items) { - if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} - for (V1PodSchedulingGate item : items) {V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item);_visitables.get("schedulingGates").add(builder);this.schedulingGates.add(builder);} return (A)this; + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").add(builder); + this.schedulingGates.add(builder); + } + return (A) this; } - public A removeFromSchedulingGates(io.kubernetes.client.openapi.models.V1PodSchedulingGate... items) { - if (this.schedulingGates == null) return (A)this; - for (V1PodSchedulingGate item : items) {V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item);_visitables.get("schedulingGates").remove(builder); this.schedulingGates.remove(builder);} return (A)this; + public A removeFromSchedulingGates(V1PodSchedulingGate... items) { + if (this.schedulingGates == null) { + return (A) this; + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").remove(builder); + this.schedulingGates.remove(builder); + } + return (A) this; } public A removeAllFromSchedulingGates(Collection items) { - if (this.schedulingGates == null) return (A)this; - for (V1PodSchedulingGate item : items) {V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item);_visitables.get("schedulingGates").remove(builder); this.schedulingGates.remove(builder);} return (A)this; + if (this.schedulingGates == null) { + return (A) this; + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").remove(builder); + this.schedulingGates.remove(builder); + } + return (A) this; } public A removeMatchingFromSchedulingGates(Predicate predicate) { - if (schedulingGates == null) return (A) this; - final Iterator each = schedulingGates.iterator(); - final List visitables = _visitables.get("schedulingGates"); + if (schedulingGates == null) { + return (A) this; + } + Iterator each = schedulingGates.iterator(); + List visitables = _visitables.get("schedulingGates"); while (each.hasNext()) { - V1PodSchedulingGateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodSchedulingGateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSchedulingGates() { @@ -1808,7 +2223,7 @@ public A withSchedulingGates(List schedulingGates) { return (A) this; } - public A withSchedulingGates(io.kubernetes.client.openapi.models.V1PodSchedulingGate... schedulingGates) { + public A withSchedulingGates(V1PodSchedulingGate... schedulingGates) { if (this.schedulingGates != null) { this.schedulingGates.clear(); _visitables.remove("schedulingGates"); @@ -1822,7 +2237,7 @@ public A withSchedulingGates(io.kubernetes.client.openapi.models.V1PodScheduling } public boolean hasSchedulingGates() { - return this.schedulingGates != null && !this.schedulingGates.isEmpty(); + return this.schedulingGates != null && !(this.schedulingGates.isEmpty()); } public SchedulingGatesNested addNewSchedulingGate() { @@ -1838,28 +2253,39 @@ public SchedulingGatesNested setNewSchedulingGateLike(int index,V1PodScheduli } public SchedulingGatesNested editSchedulingGate(int index) { - if (schedulingGates.size() <= index) throw new RuntimeException("Can't edit schedulingGates. Index exceeds size."); - return setNewSchedulingGateLike(index, buildSchedulingGate(index)); + if (index <= schedulingGates.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "schedulingGates")); + } + return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); } public SchedulingGatesNested editFirstSchedulingGate() { - if (schedulingGates.size() == 0) throw new RuntimeException("Can't edit first schedulingGates. The list is empty."); - return setNewSchedulingGateLike(0, buildSchedulingGate(0)); + if (schedulingGates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "schedulingGates")); + } + return this.setNewSchedulingGateLike(0, this.buildSchedulingGate(0)); } public SchedulingGatesNested editLastSchedulingGate() { int index = schedulingGates.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last schedulingGates. The list is empty."); - return setNewSchedulingGateLike(index, buildSchedulingGate(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "schedulingGates")); + } + return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); } public SchedulingGatesNested editMatchingSchedulingGate(Predicate predicate) { int index = -1; - for (int i=0;i withNewSecurityContextLike(V1PodSecurityContext } public SecurityContextNested editSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(null)); + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } public SecurityContextNested editOrNewSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(new V1PodSecurityContextBuilder().build())); + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1PodSecurityContextBuilder().build())); } public SecurityContextNested editOrNewSecurityContextLike(V1PodSecurityContext item) { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(item)); + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } public String getServiceAccount() { @@ -1981,7 +2407,9 @@ public boolean hasTerminationGracePeriodSeconds() { } public A addToTolerations(int index,V1Toleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -1990,11 +2418,13 @@ public A addToTolerations(int index,V1Toleration item) { _visitables.get("tolerations").add(builder); tolerations.add(index, builder); } - return (A)this; + return (A) this; } public A setToTolerations(int index,V1Toleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -2003,41 +2433,71 @@ public A setToTolerations(int index,V1Toleration item) { _visitables.get("tolerations").add(builder); tolerations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A addToTolerations(V1Toleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) return (A)this; - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A removeFromTolerations(V1Toleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + if (this.tolerations == null) { + return (A) this; + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - V1TolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1TolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTolerations() { @@ -2089,7 +2549,7 @@ public A withTolerations(List tolerations) { return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations) { + public A withTolerations(V1Toleration... tolerations) { if (this.tolerations != null) { this.tolerations.clear(); _visitables.remove("tolerations"); @@ -2103,7 +2563,7 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tol } public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + return this.tolerations != null && !(this.tolerations.isEmpty()); } public TolerationsNested addNewToleration() { @@ -2119,32 +2579,45 @@ public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { } public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } public TolerationsNested editLastToleration() { int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); + } V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); if (index < 0 || index >= topologySpreadConstraints.size()) { _visitables.get("topologySpreadConstraints").add(builder); @@ -2153,11 +2626,13 @@ public A addToTopologySpreadConstraints(int index,V1TopologySpreadConstraint ite _visitables.get("topologySpreadConstraints").add(builder); topologySpreadConstraints.add(index, builder); } - return (A)this; + return (A) this; } public A setToTopologySpreadConstraints(int index,V1TopologySpreadConstraint item) { - if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); + } V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); if (index < 0 || index >= topologySpreadConstraints.size()) { _visitables.get("topologySpreadConstraints").add(builder); @@ -2166,41 +2641,71 @@ public A setToTopologySpreadConstraints(int index,V1TopologySpreadConstraint ite _visitables.get("topologySpreadConstraints").add(builder); topologySpreadConstraints.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { - if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} - for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").add(builder);this.topologySpreadConstraints.add(builder);} return (A)this; + public A addToTopologySpreadConstraints(V1TopologySpreadConstraint... items) { + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); + } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.add(builder); + } + return (A) this; } public A addAllToTopologySpreadConstraints(Collection items) { - if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} - for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").add(builder);this.topologySpreadConstraints.add(builder);} return (A)this; + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); + } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.add(builder); + } + return (A) this; } - public A removeFromTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { - if (this.topologySpreadConstraints == null) return (A)this; - for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").remove(builder); this.topologySpreadConstraints.remove(builder);} return (A)this; + public A removeFromTopologySpreadConstraints(V1TopologySpreadConstraint... items) { + if (this.topologySpreadConstraints == null) { + return (A) this; + } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").remove(builder); + this.topologySpreadConstraints.remove(builder); + } + return (A) this; } public A removeAllFromTopologySpreadConstraints(Collection items) { - if (this.topologySpreadConstraints == null) return (A)this; - for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").remove(builder); this.topologySpreadConstraints.remove(builder);} return (A)this; + if (this.topologySpreadConstraints == null) { + return (A) this; + } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").remove(builder); + this.topologySpreadConstraints.remove(builder); + } + return (A) this; } public A removeMatchingFromTopologySpreadConstraints(Predicate predicate) { - if (topologySpreadConstraints == null) return (A) this; - final Iterator each = topologySpreadConstraints.iterator(); - final List visitables = _visitables.get("topologySpreadConstraints"); + if (topologySpreadConstraints == null) { + return (A) this; + } + Iterator each = topologySpreadConstraints.iterator(); + List visitables = _visitables.get("topologySpreadConstraints"); while (each.hasNext()) { - V1TopologySpreadConstraintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1TopologySpreadConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTopologySpreadConstraints() { @@ -2252,7 +2757,7 @@ public A withTopologySpreadConstraints(List topology return (A) this; } - public A withTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... topologySpreadConstraints) { + public A withTopologySpreadConstraints(V1TopologySpreadConstraint... topologySpreadConstraints) { if (this.topologySpreadConstraints != null) { this.topologySpreadConstraints.clear(); _visitables.remove("topologySpreadConstraints"); @@ -2266,7 +2771,7 @@ public A withTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1Top } public boolean hasTopologySpreadConstraints() { - return this.topologySpreadConstraints != null && !this.topologySpreadConstraints.isEmpty(); + return this.topologySpreadConstraints != null && !(this.topologySpreadConstraints.isEmpty()); } public TopologySpreadConstraintsNested addNewTopologySpreadConstraint() { @@ -2282,32 +2787,45 @@ public TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike(int } public TopologySpreadConstraintsNested editTopologySpreadConstraint(int index) { - if (topologySpreadConstraints.size() <= index) throw new RuntimeException("Can't edit topologySpreadConstraints. Index exceeds size."); - return setNewTopologySpreadConstraintLike(index, buildTopologySpreadConstraint(index)); + if (index <= topologySpreadConstraints.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "topologySpreadConstraints")); + } + return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); } public TopologySpreadConstraintsNested editFirstTopologySpreadConstraint() { - if (topologySpreadConstraints.size() == 0) throw new RuntimeException("Can't edit first topologySpreadConstraints. The list is empty."); - return setNewTopologySpreadConstraintLike(0, buildTopologySpreadConstraint(0)); + if (topologySpreadConstraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "topologySpreadConstraints")); + } + return this.setNewTopologySpreadConstraintLike(0, this.buildTopologySpreadConstraint(0)); } public TopologySpreadConstraintsNested editLastTopologySpreadConstraint() { int index = topologySpreadConstraints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last topologySpreadConstraints. The list is empty."); - return setNewTopologySpreadConstraintLike(index, buildTopologySpreadConstraint(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "topologySpreadConstraints")); + } + return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); } public TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.volumes == null) { + this.volumes = new ArrayList(); + } V1VolumeBuilder builder = new V1VolumeBuilder(item); if (index < 0 || index >= volumes.size()) { _visitables.get("volumes").add(builder); @@ -2316,11 +2834,13 @@ public A addToVolumes(int index,V1Volume item) { _visitables.get("volumes").add(builder); volumes.add(index, builder); } - return (A)this; + return (A) this; } public A setToVolumes(int index,V1Volume item) { - if (this.volumes == null) {this.volumes = new ArrayList();} + if (this.volumes == null) { + this.volumes = new ArrayList(); + } V1VolumeBuilder builder = new V1VolumeBuilder(item); if (index < 0 || index >= volumes.size()) { _visitables.get("volumes").add(builder); @@ -2329,41 +2849,71 @@ public A setToVolumes(int index,V1Volume item) { _visitables.get("volumes").add(builder); volumes.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVolumes(io.kubernetes.client.openapi.models.V1Volume... items) { - if (this.volumes == null) {this.volumes = new ArrayList();} - for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").add(builder);this.volumes.add(builder);} return (A)this; + public A addToVolumes(V1Volume... items) { + if (this.volumes == null) { + this.volumes = new ArrayList(); + } + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").add(builder); + this.volumes.add(builder); + } + return (A) this; } public A addAllToVolumes(Collection items) { - if (this.volumes == null) {this.volumes = new ArrayList();} - for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").add(builder);this.volumes.add(builder);} return (A)this; + if (this.volumes == null) { + this.volumes = new ArrayList(); + } + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").add(builder); + this.volumes.add(builder); + } + return (A) this; } - public A removeFromVolumes(io.kubernetes.client.openapi.models.V1Volume... items) { - if (this.volumes == null) return (A)this; - for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").remove(builder); this.volumes.remove(builder);} return (A)this; + public A removeFromVolumes(V1Volume... items) { + if (this.volumes == null) { + return (A) this; + } + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").remove(builder); + this.volumes.remove(builder); + } + return (A) this; } public A removeAllFromVolumes(Collection items) { - if (this.volumes == null) return (A)this; - for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").remove(builder); this.volumes.remove(builder);} return (A)this; + if (this.volumes == null) { + return (A) this; + } + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").remove(builder); + this.volumes.remove(builder); + } + return (A) this; } public A removeMatchingFromVolumes(Predicate predicate) { - if (volumes == null) return (A) this; - final Iterator each = volumes.iterator(); - final List visitables = _visitables.get("volumes"); + if (volumes == null) { + return (A) this; + } + Iterator each = volumes.iterator(); + List visitables = _visitables.get("volumes"); while (each.hasNext()) { - V1VolumeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VolumeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVolumes() { @@ -2415,7 +2965,7 @@ public A withVolumes(List volumes) { return (A) this; } - public A withVolumes(io.kubernetes.client.openapi.models.V1Volume... volumes) { + public A withVolumes(V1Volume... volumes) { if (this.volumes != null) { this.volumes.clear(); _visitables.remove("volumes"); @@ -2429,7 +2979,7 @@ public A withVolumes(io.kubernetes.client.openapi.models.V1Volume... volumes) { } public boolean hasVolumes() { - return this.volumes != null && !this.volumes.isEmpty(); + return this.volumes != null && !(this.volumes.isEmpty()); } public VolumesNested addNewVolume() { @@ -2445,125 +2995,389 @@ public VolumesNested setNewVolumeLike(int index,V1Volume item) { } public VolumesNested editVolume(int index) { - if (volumes.size() <= index) throw new RuntimeException("Can't edit volumes. Index exceeds size."); - return setNewVolumeLike(index, buildVolume(index)); + if (index <= volumes.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumes")); + } + return this.setNewVolumeLike(index, this.buildVolume(index)); } public VolumesNested editFirstVolume() { - if (volumes.size() == 0) throw new RuntimeException("Can't edit first volumes. The list is empty."); - return setNewVolumeLike(0, buildVolume(0)); + if (volumes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumes")); + } + return this.setNewVolumeLike(0, this.buildVolume(0)); } public VolumesNested editLastVolume() { int index = volumes.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumes. The list is empty."); - return setNewVolumeLike(index, buildVolume(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumes")); + } + return this.setNewVolumeLike(index, this.buildVolume(index)); } public VolumesNested editMatchingVolume(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ContainerFluent> int index; public N and() { - return (N) V1PodSpecFluent.this.setToContainers(index,builder.build()); + return (N) V1PodSpecFluent.this.setToContainers(index, builder.build()); } public N endContainer() { @@ -2658,7 +3472,7 @@ public class EphemeralContainersNested extends V1EphemeralContainerFluent extends V1HostAliasFluent int index; public N and() { - return (N) V1PodSpecFluent.this.setToHostAliases(index,builder.build()); + return (N) V1PodSpecFluent.this.setToHostAliases(index, builder.build()); } public N endHostAlias() { @@ -2694,7 +3508,7 @@ public class ImagePullSecretsNested extends V1LocalObjectReferenceFluent extends V1ContainerFluent extends V1PodReadinessGateFluent extends V1PodResourceClaimFluent extends V1PodSchedulingGateFluent extends V1TolerationFluent extends V1TopologySpreadConstrai int index; public N and() { - return (N) V1PodSpecFluent.this.setToTopologySpreadConstraints(index,builder.build()); + return (N) V1PodSpecFluent.this.setToTopologySpreadConstraints(index, builder.build()); } public N endTopologySpreadConstraint() { @@ -2868,7 +3682,7 @@ public class VolumesNested extends V1VolumeFluent> implement int index; public N and() { - return (N) V1PodSpecFluent.this.setToVolumes(index,builder.build()); + return (N) V1PodSpecFluent.this.setToVolumes(index, builder.build()); } public N endVolume() { 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 7f1254ad98..dbb251d932 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodStatusBuilder extends V1PodStatusFluent implements VisitableBuilder{ public V1PodStatusBuilder() { this(new V1PodStatus()); @@ -26,6 +27,7 @@ public V1PodStatus build() { buildable.setConditions(fluent.buildConditions()); buildable.setContainerStatuses(fluent.buildContainerStatuses()); buildable.setEphemeralContainerStatuses(fluent.buildEphemeralContainerStatuses()); + buildable.setExtendedResourceClaimStatus(fluent.buildExtendedResourceClaimStatus()); buildable.setHostIP(fluent.getHostIP()); buildable.setHostIPs(fluent.buildHostIPs()); buildable.setInitContainerStatuses(fluent.buildInitContainerStatuses()); 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 e39e4b3206..f7a5251d5b 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 @@ -1,24 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; import java.util.List; +import java.util.Optional; import java.time.OffsetDateTime; import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.RuntimeException; +import java.util.Iterator; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodStatusFluent> extends BaseFluent{ +public class V1PodStatusFluent> extends BaseFluent{ public V1PodStatusFluent() { } @@ -28,6 +31,7 @@ public V1PodStatusFluent(V1PodStatus instance) { private ArrayList conditions; private ArrayList containerStatuses; private ArrayList ephemeralContainerStatuses; + private V1PodExtendedResourceClaimStatusBuilder extendedResourceClaimStatus; private String hostIP; private ArrayList hostIPs; private ArrayList initContainerStatuses; @@ -44,30 +48,33 @@ public V1PodStatusFluent(V1PodStatus instance) { private OffsetDateTime startTime; protected void copyInstance(V1PodStatus instance) { - instance = (instance != null ? instance : new V1PodStatus()); + instance = instance != null ? instance : new V1PodStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - this.withContainerStatuses(instance.getContainerStatuses()); - this.withEphemeralContainerStatuses(instance.getEphemeralContainerStatuses()); - this.withHostIP(instance.getHostIP()); - this.withHostIPs(instance.getHostIPs()); - this.withInitContainerStatuses(instance.getInitContainerStatuses()); - this.withMessage(instance.getMessage()); - this.withNominatedNodeName(instance.getNominatedNodeName()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withPhase(instance.getPhase()); - this.withPodIP(instance.getPodIP()); - this.withPodIPs(instance.getPodIPs()); - this.withQosClass(instance.getQosClass()); - this.withReason(instance.getReason()); - this.withResize(instance.getResize()); - this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); - this.withStartTime(instance.getStartTime()); - } + this.withConditions(instance.getConditions()); + this.withContainerStatuses(instance.getContainerStatuses()); + this.withEphemeralContainerStatuses(instance.getEphemeralContainerStatuses()); + this.withExtendedResourceClaimStatus(instance.getExtendedResourceClaimStatus()); + this.withHostIP(instance.getHostIP()); + this.withHostIPs(instance.getHostIPs()); + this.withInitContainerStatuses(instance.getInitContainerStatuses()); + this.withMessage(instance.getMessage()); + this.withNominatedNodeName(instance.getNominatedNodeName()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withPhase(instance.getPhase()); + this.withPodIP(instance.getPodIP()); + this.withPodIPs(instance.getPodIPs()); + this.withQosClass(instance.getQosClass()); + this.withReason(instance.getReason()); + this.withResize(instance.getResize()); + this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); + this.withStartTime(instance.getStartTime()); + } } public A addToConditions(int index,V1PodCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1PodConditionBuilder builder = new V1PodConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -76,11 +83,13 @@ public A addToConditions(int index,V1PodCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1PodCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1PodConditionBuilder builder = new V1PodConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -89,41 +98,71 @@ public A setToConditions(int index,V1PodCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1PodCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1PodCondition item : items) {V1PodConditionBuilder builder = new V1PodConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1PodCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1PodCondition item : items) {V1PodConditionBuilder builder = new V1PodConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1PodCondition... items) { - if (this.conditions == null) return (A)this; - for (V1PodCondition item : items) {V1PodConditionBuilder builder = new V1PodConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1PodCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1PodCondition item : items) {V1PodConditionBuilder builder = new V1PodConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1PodConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -175,7 +214,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1PodCondition... conditions) { + public A withConditions(V1PodCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -189,7 +228,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1PodCondition... co } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -205,32 +244,45 @@ public ConditionsNested setNewConditionLike(int index,V1PodCondition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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();} + if (this.containerStatuses == null) { + this.containerStatuses = new ArrayList(); + } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= containerStatuses.size()) { _visitables.get("containerStatuses").add(builder); @@ -239,11 +291,13 @@ public A addToContainerStatuses(int index,V1ContainerStatus item) { _visitables.get("containerStatuses").add(builder); containerStatuses.add(index, builder); } - return (A)this; + return (A) this; } public A setToContainerStatuses(int index,V1ContainerStatus item) { - if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} + if (this.containerStatuses == null) { + this.containerStatuses = new ArrayList(); + } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= containerStatuses.size()) { _visitables.get("containerStatuses").add(builder); @@ -252,41 +306,71 @@ public A setToContainerStatuses(int index,V1ContainerStatus item) { _visitables.get("containerStatuses").add(builder); containerStatuses.set(index, builder); } - return (A)this; + return (A) this; } - public A addToContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").add(builder);this.containerStatuses.add(builder);} return (A)this; + public A addToContainerStatuses(V1ContainerStatus... items) { + if (this.containerStatuses == null) { + this.containerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").add(builder); + this.containerStatuses.add(builder); + } + return (A) this; } public A addAllToContainerStatuses(Collection items) { - if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").add(builder);this.containerStatuses.add(builder);} return (A)this; + if (this.containerStatuses == null) { + this.containerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").add(builder); + this.containerStatuses.add(builder); + } + return (A) this; } - public A removeFromContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.containerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").remove(builder); this.containerStatuses.remove(builder);} return (A)this; + public A removeFromContainerStatuses(V1ContainerStatus... items) { + if (this.containerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").remove(builder); + this.containerStatuses.remove(builder); + } + return (A) this; } public A removeAllFromContainerStatuses(Collection items) { - if (this.containerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").remove(builder); this.containerStatuses.remove(builder);} return (A)this; + if (this.containerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").remove(builder); + this.containerStatuses.remove(builder); + } + return (A) this; } public A removeMatchingFromContainerStatuses(Predicate predicate) { - if (containerStatuses == null) return (A) this; - final Iterator each = containerStatuses.iterator(); - final List visitables = _visitables.get("containerStatuses"); + if (containerStatuses == null) { + return (A) this; + } + Iterator each = containerStatuses.iterator(); + List visitables = _visitables.get("containerStatuses"); while (each.hasNext()) { - V1ContainerStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildContainerStatuses() { @@ -338,7 +422,7 @@ public A withContainerStatuses(List containerStatuses) { return (A) this; } - public A withContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... containerStatuses) { + public A withContainerStatuses(V1ContainerStatus... containerStatuses) { if (this.containerStatuses != null) { this.containerStatuses.clear(); _visitables.remove("containerStatuses"); @@ -352,7 +436,7 @@ public A withContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerSt } public boolean hasContainerStatuses() { - return this.containerStatuses != null && !this.containerStatuses.isEmpty(); + return this.containerStatuses != null && !(this.containerStatuses.isEmpty()); } public ContainerStatusesNested addNewContainerStatus() { @@ -368,32 +452,45 @@ public ContainerStatusesNested setNewContainerStatusLike(int index,V1Containe } public ContainerStatusesNested editContainerStatus(int index) { - if (containerStatuses.size() <= index) throw new RuntimeException("Can't edit containerStatuses. Index exceeds size."); - return setNewContainerStatusLike(index, buildContainerStatus(index)); + if (index <= containerStatuses.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "containerStatuses")); + } + return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); } public ContainerStatusesNested editFirstContainerStatus() { - if (containerStatuses.size() == 0) throw new RuntimeException("Can't edit first containerStatuses. The list is empty."); - return setNewContainerStatusLike(0, buildContainerStatus(0)); + if (containerStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "containerStatuses")); + } + return this.setNewContainerStatusLike(0, this.buildContainerStatus(0)); } public ContainerStatusesNested editLastContainerStatus() { int index = containerStatuses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last containerStatuses. The list is empty."); - return setNewContainerStatusLike(index, buildContainerStatus(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "containerStatuses")); + } + return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); } public ContainerStatusesNested editMatchingContainerStatus(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); + } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= ephemeralContainerStatuses.size()) { _visitables.get("ephemeralContainerStatuses").add(builder); @@ -402,11 +499,13 @@ public A addToEphemeralContainerStatuses(int index,V1ContainerStatus item) { _visitables.get("ephemeralContainerStatuses").add(builder); ephemeralContainerStatuses.add(index, builder); } - return (A)this; + return (A) this; } public A setToEphemeralContainerStatuses(int index,V1ContainerStatus item) { - if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); + } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= ephemeralContainerStatuses.size()) { _visitables.get("ephemeralContainerStatuses").add(builder); @@ -415,41 +514,71 @@ public A setToEphemeralContainerStatuses(int index,V1ContainerStatus item) { _visitables.get("ephemeralContainerStatuses").add(builder); ephemeralContainerStatuses.set(index, builder); } - return (A)this; + return (A) this; } - public A addToEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").add(builder);this.ephemeralContainerStatuses.add(builder);} return (A)this; + public A addToEphemeralContainerStatuses(V1ContainerStatus... items) { + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.add(builder); + } + return (A) this; } public A addAllToEphemeralContainerStatuses(Collection items) { - if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").add(builder);this.ephemeralContainerStatuses.add(builder);} return (A)this; + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.add(builder); + } + return (A) this; } - public A removeFromEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.ephemeralContainerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").remove(builder); this.ephemeralContainerStatuses.remove(builder);} return (A)this; + public A removeFromEphemeralContainerStatuses(V1ContainerStatus... items) { + if (this.ephemeralContainerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").remove(builder); + this.ephemeralContainerStatuses.remove(builder); + } + return (A) this; } public A removeAllFromEphemeralContainerStatuses(Collection items) { - if (this.ephemeralContainerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").remove(builder); this.ephemeralContainerStatuses.remove(builder);} return (A)this; + if (this.ephemeralContainerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").remove(builder); + this.ephemeralContainerStatuses.remove(builder); + } + return (A) this; } public A removeMatchingFromEphemeralContainerStatuses(Predicate predicate) { - if (ephemeralContainerStatuses == null) return (A) this; - final Iterator each = ephemeralContainerStatuses.iterator(); - final List visitables = _visitables.get("ephemeralContainerStatuses"); + if (ephemeralContainerStatuses == null) { + return (A) this; + } + Iterator each = ephemeralContainerStatuses.iterator(); + List visitables = _visitables.get("ephemeralContainerStatuses"); while (each.hasNext()) { - V1ContainerStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildEphemeralContainerStatuses() { @@ -501,7 +630,7 @@ public A withEphemeralContainerStatuses(List ephemeralContain return (A) this; } - public A withEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... ephemeralContainerStatuses) { + public A withEphemeralContainerStatuses(V1ContainerStatus... ephemeralContainerStatuses) { if (this.ephemeralContainerStatuses != null) { this.ephemeralContainerStatuses.clear(); _visitables.remove("ephemeralContainerStatuses"); @@ -515,7 +644,7 @@ public A withEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1Co } public boolean hasEphemeralContainerStatuses() { - return this.ephemeralContainerStatuses != null && !this.ephemeralContainerStatuses.isEmpty(); + return this.ephemeralContainerStatuses != null && !(this.ephemeralContainerStatuses.isEmpty()); } public EphemeralContainerStatusesNested addNewEphemeralContainerStatus() { @@ -531,28 +660,79 @@ public EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike(in } public EphemeralContainerStatusesNested editEphemeralContainerStatus(int index) { - if (ephemeralContainerStatuses.size() <= index) throw new RuntimeException("Can't edit ephemeralContainerStatuses. Index exceeds size."); - return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index)); + if (index <= ephemeralContainerStatuses.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ephemeralContainerStatuses")); + } + return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); } public EphemeralContainerStatusesNested editFirstEphemeralContainerStatus() { - if (ephemeralContainerStatuses.size() == 0) throw new RuntimeException("Can't edit first ephemeralContainerStatuses. The list is empty."); - return setNewEphemeralContainerStatusLike(0, buildEphemeralContainerStatus(0)); + if (ephemeralContainerStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ephemeralContainerStatuses")); + } + return this.setNewEphemeralContainerStatusLike(0, this.buildEphemeralContainerStatus(0)); } public EphemeralContainerStatusesNested editLastEphemeralContainerStatus() { int index = ephemeralContainerStatuses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ephemeralContainerStatuses. The list is empty."); - return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ephemeralContainerStatuses")); + } + return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); } public EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus(Predicate predicate) { int index = -1; - for (int i=0;i withNewExtendedResourceClaimStatus() { + return new ExtendedResourceClaimStatusNested(null); + } + + public ExtendedResourceClaimStatusNested withNewExtendedResourceClaimStatusLike(V1PodExtendedResourceClaimStatus item) { + return new ExtendedResourceClaimStatusNested(item); + } + + public ExtendedResourceClaimStatusNested editExtendedResourceClaimStatus() { + return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(null)); + } + + public ExtendedResourceClaimStatusNested editOrNewExtendedResourceClaimStatus() { + return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(new V1PodExtendedResourceClaimStatusBuilder().build())); + } + + public ExtendedResourceClaimStatusNested editOrNewExtendedResourceClaimStatusLike(V1PodExtendedResourceClaimStatus item) { + return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(item)); } public String getHostIP() { @@ -569,7 +749,9 @@ public boolean hasHostIP() { } public A addToHostIPs(int index,V1HostIP item) { - if (this.hostIPs == null) {this.hostIPs = new ArrayList();} + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); + } V1HostIPBuilder builder = new V1HostIPBuilder(item); if (index < 0 || index >= hostIPs.size()) { _visitables.get("hostIPs").add(builder); @@ -578,11 +760,13 @@ public A addToHostIPs(int index,V1HostIP item) { _visitables.get("hostIPs").add(builder); hostIPs.add(index, builder); } - return (A)this; + return (A) this; } public A setToHostIPs(int index,V1HostIP item) { - if (this.hostIPs == null) {this.hostIPs = new ArrayList();} + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); + } V1HostIPBuilder builder = new V1HostIPBuilder(item); if (index < 0 || index >= hostIPs.size()) { _visitables.get("hostIPs").add(builder); @@ -591,41 +775,71 @@ public A setToHostIPs(int index,V1HostIP item) { _visitables.get("hostIPs").add(builder); hostIPs.set(index, builder); } - return (A)this; + return (A) this; } - public A addToHostIPs(io.kubernetes.client.openapi.models.V1HostIP... items) { - if (this.hostIPs == null) {this.hostIPs = new ArrayList();} - for (V1HostIP item : items) {V1HostIPBuilder builder = new V1HostIPBuilder(item);_visitables.get("hostIPs").add(builder);this.hostIPs.add(builder);} return (A)this; + public A addToHostIPs(V1HostIP... items) { + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); + } + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").add(builder); + this.hostIPs.add(builder); + } + return (A) this; } public A addAllToHostIPs(Collection items) { - if (this.hostIPs == null) {this.hostIPs = new ArrayList();} - for (V1HostIP item : items) {V1HostIPBuilder builder = new V1HostIPBuilder(item);_visitables.get("hostIPs").add(builder);this.hostIPs.add(builder);} return (A)this; + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); + } + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").add(builder); + this.hostIPs.add(builder); + } + return (A) this; } - public A removeFromHostIPs(io.kubernetes.client.openapi.models.V1HostIP... items) { - if (this.hostIPs == null) return (A)this; - for (V1HostIP item : items) {V1HostIPBuilder builder = new V1HostIPBuilder(item);_visitables.get("hostIPs").remove(builder); this.hostIPs.remove(builder);} return (A)this; + public A removeFromHostIPs(V1HostIP... items) { + if (this.hostIPs == null) { + return (A) this; + } + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").remove(builder); + this.hostIPs.remove(builder); + } + return (A) this; } public A removeAllFromHostIPs(Collection items) { - if (this.hostIPs == null) return (A)this; - for (V1HostIP item : items) {V1HostIPBuilder builder = new V1HostIPBuilder(item);_visitables.get("hostIPs").remove(builder); this.hostIPs.remove(builder);} return (A)this; + if (this.hostIPs == null) { + return (A) this; + } + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").remove(builder); + this.hostIPs.remove(builder); + } + return (A) this; } public A removeMatchingFromHostIPs(Predicate predicate) { - if (hostIPs == null) return (A) this; - final Iterator each = hostIPs.iterator(); - final List visitables = _visitables.get("hostIPs"); + if (hostIPs == null) { + return (A) this; + } + Iterator each = hostIPs.iterator(); + List visitables = _visitables.get("hostIPs"); while (each.hasNext()) { - V1HostIPBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1HostIPBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildHostIPs() { @@ -677,7 +891,7 @@ public A withHostIPs(List hostIPs) { return (A) this; } - public A withHostIPs(io.kubernetes.client.openapi.models.V1HostIP... hostIPs) { + public A withHostIPs(V1HostIP... hostIPs) { if (this.hostIPs != null) { this.hostIPs.clear(); _visitables.remove("hostIPs"); @@ -691,7 +905,7 @@ public A withHostIPs(io.kubernetes.client.openapi.models.V1HostIP... hostIPs) { } public boolean hasHostIPs() { - return this.hostIPs != null && !this.hostIPs.isEmpty(); + return this.hostIPs != null && !(this.hostIPs.isEmpty()); } public HostIPsNested addNewHostIP() { @@ -707,32 +921,45 @@ public HostIPsNested setNewHostIPLike(int index,V1HostIP item) { } public HostIPsNested editHostIP(int index) { - if (hostIPs.size() <= index) throw new RuntimeException("Can't edit hostIPs. Index exceeds size."); - return setNewHostIPLike(index, buildHostIP(index)); + if (index <= hostIPs.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "hostIPs")); + } + return this.setNewHostIPLike(index, this.buildHostIP(index)); } public HostIPsNested editFirstHostIP() { - if (hostIPs.size() == 0) throw new RuntimeException("Can't edit first hostIPs. The list is empty."); - return setNewHostIPLike(0, buildHostIP(0)); + if (hostIPs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "hostIPs")); + } + return this.setNewHostIPLike(0, this.buildHostIP(0)); } public HostIPsNested editLastHostIP() { int index = hostIPs.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last hostIPs. The list is empty."); - return setNewHostIPLike(index, buildHostIP(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "hostIPs")); + } + return this.setNewHostIPLike(index, this.buildHostIP(index)); } public HostIPsNested editMatchingHostIP(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); + } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= initContainerStatuses.size()) { _visitables.get("initContainerStatuses").add(builder); @@ -741,11 +968,13 @@ public A addToInitContainerStatuses(int index,V1ContainerStatus item) { _visitables.get("initContainerStatuses").add(builder); initContainerStatuses.add(index, builder); } - return (A)this; + return (A) this; } public A setToInitContainerStatuses(int index,V1ContainerStatus item) { - if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); + } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= initContainerStatuses.size()) { _visitables.get("initContainerStatuses").add(builder); @@ -754,41 +983,71 @@ public A setToInitContainerStatuses(int index,V1ContainerStatus item) { _visitables.get("initContainerStatuses").add(builder); initContainerStatuses.set(index, builder); } - return (A)this; + return (A) this; } - public A addToInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").add(builder);this.initContainerStatuses.add(builder);} return (A)this; + public A addToInitContainerStatuses(V1ContainerStatus... items) { + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.add(builder); + } + return (A) this; } public A addAllToInitContainerStatuses(Collection items) { - if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").add(builder);this.initContainerStatuses.add(builder);} return (A)this; + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.add(builder); + } + return (A) this; } - public A removeFromInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.initContainerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").remove(builder); this.initContainerStatuses.remove(builder);} return (A)this; + public A removeFromInitContainerStatuses(V1ContainerStatus... items) { + if (this.initContainerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").remove(builder); + this.initContainerStatuses.remove(builder); + } + return (A) this; } public A removeAllFromInitContainerStatuses(Collection items) { - if (this.initContainerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").remove(builder); this.initContainerStatuses.remove(builder);} return (A)this; + if (this.initContainerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").remove(builder); + this.initContainerStatuses.remove(builder); + } + return (A) this; } public A removeMatchingFromInitContainerStatuses(Predicate predicate) { - if (initContainerStatuses == null) return (A) this; - final Iterator each = initContainerStatuses.iterator(); - final List visitables = _visitables.get("initContainerStatuses"); + if (initContainerStatuses == null) { + return (A) this; + } + Iterator each = initContainerStatuses.iterator(); + List visitables = _visitables.get("initContainerStatuses"); while (each.hasNext()) { - V1ContainerStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ContainerStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildInitContainerStatuses() { @@ -840,7 +1099,7 @@ public A withInitContainerStatuses(List initContainerStatuses return (A) this; } - public A withInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... initContainerStatuses) { + public A withInitContainerStatuses(V1ContainerStatus... initContainerStatuses) { if (this.initContainerStatuses != null) { this.initContainerStatuses.clear(); _visitables.remove("initContainerStatuses"); @@ -854,7 +1113,7 @@ public A withInitContainerStatuses(io.kubernetes.client.openapi.models.V1Contain } public boolean hasInitContainerStatuses() { - return this.initContainerStatuses != null && !this.initContainerStatuses.isEmpty(); + return this.initContainerStatuses != null && !(this.initContainerStatuses.isEmpty()); } public InitContainerStatusesNested addNewInitContainerStatus() { @@ -870,28 +1129,39 @@ public InitContainerStatusesNested setNewInitContainerStatusLike(int index,V1 } public InitContainerStatusesNested editInitContainerStatus(int index) { - if (initContainerStatuses.size() <= index) throw new RuntimeException("Can't edit initContainerStatuses. Index exceeds size."); - return setNewInitContainerStatusLike(index, buildInitContainerStatus(index)); + if (index <= initContainerStatuses.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "initContainerStatuses")); + } + return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); } public InitContainerStatusesNested editFirstInitContainerStatus() { - if (initContainerStatuses.size() == 0) throw new RuntimeException("Can't edit first initContainerStatuses. The list is empty."); - return setNewInitContainerStatusLike(0, buildInitContainerStatus(0)); + if (initContainerStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "initContainerStatuses")); + } + return this.setNewInitContainerStatusLike(0, this.buildInitContainerStatus(0)); } public InitContainerStatusesNested editLastInitContainerStatus() { int index = initContainerStatuses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last initContainerStatuses. The list is empty."); - return setNewInitContainerStatusLike(index, buildInitContainerStatus(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "initContainerStatuses")); + } + return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); } public InitContainerStatusesNested editMatchingInitContainerStatus(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.podIPs == null) { + this.podIPs = new ArrayList(); + } V1PodIPBuilder builder = new V1PodIPBuilder(item); if (index < 0 || index >= podIPs.size()) { _visitables.get("podIPs").add(builder); @@ -969,11 +1241,13 @@ public A addToPodIPs(int index,V1PodIP item) { _visitables.get("podIPs").add(builder); podIPs.add(index, builder); } - return (A)this; + return (A) this; } public A setToPodIPs(int index,V1PodIP item) { - if (this.podIPs == null) {this.podIPs = new ArrayList();} + if (this.podIPs == null) { + this.podIPs = new ArrayList(); + } V1PodIPBuilder builder = new V1PodIPBuilder(item); if (index < 0 || index >= podIPs.size()) { _visitables.get("podIPs").add(builder); @@ -982,41 +1256,71 @@ public A setToPodIPs(int index,V1PodIP item) { _visitables.get("podIPs").add(builder); podIPs.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items) { - if (this.podIPs == null) {this.podIPs = new ArrayList();} - for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").add(builder);this.podIPs.add(builder);} return (A)this; + public A addToPodIPs(V1PodIP... items) { + if (this.podIPs == null) { + this.podIPs = new ArrayList(); + } + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").add(builder); + this.podIPs.add(builder); + } + return (A) this; } public A addAllToPodIPs(Collection items) { - if (this.podIPs == null) {this.podIPs = new ArrayList();} - for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").add(builder);this.podIPs.add(builder);} return (A)this; + if (this.podIPs == null) { + this.podIPs = new ArrayList(); + } + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").add(builder); + this.podIPs.add(builder); + } + return (A) this; } - public A removeFromPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items) { - if (this.podIPs == null) return (A)this; - for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").remove(builder); this.podIPs.remove(builder);} return (A)this; + public A removeFromPodIPs(V1PodIP... items) { + if (this.podIPs == null) { + return (A) this; + } + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").remove(builder); + this.podIPs.remove(builder); + } + return (A) this; } public A removeAllFromPodIPs(Collection items) { - if (this.podIPs == null) return (A)this; - for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").remove(builder); this.podIPs.remove(builder);} return (A)this; + if (this.podIPs == null) { + return (A) this; + } + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").remove(builder); + this.podIPs.remove(builder); + } + return (A) this; } public A removeMatchingFromPodIPs(Predicate predicate) { - if (podIPs == null) return (A) this; - final Iterator each = podIPs.iterator(); - final List visitables = _visitables.get("podIPs"); + if (podIPs == null) { + return (A) this; + } + Iterator each = podIPs.iterator(); + List visitables = _visitables.get("podIPs"); while (each.hasNext()) { - V1PodIPBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodIPBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPodIPs() { @@ -1068,7 +1372,7 @@ public A withPodIPs(List podIPs) { return (A) this; } - public A withPodIPs(io.kubernetes.client.openapi.models.V1PodIP... podIPs) { + public A withPodIPs(V1PodIP... podIPs) { if (this.podIPs != null) { this.podIPs.clear(); _visitables.remove("podIPs"); @@ -1082,7 +1386,7 @@ public A withPodIPs(io.kubernetes.client.openapi.models.V1PodIP... podIPs) { } public boolean hasPodIPs() { - return this.podIPs != null && !this.podIPs.isEmpty(); + return this.podIPs != null && !(this.podIPs.isEmpty()); } public PodIPsNested addNewPodIP() { @@ -1098,28 +1402,39 @@ public PodIPsNested setNewPodIPLike(int index,V1PodIP item) { } public PodIPsNested editPodIP(int index) { - if (podIPs.size() <= index) throw new RuntimeException("Can't edit podIPs. Index exceeds size."); - return setNewPodIPLike(index, buildPodIP(index)); + if (index <= podIPs.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podIPs")); + } + return this.setNewPodIPLike(index, this.buildPodIP(index)); } public PodIPsNested editFirstPodIP() { - if (podIPs.size() == 0) throw new RuntimeException("Can't edit first podIPs. The list is empty."); - return setNewPodIPLike(0, buildPodIP(0)); + if (podIPs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podIPs")); + } + return this.setNewPodIPLike(0, this.buildPodIP(0)); } public PodIPsNested editLastPodIP() { int index = podIPs.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last podIPs. The list is empty."); - return setNewPodIPLike(index, buildPodIP(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podIPs")); + } + return this.setNewPodIPLike(index, this.buildPodIP(index)); } public PodIPsNested editMatchingPodIP(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); if (index < 0 || index >= resourceClaimStatuses.size()) { _visitables.get("resourceClaimStatuses").add(builder); @@ -1171,11 +1488,13 @@ public A addToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { _visitables.get("resourceClaimStatuses").add(builder); resourceClaimStatuses.add(index, builder); } - return (A)this; + return (A) this; } public A setToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { - if (this.resourceClaimStatuses == null) {this.resourceClaimStatuses = new ArrayList();} + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); if (index < 0 || index >= resourceClaimStatuses.size()) { _visitables.get("resourceClaimStatuses").add(builder); @@ -1184,41 +1503,71 @@ public A setToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { _visitables.get("resourceClaimStatuses").add(builder); resourceClaimStatuses.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResourceClaimStatuses(io.kubernetes.client.openapi.models.V1PodResourceClaimStatus... items) { - if (this.resourceClaimStatuses == null) {this.resourceClaimStatuses = new ArrayList();} - for (V1PodResourceClaimStatus item : items) {V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item);_visitables.get("resourceClaimStatuses").add(builder);this.resourceClaimStatuses.add(builder);} return (A)this; + public A addToResourceClaimStatuses(V1PodResourceClaimStatus... items) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } + return (A) this; } public A addAllToResourceClaimStatuses(Collection items) { - if (this.resourceClaimStatuses == null) {this.resourceClaimStatuses = new ArrayList();} - for (V1PodResourceClaimStatus item : items) {V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item);_visitables.get("resourceClaimStatuses").add(builder);this.resourceClaimStatuses.add(builder);} return (A)this; + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } + return (A) this; } - public A removeFromResourceClaimStatuses(io.kubernetes.client.openapi.models.V1PodResourceClaimStatus... items) { - if (this.resourceClaimStatuses == null) return (A)this; - for (V1PodResourceClaimStatus item : items) {V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item);_visitables.get("resourceClaimStatuses").remove(builder); this.resourceClaimStatuses.remove(builder);} return (A)this; + public A removeFromResourceClaimStatuses(V1PodResourceClaimStatus... items) { + if (this.resourceClaimStatuses == null) { + return (A) this; + } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); + } + return (A) this; } public A removeAllFromResourceClaimStatuses(Collection items) { - if (this.resourceClaimStatuses == null) return (A)this; - for (V1PodResourceClaimStatus item : items) {V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item);_visitables.get("resourceClaimStatuses").remove(builder); this.resourceClaimStatuses.remove(builder);} return (A)this; + if (this.resourceClaimStatuses == null) { + return (A) this; + } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); + } + return (A) this; } public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { - if (resourceClaimStatuses == null) return (A) this; - final Iterator each = resourceClaimStatuses.iterator(); - final List visitables = _visitables.get("resourceClaimStatuses"); + if (resourceClaimStatuses == null) { + return (A) this; + } + Iterator each = resourceClaimStatuses.iterator(); + List visitables = _visitables.get("resourceClaimStatuses"); while (each.hasNext()) { - V1PodResourceClaimStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodResourceClaimStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResourceClaimStatuses() { @@ -1270,7 +1619,7 @@ public A withResourceClaimStatuses(List resourceClaimS return (A) this; } - public A withResourceClaimStatuses(io.kubernetes.client.openapi.models.V1PodResourceClaimStatus... resourceClaimStatuses) { + public A withResourceClaimStatuses(V1PodResourceClaimStatus... resourceClaimStatuses) { if (this.resourceClaimStatuses != null) { this.resourceClaimStatuses.clear(); _visitables.remove("resourceClaimStatuses"); @@ -1284,7 +1633,7 @@ public A withResourceClaimStatuses(io.kubernetes.client.openapi.models.V1PodReso } public boolean hasResourceClaimStatuses() { - return this.resourceClaimStatuses != null && !this.resourceClaimStatuses.isEmpty(); + return this.resourceClaimStatuses != null && !(this.resourceClaimStatuses.isEmpty()); } public ResourceClaimStatusesNested addNewResourceClaimStatus() { @@ -1300,28 +1649,39 @@ public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1 } public ResourceClaimStatusesNested editResourceClaimStatus(int index) { - if (resourceClaimStatuses.size() <= index) throw new RuntimeException("Can't edit resourceClaimStatuses. Index exceeds size."); - return setNewResourceClaimStatusLike(index, buildResourceClaimStatus(index)); + if (index <= resourceClaimStatuses.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } public ResourceClaimStatusesNested editFirstResourceClaimStatus() { - if (resourceClaimStatuses.size() == 0) throw new RuntimeException("Can't edit first resourceClaimStatuses. The list is empty."); - return setNewResourceClaimStatusLike(0, buildResourceClaimStatus(0)); + 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 ResourceClaimStatusesNested editLastResourceClaimStatus() { int index = resourceClaimStatuses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceClaimStatuses. The list is empty."); - return setNewResourceClaimStatusLike(index, buildResourceClaimStatus(index)); + 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 ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate predicate) { int index = -1; - for (int i=0;i extends V1PodConditionFluent extends V1ContainerStatusFluent extends V1ContainerStatusFluent int index; public N and() { - return (N) V1PodStatusFluent.this.setToEphemeralContainerStatuses(index,builder.build()); + return (N) V1PodStatusFluent.this.setToEphemeralContainerStatuses(index, builder.build()); } public N endEphemeralContainerStatus() { @@ -1442,6 +1917,22 @@ public N endEphemeralContainerStatus() { } + } + public class ExtendedResourceClaimStatusNested extends V1PodExtendedResourceClaimStatusFluent> implements Nested{ + ExtendedResourceClaimStatusNested(V1PodExtendedResourceClaimStatus item) { + this.builder = new V1PodExtendedResourceClaimStatusBuilder(this, item); + } + V1PodExtendedResourceClaimStatusBuilder builder; + + public N and() { + return (N) V1PodStatusFluent.this.withExtendedResourceClaimStatus(builder.build()); + } + + public N endExtendedResourceClaimStatus() { + return and(); + } + + } public class HostIPsNested extends V1HostIPFluent> implements Nested{ HostIPsNested(int index,V1HostIP item) { @@ -1452,7 +1943,7 @@ public class HostIPsNested extends V1HostIPFluent> implement int index; public N and() { - return (N) V1PodStatusFluent.this.setToHostIPs(index,builder.build()); + return (N) V1PodStatusFluent.this.setToHostIPs(index, builder.build()); } public N endHostIP() { @@ -1470,7 +1961,7 @@ public class InitContainerStatusesNested extends V1ContainerStatusFluent extends V1PodIPFluent> implements N int index; public N and() { - return (N) V1PodStatusFluent.this.setToPodIPs(index,builder.build()); + return (N) V1PodStatusFluent.this.setToPodIPs(index, builder.build()); } public N endPodIP() { @@ -1506,7 +1997,7 @@ public class ResourceClaimStatusesNested extends V1PodResourceClaimStatusFlue int index; public N and() { - return (N) V1PodStatusFluent.this.setToResourceClaimStatuses(index,builder.build()); + return (N) V1PodStatusFluent.this.setToResourceClaimStatuses(index, builder.build()); } public N endResourceClaimStatus() { 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 9a5220ce02..51de76bab7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodTemplateBuilder extends V1PodTemplateFluent implements VisitableBuilder{ public V1PodTemplateBuilder() { this(new V1PodTemplate()); 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 7086c50d70..4c939a26c8 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodTemplateFluent> extends BaseFluent{ +public class V1PodTemplateFluent> extends BaseFluent{ public V1PodTemplateFluent() { } @@ -23,13 +26,13 @@ public V1PodTemplateFluent(V1PodTemplate instance) { private V1PodTemplateSpecBuilder template; protected void copyInstance(V1PodTemplate instance) { - instance = (instance != null ? instance : new V1PodTemplate()); + instance = instance != null ? instance : new V1PodTemplate(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withTemplate(instance.getTemplate()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withTemplate(instance.getTemplate()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1PodTemplateSpec buildTemplate() { @@ -127,40 +130,69 @@ public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { } public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodTemplateFluent that = (V1PodTemplateFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; + 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(template, that.template))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, template, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, template); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (template != null) { sb.append("template:"); sb.append(template); } + 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 (!(template == null)) { + sb.append("template:"); + sb.append(template); + } sb.append("}"); return sb.toString(); } 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 305a5fdc36..c0168f0b3c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodTemplateListBuilder extends V1PodTemplateListFluent implements VisitableBuilder{ public V1PodTemplateListBuilder() { this(new V1PodTemplateList()); 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 fae5738065..f01f7620c5 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodTemplateListFluent> extends BaseFluent{ +public class V1PodTemplateListFluent> extends BaseFluent{ public V1PodTemplateListFluent() { } @@ -29,13 +32,13 @@ public V1PodTemplateListFluent(V1PodTemplateList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1PodTemplateList instance) { - instance = (instance != null ? instance : new V1PodTemplateList()); + instance = instance != null ? instance : new V1PodTemplateList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1PodTemplate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1PodTemplate item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1PodTemplate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1PodTemplate item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1PodTemplate... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { - if (this.items == null) return (A)this; - for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1PodTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1PodTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { + public A withItems(V1PodTemplate... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1PodTemplate item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodTemplateListFluent that = (V1PodTemplateListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1PodTemplateFluent> implemen int index; public N and() { - return (N) V1PodTemplateListFluent.this.setToItems(index,builder.build()); + return (N) V1PodTemplateListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 c208cabaad..ff44200644 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodTemplateSpecBuilder extends V1PodTemplateSpecFluent implements VisitableBuilder{ public V1PodTemplateSpecBuilder() { this(new V1PodTemplateSpec()); 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 8a08b05c1c..47170560a3 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodTemplateSpecFluent> extends BaseFluent{ +public class V1PodTemplateSpecFluent> extends BaseFluent{ public V1PodTemplateSpecFluent() { } @@ -21,11 +24,11 @@ public V1PodTemplateSpecFluent(V1PodTemplateSpec instance) { private V1PodSpecBuilder spec; protected void copyInstance(V1PodTemplateSpec instance) { - instance = (instance != null ? instance : new V1PodTemplateSpec()); + instance = instance != null ? instance : new V1PodTemplateSpec(); if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public V1ObjectMeta buildMetadata() { @@ -57,15 +60,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1PodSpec buildSpec() { @@ -97,36 +100,53 @@ public SpecNested withNewSpecLike(V1PodSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1PodSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1PodSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PodTemplateSpecFluent that = (V1PodTemplateSpecFluent) o; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); + return Objects.hash(metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } sb.append("}"); return sb.toString(); } 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 cc3d026fe7..639f6e261b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PolicyRuleBuilder extends V1PolicyRuleFluent implements VisitableBuilder{ public V1PolicyRuleBuilder() { this(new V1PolicyRule()); 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 f281402550..9751179995 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PolicyRuleFluent> extends BaseFluent{ +public class V1PolicyRuleFluent> extends BaseFluent{ public V1PolicyRuleFluent() { } @@ -27,45 +29,70 @@ public V1PolicyRuleFluent(V1PolicyRule instance) { private List verbs; protected void copyInstance(V1PolicyRule instance) { - instance = (instance != null ? instance : new V1PolicyRule()); + instance = instance != null ? instance : new V1PolicyRule(); if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withNonResourceURLs(instance.getNonResourceURLs()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); - } + this.withApiGroups(instance.getApiGroups()); + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withVerbs(instance.getVerbs()); + } } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + return (A) this; } public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.set(index, item); return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } - public A removeFromApiGroups(java.lang.String... items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public List getApiGroups() { @@ -114,7 +141,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -128,38 +155,63 @@ public A withApiGroups(java.lang.String... apiGroups) { } public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } public A addToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } this.nonResourceURLs.add(index, item); - return (A)this; + return (A) this; } public A setToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - this.nonResourceURLs.set(index, item); return (A)this; + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.set(index, item); + return (A) this; } - public A addToNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; + public A addToNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(item); + } + return (A) this; } public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) {this.nonResourceURLs = new ArrayList();} - for (String item : items) {this.nonResourceURLs.add(item);} return (A)this; + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(item); + } + return (A) this; } - public A removeFromNonResourceURLs(java.lang.String... items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; + public A removeFromNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; } public A removeAllFromNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) return (A)this; - for (String item : items) { this.nonResourceURLs.remove(item);} return (A)this; + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; } public List getNonResourceURLs() { @@ -208,7 +260,7 @@ public A withNonResourceURLs(List nonResourceURLs) { return (A) this; } - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { + public A withNonResourceURLs(String... nonResourceURLs) { if (this.nonResourceURLs != null) { this.nonResourceURLs.clear(); _visitables.remove("nonResourceURLs"); @@ -222,38 +274,63 @@ public A withNonResourceURLs(java.lang.String... nonResourceURLs) { } public boolean hasNonResourceURLs() { - return this.nonResourceURLs != null && !this.nonResourceURLs.isEmpty(); + return this.nonResourceURLs != null && !(this.nonResourceURLs.isEmpty()); } public A addToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } this.resourceNames.add(index, item); - return (A)this; + return (A) this; } public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - this.resourceNames.set(index, item); return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(index, item); + return (A) this; } - public A addToResourceNames(java.lang.String... items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } - public A removeFromResourceNames(java.lang.String... items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public List getResourceNames() { @@ -302,7 +379,7 @@ public A withResourceNames(List resourceNames) { return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { + public A withResourceNames(String... resourceNames) { if (this.resourceNames != null) { this.resourceNames.clear(); _visitables.remove("resourceNames"); @@ -316,38 +393,63 @@ public A withResourceNames(java.lang.String... resourceNames) { } public boolean hasResourceNames() { - return this.resourceNames != null && !this.resourceNames.isEmpty(); + return this.resourceNames != null && !(this.resourceNames.isEmpty()); } public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } this.resources.add(index, item); - return (A)this; + return (A) this; } public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public A removeFromResources(java.lang.String... items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public List getResources() { @@ -396,7 +498,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -410,38 +512,63 @@ public A withResources(java.lang.String... resources) { } public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + return this.resources != null && !(this.resources.isEmpty()); } public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} + if (this.verbs == null) { + this.verbs = new ArrayList(); + } this.verbs.add(index, item); - return (A)this; + return (A) this; } public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public List getVerbs() { @@ -490,7 +617,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -504,34 +631,69 @@ public A withVerbs(java.lang.String... verbs) { } public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); + return this.verbs != null && !(this.verbs.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PolicyRuleFluent that = (V1PolicyRuleFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(nonResourceURLs, that.nonResourceURLs)) return false; - if (!java.util.Objects.equals(resourceNames, that.resourceNames)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs, super.hashCode()); + return Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } - if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } - if (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { + sb.append("nonResourceURLs:"); + sb.append(nonResourceURLs); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } sb.append("}"); return sb.toString(); } 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 b980ed4341..8e92f7d872 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PolicyRulesWithSubjectsBuilder extends V1PolicyRulesWithSubjectsFluent implements VisitableBuilder{ public V1PolicyRulesWithSubjectsBuilder() { this(new V1PolicyRulesWithSubjects()); 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 313a6ad025..ac4a25fbc4 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PolicyRulesWithSubjectsFluent> extends BaseFluent{ +public class V1PolicyRulesWithSubjectsFluent> extends BaseFluent{ public V1PolicyRulesWithSubjectsFluent() { } @@ -28,16 +30,18 @@ public V1PolicyRulesWithSubjectsFluent(V1PolicyRulesWithSubjects instance) { private ArrayList subjects; protected void copyInstance(V1PolicyRulesWithSubjects instance) { - instance = (instance != null ? instance : new V1PolicyRulesWithSubjects()); + instance = instance != null ? instance : new V1PolicyRulesWithSubjects(); if (instance != null) { - this.withNonResourceRules(instance.getNonResourceRules()); - this.withResourceRules(instance.getResourceRules()); - this.withSubjects(instance.getSubjects()); - } + this.withNonResourceRules(instance.getNonResourceRules()); + this.withResourceRules(instance.getResourceRules()); + this.withSubjects(instance.getSubjects()); + } } public A addToNonResourceRules(int index,V1NonResourcePolicyRule item) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); @@ -46,11 +50,13 @@ public A addToNonResourceRules(int index,V1NonResourcePolicyRule item) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToNonResourceRules(int index,V1NonResourcePolicyRule item) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); @@ -59,41 +65,71 @@ public A setToNonResourceRules(int index,V1NonResourcePolicyRule item) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourcePolicyRule... items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1NonResourcePolicyRule item : items) {V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; + public A addToNonResourceRules(V1NonResourcePolicyRule... items) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } + for (V1NonResourcePolicyRule item : items) { + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + _visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); + } + return (A) this; } public A addAllToNonResourceRules(Collection items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1NonResourcePolicyRule item : items) {V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } + for (V1NonResourcePolicyRule item : items) { + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + _visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); + } + return (A) this; } - public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourcePolicyRule... items) { - if (this.nonResourceRules == null) return (A)this; - for (V1NonResourcePolicyRule item : items) {V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; + public A removeFromNonResourceRules(V1NonResourcePolicyRule... items) { + if (this.nonResourceRules == null) { + return (A) this; + } + for (V1NonResourcePolicyRule item : items) { + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); + } + return (A) this; } public A removeAllFromNonResourceRules(Collection items) { - if (this.nonResourceRules == null) return (A)this; - for (V1NonResourcePolicyRule item : items) {V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; + if (this.nonResourceRules == null) { + return (A) this; + } + for (V1NonResourcePolicyRule item : items) { + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromNonResourceRules(Predicate predicate) { - if (nonResourceRules == null) return (A) this; - final Iterator each = nonResourceRules.iterator(); - final List visitables = _visitables.get("nonResourceRules"); + if (nonResourceRules == null) { + return (A) this; + } + Iterator each = nonResourceRules.iterator(); + List visitables = _visitables.get("nonResourceRules"); while (each.hasNext()) { - V1NonResourcePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NonResourcePolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildNonResourceRules() { @@ -145,7 +181,7 @@ public A withNonResourceRules(List nonResourceRules) { return (A) this; } - public A withNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourcePolicyRule... nonResourceRules) { + public A withNonResourceRules(V1NonResourcePolicyRule... nonResourceRules) { if (this.nonResourceRules != null) { this.nonResourceRules.clear(); _visitables.remove("nonResourceRules"); @@ -159,7 +195,7 @@ public A withNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceP } public boolean hasNonResourceRules() { - return this.nonResourceRules != null && !this.nonResourceRules.isEmpty(); + return this.nonResourceRules != null && !(this.nonResourceRules.isEmpty()); } public NonResourceRulesNested addNewNonResourceRule() { @@ -175,32 +211,45 @@ public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResour } public NonResourceRulesNested editNonResourceRule(int index) { - if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); - return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); + if (index <= nonResourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } public NonResourceRulesNested editFirstNonResourceRule() { - if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); - return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); + if (nonResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(0, this.buildNonResourceRule(0)); } public NonResourceRulesNested editLastNonResourceRule() { int index = nonResourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); - return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } public NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -209,11 +258,13 @@ public A addToResourceRules(int index,V1ResourcePolicyRule item) { _visitables.get("resourceRules").add(builder); resourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToResourceRules(int index,V1ResourcePolicyRule item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -222,41 +273,71 @@ public A setToResourceRules(int index,V1ResourcePolicyRule item) { _visitables.get("resourceRules").add(builder); resourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResourceRules(io.kubernetes.client.openapi.models.V1ResourcePolicyRule... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1ResourcePolicyRule item : items) {V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public A addToResourceRules(V1ResourcePolicyRule... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1ResourcePolicyRule item : items) { + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1ResourcePolicyRule item : items) {V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1ResourcePolicyRule item : items) { + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1ResourcePolicyRule... items) { - if (this.resourceRules == null) return (A)this; - for (V1ResourcePolicyRule item : items) {V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public A removeFromResourceRules(V1ResourcePolicyRule... items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1ResourcePolicyRule item : items) { + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1ResourcePolicyRule item : items) {V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + if (this.resourceRules == null) { + return (A) this; + } + for (V1ResourcePolicyRule item : items) { + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromResourceRules(Predicate predicate) { - if (resourceRules == null) return (A) this; - final Iterator each = resourceRules.iterator(); - final List visitables = _visitables.get("resourceRules"); + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); while (each.hasNext()) { - V1ResourcePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ResourcePolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResourceRules() { @@ -308,7 +389,7 @@ public A withResourceRules(List resourceRules) { return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourcePolicyRule... resourceRules) { + public A withResourceRules(V1ResourcePolicyRule... resourceRules) { if (this.resourceRules != null) { this.resourceRules.clear(); _visitables.remove("resourceRules"); @@ -322,7 +403,7 @@ public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourcePolicyR } public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } public ResourceRulesNested addNewResourceRule() { @@ -338,32 +419,45 @@ public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourcePolicyR } public ResourceRulesNested editResourceRule(int index) { - if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index <= resourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); - return setNewResourceRuleLike(0, buildResourceRule(0)); + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); } public ResourceRulesNested editLastResourceRule() { int index = resourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.subjects == null) { + this.subjects = new ArrayList(); + } FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); @@ -372,11 +466,13 @@ public A addToSubjects(int index,FlowcontrolV1Subject item) { _visitables.get("subjects").add(builder); subjects.add(index, builder); } - return (A)this; + return (A) this; } public A setToSubjects(int index,FlowcontrolV1Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} + if (this.subjects == null) { + this.subjects = new ArrayList(); + } FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); @@ -385,41 +481,71 @@ public A setToSubjects(int index,FlowcontrolV1Subject item) { _visitables.get("subjects").add(builder); subjects.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSubjects(io.kubernetes.client.openapi.models.FlowcontrolV1Subject... items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (FlowcontrolV1Subject item : items) {FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + public A addToSubjects(FlowcontrolV1Subject... items) { + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + for (FlowcontrolV1Subject item : items) { + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + _visitables.get("subjects").add(builder); + this.subjects.add(builder); + } + return (A) this; } public A addAllToSubjects(Collection items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (FlowcontrolV1Subject item : items) {FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + for (FlowcontrolV1Subject item : items) { + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + _visitables.get("subjects").add(builder); + this.subjects.add(builder); + } + return (A) this; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.FlowcontrolV1Subject... items) { - if (this.subjects == null) return (A)this; - for (FlowcontrolV1Subject item : items) {FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + public A removeFromSubjects(FlowcontrolV1Subject... items) { + if (this.subjects == null) { + return (A) this; + } + for (FlowcontrolV1Subject item : items) { + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; } public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) return (A)this; - for (FlowcontrolV1Subject item : items) {FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + if (this.subjects == null) { + return (A) this; + } + for (FlowcontrolV1Subject item : items) { + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; } public A removeMatchingFromSubjects(Predicate predicate) { - if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); - final List visitables = _visitables.get("subjects"); + if (subjects == null) { + return (A) this; + } + Iterator each = subjects.iterator(); + List visitables = _visitables.get("subjects"); while (each.hasNext()) { - FlowcontrolV1SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + FlowcontrolV1SubjectBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSubjects() { @@ -471,7 +597,7 @@ public A withSubjects(List subjects) { return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.FlowcontrolV1Subject... subjects) { + public A withSubjects(FlowcontrolV1Subject... subjects) { if (this.subjects != null) { this.subjects.clear(); _visitables.remove("subjects"); @@ -485,7 +611,7 @@ public A withSubjects(io.kubernetes.client.openapi.models.FlowcontrolV1Subject.. } public boolean hasSubjects() { - return this.subjects != null && !this.subjects.isEmpty(); + return this.subjects != null && !(this.subjects.isEmpty()); } public SubjectsNested addNewSubject() { @@ -501,51 +627,85 @@ public SubjectsNested setNewSubjectLike(int index,FlowcontrolV1Subject item) } public SubjectsNested editSubject(int index) { - if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); - return setNewSubjectLike(index, buildSubject(index)); + if (index <= subjects.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } public SubjectsNested editFirstSubject() { - if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); - return setNewSubjectLike(0, buildSubject(0)); + if (subjects.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(0, this.buildSubject(0)); } public SubjectsNested editLastSubject() { int index = subjects.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); - return setNewSubjectLike(index, buildSubject(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } public SubjectsNested editMatchingSubject(Predicate predicate) { int index = -1; - for (int i=0;i extends V1NonResourcePolicyRuleFluent extends V1ResourcePolicyRuleFluent extends FlowcontrolV1SubjectFluent implements VisitableBuilder{ public V1PortStatusBuilder() { this(new V1PortStatus()); 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 fb24c8be92..244b404451 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PortStatusFluent> extends BaseFluent{ +public class V1PortStatusFluent> extends BaseFluent{ public V1PortStatusFluent() { } @@ -22,12 +24,12 @@ public V1PortStatusFluent(V1PortStatus instance) { private String protocol; protected void copyInstance(V1PortStatus instance) { - instance = (instance != null ? instance : new V1PortStatus()); + instance = instance != null ? instance : new V1PortStatus(); if (instance != null) { - this.withError(instance.getError()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } + this.withError(instance.getError()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } public String getError() { @@ -70,26 +72,49 @@ public boolean hasProtocol() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PortStatusFluent that = (V1PortStatusFluent) o; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(error, port, protocol, super.hashCode()); + return Objects.hash(error, port, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } 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 77c3db9fd8..a42fbceae4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PortworxVolumeSourceBuilder extends V1PortworxVolumeSourceFluent implements VisitableBuilder{ public V1PortworxVolumeSourceBuilder() { this(new V1PortworxVolumeSource()); 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 70ac442b30..8521d35ca5 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PortworxVolumeSourceFluent> extends BaseFluent{ +public class V1PortworxVolumeSourceFluent> extends BaseFluent{ public V1PortworxVolumeSourceFluent() { } @@ -22,12 +24,12 @@ public V1PortworxVolumeSourceFluent(V1PortworxVolumeSource instance) { private String volumeID; protected void copyInstance(V1PortworxVolumeSource instance) { - instance = (instance != null ? instance : new V1PortworxVolumeSource()); + instance = instance != null ? instance : new V1PortworxVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withVolumeID(instance.getVolumeID()); - } + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withVolumeID(instance.getVolumeID()); + } } public String getFsType() { @@ -70,26 +72,49 @@ public boolean hasVolumeID() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PortworxVolumeSourceFluent that = (V1PortworxVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(volumeID, that.volumeID)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(volumeID, that.volumeID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, volumeID, super.hashCode()); + return Objects.hash(fsType, readOnly, volumeID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(volumeID == null)) { + sb.append("volumeID:"); + sb.append(volumeID); + } sb.append("}"); return sb.toString(); } 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 4dc7ff1453..8bd1b575c0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PreconditionsBuilder extends V1PreconditionsFluent implements VisitableBuilder{ public V1PreconditionsBuilder() { this(new V1Preconditions()); 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 7749540073..e96b9a6b10 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PreconditionsFluent> extends BaseFluent{ +public class V1PreconditionsFluent> extends BaseFluent{ public V1PreconditionsFluent() { } @@ -20,11 +22,11 @@ public V1PreconditionsFluent(V1Preconditions instance) { private String uid; protected void copyInstance(V1Preconditions instance) { - instance = (instance != null ? instance : new V1Preconditions()); + instance = instance != null ? instance : new V1Preconditions(); if (instance != null) { - this.withResourceVersion(instance.getResourceVersion()); - this.withUid(instance.getUid()); - } + this.withResourceVersion(instance.getResourceVersion()); + this.withUid(instance.getUid()); + } } public String getResourceVersion() { @@ -54,24 +56,41 @@ public boolean hasUid() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PreconditionsFluent that = (V1PreconditionsFluent) o; - if (!java.util.Objects.equals(resourceVersion, that.resourceVersion)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(resourceVersion, uid, super.hashCode()); + return Objects.hash(resourceVersion, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } sb.append("}"); return sb.toString(); } 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 1e060fe8cc..732876f402 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PreferredSchedulingTermBuilder extends V1PreferredSchedulingTermFluent implements VisitableBuilder{ public V1PreferredSchedulingTermBuilder() { this(new V1PreferredSchedulingTerm()); 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 c58150f25a..9c94ea4204 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PreferredSchedulingTermFluent> extends BaseFluent{ +public class V1PreferredSchedulingTermFluent> extends BaseFluent{ public V1PreferredSchedulingTermFluent() { } @@ -22,11 +25,11 @@ public V1PreferredSchedulingTermFluent(V1PreferredSchedulingTerm instance) { private Integer weight; protected void copyInstance(V1PreferredSchedulingTerm instance) { - instance = (instance != null ? instance : new V1PreferredSchedulingTerm()); + instance = instance != null ? instance : new V1PreferredSchedulingTerm(); if (instance != null) { - this.withPreference(instance.getPreference()); - this.withWeight(instance.getWeight()); - } + this.withPreference(instance.getPreference()); + this.withWeight(instance.getWeight()); + } } public V1NodeSelectorTerm buildPreference() { @@ -58,15 +61,15 @@ public PreferenceNested withNewPreferenceLike(V1NodeSelectorTerm item) { } public PreferenceNested editPreference() { - return withNewPreferenceLike(java.util.Optional.ofNullable(buildPreference()).orElse(null)); + return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(null)); } public PreferenceNested editOrNewPreference() { - return withNewPreferenceLike(java.util.Optional.ofNullable(buildPreference()).orElse(new V1NodeSelectorTermBuilder().build())); + return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(new V1NodeSelectorTermBuilder().build())); } public PreferenceNested editOrNewPreferenceLike(V1NodeSelectorTerm item) { - return withNewPreferenceLike(java.util.Optional.ofNullable(buildPreference()).orElse(item)); + return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(item)); } public Integer getWeight() { @@ -83,24 +86,41 @@ public boolean hasWeight() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PreferredSchedulingTermFluent that = (V1PreferredSchedulingTermFluent) o; - if (!java.util.Objects.equals(preference, that.preference)) return false; - if (!java.util.Objects.equals(weight, that.weight)) return false; + if (!(Objects.equals(preference, that.preference))) { + return false; + } + if (!(Objects.equals(weight, that.weight))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(preference, weight, super.hashCode()); + return Objects.hash(preference, weight); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (preference != null) { sb.append("preference:"); sb.append(preference + ","); } - if (weight != null) { sb.append("weight:"); sb.append(weight); } + if (!(preference == null)) { + sb.append("preference:"); + sb.append(preference); + sb.append(","); + } + if (!(weight == null)) { + sb.append("weight:"); + sb.append(weight); + } sb.append("}"); return sb.toString(); } 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 f22f6cb9b0..ab5ea81ca8 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityClassBuilder extends V1PriorityClassFluent implements VisitableBuilder{ public V1PriorityClassBuilder() { this(new V1PriorityClass()); 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 2d0d87de06..e19c0143f9 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 @@ -1,10 +1,13 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; @@ -12,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityClassFluent> extends BaseFluent{ +public class V1PriorityClassFluent> extends BaseFluent{ public V1PriorityClassFluent() { } @@ -28,16 +31,16 @@ public V1PriorityClassFluent(V1PriorityClass instance) { private Integer value; protected void copyInstance(V1PriorityClass instance) { - instance = (instance != null ? instance : new V1PriorityClass()); + instance = instance != null ? instance : new V1PriorityClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDescription(instance.getDescription()); - this.withGlobalDefault(instance.getGlobalDefault()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withPreemptionPolicy(instance.getPreemptionPolicy()); - this.withValue(instance.getValue()); - } + this.withApiVersion(instance.getApiVersion()); + this.withDescription(instance.getDescription()); + this.withGlobalDefault(instance.getGlobalDefault()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withValue(instance.getValue()); + } } public String getApiVersion() { @@ -121,15 +124,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public String getPreemptionPolicy() { @@ -159,34 +162,81 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PriorityClassFluent that = (V1PriorityClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(description, that.description)) return false; - if (!java.util.Objects.equals(globalDefault, that.globalDefault)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(preemptionPolicy, that.preemptionPolicy)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(globalDefault, that.globalDefault))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, description, globalDefault, kind, metadata, preemptionPolicy, value, super.hashCode()); + return Objects.hash(apiVersion, description, globalDefault, kind, metadata, preemptionPolicy, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (description != null) { sb.append("description:"); sb.append(description + ","); } - if (globalDefault != null) { sb.append("globalDefault:"); sb.append(globalDefault + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (preemptionPolicy != null) { sb.append("preemptionPolicy:"); sb.append(preemptionPolicy + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(description == null)) { + sb.append("description:"); + sb.append(description); + sb.append(","); + } + if (!(globalDefault == null)) { + sb.append("globalDefault:"); + sb.append(globalDefault); + 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 (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 f346dfb609..813ac54346 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityClassListBuilder extends V1PriorityClassListFluent implements VisitableBuilder{ public V1PriorityClassListBuilder() { this(new V1PriorityClassList()); 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 a49e363713..087843de75 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityClassListFluent> extends BaseFluent{ +public class V1PriorityClassListFluent> extends BaseFluent{ public V1PriorityClassListFluent() { } @@ -29,13 +32,13 @@ public V1PriorityClassListFluent(V1PriorityClassList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1PriorityClassList instance) { - instance = (instance != null ? instance : new V1PriorityClassList()); + instance = instance != null ? instance : new V1PriorityClassList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1PriorityClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1PriorityClass item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1PriorityClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1PriorityClass item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1PriorityClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { - if (this.items == null) return (A)this; - for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1PriorityClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1PriorityClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PriorityClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { + public A withItems(V1PriorityClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1PriorityClass item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PriorityClassListFluent that = (V1PriorityClassListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1PriorityClassFluent> implem int index; public N and() { - return (N) V1PriorityClassListFluent.this.setToItems(index,builder.build()); + return (N) V1PriorityClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 263e15afce..76dcd15786 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationBuilder extends V1PriorityLevelConfigurationFluent implements VisitableBuilder{ public V1PriorityLevelConfigurationBuilder() { this(new V1PriorityLevelConfiguration()); 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 076f5482dc..178d4f3b16 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationConditionBuilder extends V1PriorityLevelConfigurationConditionFluent implements VisitableBuilder{ public V1PriorityLevelConfigurationConditionBuilder() { this(new V1PriorityLevelConfigurationCondition()); 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 29727c2b97..016c4ff3aa 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationConditionFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationConditionFluent> extends BaseFluent{ public V1PriorityLevelConfigurationConditionFluent() { } @@ -24,14 +26,14 @@ public V1PriorityLevelConfigurationConditionFluent(V1PriorityLevelConfigurationC private String type; protected void copyInstance(V1PriorityLevelConfigurationCondition instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfigurationCondition()); + instance = instance != null ? instance : new V1PriorityLevelConfigurationCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PriorityLevelConfigurationConditionFluent that = (V1PriorityLevelConfigurationConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 4b478d81bb..8fed4a55de 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationFluent> extends BaseFluent{ public V1PriorityLevelConfigurationFluent() { } @@ -24,14 +27,14 @@ public V1PriorityLevelConfigurationFluent(V1PriorityLevelConfiguration instance) private V1PriorityLevelConfigurationStatusBuilder status; protected void copyInstance(V1PriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfiguration()); + instance = instance != null ? instance : new V1PriorityLevelConfiguration(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1PriorityLevelConfigurationSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1PriorityLevelConfigurationSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1PriorityLevelConfigurationSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PriorityLevelConfigurationSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1PriorityLevelConfigurationSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1PriorityLevelConfigurationStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1PriorityLevelConfigurationStatus item } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1PriorityLevelConfigurationStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PriorityLevelConfigurationStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1PriorityLevelConfigurationStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PriorityLevelConfigurationFluent that = (V1PriorityLevelConfigurationFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 62d1f1ce04..e1ae282a36 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationListBuilder extends V1PriorityLevelConfigurationListFluent implements VisitableBuilder{ public V1PriorityLevelConfigurationListBuilder() { this(new V1PriorityLevelConfigurationList()); 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 af3bfc5bd2..b391d8d71d 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationListFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationListFluent> extends BaseFluent{ public V1PriorityLevelConfigurationListFluent() { } @@ -29,13 +32,13 @@ public V1PriorityLevelConfigurationListFluent(V1PriorityLevelConfigurationList i private V1ListMetaBuilder metadata; protected void copyInstance(V1PriorityLevelConfigurationList instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfigurationList()); + instance = instance != null ? instance : new V1PriorityLevelConfigurationList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1PriorityLevelConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1PriorityLevelConfiguration item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1PriorityLevelConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1PriorityLevelConfiguration item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1PriorityLevelConfiguration... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PriorityLevelConfiguration item : items) {V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1PriorityLevelConfiguration... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PriorityLevelConfiguration item : items) { + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PriorityLevelConfiguration item : items) {V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PriorityLevelConfiguration item : items) { + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PriorityLevelConfiguration... items) { - if (this.items == null) return (A)this; - for (V1PriorityLevelConfiguration item : items) {V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1PriorityLevelConfiguration... items) { + if (this.items == null) { + return (A) this; + } + for (V1PriorityLevelConfiguration item : items) { + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PriorityLevelConfiguration item : items) {V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1PriorityLevelConfiguration item : items) { + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1PriorityLevelConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PriorityLevelConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PriorityLevelConfiguration... items) { + public A withItems(V1PriorityLevelConfiguration... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1PriorityLevelConfigurat } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1PriorityLevelConfiguration item } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PriorityLevelConfigurationListFluent that = (V1PriorityLevelConfigurationListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1PriorityLevelConfigurationFluent implements VisitableBuilder{ public V1PriorityLevelConfigurationReferenceBuilder() { this(new V1PriorityLevelConfigurationReference()); 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 4425474dc4..ea1d9db87e 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ public V1PriorityLevelConfigurationReferenceFluent() { } @@ -19,10 +21,10 @@ public V1PriorityLevelConfigurationReferenceFluent(V1PriorityLevelConfigurationR private String name; protected void copyInstance(V1PriorityLevelConfigurationReference instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfigurationReference()); + instance = instance != null ? instance : new V1PriorityLevelConfigurationReference(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } public String getName() { @@ -39,22 +41,33 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PriorityLevelConfigurationReferenceFluent that = (V1PriorityLevelConfigurationReferenceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 1e7b626fb9..cfa3ba4bd3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationSpecBuilder extends V1PriorityLevelConfigurationSpecFluent implements VisitableBuilder{ public V1PriorityLevelConfigurationSpecBuilder() { this(new V1PriorityLevelConfigurationSpec()); 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 a1cf2e5210..c7cc958e3d 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationSpecFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationSpecFluent> extends BaseFluent{ public V1PriorityLevelConfigurationSpecFluent() { } @@ -22,12 +25,12 @@ public V1PriorityLevelConfigurationSpecFluent(V1PriorityLevelConfigurationSpec i private String type; protected void copyInstance(V1PriorityLevelConfigurationSpec instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfigurationSpec()); + instance = instance != null ? instance : new V1PriorityLevelConfigurationSpec(); if (instance != null) { - this.withExempt(instance.getExempt()); - this.withLimited(instance.getLimited()); - this.withType(instance.getType()); - } + this.withExempt(instance.getExempt()); + this.withLimited(instance.getLimited()); + this.withType(instance.getType()); + } } public V1ExemptPriorityLevelConfiguration buildExempt() { @@ -59,15 +62,15 @@ public ExemptNested withNewExemptLike(V1ExemptPriorityLevelConfiguration item } public ExemptNested editExempt() { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(null)); + return this.withNewExemptLike(Optional.ofNullable(this.buildExempt()).orElse(null)); } public ExemptNested editOrNewExempt() { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(new V1ExemptPriorityLevelConfigurationBuilder().build())); + return this.withNewExemptLike(Optional.ofNullable(this.buildExempt()).orElse(new V1ExemptPriorityLevelConfigurationBuilder().build())); } public ExemptNested editOrNewExemptLike(V1ExemptPriorityLevelConfiguration item) { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(item)); + return this.withNewExemptLike(Optional.ofNullable(this.buildExempt()).orElse(item)); } public V1LimitedPriorityLevelConfiguration buildLimited() { @@ -99,15 +102,15 @@ public LimitedNested withNewLimitedLike(V1LimitedPriorityLevelConfiguration i } public LimitedNested editLimited() { - return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(null)); + return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(null)); } public LimitedNested editOrNewLimited() { - return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(new V1LimitedPriorityLevelConfigurationBuilder().build())); + return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(new V1LimitedPriorityLevelConfigurationBuilder().build())); } public LimitedNested editOrNewLimitedLike(V1LimitedPriorityLevelConfiguration item) { - return withNewLimitedLike(java.util.Optional.ofNullable(buildLimited()).orElse(item)); + return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(item)); } public String getType() { @@ -124,26 +127,49 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1PriorityLevelConfigurationSpecFluent that = (V1PriorityLevelConfigurationSpecFluent) o; - if (!java.util.Objects.equals(exempt, that.exempt)) return false; - if (!java.util.Objects.equals(limited, that.limited)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(exempt, that.exempt))) { + return false; + } + if (!(Objects.equals(limited, that.limited))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(exempt, limited, type, super.hashCode()); + return Objects.hash(exempt, limited, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (exempt != null) { sb.append("exempt:"); sb.append(exempt + ","); } - if (limited != null) { sb.append("limited:"); sb.append(limited + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(exempt == null)) { + sb.append("exempt:"); + sb.append(exempt); + sb.append(","); + } + if (!(limited == null)) { + sb.append("limited:"); + sb.append(limited); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 33ddf57bb2..8b07883fd4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationStatusBuilder extends V1PriorityLevelConfigurationStatusFluent implements VisitableBuilder{ public V1PriorityLevelConfigurationStatusBuilder() { this(new V1PriorityLevelConfigurationStatus()); 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 c11264b48f..d91174ed85 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationStatusFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationStatusFluent> extends BaseFluent{ public V1PriorityLevelConfigurationStatusFluent() { } @@ -26,14 +28,16 @@ public V1PriorityLevelConfigurationStatusFluent(V1PriorityLevelConfigurationStat private ArrayList conditions; protected void copyInstance(V1PriorityLevelConfigurationStatus instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfigurationStatus()); + instance = instance != null ? instance : new V1PriorityLevelConfigurationStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - } + this.withConditions(instance.getConditions()); + } } public A addToConditions(int index,V1PriorityLevelConfigurationCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -42,11 +46,13 @@ public A addToConditions(int index,V1PriorityLevelConfigurationCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1PriorityLevelConfigurationCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -55,41 +61,71 @@ public A setToConditions(int index,V1PriorityLevelConfigurationCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1PriorityLevelConfigurationCondition item : items) {V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1PriorityLevelConfigurationCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1PriorityLevelConfigurationCondition item : items) { + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1PriorityLevelConfigurationCondition item : items) {V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1PriorityLevelConfigurationCondition item : items) { + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationCondition... items) { - if (this.conditions == null) return (A)this; - for (V1PriorityLevelConfigurationCondition item : items) {V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1PriorityLevelConfigurationCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1PriorityLevelConfigurationCondition item : items) { + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1PriorityLevelConfigurationCondition item : items) {V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1PriorityLevelConfigurationCondition item : items) { + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1PriorityLevelConfigurationConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PriorityLevelConfigurationConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -141,7 +177,7 @@ public A withConditions(List conditions) return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationCondition... conditions) { + public A withConditions(V1PriorityLevelConfigurationCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -155,7 +191,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1PriorityLevelConfi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -171,47 +207,69 @@ public ConditionsNested setNewConditionLike(int index,V1PriorityLevelConfigur } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1PriorityLevelConfigurationConditionFl int index; public N and() { - return (N) V1PriorityLevelConfigurationStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1PriorityLevelConfigurationStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 cfdb3f23d3..a3a351c82e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ProbeBuilder extends V1ProbeFluent implements VisitableBuilder{ public V1ProbeBuilder() { this(new V1Probe()); 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 76048edeec..2749c81cf4 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 @@ -1,18 +1,21 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; import java.lang.Integer; import java.lang.Long; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ProbeFluent> extends BaseFluent{ +public class V1ProbeFluent> extends BaseFluent{ public V1ProbeFluent() { } @@ -31,19 +34,19 @@ public V1ProbeFluent(V1Probe instance) { private Integer timeoutSeconds; protected void copyInstance(V1Probe instance) { - instance = (instance != null ? instance : new V1Probe()); + instance = instance != null ? instance : new V1Probe(); if (instance != null) { - this.withExec(instance.getExec()); - this.withFailureThreshold(instance.getFailureThreshold()); - this.withGrpc(instance.getGrpc()); - this.withHttpGet(instance.getHttpGet()); - this.withInitialDelaySeconds(instance.getInitialDelaySeconds()); - this.withPeriodSeconds(instance.getPeriodSeconds()); - this.withSuccessThreshold(instance.getSuccessThreshold()); - this.withTcpSocket(instance.getTcpSocket()); - this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + this.withExec(instance.getExec()); + this.withFailureThreshold(instance.getFailureThreshold()); + this.withGrpc(instance.getGrpc()); + this.withHttpGet(instance.getHttpGet()); + this.withInitialDelaySeconds(instance.getInitialDelaySeconds()); + this.withPeriodSeconds(instance.getPeriodSeconds()); + this.withSuccessThreshold(instance.getSuccessThreshold()); + this.withTcpSocket(instance.getTcpSocket()); + this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); + this.withTimeoutSeconds(instance.getTimeoutSeconds()); + } } public V1ExecAction buildExec() { @@ -75,15 +78,15 @@ public ExecNested withNewExecLike(V1ExecAction item) { } public ExecNested editExec() { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(null)); + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(null)); } public ExecNested editOrNewExec() { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(new V1ExecActionBuilder().build())); + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(new V1ExecActionBuilder().build())); } public ExecNested editOrNewExecLike(V1ExecAction item) { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(item)); + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(item)); } public Integer getFailureThreshold() { @@ -128,15 +131,15 @@ public GrpcNested withNewGrpcLike(V1GRPCAction item) { } public GrpcNested editGrpc() { - return withNewGrpcLike(java.util.Optional.ofNullable(buildGrpc()).orElse(null)); + return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(null)); } public GrpcNested editOrNewGrpc() { - return withNewGrpcLike(java.util.Optional.ofNullable(buildGrpc()).orElse(new V1GRPCActionBuilder().build())); + return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(new V1GRPCActionBuilder().build())); } public GrpcNested editOrNewGrpcLike(V1GRPCAction item) { - return withNewGrpcLike(java.util.Optional.ofNullable(buildGrpc()).orElse(item)); + return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(item)); } public V1HTTPGetAction buildHttpGet() { @@ -168,15 +171,15 @@ public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { } public HttpGetNested editHttpGet() { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(null)); + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(null)); } public HttpGetNested editOrNewHttpGet() { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); } public HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(item)); + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(item)); } public Integer getInitialDelaySeconds() { @@ -247,15 +250,15 @@ public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { } public TcpSocketNested editTcpSocket() { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(null)); + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(null)); } public TcpSocketNested editOrNewTcpSocket() { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); } public TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(item)); + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(item)); } public Long getTerminationGracePeriodSeconds() { @@ -285,40 +288,105 @@ public boolean hasTimeoutSeconds() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ProbeFluent that = (V1ProbeFluent) o; - if (!java.util.Objects.equals(exec, that.exec)) return false; - if (!java.util.Objects.equals(failureThreshold, that.failureThreshold)) return false; - if (!java.util.Objects.equals(grpc, that.grpc)) return false; - if (!java.util.Objects.equals(httpGet, that.httpGet)) return false; - if (!java.util.Objects.equals(initialDelaySeconds, that.initialDelaySeconds)) return false; - if (!java.util.Objects.equals(periodSeconds, that.periodSeconds)) return false; - if (!java.util.Objects.equals(successThreshold, that.successThreshold)) return false; - if (!java.util.Objects.equals(tcpSocket, that.tcpSocket)) return false; - if (!java.util.Objects.equals(terminationGracePeriodSeconds, that.terminationGracePeriodSeconds)) return false; - if (!java.util.Objects.equals(timeoutSeconds, that.timeoutSeconds)) return false; + if (!(Objects.equals(exec, that.exec))) { + return false; + } + if (!(Objects.equals(failureThreshold, that.failureThreshold))) { + return false; + } + if (!(Objects.equals(grpc, that.grpc))) { + return false; + } + if (!(Objects.equals(httpGet, that.httpGet))) { + return false; + } + if (!(Objects.equals(initialDelaySeconds, that.initialDelaySeconds))) { + return false; + } + if (!(Objects.equals(periodSeconds, that.periodSeconds))) { + return false; + } + if (!(Objects.equals(successThreshold, that.successThreshold))) { + return false; + } + if (!(Objects.equals(tcpSocket, that.tcpSocket))) { + return false; + } + if (!(Objects.equals(terminationGracePeriodSeconds, that.terminationGracePeriodSeconds))) { + return false; + } + if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(exec, failureThreshold, grpc, httpGet, initialDelaySeconds, periodSeconds, successThreshold, tcpSocket, terminationGracePeriodSeconds, timeoutSeconds, super.hashCode()); + return Objects.hash(exec, failureThreshold, grpc, httpGet, initialDelaySeconds, periodSeconds, successThreshold, tcpSocket, terminationGracePeriodSeconds, timeoutSeconds); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (exec != null) { sb.append("exec:"); sb.append(exec + ","); } - if (failureThreshold != null) { sb.append("failureThreshold:"); sb.append(failureThreshold + ","); } - if (grpc != null) { sb.append("grpc:"); sb.append(grpc + ","); } - if (httpGet != null) { sb.append("httpGet:"); sb.append(httpGet + ","); } - if (initialDelaySeconds != null) { sb.append("initialDelaySeconds:"); sb.append(initialDelaySeconds + ","); } - if (periodSeconds != null) { sb.append("periodSeconds:"); sb.append(periodSeconds + ","); } - if (successThreshold != null) { sb.append("successThreshold:"); sb.append(successThreshold + ","); } - if (tcpSocket != null) { sb.append("tcpSocket:"); sb.append(tcpSocket + ","); } - if (terminationGracePeriodSeconds != null) { sb.append("terminationGracePeriodSeconds:"); sb.append(terminationGracePeriodSeconds + ","); } - if (timeoutSeconds != null) { sb.append("timeoutSeconds:"); sb.append(timeoutSeconds); } + if (!(exec == null)) { + sb.append("exec:"); + sb.append(exec); + sb.append(","); + } + if (!(failureThreshold == null)) { + sb.append("failureThreshold:"); + sb.append(failureThreshold); + sb.append(","); + } + if (!(grpc == null)) { + sb.append("grpc:"); + sb.append(grpc); + sb.append(","); + } + if (!(httpGet == null)) { + sb.append("httpGet:"); + sb.append(httpGet); + sb.append(","); + } + if (!(initialDelaySeconds == null)) { + sb.append("initialDelaySeconds:"); + sb.append(initialDelaySeconds); + sb.append(","); + } + if (!(periodSeconds == null)) { + sb.append("periodSeconds:"); + sb.append(periodSeconds); + sb.append(","); + } + if (!(successThreshold == null)) { + sb.append("successThreshold:"); + sb.append(successThreshold); + sb.append(","); + } + if (!(tcpSocket == null)) { + sb.append("tcpSocket:"); + sb.append(tcpSocket); + sb.append(","); + } + if (!(terminationGracePeriodSeconds == null)) { + sb.append("terminationGracePeriodSeconds:"); + sb.append(terminationGracePeriodSeconds); + sb.append(","); + } + if (!(timeoutSeconds == null)) { + sb.append("timeoutSeconds:"); + sb.append(timeoutSeconds); + } sb.append("}"); return sb.toString(); } 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 57d5a3cc42..16409f4d17 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ProjectedVolumeSourceBuilder extends V1ProjectedVolumeSourceFluent implements VisitableBuilder{ public V1ProjectedVolumeSourceBuilder() { this(new V1ProjectedVolumeSource()); 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 6ee65354f5..d278cf592b 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ProjectedVolumeSourceFluent> extends BaseFluent{ +public class V1ProjectedVolumeSourceFluent> extends BaseFluent{ public V1ProjectedVolumeSourceFluent() { } @@ -28,11 +30,11 @@ public V1ProjectedVolumeSourceFluent(V1ProjectedVolumeSource instance) { private ArrayList sources; protected void copyInstance(V1ProjectedVolumeSource instance) { - instance = (instance != null ? instance : new V1ProjectedVolumeSource()); + instance = instance != null ? instance : new V1ProjectedVolumeSource(); if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withSources(instance.getSources()); - } + this.withDefaultMode(instance.getDefaultMode()); + this.withSources(instance.getSources()); + } } public Integer getDefaultMode() { @@ -49,7 +51,9 @@ public boolean hasDefaultMode() { } public A addToSources(int index,V1VolumeProjection item) { - if (this.sources == null) {this.sources = new ArrayList();} + if (this.sources == null) { + this.sources = new ArrayList(); + } V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); if (index < 0 || index >= sources.size()) { _visitables.get("sources").add(builder); @@ -58,11 +62,13 @@ public A addToSources(int index,V1VolumeProjection item) { _visitables.get("sources").add(builder); sources.add(index, builder); } - return (A)this; + return (A) this; } public A setToSources(int index,V1VolumeProjection item) { - if (this.sources == null) {this.sources = new ArrayList();} + if (this.sources == null) { + this.sources = new ArrayList(); + } V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); if (index < 0 || index >= sources.size()) { _visitables.get("sources").add(builder); @@ -71,41 +77,71 @@ public A setToSources(int index,V1VolumeProjection item) { _visitables.get("sources").add(builder); sources.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items) { - if (this.sources == null) {this.sources = new ArrayList();} - for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").add(builder);this.sources.add(builder);} return (A)this; + public A addToSources(V1VolumeProjection... items) { + if (this.sources == null) { + this.sources = new ArrayList(); + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").add(builder); + this.sources.add(builder); + } + return (A) this; } public A addAllToSources(Collection items) { - if (this.sources == null) {this.sources = new ArrayList();} - for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").add(builder);this.sources.add(builder);} return (A)this; + if (this.sources == null) { + this.sources = new ArrayList(); + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").add(builder); + this.sources.add(builder); + } + return (A) this; } - public A removeFromSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items) { - if (this.sources == null) return (A)this; - for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").remove(builder); this.sources.remove(builder);} return (A)this; + public A removeFromSources(V1VolumeProjection... items) { + if (this.sources == null) { + return (A) this; + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").remove(builder); + this.sources.remove(builder); + } + return (A) this; } public A removeAllFromSources(Collection items) { - if (this.sources == null) return (A)this; - for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").remove(builder); this.sources.remove(builder);} return (A)this; + if (this.sources == null) { + return (A) this; + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").remove(builder); + this.sources.remove(builder); + } + return (A) this; } public A removeMatchingFromSources(Predicate predicate) { - if (sources == null) return (A) this; - final Iterator each = sources.iterator(); - final List visitables = _visitables.get("sources"); + if (sources == null) { + return (A) this; + } + Iterator each = sources.iterator(); + List visitables = _visitables.get("sources"); while (each.hasNext()) { - V1VolumeProjectionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VolumeProjectionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSources() { @@ -157,7 +193,7 @@ public A withSources(List sources) { return (A) this; } - public A withSources(io.kubernetes.client.openapi.models.V1VolumeProjection... sources) { + public A withSources(V1VolumeProjection... sources) { if (this.sources != null) { this.sources.clear(); _visitables.remove("sources"); @@ -171,7 +207,7 @@ public A withSources(io.kubernetes.client.openapi.models.V1VolumeProjection... s } public boolean hasSources() { - return this.sources != null && !this.sources.isEmpty(); + return this.sources != null && !(this.sources.isEmpty()); } public SourcesNested addNewSource() { @@ -187,49 +223,77 @@ public SourcesNested setNewSourceLike(int index,V1VolumeProjection item) { } public SourcesNested editSource(int index) { - if (sources.size() <= index) throw new RuntimeException("Can't edit sources. Index exceeds size."); - return setNewSourceLike(index, buildSource(index)); + if (index <= sources.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sources")); + } + return this.setNewSourceLike(index, this.buildSource(index)); } public SourcesNested editFirstSource() { - if (sources.size() == 0) throw new RuntimeException("Can't edit first sources. The list is empty."); - return setNewSourceLike(0, buildSource(0)); + if (sources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sources")); + } + return this.setNewSourceLike(0, this.buildSource(0)); } public SourcesNested editLastSource() { int index = sources.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last sources. The list is empty."); - return setNewSourceLike(index, buildSource(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sources")); + } + return this.setNewSourceLike(index, this.buildSource(index)); } public SourcesNested editMatchingSource(Predicate predicate) { int index = -1; - for (int i=0;i extends V1VolumeProjectionFluent> int index; public N and() { - return (N) V1ProjectedVolumeSourceFluent.this.setToSources(index,builder.build()); + return (N) V1ProjectedVolumeSourceFluent.this.setToSources(index, builder.build()); } public N endSource() { 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 13b6520682..d3e3f8a4df 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1QueuingConfigurationBuilder extends V1QueuingConfigurationFluent implements VisitableBuilder{ public V1QueuingConfigurationBuilder() { this(new V1QueuingConfiguration()); 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 a4113e0279..fa68c61ad1 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1QueuingConfigurationFluent> extends BaseFluent{ +public class V1QueuingConfigurationFluent> extends BaseFluent{ public V1QueuingConfigurationFluent() { } @@ -22,12 +24,12 @@ public V1QueuingConfigurationFluent(V1QueuingConfiguration instance) { private Integer queues; protected void copyInstance(V1QueuingConfiguration instance) { - instance = (instance != null ? instance : new V1QueuingConfiguration()); + instance = instance != null ? instance : new V1QueuingConfiguration(); if (instance != null) { - this.withHandSize(instance.getHandSize()); - this.withQueueLengthLimit(instance.getQueueLengthLimit()); - this.withQueues(instance.getQueues()); - } + this.withHandSize(instance.getHandSize()); + this.withQueueLengthLimit(instance.getQueueLengthLimit()); + this.withQueues(instance.getQueues()); + } } public Integer getHandSize() { @@ -70,26 +72,49 @@ public boolean hasQueues() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1QueuingConfigurationFluent that = (V1QueuingConfigurationFluent) o; - if (!java.util.Objects.equals(handSize, that.handSize)) return false; - if (!java.util.Objects.equals(queueLengthLimit, that.queueLengthLimit)) return false; - if (!java.util.Objects.equals(queues, that.queues)) return false; + if (!(Objects.equals(handSize, that.handSize))) { + return false; + } + if (!(Objects.equals(queueLengthLimit, that.queueLengthLimit))) { + return false; + } + if (!(Objects.equals(queues, that.queues))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(handSize, queueLengthLimit, queues, super.hashCode()); + return Objects.hash(handSize, queueLengthLimit, queues); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (handSize != null) { sb.append("handSize:"); sb.append(handSize + ","); } - if (queueLengthLimit != null) { sb.append("queueLengthLimit:"); sb.append(queueLengthLimit + ","); } - if (queues != null) { sb.append("queues:"); sb.append(queues); } + if (!(handSize == null)) { + sb.append("handSize:"); + sb.append(handSize); + sb.append(","); + } + if (!(queueLengthLimit == null)) { + sb.append("queueLengthLimit:"); + sb.append(queueLengthLimit); + sb.append(","); + } + if (!(queues == null)) { + sb.append("queues:"); + sb.append(queues); + } sb.append("}"); return sb.toString(); } 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 cde2a5765b..c0bd8b0ab5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1QuobyteVolumeSourceBuilder extends V1QuobyteVolumeSourceFluent implements VisitableBuilder{ public V1QuobyteVolumeSourceBuilder() { this(new V1QuobyteVolumeSource()); 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 ffe6a32619..960cd77db1 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1QuobyteVolumeSourceFluent> extends BaseFluent{ +public class V1QuobyteVolumeSourceFluent> extends BaseFluent{ public V1QuobyteVolumeSourceFluent() { } @@ -25,15 +27,15 @@ public V1QuobyteVolumeSourceFluent(V1QuobyteVolumeSource instance) { private String volume; protected void copyInstance(V1QuobyteVolumeSource instance) { - instance = (instance != null ? instance : new V1QuobyteVolumeSource()); + instance = instance != null ? instance : new V1QuobyteVolumeSource(); if (instance != null) { - this.withGroup(instance.getGroup()); - this.withReadOnly(instance.getReadOnly()); - this.withRegistry(instance.getRegistry()); - this.withTenant(instance.getTenant()); - this.withUser(instance.getUser()); - this.withVolume(instance.getVolume()); - } + this.withGroup(instance.getGroup()); + this.withReadOnly(instance.getReadOnly()); + this.withRegistry(instance.getRegistry()); + this.withTenant(instance.getTenant()); + this.withUser(instance.getUser()); + this.withVolume(instance.getVolume()); + } } public String getGroup() { @@ -115,32 +117,73 @@ public boolean hasVolume() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1QuobyteVolumeSourceFluent that = (V1QuobyteVolumeSourceFluent) o; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(registry, that.registry)) return false; - if (!java.util.Objects.equals(tenant, that.tenant)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - if (!java.util.Objects.equals(volume, that.volume)) return false; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(registry, that.registry))) { + return false; + } + if (!(Objects.equals(tenant, that.tenant))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + if (!(Objects.equals(volume, that.volume))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(group, readOnly, registry, tenant, user, volume, super.hashCode()); + return Objects.hash(group, readOnly, registry, tenant, user, volume); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (registry != null) { sb.append("registry:"); sb.append(registry + ","); } - if (tenant != null) { sb.append("tenant:"); sb.append(tenant + ","); } - if (user != null) { sb.append("user:"); sb.append(user + ","); } - if (volume != null) { sb.append("volume:"); sb.append(volume); } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(registry == null)) { + sb.append("registry:"); + sb.append(registry); + sb.append(","); + } + if (!(tenant == null)) { + sb.append("tenant:"); + sb.append(tenant); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + sb.append(","); + } + if (!(volume == null)) { + sb.append("volume:"); + sb.append(volume); + } sb.append("}"); return sb.toString(); } 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 efb72113fa..3e18ffd9d6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RBDPersistentVolumeSourceBuilder extends V1RBDPersistentVolumeSourceFluent implements VisitableBuilder{ public V1RBDPersistentVolumeSourceBuilder() { this(new V1RBDPersistentVolumeSource()); 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 2c4f855fd1..c137b90948 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -15,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1RBDPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1RBDPersistentVolumeSourceFluent> extends BaseFluent{ public V1RBDPersistentVolumeSourceFluent() { } @@ -32,17 +35,17 @@ public V1RBDPersistentVolumeSourceFluent(V1RBDPersistentVolumeSource instance) { private String user; protected void copyInstance(V1RBDPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1RBDPersistentVolumeSource()); + instance = instance != null ? instance : new V1RBDPersistentVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withImage(instance.getImage()); - this.withKeyring(instance.getKeyring()); - this.withMonitors(instance.getMonitors()); - this.withPool(instance.getPool()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + this.withFsType(instance.getFsType()); + this.withImage(instance.getImage()); + this.withKeyring(instance.getKeyring()); + this.withMonitors(instance.getMonitors()); + this.withPool(instance.getPool()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); + } } public String getFsType() { @@ -85,34 +88,59 @@ public boolean hasKeyring() { } public A addToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} + if (this.monitors == null) { + this.monitors = new ArrayList(); + } this.monitors.add(index, item); - return (A)this; + return (A) this; } public A setToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.set(index, item); return (A)this; + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public A addToMonitors(String... items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } public A addAllToMonitors(Collection items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A removeFromMonitors(java.lang.String... items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; } public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; } public List getMonitors() { @@ -161,7 +189,7 @@ public A withMonitors(List monitors) { return (A) this; } - public A withMonitors(java.lang.String... monitors) { + public A withMonitors(String... monitors) { if (this.monitors != null) { this.monitors.clear(); _visitables.remove("monitors"); @@ -175,7 +203,7 @@ public A withMonitors(java.lang.String... monitors) { } public boolean hasMonitors() { - return this.monitors != null && !this.monitors.isEmpty(); + return this.monitors != null && !(this.monitors.isEmpty()); } public String getPool() { @@ -233,15 +261,15 @@ public SecretRefNested withNewSecretRefLike(V1SecretReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getUser() { @@ -258,36 +286,89 @@ public boolean hasUser() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RBDPersistentVolumeSourceFluent that = (V1RBDPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(image, that.image)) return false; - if (!java.util.Objects.equals(keyring, that.keyring)) return false; - if (!java.util.Objects.equals(monitors, that.monitors)) return false; - if (!java.util.Objects.equals(pool, that.pool)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(keyring, that.keyring))) { + return false; + } + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); + return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (image != null) { sb.append("image:"); sb.append(image + ","); } - if (keyring != null) { sb.append("keyring:"); sb.append(keyring + ","); } - if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } - if (pool != null) { sb.append("pool:"); sb.append(pool + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(keyring == null)) { + sb.append("keyring:"); + sb.append(keyring); + sb.append(","); + } + if (!(monitors == null) && !(monitors.isEmpty())) { + sb.append("monitors:"); + sb.append(monitors); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } sb.append("}"); return sb.toString(); } 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 ee1ee86af3..d89799d6d5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RBDVolumeSourceBuilder extends V1RBDVolumeSourceFluent implements VisitableBuilder{ public V1RBDVolumeSourceBuilder() { this(new V1RBDVolumeSource()); 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 29183804af..4afa9b226a 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -15,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1RBDVolumeSourceFluent> extends BaseFluent{ +public class V1RBDVolumeSourceFluent> extends BaseFluent{ public V1RBDVolumeSourceFluent() { } @@ -32,17 +35,17 @@ public V1RBDVolumeSourceFluent(V1RBDVolumeSource instance) { private String user; protected void copyInstance(V1RBDVolumeSource instance) { - instance = (instance != null ? instance : new V1RBDVolumeSource()); + instance = instance != null ? instance : new V1RBDVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withImage(instance.getImage()); - this.withKeyring(instance.getKeyring()); - this.withMonitors(instance.getMonitors()); - this.withPool(instance.getPool()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + this.withFsType(instance.getFsType()); + this.withImage(instance.getImage()); + this.withKeyring(instance.getKeyring()); + this.withMonitors(instance.getMonitors()); + this.withPool(instance.getPool()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); + } } public String getFsType() { @@ -85,34 +88,59 @@ public boolean hasKeyring() { } public A addToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} + if (this.monitors == null) { + this.monitors = new ArrayList(); + } this.monitors.add(index, item); - return (A)this; + return (A) this; } public A setToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.set(index, item); return (A)this; + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public A addToMonitors(String... items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } public A addAllToMonitors(Collection items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A removeFromMonitors(java.lang.String... items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; } public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; } public List getMonitors() { @@ -161,7 +189,7 @@ public A withMonitors(List monitors) { return (A) this; } - public A withMonitors(java.lang.String... monitors) { + public A withMonitors(String... monitors) { if (this.monitors != null) { this.monitors.clear(); _visitables.remove("monitors"); @@ -175,7 +203,7 @@ public A withMonitors(java.lang.String... monitors) { } public boolean hasMonitors() { - return this.monitors != null && !this.monitors.isEmpty(); + return this.monitors != null && !(this.monitors.isEmpty()); } public String getPool() { @@ -233,15 +261,15 @@ public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getUser() { @@ -258,36 +286,89 @@ public boolean hasUser() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RBDVolumeSourceFluent that = (V1RBDVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(image, that.image)) return false; - if (!java.util.Objects.equals(keyring, that.keyring)) return false; - if (!java.util.Objects.equals(monitors, that.monitors)) return false; - if (!java.util.Objects.equals(pool, that.pool)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(keyring, that.keyring))) { + return false; + } + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); + return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (image != null) { sb.append("image:"); sb.append(image + ","); } - if (keyring != null) { sb.append("keyring:"); sb.append(keyring + ","); } - if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } - if (pool != null) { sb.append("pool:"); sb.append(pool + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(keyring == null)) { + sb.append("keyring:"); + sb.append(keyring); + sb.append(","); + } + if (!(monitors == null) && !(monitors.isEmpty())) { + sb.append("monitors:"); + sb.append(monitors); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } sb.append("}"); return sb.toString(); } 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 914dc1069f..d199a0f93b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetBuilder extends V1ReplicaSetFluent implements VisitableBuilder{ public V1ReplicaSetBuilder() { this(new V1ReplicaSet()); 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 557dd1cd1b..df81c04024 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetConditionBuilder extends V1ReplicaSetConditionFluent implements VisitableBuilder{ public V1ReplicaSetConditionBuilder() { this(new V1ReplicaSetCondition()); 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 e9b9983e4e..53ab0e243a 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetConditionFluent> extends BaseFluent{ +public class V1ReplicaSetConditionFluent> extends BaseFluent{ public V1ReplicaSetConditionFluent() { } @@ -24,14 +26,14 @@ public V1ReplicaSetConditionFluent(V1ReplicaSetCondition instance) { private String type; protected void copyInstance(V1ReplicaSetCondition instance) { - instance = (instance != null ? instance : new V1ReplicaSetCondition()); + instance = instance != null ? instance : new V1ReplicaSetCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ReplicaSetConditionFluent that = (V1ReplicaSetConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 db0d20c54d..c362c9cb60 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetFluent> extends BaseFluent{ +public class V1ReplicaSetFluent> extends BaseFluent{ public V1ReplicaSetFluent() { } @@ -24,14 +27,14 @@ public V1ReplicaSetFluent(V1ReplicaSet instance) { private V1ReplicaSetStatusBuilder status; protected void copyInstance(V1ReplicaSet instance) { - instance = (instance != null ? instance : new V1ReplicaSet()); + instance = instance != null ? instance : new V1ReplicaSet(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1ReplicaSetSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1ReplicaSetSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ReplicaSetSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ReplicaSetSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1ReplicaSetSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1ReplicaSetStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1ReplicaSetStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ReplicaSetStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ReplicaSetStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1ReplicaSetStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ReplicaSetFluent that = (V1ReplicaSetFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 bcad626162..a4d0111038 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetListBuilder extends V1ReplicaSetListFluent implements VisitableBuilder{ public V1ReplicaSetListBuilder() { this(new V1ReplicaSetList()); 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 8a243c0277..420140916a 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetListFluent> extends BaseFluent{ +public class V1ReplicaSetListFluent> extends BaseFluent{ public V1ReplicaSetListFluent() { } @@ -29,13 +32,13 @@ public V1ReplicaSetListFluent(V1ReplicaSetList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ReplicaSetList instance) { - instance = (instance != null ? instance : new V1ReplicaSetList()); + instance = instance != null ? instance : new V1ReplicaSetList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ReplicaSet item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ReplicaSet item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ReplicaSet item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ReplicaSet item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ReplicaSet... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { - if (this.items == null) return (A)this; - for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ReplicaSet... items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ReplicaSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ReplicaSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { + public A withItems(V1ReplicaSet... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ReplicaSet item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ReplicaSetListFluent that = (V1ReplicaSetListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ReplicaSetFluent> implement int index; public N and() { - return (N) V1ReplicaSetListFluent.this.setToItems(index,builder.build()); + return (N) V1ReplicaSetListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 12ce345128..9c66688c63 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetSpecBuilder extends V1ReplicaSetSpecFluent implements VisitableBuilder{ public V1ReplicaSetSpecBuilder() { this(new V1ReplicaSetSpec()); 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 0378338d4b..1f701b65bb 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetSpecFluent> extends BaseFluent{ +public class V1ReplicaSetSpecFluent> extends BaseFluent{ public V1ReplicaSetSpecFluent() { } @@ -24,13 +27,13 @@ public V1ReplicaSetSpecFluent(V1ReplicaSetSpec instance) { private V1PodTemplateSpecBuilder template; protected void copyInstance(V1ReplicaSetSpec instance) { - instance = (instance != null ? instance : new V1ReplicaSetSpec()); + instance = instance != null ? instance : new V1ReplicaSetSpec(); if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withReplicas(instance.getReplicas()); - this.withSelector(instance.getSelector()); - this.withTemplate(instance.getTemplate()); - } + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withReplicas(instance.getReplicas()); + this.withSelector(instance.getSelector()); + this.withTemplate(instance.getTemplate()); + } } public Integer getMinReadySeconds() { @@ -88,15 +91,15 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public V1PodTemplateSpec buildTemplate() { @@ -128,40 +131,69 @@ public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { } public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ReplicaSetSpecFluent that = (V1ReplicaSetSpecFluent) o; - if (!java.util.Objects.equals(minReadySeconds, that.minReadySeconds)) return false; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; + if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(minReadySeconds, replicas, selector, template, super.hashCode()); + return Objects.hash(minReadySeconds, replicas, selector, template); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } - if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (template != null) { sb.append("template:"); sb.append(template); } + if (!(minReadySeconds == null)) { + sb.append("minReadySeconds:"); + sb.append(minReadySeconds); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + } sb.append("}"); return sb.toString(); } 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 08294daaa4..f81509bf9b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetStatusBuilder extends V1ReplicaSetStatusFluent implements VisitableBuilder{ public V1ReplicaSetStatusBuilder() { this(new V1ReplicaSetStatus()); 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 01ee937d2b..b12e2c6cf8 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 @@ -1,15 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetStatusFluent> extends BaseFluent{ +public class V1ReplicaSetStatusFluent> extends BaseFluent{ public V1ReplicaSetStatusFluent() { } @@ -34,16 +36,16 @@ public V1ReplicaSetStatusFluent(V1ReplicaSetStatus instance) { private Integer terminatingReplicas; protected void copyInstance(V1ReplicaSetStatus instance) { - instance = (instance != null ? instance : new V1ReplicaSetStatus()); + instance = instance != null ? instance : new V1ReplicaSetStatus(); if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withConditions(instance.getConditions()); - this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - this.withTerminatingReplicas(instance.getTerminatingReplicas()); - } + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withConditions(instance.getConditions()); + this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); + } } public Integer getAvailableReplicas() { @@ -60,7 +62,9 @@ public boolean hasAvailableReplicas() { } public A addToConditions(int index,V1ReplicaSetCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -69,11 +73,13 @@ public A addToConditions(int index,V1ReplicaSetCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1ReplicaSetCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -82,41 +88,71 @@ public A setToConditions(int index,V1ReplicaSetCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1ReplicaSetCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items) { - if (this.conditions == null) return (A)this; - for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1ReplicaSetCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ReplicaSetConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ReplicaSetConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -168,7 +204,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... conditions) { + public A withConditions(V1ReplicaSetCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -182,7 +218,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1ReplicaSetConditio } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -198,28 +234,39 @@ public ConditionsNested setNewConditionLike(int index,V1ReplicaSetCondition i } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1ReplicaSetConditionFluent implements VisitableBuilder{ public V1ReplicationControllerBuilder() { this(new V1ReplicationController()); 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 695b4c53be..bc717415fe 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicationControllerConditionBuilder extends V1ReplicationControllerConditionFluent implements VisitableBuilder{ public V1ReplicationControllerConditionBuilder() { this(new V1ReplicationControllerCondition()); 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 61ba63c8ef..796b554fcf 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerConditionFluent> extends BaseFluent{ +public class V1ReplicationControllerConditionFluent> extends BaseFluent{ public V1ReplicationControllerConditionFluent() { } @@ -24,14 +26,14 @@ public V1ReplicationControllerConditionFluent(V1ReplicationControllerCondition i private String type; protected void copyInstance(V1ReplicationControllerCondition instance) { - instance = (instance != null ? instance : new V1ReplicationControllerCondition()); + instance = instance != null ? instance : new V1ReplicationControllerCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ReplicationControllerConditionFluent that = (V1ReplicationControllerConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 2edb82c971..dc99b2a797 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerFluent> extends BaseFluent{ +public class V1ReplicationControllerFluent> extends BaseFluent{ public V1ReplicationControllerFluent() { } @@ -24,14 +27,14 @@ public V1ReplicationControllerFluent(V1ReplicationController instance) { private V1ReplicationControllerStatusBuilder status; protected void copyInstance(V1ReplicationController instance) { - instance = (instance != null ? instance : new V1ReplicationController()); + instance = instance != null ? instance : new V1ReplicationController(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1ReplicationControllerSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1ReplicationControllerSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ReplicationControllerSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ReplicationControllerSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1ReplicationControllerSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1ReplicationControllerStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1ReplicationControllerStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ReplicationControllerStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ReplicationControllerStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1ReplicationControllerStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ReplicationControllerFluent that = (V1ReplicationControllerFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 14561809eb..af6602f44c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicationControllerListBuilder extends V1ReplicationControllerListFluent implements VisitableBuilder{ public V1ReplicationControllerListBuilder() { this(new V1ReplicationControllerList()); 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 de9d9ec4d5..a277a2ee38 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerListFluent> extends BaseFluent{ +public class V1ReplicationControllerListFluent> extends BaseFluent{ public V1ReplicationControllerListFluent() { } @@ -29,13 +32,13 @@ public V1ReplicationControllerListFluent(V1ReplicationControllerList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ReplicationControllerList instance) { - instance = (instance != null ? instance : new V1ReplicationControllerList()); + instance = instance != null ? instance : new V1ReplicationControllerList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ReplicationController item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ReplicationController item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ReplicationController item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ReplicationController item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ReplicationController... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { - if (this.items == null) return (A)this; - for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ReplicationController... items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ReplicationControllerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ReplicationControllerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { + public A withItems(V1ReplicationController... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ReplicationController.. } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ReplicationController item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ReplicationControllerListFluent that = (V1ReplicationControllerListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ReplicationControllerFluent int index; public N and() { - return (N) V1ReplicationControllerListFluent.this.setToItems(index,builder.build()); + return (N) V1ReplicationControllerListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 45f050cb55..5fce27f5ff 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicationControllerSpecBuilder extends V1ReplicationControllerSpecFluent implements VisitableBuilder{ public V1ReplicationControllerSpecBuilder() { this(new V1ReplicationControllerSpec()); 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 f4fdf01072..d040321ade 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.util.Map; @@ -13,7 +16,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerSpecFluent> extends BaseFluent{ +public class V1ReplicationControllerSpecFluent> extends BaseFluent{ public V1ReplicationControllerSpecFluent() { } @@ -26,13 +29,13 @@ public V1ReplicationControllerSpecFluent(V1ReplicationControllerSpec instance) { private V1PodTemplateSpecBuilder template; protected void copyInstance(V1ReplicationControllerSpec instance) { - instance = (instance != null ? instance : new V1ReplicationControllerSpec()); + instance = instance != null ? instance : new V1ReplicationControllerSpec(); if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withReplicas(instance.getReplicas()); - this.withSelector(instance.getSelector()); - this.withTemplate(instance.getTemplate()); - } + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withReplicas(instance.getReplicas()); + this.withSelector(instance.getSelector()); + this.withTemplate(instance.getTemplate()); + } } public Integer getMinReadySeconds() { @@ -62,23 +65,47 @@ public boolean hasReplicas() { } public A addToSelector(String key,String value) { - if(this.selector == null && key != null && value != null) { this.selector = new LinkedHashMap(); } - if(key != null && value != null) {this.selector.put(key, value);} return (A)this; + if (this.selector == null && key != null && value != null) { + this.selector = new LinkedHashMap(); + } + if (key != null && value != null) { + this.selector.put(key, value); + } + return (A) this; } public A addToSelector(Map map) { - if(this.selector == null && map != null) { this.selector = new LinkedHashMap(); } - if(map != null) { this.selector.putAll(map);} return (A)this; + if (this.selector == null && map != null) { + this.selector = new LinkedHashMap(); + } + if (map != null) { + this.selector.putAll(map); + } + return (A) this; } public A removeFromSelector(String key) { - if(this.selector == null) { return (A) this; } - if(key != null && this.selector != null) {this.selector.remove(key);} return (A)this; + if (this.selector == null) { + return (A) this; + } + if (key != null && this.selector != null) { + this.selector.remove(key); + } + return (A) this; } public A removeFromSelector(Map map) { - if(this.selector == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.selector != null){this.selector.remove(key);}}} return (A)this; + if (this.selector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.selector != null) { + this.selector.remove(key); + } + } + } + return (A) this; } public Map getSelector() { @@ -127,40 +154,69 @@ public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { } public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ReplicationControllerSpecFluent that = (V1ReplicationControllerSpecFluent) o; - if (!java.util.Objects.equals(minReadySeconds, that.minReadySeconds)) return false; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; + if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(minReadySeconds, replicas, selector, template, super.hashCode()); + return Objects.hash(minReadySeconds, replicas, selector, template); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } - if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } - if (selector != null && !selector.isEmpty()) { sb.append("selector:"); sb.append(selector + ","); } - if (template != null) { sb.append("template:"); sb.append(template); } + if (!(minReadySeconds == null)) { + sb.append("minReadySeconds:"); + sb.append(minReadySeconds); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(selector == null) && !(selector.isEmpty())) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + } sb.append("}"); return sb.toString(); } 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 6f65403aa2..b42076ca5b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicationControllerStatusBuilder extends V1ReplicationControllerStatusFluent implements VisitableBuilder{ public V1ReplicationControllerStatusBuilder() { this(new V1ReplicationControllerStatus()); 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 cb91fe9fc3..f0dc0db17f 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 @@ -1,15 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerStatusFluent> extends BaseFluent{ +public class V1ReplicationControllerStatusFluent> extends BaseFluent{ public V1ReplicationControllerStatusFluent() { } @@ -33,15 +35,15 @@ public V1ReplicationControllerStatusFluent(V1ReplicationControllerStatus instanc private Integer replicas; protected void copyInstance(V1ReplicationControllerStatus instance) { - instance = (instance != null ? instance : new V1ReplicationControllerStatus()); + instance = instance != null ? instance : new V1ReplicationControllerStatus(); if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withConditions(instance.getConditions()); - this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - } + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withConditions(instance.getConditions()); + this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + } } public Integer getAvailableReplicas() { @@ -58,7 +60,9 @@ public boolean hasAvailableReplicas() { } public A addToConditions(int index,V1ReplicationControllerCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -67,11 +71,13 @@ public A addToConditions(int index,V1ReplicationControllerCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1ReplicationControllerCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -80,41 +86,71 @@ public A setToConditions(int index,V1ReplicationControllerCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1ReplicationControllerCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items) { - if (this.conditions == null) return (A)this; - for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1ReplicationControllerCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ReplicationControllerConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ReplicationControllerConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -166,7 +202,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... conditions) { + public A withConditions(V1ReplicationControllerCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -180,7 +216,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1ReplicationControl } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -196,28 +232,39 @@ public ConditionsNested setNewConditionLike(int index,V1ReplicationController } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1ReplicationControllerConditionFluent< int index; public N and() { - return (N) V1ReplicationControllerStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1ReplicationControllerStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 67fad7e3c0..050c3286ca 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceAttributesBuilder extends V1ResourceAttributesFluent implements VisitableBuilder{ public V1ResourceAttributesBuilder() { this(new V1ResourceAttributes()); 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 8222009d10..349c8d5cc7 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceAttributesFluent> extends BaseFluent{ +public class V1ResourceAttributesFluent> extends BaseFluent{ public V1ResourceAttributesFluent() { } @@ -28,18 +31,18 @@ public V1ResourceAttributesFluent(V1ResourceAttributes instance) { private String version; protected void copyInstance(V1ResourceAttributes instance) { - instance = (instance != null ? instance : new V1ResourceAttributes()); + instance = instance != null ? instance : new V1ResourceAttributes(); if (instance != null) { - this.withFieldSelector(instance.getFieldSelector()); - this.withGroup(instance.getGroup()); - this.withLabelSelector(instance.getLabelSelector()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResource(instance.getResource()); - this.withSubresource(instance.getSubresource()); - this.withVerb(instance.getVerb()); - this.withVersion(instance.getVersion()); - } + this.withFieldSelector(instance.getFieldSelector()); + this.withGroup(instance.getGroup()); + this.withLabelSelector(instance.getLabelSelector()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResource(instance.getResource()); + this.withSubresource(instance.getSubresource()); + this.withVerb(instance.getVerb()); + this.withVersion(instance.getVersion()); + } } public V1FieldSelectorAttributes buildFieldSelector() { @@ -71,15 +74,15 @@ public FieldSelectorNested withNewFieldSelectorLike(V1FieldSelectorAttributes } public FieldSelectorNested editFieldSelector() { - return withNewFieldSelectorLike(java.util.Optional.ofNullable(buildFieldSelector()).orElse(null)); + return this.withNewFieldSelectorLike(Optional.ofNullable(this.buildFieldSelector()).orElse(null)); } public FieldSelectorNested editOrNewFieldSelector() { - return withNewFieldSelectorLike(java.util.Optional.ofNullable(buildFieldSelector()).orElse(new V1FieldSelectorAttributesBuilder().build())); + return this.withNewFieldSelectorLike(Optional.ofNullable(this.buildFieldSelector()).orElse(new V1FieldSelectorAttributesBuilder().build())); } public FieldSelectorNested editOrNewFieldSelectorLike(V1FieldSelectorAttributes item) { - return withNewFieldSelectorLike(java.util.Optional.ofNullable(buildFieldSelector()).orElse(item)); + return this.withNewFieldSelectorLike(Optional.ofNullable(this.buildFieldSelector()).orElse(item)); } public String getGroup() { @@ -124,15 +127,15 @@ public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelectorAttributes } public LabelSelectorNested editLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(null)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } public LabelSelectorNested editOrNewLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(new V1LabelSelectorAttributesBuilder().build())); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorAttributesBuilder().build())); } public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelectorAttributes item) { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(item)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } public String getName() { @@ -214,38 +217,97 @@ public boolean hasVersion() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourceAttributesFluent that = (V1ResourceAttributesFluent) o; - if (!java.util.Objects.equals(fieldSelector, that.fieldSelector)) return false; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(labelSelector, that.labelSelector)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(subresource, that.subresource)) return false; - if (!java.util.Objects.equals(verb, that.verb)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; + if (!(Objects.equals(fieldSelector, that.fieldSelector))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(subresource, that.subresource))) { + return false; + } + if (!(Objects.equals(verb, that.verb))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fieldSelector, group, labelSelector, name, namespace, resource, subresource, verb, version, super.hashCode()); + return Objects.hash(fieldSelector, group, labelSelector, name, namespace, resource, subresource, verb, version); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fieldSelector != null) { sb.append("fieldSelector:"); sb.append(fieldSelector + ","); } - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (subresource != null) { sb.append("subresource:"); sb.append(subresource + ","); } - if (verb != null) { sb.append("verb:"); sb.append(verb + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } + if (!(fieldSelector == null)) { + sb.append("fieldSelector:"); + sb.append(fieldSelector); + sb.append(","); + } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(labelSelector == null)) { + sb.append("labelSelector:"); + sb.append(labelSelector); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(subresource == null)) { + sb.append("subresource:"); + sb.append(subresource); + sb.append(","); + } + if (!(verb == null)) { + sb.append("verb:"); + sb.append(verb); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimBuilder.java deleted file mode 100644 index d48502e3ff..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1ResourceClaimBuilder extends V1ResourceClaimFluent implements VisitableBuilder{ - public V1ResourceClaimBuilder() { - this(new V1ResourceClaim()); - } - - public V1ResourceClaimBuilder(V1ResourceClaimFluent fluent) { - this(fluent, new V1ResourceClaim()); - } - - public V1ResourceClaimBuilder(V1ResourceClaimFluent fluent,V1ResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1ResourceClaimBuilder(V1ResourceClaim instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1ResourceClaimFluent fluent; - - public V1ResourceClaim build() { - V1ResourceClaim buildable = new V1ResourceClaim(); - buildable.setName(fluent.getName()); - buildable.setRequest(fluent.getRequest()); - return buildable; - } - - -} \ No newline at end of file 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 new file mode 100644 index 0000000000..341c1d92cc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimConsumerReferenceBuilder extends V1ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + public V1ResourceClaimConsumerReferenceBuilder() { + this(new V1ResourceClaimConsumerReference()); + } + + public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReferenceFluent fluent) { + this(fluent, new V1ResourceClaimConsumerReference()); + } + + public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReferenceFluent fluent,V1ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceClaimConsumerReferenceFluent fluent; + + public V1ResourceClaimConsumerReference build() { + V1ResourceClaimConsumerReference buildable = new V1ResourceClaimConsumerReference(); + buildable.setApiGroup(fluent.getApiGroup()); + buildable.setName(fluent.getName()); + buildable.setResource(fluent.getResource()); + buildable.setUid(fluent.getUid()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java new file mode 100644 index 0000000000..5e3e554f99 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java @@ -0,0 +1,145 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + public V1ResourceClaimConsumerReferenceFluent() { + } + + public V1ResourceClaimConsumerReferenceFluent(V1ResourceClaimConsumerReference instance) { + this.copyInstance(instance); + } + private String apiGroup; + private String name; + private String resource; + private String uid; + + protected void copyInstance(V1ResourceClaimConsumerReference instance) { + instance = instance != null ? instance : new V1ResourceClaimConsumerReference(); + if (instance != null) { + this.withApiGroup(instance.getApiGroup()); + this.withName(instance.getName()); + this.withResource(instance.getResource()); + this.withUid(instance.getUid()); + } + } + + public String getApiGroup() { + return this.apiGroup; + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public String getResource() { + return this.resource; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public boolean hasResource() { + return this.resource != null; + } + + public String getUid() { + return this.uid; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + + public boolean hasUid() { + return this.uid != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimConsumerReferenceFluent that = (V1ResourceClaimConsumerReferenceFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(apiGroup, name, resource, uid); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimFluent.java deleted file mode 100644 index 506bfbd2fe..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1ResourceClaimFluent> extends BaseFluent{ - public V1ResourceClaimFluent() { - } - - public V1ResourceClaimFluent(V1ResourceClaim instance) { - this.copyInstance(instance); - } - private String name; - private String request; - - protected void copyInstance(V1ResourceClaim instance) { - instance = (instance != null ? instance : new V1ResourceClaim()); - if (instance != null) { - this.withName(instance.getName()); - this.withRequest(instance.getRequest()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getRequest() { - return this.request; - } - - public A withRequest(String request) { - this.request = request; - return (A) this; - } - - public boolean hasRequest() { - return this.request != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ResourceClaimFluent that = (V1ResourceClaimFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(request, that.request)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, request, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (request != null) { sb.append("request:"); sb.append(request); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file 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 new file mode 100644 index 0000000000..3acd9ed299 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimListBuilder extends V1ResourceClaimListFluent implements VisitableBuilder{ + public V1ResourceClaimListBuilder() { + this(new V1ResourceClaimList()); + } + + public V1ResourceClaimListBuilder(V1ResourceClaimListFluent fluent) { + this(fluent, new V1ResourceClaimList()); + } + + public V1ResourceClaimListBuilder(V1ResourceClaimListFluent fluent,V1ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimListBuilder(V1ResourceClaimList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceClaimListFluent fluent; + + public V1ResourceClaimList build() { + V1ResourceClaimList buildable = new V1ResourceClaimList(); + 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/V1ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java new file mode 100644 index 0000000000..6678687311 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java @@ -0,0 +1,408 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimListFluent> extends BaseFluent{ + public V1ResourceClaimListFluent() { + } + + public V1ResourceClaimListFluent(V1ResourceClaimList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1ResourceClaimList instance) { + instance = instance != null ? instance : new V1ResourceClaimList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,ResourceV1ResourceClaim item) { + if (this.items == null) { + this.items = new ArrayList(); + } + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A) this; + } + + public A setToItems(int index,ResourceV1ResourceClaim item) { + if (this.items == null) { + this.items = new ArrayList(); + } + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public A addToItems(ResourceV1ResourceClaim... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A removeFromItems(ResourceV1ResourceClaim... items) { + if (this.items == null) { + return (A) this; + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(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 = _visitables.get("items"); + while (each.hasNext()) { + ResourceV1ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public ResourceV1ResourceClaim buildItem(int index) { + return this.items.get(index).build(); + } + + public ResourceV1ResourceClaim buildFirstItem() { + return this.items.get(0).build(); + } + + public ResourceV1ResourceClaim buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public ResourceV1ResourceClaim buildMatchingItem(Predicate predicate) { + for (ResourceV1ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (ResourceV1ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (ResourceV1ResourceClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(ResourceV1ResourceClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (ResourceV1ResourceClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(ResourceV1ResourceClaim item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,ResourceV1ResourceClaim item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + 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 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 String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + 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; + } + V1ResourceClaimListFluent that = (V1ResourceClaimListFluent) 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 int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 class ItemsNested extends ResourceV1ResourceClaimFluent> implements Nested{ + ItemsNested(int index,ResourceV1ResourceClaim item) { + this.index = index; + this.builder = new ResourceV1ResourceClaimBuilder(this, item); + } + ResourceV1ResourceClaimBuilder builder; + int index; + + public N and() { + return (N) V1ResourceClaimListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1ResourceClaimListFluent.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/V1ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java new file mode 100644 index 0000000000..848f86ee94 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimSpecBuilder extends V1ResourceClaimSpecFluent implements VisitableBuilder{ + public V1ResourceClaimSpecBuilder() { + this(new V1ResourceClaimSpec()); + } + + public V1ResourceClaimSpecBuilder(V1ResourceClaimSpecFluent fluent) { + this(fluent, new V1ResourceClaimSpec()); + } + + public V1ResourceClaimSpecBuilder(V1ResourceClaimSpecFluent fluent,V1ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimSpecBuilder(V1ResourceClaimSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceClaimSpecFluent fluent; + + public V1ResourceClaimSpec build() { + V1ResourceClaimSpec buildable = new V1ResourceClaimSpec(); + buildable.setDevices(fluent.buildDevices()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..8424de8f05 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java @@ -0,0 +1,120 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimSpecFluent> extends BaseFluent{ + public V1ResourceClaimSpecFluent() { + } + + public V1ResourceClaimSpecFluent(V1ResourceClaimSpec instance) { + this.copyInstance(instance); + } + private V1DeviceClaimBuilder devices; + + protected void copyInstance(V1ResourceClaimSpec instance) { + instance = instance != null ? instance : new V1ResourceClaimSpec(); + if (instance != null) { + this.withDevices(instance.getDevices()); + } + } + + public V1DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public A withDevices(V1DeviceClaim devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1DeviceClaimBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1DeviceClaim item) { + return new DevicesNested(item); + } + + public DevicesNested editDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1DeviceClaimBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1DeviceClaim item) { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).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; + } + V1ResourceClaimSpecFluent that = (V1ResourceClaimSpecFluent) o; + if (!(Objects.equals(devices, that.devices))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(devices); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + } + sb.append("}"); + return sb.toString(); + } + public class DevicesNested extends V1DeviceClaimFluent> implements Nested{ + DevicesNested(V1DeviceClaim item) { + this.builder = new V1DeviceClaimBuilder(this, item); + } + V1DeviceClaimBuilder builder; + + public N and() { + return (N) V1ResourceClaimSpecFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..9c540fed7c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimStatusBuilder extends V1ResourceClaimStatusFluent implements VisitableBuilder{ + public V1ResourceClaimStatusBuilder() { + this(new V1ResourceClaimStatus()); + } + + public V1ResourceClaimStatusBuilder(V1ResourceClaimStatusFluent fluent) { + this(fluent, new V1ResourceClaimStatus()); + } + + public V1ResourceClaimStatusBuilder(V1ResourceClaimStatusFluent fluent,V1ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimStatusBuilder(V1ResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceClaimStatusFluent fluent; + + public V1ResourceClaimStatus build() { + V1ResourceClaimStatus buildable = new V1ResourceClaimStatus(); + buildable.setAllocation(fluent.buildAllocation()); + buildable.setDevices(fluent.buildDevices()); + buildable.setReservedFor(fluent.buildReservedFor()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java new file mode 100644 index 0000000000..6eb1989e54 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java @@ -0,0 +1,598 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimStatusFluent> extends BaseFluent{ + public V1ResourceClaimStatusFluent() { + } + + public V1ResourceClaimStatusFluent(V1ResourceClaimStatus instance) { + this.copyInstance(instance); + } + private V1AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + + protected void copyInstance(V1ResourceClaimStatus instance) { + instance = instance != null ? instance : new V1ResourceClaimStatus(); + if (instance != null) { + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } + } + + public V1AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; + } + + public A withAllocation(V1AllocationResult allocation) { + this._visitables.remove("allocation"); + if (allocation != null) { + this.allocation = new V1AllocationResultBuilder(allocation); + this._visitables.get("allocation").add(this.allocation); + } else { + this.allocation = null; + this._visitables.get("allocation").remove(this.allocation); + } + return (A) this; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1AllocationResult item) { + return new AllocationNested(item); + } + + public AllocationNested editAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); + } + + public AllocationNested editOrNewAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1AllocationResult item) { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + } + + public A addToDevices(int index,V1AllocatedDeviceStatus item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A) this; + } + + public A setToDevices(int index,V1AllocatedDeviceStatus item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A) this; + } + + public A addToDevices(V1AllocatedDeviceStatus... items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; + } + + public A removeFromDevices(V1AllocatedDeviceStatus... items) { + if (this.devices == null) { + return (A) this; + } + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; + } + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1AllocatedDeviceStatus buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1AllocatedDeviceStatus buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { + for (V1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1AllocatedDeviceStatus... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1AllocatedDeviceStatus item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (index <= devices.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < devices.size();i++) { + if (predicate.test(devices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public A addToReservedFor(int index,V1ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); + } + return (A) this; + } + + public A setToReservedFor(int index,V1ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } + return (A) this; + } + + public A addToReservedFor(V1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; + } + + public A addAllToReservedFor(Collection items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; + } + + public A removeFromReservedFor(V1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + return (A) this; + } + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); + } + return (A) this; + } + + public A removeAllFromReservedFor(Collection items) { + if (this.reservedFor == null) { + return (A) this; + } + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromReservedFor(Predicate predicate) { + if (reservedFor == null) { + return (A) this; + } + Iterator each = reservedFor.iterator(); + List visitables = _visitables.get("reservedFor"); + while (each.hasNext()) { + V1ResourceClaimConsumerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; + } + + public V1ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); + } + + public V1ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + + public V1ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + + public V1ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withReservedFor(List reservedFor) { + if (this.reservedFor != null) { + this._visitables.get("reservedFor").clear(); + } + if (reservedFor != null) { + this.reservedFor = new ArrayList(); + for (V1ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } else { + this.reservedFor = null; + } + return (A) this; + } + + public A withReservedFor(V1ResourceClaimConsumerReference... reservedFor) { + if (this.reservedFor != null) { + this.reservedFor.clear(); + _visitables.remove("reservedFor"); + } + if (reservedFor != null) { + for (V1ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } + return (A) this; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !(this.reservedFor.isEmpty()); + } + + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); + } + + public ReservedForNested addNewReservedForLike(V1ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); + } + + public ReservedForNested setNewReservedForLike(int index,V1ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); + } + + public ReservedForNested editReservedFor(int index) { + if (index <= reservedFor.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(0, this.buildReservedFor(0)); + } + + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public ReservedForNested editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i = 0;i < reservedFor.size();i++) { + if (predicate.test(reservedFor.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(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; + } + V1ResourceClaimStatusFluent that = (V1ResourceClaimStatusFluent) o; + if (!(Objects.equals(allocation, that.allocation))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(reservedFor, that.reservedFor))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(allocation, devices, reservedFor); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocation == null)) { + sb.append("allocation:"); + sb.append(allocation); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(reservedFor == null) && !(reservedFor.isEmpty())) { + sb.append("reservedFor:"); + sb.append(reservedFor); + } + sb.append("}"); + return sb.toString(); + } + public class AllocationNested extends V1AllocationResultFluent> implements Nested{ + AllocationNested(V1AllocationResult item) { + this.builder = new V1AllocationResultBuilder(this, item); + } + V1AllocationResultBuilder builder; + + public N and() { + return (N) V1ResourceClaimStatusFluent.this.withAllocation(builder.build()); + } + + public N endAllocation() { + return and(); + } + + + } + public class DevicesNested extends V1AllocatedDeviceStatusFluent> implements Nested{ + DevicesNested(int index,V1AllocatedDeviceStatus item) { + this.index = index; + this.builder = new V1AllocatedDeviceStatusBuilder(this, item); + } + V1AllocatedDeviceStatusBuilder builder; + int index; + + public N and() { + return (N) V1ResourceClaimStatusFluent.this.setToDevices(index, builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class ReservedForNested extends V1ResourceClaimConsumerReferenceFluent> implements Nested{ + ReservedForNested(int index,V1ResourceClaimConsumerReference item) { + this.index = index; + this.builder = new V1ResourceClaimConsumerReferenceBuilder(this, item); + } + V1ResourceClaimConsumerReferenceBuilder builder; + int index; + + public N and() { + return (N) V1ResourceClaimStatusFluent.this.setToReservedFor(index, builder.build()); + } + + public N endReservedFor() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java new file mode 100644 index 0000000000..aa68d51420 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimTemplateBuilder extends V1ResourceClaimTemplateFluent implements VisitableBuilder{ + public V1ResourceClaimTemplateBuilder() { + this(new V1ResourceClaimTemplate()); + } + + public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplateFluent fluent) { + this(fluent, new V1ResourceClaimTemplate()); + } + + public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplateFluent fluent,V1ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceClaimTemplateFluent fluent; + + public V1ResourceClaimTemplate build() { + V1ResourceClaimTemplate buildable = new V1ResourceClaimTemplate(); + 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/V1alpha3ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java similarity index 52% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java index 646eed8d09..d7a94c9ca1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java @@ -1,35 +1,38 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3ResourceClaimTemplateFluent> extends BaseFluent{ - public V1alpha3ResourceClaimTemplateFluent() { +public class V1ResourceClaimTemplateFluent> extends BaseFluent{ + public V1ResourceClaimTemplateFluent() { } - public V1alpha3ResourceClaimTemplateFluent(V1alpha3ResourceClaimTemplate instance) { + public V1ResourceClaimTemplateFluent(V1ResourceClaimTemplate instance) { this.copyInstance(instance); } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1alpha3ResourceClaimTemplateSpecBuilder spec; + private V1ResourceClaimTemplateSpecBuilder spec; - protected void copyInstance(V1alpha3ResourceClaimTemplate instance) { - instance = (instance != null ? instance : new V1alpha3ResourceClaimTemplate()); + protected void copyInstance(V1ResourceClaimTemplate instance) { + instance = instance != null ? instance : new V1ResourceClaimTemplate(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,25 +90,25 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha3ResourceClaimTemplateSpec buildSpec() { + public V1ResourceClaimTemplateSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(V1alpha3ResourceClaimTemplateSpec spec) { + public A withSpec(V1ResourceClaimTemplateSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1alpha3ResourceClaimTemplateSpecBuilder(spec); + this.spec = new V1ResourceClaimTemplateSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { this.spec = null; @@ -122,45 +125,74 @@ public SpecNested withNewSpec() { return new SpecNested(null); } - public SpecNested withNewSpecLike(V1alpha3ResourceClaimTemplateSpec item) { + public SpecNested withNewSpecLike(V1ResourceClaimTemplateSpec item) { return new SpecNested(item); } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3ResourceClaimTemplateSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceClaimTemplateSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1alpha3ResourceClaimTemplateSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + public SpecNested editOrNewSpecLike(V1ResourceClaimTemplateSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourceClaimTemplateFluent that = (V1alpha3ResourceClaimTemplateFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimTemplateFluent that = (V1ResourceClaimTemplateFluent) 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } @@ -171,7 +203,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp V1ObjectMetaBuilder builder; public N and() { - return (N) V1alpha3ResourceClaimTemplateFluent.this.withMetadata(builder.build()); + return (N) V1ResourceClaimTemplateFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -180,14 +212,14 @@ public N endMetadata() { } - public class SpecNested extends V1alpha3ResourceClaimTemplateSpecFluent> implements Nested{ - SpecNested(V1alpha3ResourceClaimTemplateSpec item) { - this.builder = new V1alpha3ResourceClaimTemplateSpecBuilder(this, item); + public class SpecNested extends V1ResourceClaimTemplateSpecFluent> implements Nested{ + SpecNested(V1ResourceClaimTemplateSpec item) { + this.builder = new V1ResourceClaimTemplateSpecBuilder(this, item); } - V1alpha3ResourceClaimTemplateSpecBuilder builder; + V1ResourceClaimTemplateSpecBuilder builder; public N and() { - return (N) V1alpha3ResourceClaimTemplateFluent.this.withSpec(builder.build()); + return (N) V1ResourceClaimTemplateFluent.this.withSpec(builder.build()); } public N endSpec() { 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 new file mode 100644 index 0000000000..389d615c0e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimTemplateListBuilder extends V1ResourceClaimTemplateListFluent implements VisitableBuilder{ + public V1ResourceClaimTemplateListBuilder() { + this(new V1ResourceClaimTemplateList()); + } + + public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateListFluent fluent) { + this(fluent, new V1ResourceClaimTemplateList()); + } + + public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateListFluent fluent,V1ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceClaimTemplateListFluent fluent; + + public V1ResourceClaimTemplateList build() { + V1ResourceClaimTemplateList buildable = new V1ResourceClaimTemplateList(); + 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/V1ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java new file mode 100644 index 0000000000..a5ee30dd9f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java @@ -0,0 +1,408 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimTemplateListFluent> extends BaseFluent{ + public V1ResourceClaimTemplateListFluent() { + } + + public V1ResourceClaimTemplateListFluent(V1ResourceClaimTemplateList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1ResourceClaimTemplateList instance) { + instance = instance != null ? instance : new V1ResourceClaimTemplateList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1ResourceClaimTemplate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A) this; + } + + public A setToItems(int index,V1ResourceClaimTemplate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public A addToItems(V1ResourceClaimTemplate... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A removeFromItems(V1ResourceClaimTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(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 = _visitables.get("items"); + while (each.hasNext()) { + V1ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1ResourceClaimTemplate buildItem(int index) { + return this.items.get(index).build(); + } + + public V1ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ResourceClaimTemplate buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1ResourceClaimTemplate buildMatchingItem(Predicate predicate) { + for (V1ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ResourceClaimTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ResourceClaimTemplate item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + 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 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 String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + 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; + } + V1ResourceClaimTemplateListFluent that = (V1ResourceClaimTemplateListFluent) 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 int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 class ItemsNested extends V1ResourceClaimTemplateFluent> implements Nested{ + ItemsNested(int index,V1ResourceClaimTemplate item) { + this.index = index; + this.builder = new V1ResourceClaimTemplateBuilder(this, item); + } + V1ResourceClaimTemplateBuilder builder; + int index; + + public N and() { + return (N) V1ResourceClaimTemplateListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1ResourceClaimTemplateListFluent.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/V1ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java new file mode 100644 index 0000000000..df29e41773 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimTemplateSpecBuilder extends V1ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + public V1ResourceClaimTemplateSpecBuilder() { + this(new V1ResourceClaimTemplateSpec()); + } + + public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpecFluent fluent) { + this(fluent, new V1ResourceClaimTemplateSpec()); + } + + public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpecFluent fluent,V1ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceClaimTemplateSpecFluent fluent; + + public V1ResourceClaimTemplateSpec build() { + V1ResourceClaimTemplateSpec buildable = new V1ResourceClaimTemplateSpec(); + 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/V1alpha3ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java similarity index 52% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java index ed1d651dd3..7945b13e24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java @@ -1,31 +1,34 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3ResourceClaimTemplateSpecFluent> extends BaseFluent{ - public V1alpha3ResourceClaimTemplateSpecFluent() { +public class V1ResourceClaimTemplateSpecFluent> extends BaseFluent{ + public V1ResourceClaimTemplateSpecFluent() { } - public V1alpha3ResourceClaimTemplateSpecFluent(V1alpha3ResourceClaimTemplateSpec instance) { + public V1ResourceClaimTemplateSpecFluent(V1ResourceClaimTemplateSpec instance) { this.copyInstance(instance); } private V1ObjectMetaBuilder metadata; - private V1alpha3ResourceClaimSpecBuilder spec; + private V1ResourceClaimSpecBuilder spec; - protected void copyInstance(V1alpha3ResourceClaimTemplateSpec instance) { - instance = (instance != null ? instance : new V1alpha3ResourceClaimTemplateSpec()); + protected void copyInstance(V1ResourceClaimTemplateSpec instance) { + instance = instance != null ? instance : new V1ResourceClaimTemplateSpec(); if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public V1ObjectMeta buildMetadata() { @@ -57,25 +60,25 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha3ResourceClaimSpec buildSpec() { + public V1ResourceClaimSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(V1alpha3ResourceClaimSpec spec) { + public A withSpec(V1ResourceClaimSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1alpha3ResourceClaimSpecBuilder(spec); + this.spec = new V1ResourceClaimSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { this.spec = null; @@ -92,41 +95,58 @@ public SpecNested withNewSpec() { return new SpecNested(null); } - public SpecNested withNewSpecLike(V1alpha3ResourceClaimSpec item) { + public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { return new SpecNested(item); } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3ResourceClaimSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceClaimSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1alpha3ResourceClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + public SpecNested editOrNewSpecLike(V1ResourceClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourceClaimTemplateSpecFluent that = (V1alpha3ResourceClaimTemplateSpecFluent) o; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimTemplateSpecFluent that = (V1ResourceClaimTemplateSpecFluent) o; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); + return Objects.hash(metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } sb.append("}"); return sb.toString(); } @@ -137,7 +157,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp V1ObjectMetaBuilder builder; public N and() { - return (N) V1alpha3ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); + return (N) V1ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -146,14 +166,14 @@ public N endMetadata() { } - public class SpecNested extends V1alpha3ResourceClaimSpecFluent> implements Nested{ - SpecNested(V1alpha3ResourceClaimSpec item) { - this.builder = new V1alpha3ResourceClaimSpecBuilder(this, item); + public class SpecNested extends V1ResourceClaimSpecFluent> implements Nested{ + SpecNested(V1ResourceClaimSpec item) { + this.builder = new V1ResourceClaimSpecBuilder(this, item); } - V1alpha3ResourceClaimSpecBuilder builder; + V1ResourceClaimSpecBuilder builder; public N and() { - return (N) V1alpha3ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); + return (N) V1ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); } public N endSpec() { 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 5c6974e022..1f71a65b9c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceFieldSelectorBuilder extends V1ResourceFieldSelectorFluent implements VisitableBuilder{ public V1ResourceFieldSelectorBuilder() { this(new V1ResourceFieldSelector()); 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 50333e3877..5fe048875e 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceFieldSelectorFluent> extends BaseFluent{ +public class V1ResourceFieldSelectorFluent> extends BaseFluent{ public V1ResourceFieldSelectorFluent() { } @@ -22,12 +24,12 @@ public V1ResourceFieldSelectorFluent(V1ResourceFieldSelector instance) { private String resource; protected void copyInstance(V1ResourceFieldSelector instance) { - instance = (instance != null ? instance : new V1ResourceFieldSelector()); + instance = instance != null ? instance : new V1ResourceFieldSelector(); if (instance != null) { - this.withContainerName(instance.getContainerName()); - this.withDivisor(instance.getDivisor()); - this.withResource(instance.getResource()); - } + this.withContainerName(instance.getContainerName()); + this.withDivisor(instance.getDivisor()); + this.withResource(instance.getResource()); + } } public String getContainerName() { @@ -57,7 +59,7 @@ public boolean hasDivisor() { } public A withNewDivisor(String value) { - return (A)withDivisor(new Quantity(value)); + return (A) this.withDivisor(new Quantity(value)); } public String getResource() { @@ -74,26 +76,49 @@ public boolean hasResource() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourceFieldSelectorFluent that = (V1ResourceFieldSelectorFluent) o; - if (!java.util.Objects.equals(containerName, that.containerName)) return false; - if (!java.util.Objects.equals(divisor, that.divisor)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; + if (!(Objects.equals(containerName, that.containerName))) { + return false; + } + if (!(Objects.equals(divisor, that.divisor))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(containerName, divisor, resource, super.hashCode()); + return Objects.hash(containerName, divisor, resource); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerName != null) { sb.append("containerName:"); sb.append(containerName + ","); } - if (divisor != null) { sb.append("divisor:"); sb.append(divisor + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource); } + if (!(containerName == null)) { + sb.append("containerName:"); + sb.append(containerName); + sb.append(","); + } + if (!(divisor == null)) { + sb.append("divisor:"); + sb.append(divisor); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } sb.append("}"); return sb.toString(); } 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 2ea8c9bbe7..5b77780aa5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceHealthBuilder extends V1ResourceHealthFluent implements VisitableBuilder{ public V1ResourceHealthBuilder() { this(new V1ResourceHealth()); 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 b401269fed..1e8b6133f9 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceHealthFluent> extends BaseFluent{ +public class V1ResourceHealthFluent> extends BaseFluent{ public V1ResourceHealthFluent() { } @@ -20,11 +22,11 @@ public V1ResourceHealthFluent(V1ResourceHealth instance) { private String resourceID; protected void copyInstance(V1ResourceHealth instance) { - instance = (instance != null ? instance : new V1ResourceHealth()); + instance = instance != null ? instance : new V1ResourceHealth(); if (instance != null) { - this.withHealth(instance.getHealth()); - this.withResourceID(instance.getResourceID()); - } + this.withHealth(instance.getHealth()); + this.withResourceID(instance.getResourceID()); + } } public String getHealth() { @@ -54,24 +56,41 @@ public boolean hasResourceID() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourceHealthFluent that = (V1ResourceHealthFluent) o; - if (!java.util.Objects.equals(health, that.health)) return false; - if (!java.util.Objects.equals(resourceID, that.resourceID)) return false; + if (!(Objects.equals(health, that.health))) { + return false; + } + if (!(Objects.equals(resourceID, that.resourceID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(health, resourceID, super.hashCode()); + return Objects.hash(health, resourceID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (health != null) { sb.append("health:"); sb.append(health + ","); } - if (resourceID != null) { sb.append("resourceID:"); sb.append(resourceID); } + if (!(health == null)) { + sb.append("health:"); + sb.append(health); + sb.append(","); + } + if (!(resourceID == null)) { + sb.append("resourceID:"); + sb.append(resourceID); + } sb.append("}"); return sb.toString(); } 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 a92476853c..ed014d09fb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourcePolicyRuleBuilder extends V1ResourcePolicyRuleFluent implements VisitableBuilder{ public V1ResourcePolicyRuleBuilder() { this(new V1ResourcePolicyRule()); 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 4d775d8be6..d0b938e746 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 @@ -1,20 +1,22 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; -import java.lang.String; import java.lang.Boolean; -import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourcePolicyRuleFluent> extends BaseFluent{ +public class V1ResourcePolicyRuleFluent> extends BaseFluent{ public V1ResourcePolicyRuleFluent() { } @@ -28,45 +30,70 @@ public V1ResourcePolicyRuleFluent(V1ResourcePolicyRule instance) { private List verbs; protected void copyInstance(V1ResourcePolicyRule instance) { - instance = (instance != null ? instance : new V1ResourcePolicyRule()); + instance = instance != null ? instance : new V1ResourcePolicyRule(); if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withClusterScope(instance.getClusterScope()); - this.withNamespaces(instance.getNamespaces()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); - } + this.withApiGroups(instance.getApiGroups()); + this.withClusterScope(instance.getClusterScope()); + this.withNamespaces(instance.getNamespaces()); + this.withResources(instance.getResources()); + this.withVerbs(instance.getVerbs()); + } } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + return (A) this; } public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.set(index, item); return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } - public A removeFromApiGroups(java.lang.String... items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public List getApiGroups() { @@ -115,7 +142,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -129,7 +156,7 @@ public A withApiGroups(java.lang.String... apiGroups) { } public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } public Boolean getClusterScope() { @@ -146,34 +173,59 @@ public boolean hasClusterScope() { } public A addToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } this.namespaces.add(index, item); - return (A)this; + return (A) this; } public A setToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - this.namespaces.set(index, item); return (A)this; + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + this.namespaces.set(index, item); + return (A) this; } - public A addToNamespaces(java.lang.String... items) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - for (String item : items) {this.namespaces.add(item);} return (A)this; + public A addToNamespaces(String... items) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + for (String item : items) { + this.namespaces.add(item); + } + return (A) this; } public A addAllToNamespaces(Collection items) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - for (String item : items) {this.namespaces.add(item);} return (A)this; + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + for (String item : items) { + this.namespaces.add(item); + } + return (A) this; } - public A removeFromNamespaces(java.lang.String... items) { - if (this.namespaces == null) return (A)this; - for (String item : items) { this.namespaces.remove(item);} return (A)this; + public A removeFromNamespaces(String... items) { + if (this.namespaces == null) { + return (A) this; + } + for (String item : items) { + this.namespaces.remove(item); + } + return (A) this; } public A removeAllFromNamespaces(Collection items) { - if (this.namespaces == null) return (A)this; - for (String item : items) { this.namespaces.remove(item);} return (A)this; + if (this.namespaces == null) { + return (A) this; + } + for (String item : items) { + this.namespaces.remove(item); + } + return (A) this; } public List getNamespaces() { @@ -222,7 +274,7 @@ public A withNamespaces(List namespaces) { return (A) this; } - public A withNamespaces(java.lang.String... namespaces) { + public A withNamespaces(String... namespaces) { if (this.namespaces != null) { this.namespaces.clear(); _visitables.remove("namespaces"); @@ -236,38 +288,63 @@ public A withNamespaces(java.lang.String... namespaces) { } public boolean hasNamespaces() { - return this.namespaces != null && !this.namespaces.isEmpty(); + return this.namespaces != null && !(this.namespaces.isEmpty()); } public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } this.resources.add(index, item); - return (A)this; + return (A) this; } public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public A removeFromResources(java.lang.String... items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public List getResources() { @@ -316,7 +393,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -330,38 +407,63 @@ public A withResources(java.lang.String... resources) { } public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + return this.resources != null && !(this.resources.isEmpty()); } public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} + if (this.verbs == null) { + this.verbs = new ArrayList(); + } this.verbs.add(index, item); - return (A)this; + return (A) this; } public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public List getVerbs() { @@ -410,7 +512,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -424,34 +526,69 @@ public A withVerbs(java.lang.String... verbs) { } public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); + return this.verbs != null && !(this.verbs.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourcePolicyRuleFluent that = (V1ResourcePolicyRuleFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(clusterScope, that.clusterScope)) return false; - if (!java.util.Objects.equals(namespaces, that.namespaces)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(clusterScope, that.clusterScope))) { + return false; + } + if (!(Objects.equals(namespaces, that.namespaces))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); + return Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } - if (clusterScope != null) { sb.append("clusterScope:"); sb.append(clusterScope + ","); } - if (namespaces != null && !namespaces.isEmpty()) { sb.append("namespaces:"); sb.append(namespaces + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(clusterScope == null)) { + sb.append("clusterScope:"); + sb.append(clusterScope); + sb.append(","); + } + if (!(namespaces == null) && !(namespaces.isEmpty())) { + sb.append("namespaces:"); + sb.append(namespaces); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..de4beb5e5f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourcePoolBuilder extends V1ResourcePoolFluent implements VisitableBuilder{ + public V1ResourcePoolBuilder() { + this(new V1ResourcePool()); + } + + public V1ResourcePoolBuilder(V1ResourcePoolFluent fluent) { + this(fluent, new V1ResourcePool()); + } + + public V1ResourcePoolBuilder(V1ResourcePoolFluent fluent,V1ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourcePoolBuilder(V1ResourcePool instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourcePoolFluent fluent; + + public V1ResourcePool build() { + V1ResourcePool buildable = new V1ResourcePool(); + buildable.setGeneration(fluent.getGeneration()); + buildable.setName(fluent.getName()); + buildable.setResourceSliceCount(fluent.getResourceSliceCount()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java new file mode 100644 index 0000000000..b88a47b49c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourcePoolFluent> extends BaseFluent{ + public V1ResourcePoolFluent() { + } + + public V1ResourcePoolFluent(V1ResourcePool instance) { + this.copyInstance(instance); + } + private Long generation; + private String name; + private Long resourceSliceCount; + + protected void copyInstance(V1ResourcePool instance) { + instance = instance != null ? instance : new V1ResourcePool(); + if (instance != null) { + this.withGeneration(instance.getGeneration()); + this.withName(instance.getName()); + this.withResourceSliceCount(instance.getResourceSliceCount()); + } + } + + public Long getGeneration() { + return this.generation; + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public String getName() { + return this.name; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public boolean hasName() { + return this.name != null; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourcePoolFluent that = (V1ResourcePoolFluent) o; + if (!(Objects.equals(generation, that.generation))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceSliceCount, that.resourceSliceCount))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(generation, name, resourceSliceCount); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(generation == null)) { + sb.append("generation:"); + sb.append(generation); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceSliceCount == null)) { + sb.append("resourceSliceCount:"); + sb.append(resourceSliceCount); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java index 5b506c9caa..fdc1ce2c14 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceQuotaBuilder extends V1ResourceQuotaFluent implements VisitableBuilder{ public V1ResourceQuotaBuilder() { this(new V1ResourceQuota()); 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 c9e52a58eb..a3fbe7fffc 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceQuotaFluent> extends BaseFluent{ +public class V1ResourceQuotaFluent> extends BaseFluent{ public V1ResourceQuotaFluent() { } @@ -24,14 +27,14 @@ public V1ResourceQuotaFluent(V1ResourceQuota instance) { private V1ResourceQuotaStatusBuilder status; protected void copyInstance(V1ResourceQuota instance) { - instance = (instance != null ? instance : new V1ResourceQuota()); + instance = instance != null ? instance : new V1ResourceQuota(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1ResourceQuotaSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1ResourceQuotaSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ResourceQuotaSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceQuotaSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1ResourceQuotaSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1ResourceQuotaStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1ResourceQuotaStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ResourceQuotaStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ResourceQuotaStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1ResourceQuotaStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourceQuotaFluent that = (V1ResourceQuotaFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 8cd33f5f94..b672507639 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceQuotaListBuilder extends V1ResourceQuotaListFluent implements VisitableBuilder{ public V1ResourceQuotaListBuilder() { this(new V1ResourceQuotaList()); 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 093f56791c..0ee0bea9b9 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceQuotaListFluent> extends BaseFluent{ +public class V1ResourceQuotaListFluent> extends BaseFluent{ public V1ResourceQuotaListFluent() { } @@ -29,13 +32,13 @@ public V1ResourceQuotaListFluent(V1ResourceQuotaList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ResourceQuotaList instance) { - instance = (instance != null ? instance : new V1ResourceQuotaList()); + instance = instance != null ? instance : new V1ResourceQuotaList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ResourceQuota item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ResourceQuota item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ResourceQuota item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ResourceQuota item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ResourceQuota... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { - if (this.items == null) return (A)this; - for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ResourceQuota... items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ResourceQuotaBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ResourceQuotaBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { + public A withItems(V1ResourceQuota... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ResourceQuota item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourceQuotaListFluent that = (V1ResourceQuotaListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ResourceQuotaFluent> implem int index; public N and() { - return (N) V1ResourceQuotaListFluent.this.setToItems(index,builder.build()); + return (N) V1ResourceQuotaListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 fed27b2673..a89e400594 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceQuotaSpecBuilder extends V1ResourceQuotaSpecFluent implements VisitableBuilder{ public V1ResourceQuotaSpecBuilder() { this(new V1ResourceQuotaSpec()); 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 89bd38d08b..5ccb5ad7d1 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 @@ -1,5 +1,7 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -8,6 +10,7 @@ import java.util.LinkedHashMap; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceQuotaSpecFluent> extends BaseFluent{ +public class V1ResourceQuotaSpecFluent> extends BaseFluent{ public V1ResourceQuotaSpecFluent() { } @@ -29,32 +32,56 @@ public V1ResourceQuotaSpecFluent(V1ResourceQuotaSpec instance) { private List scopes; protected void copyInstance(V1ResourceQuotaSpec instance) { - instance = (instance != null ? instance : new V1ResourceQuotaSpec()); + instance = instance != null ? instance : new V1ResourceQuotaSpec(); if (instance != null) { - this.withHard(instance.getHard()); - this.withScopeSelector(instance.getScopeSelector()); - this.withScopes(instance.getScopes()); - } + this.withHard(instance.getHard()); + this.withScopeSelector(instance.getScopeSelector()); + this.withScopes(instance.getScopes()); + } } public A addToHard(String key,Quantity value) { - if(this.hard == null && key != null && value != null) { this.hard = new LinkedHashMap(); } - if(key != null && value != null) {this.hard.put(key, value);} return (A)this; + if (this.hard == null && key != null && value != null) { + this.hard = new LinkedHashMap(); + } + if (key != null && value != null) { + this.hard.put(key, value); + } + return (A) this; } public A addToHard(Map map) { - if(this.hard == null && map != null) { this.hard = new LinkedHashMap(); } - if(map != null) { this.hard.putAll(map);} return (A)this; + if (this.hard == null && map != null) { + this.hard = new LinkedHashMap(); + } + if (map != null) { + this.hard.putAll(map); + } + return (A) this; } public A removeFromHard(String key) { - if(this.hard == null) { return (A) this; } - if(key != null && this.hard != null) {this.hard.remove(key);} return (A)this; + if (this.hard == null) { + return (A) this; + } + if (key != null && this.hard != null) { + this.hard.remove(key); + } + return (A) this; } public A removeFromHard(Map map) { - if(this.hard == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.hard != null){this.hard.remove(key);}}} return (A)this; + if (this.hard == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.hard != null) { + this.hard.remove(key); + } + } + } + return (A) this; } public Map getHard() { @@ -103,46 +130,71 @@ public ScopeSelectorNested withNewScopeSelectorLike(V1ScopeSelector item) { } public ScopeSelectorNested editScopeSelector() { - return withNewScopeSelectorLike(java.util.Optional.ofNullable(buildScopeSelector()).orElse(null)); + return this.withNewScopeSelectorLike(Optional.ofNullable(this.buildScopeSelector()).orElse(null)); } public ScopeSelectorNested editOrNewScopeSelector() { - return withNewScopeSelectorLike(java.util.Optional.ofNullable(buildScopeSelector()).orElse(new V1ScopeSelectorBuilder().build())); + return this.withNewScopeSelectorLike(Optional.ofNullable(this.buildScopeSelector()).orElse(new V1ScopeSelectorBuilder().build())); } public ScopeSelectorNested editOrNewScopeSelectorLike(V1ScopeSelector item) { - return withNewScopeSelectorLike(java.util.Optional.ofNullable(buildScopeSelector()).orElse(item)); + return this.withNewScopeSelectorLike(Optional.ofNullable(this.buildScopeSelector()).orElse(item)); } public A addToScopes(int index,String item) { - if (this.scopes == null) {this.scopes = new ArrayList();} + if (this.scopes == null) { + this.scopes = new ArrayList(); + } this.scopes.add(index, item); - return (A)this; + return (A) this; } public A setToScopes(int index,String item) { - if (this.scopes == null) {this.scopes = new ArrayList();} - this.scopes.set(index, item); return (A)this; + if (this.scopes == null) { + this.scopes = new ArrayList(); + } + this.scopes.set(index, item); + return (A) this; } - public A addToScopes(java.lang.String... items) { - if (this.scopes == null) {this.scopes = new ArrayList();} - for (String item : items) {this.scopes.add(item);} return (A)this; + public A addToScopes(String... items) { + if (this.scopes == null) { + this.scopes = new ArrayList(); + } + for (String item : items) { + this.scopes.add(item); + } + return (A) this; } public A addAllToScopes(Collection items) { - if (this.scopes == null) {this.scopes = new ArrayList();} - for (String item : items) {this.scopes.add(item);} return (A)this; + if (this.scopes == null) { + this.scopes = new ArrayList(); + } + for (String item : items) { + this.scopes.add(item); + } + return (A) this; } - public A removeFromScopes(java.lang.String... items) { - if (this.scopes == null) return (A)this; - for (String item : items) { this.scopes.remove(item);} return (A)this; + public A removeFromScopes(String... items) { + if (this.scopes == null) { + return (A) this; + } + for (String item : items) { + this.scopes.remove(item); + } + return (A) this; } public A removeAllFromScopes(Collection items) { - if (this.scopes == null) return (A)this; - for (String item : items) { this.scopes.remove(item);} return (A)this; + if (this.scopes == null) { + return (A) this; + } + for (String item : items) { + this.scopes.remove(item); + } + return (A) this; } public List getScopes() { @@ -191,7 +243,7 @@ public A withScopes(List scopes) { return (A) this; } - public A withScopes(java.lang.String... scopes) { + public A withScopes(String... scopes) { if (this.scopes != null) { this.scopes.clear(); _visitables.remove("scopes"); @@ -205,30 +257,53 @@ public A withScopes(java.lang.String... scopes) { } public boolean hasScopes() { - return this.scopes != null && !this.scopes.isEmpty(); + return this.scopes != null && !(this.scopes.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourceQuotaSpecFluent that = (V1ResourceQuotaSpecFluent) o; - if (!java.util.Objects.equals(hard, that.hard)) return false; - if (!java.util.Objects.equals(scopeSelector, that.scopeSelector)) return false; - if (!java.util.Objects.equals(scopes, that.scopes)) return false; + if (!(Objects.equals(hard, that.hard))) { + return false; + } + if (!(Objects.equals(scopeSelector, that.scopeSelector))) { + return false; + } + if (!(Objects.equals(scopes, that.scopes))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(hard, scopeSelector, scopes, super.hashCode()); + return Objects.hash(hard, scopeSelector, scopes); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hard != null && !hard.isEmpty()) { sb.append("hard:"); sb.append(hard + ","); } - if (scopeSelector != null) { sb.append("scopeSelector:"); sb.append(scopeSelector + ","); } - if (scopes != null && !scopes.isEmpty()) { sb.append("scopes:"); sb.append(scopes); } + if (!(hard == null) && !(hard.isEmpty())) { + sb.append("hard:"); + sb.append(hard); + sb.append(","); + } + if (!(scopeSelector == null)) { + sb.append("scopeSelector:"); + sb.append(scopeSelector); + sb.append(","); + } + if (!(scopes == null) && !(scopes.isEmpty())) { + sb.append("scopes:"); + sb.append(scopes); + } sb.append("}"); return sb.toString(); } 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 300a780578..930d829c36 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceQuotaStatusBuilder extends V1ResourceQuotaStatusFluent implements VisitableBuilder{ public V1ResourceQuotaStatusBuilder() { this(new V1ResourceQuotaStatus()); 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 29f673841e..5253d34cd6 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -12,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceQuotaStatusFluent> extends BaseFluent{ +public class V1ResourceQuotaStatusFluent> extends BaseFluent{ public V1ResourceQuotaStatusFluent() { } @@ -23,31 +25,55 @@ public V1ResourceQuotaStatusFluent(V1ResourceQuotaStatus instance) { private Map used; protected void copyInstance(V1ResourceQuotaStatus instance) { - instance = (instance != null ? instance : new V1ResourceQuotaStatus()); + instance = instance != null ? instance : new V1ResourceQuotaStatus(); if (instance != null) { - this.withHard(instance.getHard()); - this.withUsed(instance.getUsed()); - } + this.withHard(instance.getHard()); + this.withUsed(instance.getUsed()); + } } public A addToHard(String key,Quantity value) { - if(this.hard == null && key != null && value != null) { this.hard = new LinkedHashMap(); } - if(key != null && value != null) {this.hard.put(key, value);} return (A)this; + if (this.hard == null && key != null && value != null) { + this.hard = new LinkedHashMap(); + } + if (key != null && value != null) { + this.hard.put(key, value); + } + return (A) this; } public A addToHard(Map map) { - if(this.hard == null && map != null) { this.hard = new LinkedHashMap(); } - if(map != null) { this.hard.putAll(map);} return (A)this; + if (this.hard == null && map != null) { + this.hard = new LinkedHashMap(); + } + if (map != null) { + this.hard.putAll(map); + } + return (A) this; } public A removeFromHard(String key) { - if(this.hard == null) { return (A) this; } - if(key != null && this.hard != null) {this.hard.remove(key);} return (A)this; + if (this.hard == null) { + return (A) this; + } + if (key != null && this.hard != null) { + this.hard.remove(key); + } + return (A) this; } public A removeFromHard(Map map) { - if(this.hard == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.hard != null){this.hard.remove(key);}}} return (A)this; + if (this.hard == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.hard != null) { + this.hard.remove(key); + } + } + } + return (A) this; } public Map getHard() { @@ -68,23 +94,47 @@ public boolean hasHard() { } public A addToUsed(String key,Quantity value) { - if(this.used == null && key != null && value != null) { this.used = new LinkedHashMap(); } - if(key != null && value != null) {this.used.put(key, value);} return (A)this; + if (this.used == null && key != null && value != null) { + this.used = new LinkedHashMap(); + } + if (key != null && value != null) { + this.used.put(key, value); + } + return (A) this; } public A addToUsed(Map map) { - if(this.used == null && map != null) { this.used = new LinkedHashMap(); } - if(map != null) { this.used.putAll(map);} return (A)this; + if (this.used == null && map != null) { + this.used = new LinkedHashMap(); + } + if (map != null) { + this.used.putAll(map); + } + return (A) this; } public A removeFromUsed(String key) { - if(this.used == null) { return (A) this; } - if(key != null && this.used != null) {this.used.remove(key);} return (A)this; + if (this.used == null) { + return (A) this; + } + if (key != null && this.used != null) { + this.used.remove(key); + } + return (A) this; } public A removeFromUsed(Map map) { - if(this.used == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.used != null){this.used.remove(key);}}} return (A)this; + if (this.used == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.used != null) { + this.used.remove(key); + } + } + } + return (A) this; } public Map getUsed() { @@ -105,24 +155,41 @@ public boolean hasUsed() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourceQuotaStatusFluent that = (V1ResourceQuotaStatusFluent) o; - if (!java.util.Objects.equals(hard, that.hard)) return false; - if (!java.util.Objects.equals(used, that.used)) return false; + if (!(Objects.equals(hard, that.hard))) { + return false; + } + if (!(Objects.equals(used, that.used))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(hard, used, super.hashCode()); + return Objects.hash(hard, used); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hard != null && !hard.isEmpty()) { sb.append("hard:"); sb.append(hard + ","); } - if (used != null && !used.isEmpty()) { sb.append("used:"); sb.append(used); } + if (!(hard == null) && !(hard.isEmpty())) { + sb.append("hard:"); + sb.append(hard); + sb.append(","); + } + if (!(used == null) && !(used.isEmpty())) { + sb.append("used:"); + sb.append(used); + } sb.append("}"); return sb.toString(); } 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 ac2778937a..f74cf79fa4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceRequirementsBuilder extends V1ResourceRequirementsFluent implements VisitableBuilder{ public V1ResourceRequirementsBuilder() { this(new V1ResourceRequirements()); 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 a119515c87..7366bf6393 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 @@ -1,6 +1,6 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -8,8 +8,10 @@ import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -19,29 +21,31 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceRequirementsFluent> extends BaseFluent{ +public class V1ResourceRequirementsFluent> extends BaseFluent{ public V1ResourceRequirementsFluent() { } public V1ResourceRequirementsFluent(V1ResourceRequirements instance) { this.copyInstance(instance); } - private ArrayList claims; + private ArrayList claims; private Map limits; private Map requests; protected void copyInstance(V1ResourceRequirements instance) { - instance = (instance != null ? instance : new V1ResourceRequirements()); + instance = instance != null ? instance : new V1ResourceRequirements(); if (instance != null) { - this.withClaims(instance.getClaims()); - this.withLimits(instance.getLimits()); - this.withRequests(instance.getRequests()); - } + this.withClaims(instance.getClaims()); + this.withLimits(instance.getLimits()); + this.withRequests(instance.getRequests()); + } } - public A addToClaims(int index,V1ResourceClaim item) { - if (this.claims == null) {this.claims = new ArrayList();} - V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item); + public A addToClaims(int index,CoreV1ResourceClaim item) { + if (this.claims == null) { + this.claims = new ArrayList(); + } + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); if (index < 0 || index >= claims.size()) { _visitables.get("claims").add(builder); claims.add(builder); @@ -49,12 +53,14 @@ public A addToClaims(int index,V1ResourceClaim item) { _visitables.get("claims").add(builder); claims.add(index, builder); } - return (A)this; + return (A) this; } - public A setToClaims(int index,V1ResourceClaim item) { - if (this.claims == null) {this.claims = new ArrayList();} - V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item); + public A setToClaims(int index,CoreV1ResourceClaim item) { + if (this.claims == null) { + this.claims = new ArrayList(); + } + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); if (index < 0 || index >= claims.size()) { _visitables.get("claims").add(builder); claims.add(builder); @@ -62,61 +68,91 @@ public A setToClaims(int index,V1ResourceClaim item) { _visitables.get("claims").add(builder); claims.set(index, builder); } - return (A)this; + return (A) this; } - public A addToClaims(io.kubernetes.client.openapi.models.V1ResourceClaim... items) { - if (this.claims == null) {this.claims = new ArrayList();} - for (V1ResourceClaim item : items) {V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item);_visitables.get("claims").add(builder);this.claims.add(builder);} return (A)this; + public A addToClaims(CoreV1ResourceClaim... items) { + if (this.claims == null) { + this.claims = new ArrayList(); + } + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").add(builder); + this.claims.add(builder); + } + return (A) this; } - public A addAllToClaims(Collection items) { - if (this.claims == null) {this.claims = new ArrayList();} - for (V1ResourceClaim item : items) {V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item);_visitables.get("claims").add(builder);this.claims.add(builder);} return (A)this; + public A addAllToClaims(Collection items) { + if (this.claims == null) { + this.claims = new ArrayList(); + } + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").add(builder); + this.claims.add(builder); + } + return (A) this; } - public A removeFromClaims(io.kubernetes.client.openapi.models.V1ResourceClaim... items) { - if (this.claims == null) return (A)this; - for (V1ResourceClaim item : items) {V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item);_visitables.get("claims").remove(builder); this.claims.remove(builder);} return (A)this; + public A removeFromClaims(CoreV1ResourceClaim... items) { + if (this.claims == null) { + return (A) this; + } + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").remove(builder); + this.claims.remove(builder); + } + return (A) this; } - public A removeAllFromClaims(Collection items) { - if (this.claims == null) return (A)this; - for (V1ResourceClaim item : items) {V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item);_visitables.get("claims").remove(builder); this.claims.remove(builder);} return (A)this; + public A removeAllFromClaims(Collection items) { + if (this.claims == null) { + return (A) this; + } + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").remove(builder); + this.claims.remove(builder); + } + return (A) this; } - public A removeMatchingFromClaims(Predicate predicate) { - if (claims == null) return (A) this; - final Iterator each = claims.iterator(); - final List visitables = _visitables.get("claims"); + public A removeMatchingFromClaims(Predicate predicate) { + if (claims == null) { + return (A) this; + } + Iterator each = claims.iterator(); + List visitables = _visitables.get("claims"); while (each.hasNext()) { - V1ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + CoreV1ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildClaims() { + public List buildClaims() { return this.claims != null ? build(claims) : null; } - public V1ResourceClaim buildClaim(int index) { + public CoreV1ResourceClaim buildClaim(int index) { return this.claims.get(index).build(); } - public V1ResourceClaim buildFirstClaim() { + public CoreV1ResourceClaim buildFirstClaim() { return this.claims.get(0).build(); } - public V1ResourceClaim buildLastClaim() { + public CoreV1ResourceClaim buildLastClaim() { return this.claims.get(claims.size() - 1).build(); } - public V1ResourceClaim buildMatchingClaim(Predicate predicate) { - for (V1ResourceClaimBuilder item : claims) { + public CoreV1ResourceClaim buildMatchingClaim(Predicate predicate) { + for (CoreV1ResourceClaimBuilder item : claims) { if (predicate.test(item)) { return item.build(); } @@ -124,8 +160,8 @@ public V1ResourceClaim buildMatchingClaim(Predicate pred return null; } - public boolean hasMatchingClaim(Predicate predicate) { - for (V1ResourceClaimBuilder item : claims) { + public boolean hasMatchingClaim(Predicate predicate) { + for (CoreV1ResourceClaimBuilder item : claims) { if (predicate.test(item)) { return true; } @@ -133,13 +169,13 @@ public boolean hasMatchingClaim(Predicate predicate) { return false; } - public A withClaims(List claims) { + public A withClaims(List claims) { if (this.claims != null) { this._visitables.get("claims").clear(); } if (claims != null) { this.claims = new ArrayList(); - for (V1ResourceClaim item : claims) { + for (CoreV1ResourceClaim item : claims) { this.addToClaims(item); } } else { @@ -148,13 +184,13 @@ public A withClaims(List claims) { return (A) this; } - public A withClaims(io.kubernetes.client.openapi.models.V1ResourceClaim... claims) { + public A withClaims(CoreV1ResourceClaim... claims) { if (this.claims != null) { this.claims.clear(); _visitables.remove("claims"); } if (claims != null) { - for (V1ResourceClaim item : claims) { + for (CoreV1ResourceClaim item : claims) { this.addToClaims(item); } } @@ -162,64 +198,99 @@ public A withClaims(io.kubernetes.client.openapi.models.V1ResourceClaim... claim } public boolean hasClaims() { - return this.claims != null && !this.claims.isEmpty(); + return this.claims != null && !(this.claims.isEmpty()); } public ClaimsNested addNewClaim() { return new ClaimsNested(-1, null); } - public ClaimsNested addNewClaimLike(V1ResourceClaim item) { + public ClaimsNested addNewClaimLike(CoreV1ResourceClaim item) { return new ClaimsNested(-1, item); } - public ClaimsNested setNewClaimLike(int index,V1ResourceClaim item) { + public ClaimsNested setNewClaimLike(int index,CoreV1ResourceClaim item) { return new ClaimsNested(index, item); } public ClaimsNested editClaim(int index) { - if (claims.size() <= index) throw new RuntimeException("Can't edit claims. Index exceeds size."); - return setNewClaimLike(index, buildClaim(index)); + if (index <= claims.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "claims")); + } + return this.setNewClaimLike(index, this.buildClaim(index)); } public ClaimsNested editFirstClaim() { - if (claims.size() == 0) throw new RuntimeException("Can't edit first claims. The list is empty."); - return setNewClaimLike(0, buildClaim(0)); + if (claims.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "claims")); + } + return this.setNewClaimLike(0, this.buildClaim(0)); } public ClaimsNested editLastClaim() { int index = claims.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last claims. The list is empty."); - return setNewClaimLike(index, buildClaim(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "claims")); + } + return this.setNewClaimLike(index, this.buildClaim(index)); } - public ClaimsNested editMatchingClaim(Predicate predicate) { + public ClaimsNested editMatchingClaim(Predicate predicate) { int index = -1; - for (int i=0;i map) { - if(this.limits == null && map != null) { this.limits = new LinkedHashMap(); } - if(map != null) { this.limits.putAll(map);} return (A)this; + if (this.limits == null && map != null) { + this.limits = new LinkedHashMap(); + } + if (map != null) { + this.limits.putAll(map); + } + return (A) this; } public A removeFromLimits(String key) { - if(this.limits == null) { return (A) this; } - if(key != null && this.limits != null) {this.limits.remove(key);} return (A)this; + if (this.limits == null) { + return (A) this; + } + if (key != null && this.limits != null) { + this.limits.remove(key); + } + return (A) this; } public A removeFromLimits(Map map) { - if(this.limits == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.limits != null){this.limits.remove(key);}}} return (A)this; + if (this.limits == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.limits != null) { + this.limits.remove(key); + } + } + } + return (A) this; } public Map getLimits() { @@ -240,23 +311,47 @@ public boolean hasLimits() { } public A addToRequests(String key,Quantity value) { - if(this.requests == null && key != null && value != null) { this.requests = new LinkedHashMap(); } - if(key != null && value != null) {this.requests.put(key, value);} return (A)this; + if (this.requests == null && key != null && value != null) { + this.requests = new LinkedHashMap(); + } + if (key != null && value != null) { + this.requests.put(key, value); + } + return (A) this; } public A addToRequests(Map map) { - if(this.requests == null && map != null) { this.requests = new LinkedHashMap(); } - if(map != null) { this.requests.putAll(map);} return (A)this; + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); + } + if (map != null) { + this.requests.putAll(map); + } + return (A) this; } public A removeFromRequests(String key) { - if(this.requests == null) { return (A) this; } - if(key != null && this.requests != null) {this.requests.remove(key);} return (A)this; + if (this.requests == null) { + return (A) this; + } + if (key != null && this.requests != null) { + this.requests.remove(key); + } + return (A) this; } public A removeFromRequests(Map map) { - if(this.requests == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.requests != null){this.requests.remove(key);}}} return (A)this; + if (this.requests == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.requests != null) { + this.requests.remove(key); + } + } + } + return (A) this; } public Map getRequests() { @@ -277,39 +372,62 @@ public boolean hasRequests() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourceRequirementsFluent that = (V1ResourceRequirementsFluent) o; - if (!java.util.Objects.equals(claims, that.claims)) return false; - if (!java.util.Objects.equals(limits, that.limits)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!(Objects.equals(claims, that.claims))) { + return false; + } + if (!(Objects.equals(limits, that.limits))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(claims, limits, requests, super.hashCode()); + return Objects.hash(claims, limits, requests); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (claims != null && !claims.isEmpty()) { sb.append("claims:"); sb.append(claims + ","); } - if (limits != null && !limits.isEmpty()) { sb.append("limits:"); sb.append(limits + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + if (!(claims == null) && !(claims.isEmpty())) { + sb.append("claims:"); + sb.append(claims); + sb.append(","); + } + if (!(limits == null) && !(limits.isEmpty())) { + sb.append("limits:"); + sb.append(limits); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } sb.append("}"); return sb.toString(); } - public class ClaimsNested extends V1ResourceClaimFluent> implements Nested{ - ClaimsNested(int index,V1ResourceClaim item) { + public class ClaimsNested extends CoreV1ResourceClaimFluent> implements Nested{ + ClaimsNested(int index,CoreV1ResourceClaim item) { this.index = index; - this.builder = new V1ResourceClaimBuilder(this, item); + this.builder = new CoreV1ResourceClaimBuilder(this, item); } - V1ResourceClaimBuilder builder; + CoreV1ResourceClaimBuilder builder; int index; public N and() { - return (N) V1ResourceRequirementsFluent.this.setToClaims(index,builder.build()); + return (N) V1ResourceRequirementsFluent.this.setToClaims(index, builder.build()); } public N endClaim() { 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 3c8a999f6c..993311f50c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceRuleBuilder extends V1ResourceRuleFluent implements VisitableBuilder{ public V1ResourceRuleBuilder() { this(new V1ResourceRule()); 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 fa3711d9af..d6430a414d 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceRuleFluent> extends BaseFluent{ +public class V1ResourceRuleFluent> extends BaseFluent{ public V1ResourceRuleFluent() { } @@ -26,44 +28,69 @@ public V1ResourceRuleFluent(V1ResourceRule instance) { private List verbs; protected void copyInstance(V1ResourceRule instance) { - instance = (instance != null ? instance : new V1ResourceRule()); + instance = instance != null ? instance : new V1ResourceRule(); if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); - } + this.withApiGroups(instance.getApiGroups()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withVerbs(instance.getVerbs()); + } } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + return (A) this; } public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.set(index, item); return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } - public A removeFromApiGroups(java.lang.String... items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public List getApiGroups() { @@ -112,7 +139,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -126,38 +153,63 @@ public A withApiGroups(java.lang.String... apiGroups) { } public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } public A addToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } this.resourceNames.add(index, item); - return (A)this; + return (A) this; } public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - this.resourceNames.set(index, item); return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(index, item); + return (A) this; } - public A addToResourceNames(java.lang.String... items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } - public A removeFromResourceNames(java.lang.String... items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public List getResourceNames() { @@ -206,7 +258,7 @@ public A withResourceNames(List resourceNames) { return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { + public A withResourceNames(String... resourceNames) { if (this.resourceNames != null) { this.resourceNames.clear(); _visitables.remove("resourceNames"); @@ -220,38 +272,63 @@ public A withResourceNames(java.lang.String... resourceNames) { } public boolean hasResourceNames() { - return this.resourceNames != null && !this.resourceNames.isEmpty(); + return this.resourceNames != null && !(this.resourceNames.isEmpty()); } public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } this.resources.add(index, item); - return (A)this; + return (A) this; } public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public A removeFromResources(java.lang.String... items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public List getResources() { @@ -300,7 +377,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -314,38 +391,63 @@ public A withResources(java.lang.String... resources) { } public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + return this.resources != null && !(this.resources.isEmpty()); } public A addToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} + if (this.verbs == null) { + this.verbs = new ArrayList(); + } this.verbs.add(index, item); - return (A)this; + return (A) this; } public A setToVerbs(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.set(index, item); return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public A addToVerbs(java.lang.String... items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } public A addAllToVerbs(Collection items) { - if (this.verbs == null) {this.verbs = new ArrayList();} - for (String item : items) {this.verbs.add(item);} return (A)this; + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } - public A removeFromVerbs(java.lang.String... items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } public List getVerbs() { @@ -394,7 +496,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -408,32 +510,61 @@ public A withVerbs(java.lang.String... verbs) { } public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); + return this.verbs != null && !(this.verbs.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ResourceRuleFluent that = (V1ResourceRuleFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(resourceNames, that.resourceNames)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroups, resourceNames, resources, verbs, super.hashCode()); + return Objects.hash(apiGroups, resourceNames, resources, verbs); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } - if (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs); } + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..6a92b9d9fe --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceSliceBuilder extends V1ResourceSliceFluent implements VisitableBuilder{ + public V1ResourceSliceBuilder() { + this(new V1ResourceSlice()); + } + + public V1ResourceSliceBuilder(V1ResourceSliceFluent fluent) { + this(fluent, new V1ResourceSlice()); + } + + public V1ResourceSliceBuilder(V1ResourceSliceFluent fluent,V1ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceSliceBuilder(V1ResourceSlice instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceSliceFluent fluent; + + public V1ResourceSlice build() { + V1ResourceSlice buildable = new V1ResourceSlice(); + 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/V1alpha3ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java similarity index 53% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java index 98af52d4cf..ffeb394e91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java @@ -1,35 +1,38 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3ResourceSliceFluent> extends BaseFluent{ - public V1alpha3ResourceSliceFluent() { +public class V1ResourceSliceFluent> extends BaseFluent{ + public V1ResourceSliceFluent() { } - public V1alpha3ResourceSliceFluent(V1alpha3ResourceSlice instance) { + public V1ResourceSliceFluent(V1ResourceSlice instance) { this.copyInstance(instance); } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1alpha3ResourceSliceSpecBuilder spec; + private V1ResourceSliceSpecBuilder spec; - protected void copyInstance(V1alpha3ResourceSlice instance) { - instance = (instance != null ? instance : new V1alpha3ResourceSlice()); + protected void copyInstance(V1ResourceSlice instance) { + instance = instance != null ? instance : new V1ResourceSlice(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,25 +90,25 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha3ResourceSliceSpec buildSpec() { + public V1ResourceSliceSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(V1alpha3ResourceSliceSpec spec) { + public A withSpec(V1ResourceSliceSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1alpha3ResourceSliceSpecBuilder(spec); + this.spec = new V1ResourceSliceSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { this.spec = null; @@ -122,45 +125,74 @@ public SpecNested withNewSpec() { return new SpecNested(null); } - public SpecNested withNewSpecLike(V1alpha3ResourceSliceSpec item) { + public SpecNested withNewSpecLike(V1ResourceSliceSpec item) { return new SpecNested(item); } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3ResourceSliceSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceSliceSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1alpha3ResourceSliceSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + public SpecNested editOrNewSpecLike(V1ResourceSliceSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourceSliceFluent that = (V1alpha3ResourceSliceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceSliceFluent that = (V1ResourceSliceFluent) 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } @@ -171,7 +203,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp V1ObjectMetaBuilder builder; public N and() { - return (N) V1alpha3ResourceSliceFluent.this.withMetadata(builder.build()); + return (N) V1ResourceSliceFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -180,14 +212,14 @@ public N endMetadata() { } - public class SpecNested extends V1alpha3ResourceSliceSpecFluent> implements Nested{ - SpecNested(V1alpha3ResourceSliceSpec item) { - this.builder = new V1alpha3ResourceSliceSpecBuilder(this, item); + public class SpecNested extends V1ResourceSliceSpecFluent> implements Nested{ + SpecNested(V1ResourceSliceSpec item) { + this.builder = new V1ResourceSliceSpecBuilder(this, item); } - V1alpha3ResourceSliceSpecBuilder builder; + V1ResourceSliceSpecBuilder builder; public N and() { - return (N) V1alpha3ResourceSliceFluent.this.withSpec(builder.build()); + return (N) V1ResourceSliceFluent.this.withSpec(builder.build()); } public N endSpec() { 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 new file mode 100644 index 0000000000..f241e02f1f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceSliceListBuilder extends V1ResourceSliceListFluent implements VisitableBuilder{ + public V1ResourceSliceListBuilder() { + this(new V1ResourceSliceList()); + } + + public V1ResourceSliceListBuilder(V1ResourceSliceListFluent fluent) { + this(fluent, new V1ResourceSliceList()); + } + + public V1ResourceSliceListBuilder(V1ResourceSliceListFluent fluent,V1ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceSliceListBuilder(V1ResourceSliceList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceSliceListFluent fluent; + + public V1ResourceSliceList build() { + V1ResourceSliceList buildable = new V1ResourceSliceList(); + 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/V1ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java new file mode 100644 index 0000000000..e5f4d34100 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java @@ -0,0 +1,408 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceSliceListFluent> extends BaseFluent{ + public V1ResourceSliceListFluent() { + } + + public V1ResourceSliceListFluent(V1ResourceSliceList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1ResourceSliceList instance) { + instance = instance != null ? instance : new V1ResourceSliceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1ResourceSlice item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A) this; + } + + public A setToItems(int index,V1ResourceSlice item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public A addToItems(V1ResourceSlice... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A removeFromItems(V1ResourceSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(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 = _visitables.get("items"); + while (each.hasNext()) { + V1ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1ResourceSlice buildItem(int index) { + return this.items.get(index).build(); + } + + public V1ResourceSlice buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ResourceSlice buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1ResourceSlice buildMatchingItem(Predicate predicate) { + for (V1ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ResourceSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ResourceSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ResourceSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ResourceSlice item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1ResourceSlice item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + 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 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 String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + 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; + } + V1ResourceSliceListFluent that = (V1ResourceSliceListFluent) 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 int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 class ItemsNested extends V1ResourceSliceFluent> implements Nested{ + ItemsNested(int index,V1ResourceSlice item) { + this.index = index; + this.builder = new V1ResourceSliceBuilder(this, item); + } + V1ResourceSliceBuilder builder; + int index; + + public N and() { + return (N) V1ResourceSliceListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1ResourceSliceListFluent.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/V1ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java new file mode 100644 index 0000000000..5e86e1f727 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceSliceSpecBuilder extends V1ResourceSliceSpecFluent implements VisitableBuilder{ + public V1ResourceSliceSpecBuilder() { + this(new V1ResourceSliceSpec()); + } + + public V1ResourceSliceSpecBuilder(V1ResourceSliceSpecFluent fluent) { + this(fluent, new V1ResourceSliceSpec()); + } + + public V1ResourceSliceSpecBuilder(V1ResourceSliceSpecFluent fluent,V1ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceSliceSpecBuilder(V1ResourceSliceSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1ResourceSliceSpecFluent fluent; + + public V1ResourceSliceSpec build() { + V1ResourceSliceSpec buildable = new V1ResourceSliceSpec(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setDevices(fluent.buildDevices()); + buildable.setDriver(fluent.getDriver()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeSelector(fluent.buildNodeSelector()); + buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); + buildable.setPool(fluent.buildPool()); + buildable.setSharedCounters(fluent.buildSharedCounters()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java new file mode 100644 index 0000000000..7f7ba3a1ff --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java @@ -0,0 +1,765 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceSliceSpecFluent> extends BaseFluent{ + public V1ResourceSliceSpecFluent() { + } + + public V1ResourceSliceSpecFluent(V1ResourceSliceSpec instance) { + this.copyInstance(instance); + } + private Boolean allNodes; + private ArrayList devices; + private String driver; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; + private V1ResourcePoolBuilder pool; + private ArrayList sharedCounters; + + protected void copyInstance(V1ResourceSliceSpec instance) { + instance = instance != null ? instance : new V1ResourceSliceSpec(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public A addToDevices(int index,V1Device item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1DeviceBuilder builder = new V1DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); + } + return (A) this; + } + + public A setToDevices(int index,V1Device item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1DeviceBuilder builder = new V1DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A) this; + } + + public A addToDevices(V1Device... items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; + } + + public A removeFromDevices(V1Device... items) { + if (this.devices == null) { + return (A) this; + } + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; + } + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1Device buildDevice(int index) { + return this.devices.get(index).build(); + } + + public V1Device buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1Device buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1Device buildMatchingDevice(Predicate predicate) { + for (V1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1Device item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1Device... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1Device item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1Device item) { + return new DevicesNested(-1, item); + } + + public DevicesNested setNewDeviceLike(int index,V1Device item) { + return new DevicesNested(index, item); + } + + public DevicesNested editDevice(int index) { + if (index <= devices.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < devices.size();i++) { + if (predicate.test(devices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public String getDriver() { + return this.driver; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public String getNodeName() { + return this.nodeName; + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + + public V1ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; + } + + public A withPool(V1ResourcePool pool) { + this._visitables.remove("pool"); + if (pool != null) { + this.pool = new V1ResourcePoolBuilder(pool); + this._visitables.get("pool").add(this.pool); + } else { + this.pool = null; + this._visitables.get("pool").remove(this.pool); + } + return (A) this; + } + + public boolean hasPool() { + return this.pool != null; + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1ResourcePool item) { + return new PoolNested(item); + } + + public PoolNested editPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); + } + + public PoolNested editOrNewPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1ResourcePoolBuilder().build())); + } + + public PoolNested editOrNewPoolLike(V1ResourcePool item) { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); + } + + public A addToSharedCounters(int index,V1CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); + } + return (A) this; + } + + public A setToSharedCounters(int index,V1CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); + } + return (A) this; + } + + public A addToSharedCounters(V1CounterSet... items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); + } + return (A) this; + } + + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); + } + return (A) this; + } + + public A removeFromSharedCounters(V1CounterSet... items) { + if (this.sharedCounters == null) { + return (A) this; + } + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); + } + return (A) this; + } + + public A removeAllFromSharedCounters(Collection items) { + if (this.sharedCounters == null) { + return (A) this; + } + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) { + return (A) this; + } + Iterator each = sharedCounters.iterator(); + List visitables = _visitables.get("sharedCounters"); + while (each.hasNext()) { + V1CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + public V1CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public V1CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(V1CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1CounterSet item) { + return new SharedCountersNested(index, item); + } + + public SharedCountersNested editSharedCounter(int index) { + if (index <= sharedCounters.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < sharedCounters.size();i++) { + if (predicate.test(sharedCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(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; + } + V1ResourceSliceSpecFluent that = (V1ResourceSliceSpecFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(sharedCounters, that.sharedCounters))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allNodes == null)) { + sb.append("allNodes:"); + sb.append(allNodes); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(perDeviceNodeSelection == null)) { + sb.append("perDeviceNodeSelection:"); + sb.append(perDeviceNodeSelection); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(sharedCounters == null) && !(sharedCounters.isEmpty())) { + sb.append("sharedCounters:"); + sb.append(sharedCounters); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllNodes() { + return withAllNodes(true); + } + + public A withPerDeviceNodeSelection() { + return withPerDeviceNodeSelection(true); + } + public class DevicesNested extends V1DeviceFluent> implements Nested{ + DevicesNested(int index,V1Device item) { + this.index = index; + this.builder = new V1DeviceBuilder(this, item); + } + V1DeviceBuilder builder; + int index; + + public N and() { + return (N) V1ResourceSliceSpecFluent.this.setToDevices(index, builder.build()); + } + + public N endDevice() { + return and(); + } + + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + + } + public class PoolNested extends V1ResourcePoolFluent> implements Nested{ + PoolNested(V1ResourcePool item) { + this.builder = new V1ResourcePoolBuilder(this, item); + } + V1ResourcePoolBuilder builder; + + public N and() { + return (N) V1ResourceSliceSpecFluent.this.withPool(builder.build()); + } + + public N endPool() { + return and(); + } + + + } + public class SharedCountersNested extends V1CounterSetFluent> implements Nested{ + SharedCountersNested(int index,V1CounterSet item) { + this.index = index; + this.builder = new V1CounterSetBuilder(this, item); + } + V1CounterSetBuilder builder; + int index; + + public N and() { + return (N) V1ResourceSliceSpecFluent.this.setToSharedCounters(index, builder.build()); + } + + public N endSharedCounter() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java index 1877e04ca6..2987d89e63 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceStatusBuilder extends V1ResourceStatusFluent implements VisitableBuilder{ public V1ResourceStatusBuilder() { this(new V1ResourceStatus()); 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 30ccb6b399..94c1105106 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceStatusFluent> extends BaseFluent{ +public class V1ResourceStatusFluent> extends BaseFluent{ public V1ResourceStatusFluent() { } @@ -27,11 +29,11 @@ public V1ResourceStatusFluent(V1ResourceStatus instance) { private ArrayList resources; protected void copyInstance(V1ResourceStatus instance) { - instance = (instance != null ? instance : new V1ResourceStatus()); + instance = instance != null ? instance : new V1ResourceStatus(); if (instance != null) { - this.withName(instance.getName()); - this.withResources(instance.getResources()); - } + this.withName(instance.getName()); + this.withResources(instance.getResources()); + } } public String getName() { @@ -48,7 +50,9 @@ public boolean hasName() { } public A addToResources(int index,V1ResourceHealth item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); @@ -57,11 +61,13 @@ public A addToResources(int index,V1ResourceHealth item) { _visitables.get("resources").add(builder); resources.add(index, builder); } - return (A)this; + return (A) this; } public A setToResources(int index,V1ResourceHealth item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); @@ -70,41 +76,71 @@ public A setToResources(int index,V1ResourceHealth item) { _visitables.get("resources").add(builder); resources.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResources(io.kubernetes.client.openapi.models.V1ResourceHealth... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (V1ResourceHealth item : items) {V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; + public A addToResources(V1ResourceHealth... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V1ResourceHealth item : items) { + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + _visitables.get("resources").add(builder); + this.resources.add(builder); + } + return (A) this; } public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (V1ResourceHealth item : items) {V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V1ResourceHealth item : items) { + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + _visitables.get("resources").add(builder); + this.resources.add(builder); + } + return (A) this; } - public A removeFromResources(io.kubernetes.client.openapi.models.V1ResourceHealth... items) { - if (this.resources == null) return (A)this; - for (V1ResourceHealth item : items) {V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item);_visitables.get("resources").remove(builder); this.resources.remove(builder);} return (A)this; + public A removeFromResources(V1ResourceHealth... items) { + if (this.resources == null) { + return (A) this; + } + for (V1ResourceHealth item : items) { + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; } public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (V1ResourceHealth item : items) {V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item);_visitables.get("resources").remove(builder); this.resources.remove(builder);} return (A)this; + if (this.resources == null) { + return (A) this; + } + for (V1ResourceHealth item : items) { + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; } public A removeMatchingFromResources(Predicate predicate) { - if (resources == null) return (A) this; - final Iterator each = resources.iterator(); - final List visitables = _visitables.get("resources"); + if (resources == null) { + return (A) this; + } + Iterator each = resources.iterator(); + List visitables = _visitables.get("resources"); while (each.hasNext()) { - V1ResourceHealthBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ResourceHealthBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResources() { @@ -156,7 +192,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(io.kubernetes.client.openapi.models.V1ResourceHealth... resources) { + public A withResources(V1ResourceHealth... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -170,7 +206,7 @@ public A withResources(io.kubernetes.client.openapi.models.V1ResourceHealth... r } public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + return this.resources != null && !(this.resources.isEmpty()); } public ResourcesNested addNewResource() { @@ -186,49 +222,77 @@ public ResourcesNested setNewResourceLike(int index,V1ResourceHealth item) { } public ResourcesNested editResource(int index) { - if (resources.size() <= index) throw new RuntimeException("Can't edit resources. Index exceeds size."); - return setNewResourceLike(index, buildResource(index)); + if (index <= resources.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); } public ResourcesNested editFirstResource() { - if (resources.size() == 0) throw new RuntimeException("Can't edit first resources. The list is empty."); - return setNewResourceLike(0, buildResource(0)); + if (resources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(0, this.buildResource(0)); } public ResourcesNested editLastResource() { int index = resources.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resources. The list is empty."); - return setNewResourceLike(index, buildResource(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); } public ResourcesNested editMatchingResource(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ResourceHealthFluent implements VisitableBuilder{ public V1RoleBindingBuilder() { this(new V1RoleBinding()); 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 69a7cc407b..d0600d345e 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1RoleBindingFluent> extends BaseFluent{ +public class V1RoleBindingFluent> extends BaseFluent{ public V1RoleBindingFluent() { } @@ -30,14 +33,14 @@ public V1RoleBindingFluent(V1RoleBinding instance) { private ArrayList subjects; protected void copyInstance(V1RoleBinding instance) { - instance = (instance != null ? instance : new V1RoleBinding()); + instance = instance != null ? instance : new V1RoleBinding(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRoleRef(instance.getRoleRef()); - this.withSubjects(instance.getSubjects()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRoleRef(instance.getRoleRef()); + this.withSubjects(instance.getSubjects()); + } } public String getApiVersion() { @@ -95,15 +98,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1RoleRef buildRoleRef() { @@ -135,19 +138,21 @@ public RoleRefNested withNewRoleRefLike(V1RoleRef item) { } public RoleRefNested editRoleRef() { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(null)); + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(null)); } public RoleRefNested editOrNewRoleRef() { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(new V1RoleRefBuilder().build())); + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(new V1RoleRefBuilder().build())); } public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(item)); + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(item)); } public A addToSubjects(int index,RbacV1Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} + if (this.subjects == null) { + this.subjects = new ArrayList(); + } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); @@ -156,11 +161,13 @@ public A addToSubjects(int index,RbacV1Subject item) { _visitables.get("subjects").add(builder); subjects.add(index, builder); } - return (A)this; + return (A) this; } public A setToSubjects(int index,RbacV1Subject item) { - if (this.subjects == null) {this.subjects = new ArrayList();} + if (this.subjects == null) { + this.subjects = new ArrayList(); + } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); @@ -169,41 +176,71 @@ public A setToSubjects(int index,RbacV1Subject item) { _visitables.get("subjects").add(builder); subjects.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + public A addToSubjects(RbacV1Subject... items) { + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").add(builder); + this.subjects.add(builder); + } + return (A) this; } public A addAllToSubjects(Collection items) { - if (this.subjects == null) {this.subjects = new ArrayList();} - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").add(builder);this.subjects.add(builder);} return (A)this; + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").add(builder); + this.subjects.add(builder); + } + return (A) this; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { - if (this.subjects == null) return (A)this; - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + public A removeFromSubjects(RbacV1Subject... items) { + if (this.subjects == null) { + return (A) this; + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; } public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) return (A)this; - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + if (this.subjects == null) { + return (A) this; + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; } public A removeMatchingFromSubjects(Predicate predicate) { - if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); - final List visitables = _visitables.get("subjects"); + if (subjects == null) { + return (A) this; + } + Iterator each = subjects.iterator(); + List visitables = _visitables.get("subjects"); while (each.hasNext()) { - RbacV1SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + RbacV1SubjectBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSubjects() { @@ -255,7 +292,7 @@ public A withSubjects(List subjects) { return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subjects) { + public A withSubjects(RbacV1Subject... subjects) { if (this.subjects != null) { this.subjects.clear(); _visitables.remove("subjects"); @@ -269,7 +306,7 @@ public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subje } public boolean hasSubjects() { - return this.subjects != null && !this.subjects.isEmpty(); + return this.subjects != null && !(this.subjects.isEmpty()); } public SubjectsNested addNewSubject() { @@ -285,55 +322,101 @@ public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { } public SubjectsNested editSubject(int index) { - if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); - return setNewSubjectLike(index, buildSubject(index)); + if (index <= subjects.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } public SubjectsNested editFirstSubject() { - if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); - return setNewSubjectLike(0, buildSubject(0)); + if (subjects.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(0, this.buildSubject(0)); } public SubjectsNested editLastSubject() { int index = subjects.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last subjects. The list is empty."); - return setNewSubjectLike(index, buildSubject(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } public SubjectsNested editMatchingSubject(Predicate predicate) { int index = -1; - for (int i=0;i extends RbacV1SubjectFluent> im int index; public N and() { - return (N) V1RoleBindingFluent.this.setToSubjects(index,builder.build()); + return (N) V1RoleBindingFluent.this.setToSubjects(index, builder.build()); } public N endSubject() { 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 4b97be5863..b52fccb4d7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RoleBindingListBuilder extends V1RoleBindingListFluent implements VisitableBuilder{ public V1RoleBindingListBuilder() { this(new V1RoleBindingList()); 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 b5e3b15232..559805d7ba 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RoleBindingListFluent> extends BaseFluent{ +public class V1RoleBindingListFluent> extends BaseFluent{ public V1RoleBindingListFluent() { } @@ -29,13 +32,13 @@ public V1RoleBindingListFluent(V1RoleBindingList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1RoleBindingList instance) { - instance = (instance != null ? instance : new V1RoleBindingList()); + instance = instance != null ? instance : new V1RoleBindingList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1RoleBinding item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1RoleBinding item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1RoleBinding item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1RoleBinding item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1RoleBinding... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { - if (this.items == null) return (A)this; - for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1RoleBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1RoleBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1RoleBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { + public A withItems(V1RoleBinding... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1RoleBinding item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RoleBindingListFluent that = (V1RoleBindingListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1RoleBindingFluent> implemen int index; public N and() { - return (N) V1RoleBindingListFluent.this.setToItems(index,builder.build()); + return (N) V1RoleBindingListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 8e3c62cc16..6a2c6c1801 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RoleBuilder extends V1RoleFluent implements VisitableBuilder{ public V1RoleBuilder() { this(new V1Role()); 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 f29c0649c5..3db87d48d6 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RoleFluent> extends BaseFluent{ +public class V1RoleFluent> extends BaseFluent{ public V1RoleFluent() { } @@ -29,13 +32,13 @@ public V1RoleFluent(V1Role instance) { private ArrayList rules; protected void copyInstance(V1Role instance) { - instance = (instance != null ? instance : new V1Role()); + instance = instance != null ? instance : new V1Role(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRules(instance.getRules()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRules(instance.getRules()); + } } public String getApiVersion() { @@ -93,19 +96,21 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public A addToRules(int index,V1PolicyRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -114,11 +119,13 @@ public A addToRules(int index,V1PolicyRule item) { _visitables.get("rules").add(builder); rules.add(index, builder); } - return (A)this; + return (A) this; } public A setToRules(int index,V1PolicyRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -127,41 +134,71 @@ public A setToRules(int index,V1PolicyRule item) { _visitables.get("rules").add(builder); rules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public A addToRules(V1PolicyRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - if (this.rules == null) return (A)this; - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A removeFromRules(V1PolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1PolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRules() { @@ -213,7 +250,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { + public A withRules(V1PolicyRule... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -227,7 +264,7 @@ public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { } public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + return this.rules != null && !(this.rules.isEmpty()); } public RulesNested addNewRule() { @@ -243,53 +280,93 @@ public RulesNested setNewRuleLike(int index,V1PolicyRule item) { } public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); + if (index <= rules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } public RulesNested editLastRule() { int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1PolicyRuleFluent> implement int index; public N and() { - return (N) V1RoleFluent.this.setToRules(index,builder.build()); + return (N) V1RoleFluent.this.setToRules(index, builder.build()); } public N endRule() { 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 f6691cfde0..b55f9bdcf7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RoleListBuilder extends V1RoleListFluent implements VisitableBuilder{ public V1RoleListBuilder() { this(new V1RoleList()); 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 8af44845a8..40bb3b5039 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RoleListFluent> extends BaseFluent{ +public class V1RoleListFluent> extends BaseFluent{ public V1RoleListFluent() { } @@ -29,13 +32,13 @@ public V1RoleListFluent(V1RoleList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1RoleList instance) { - instance = (instance != null ? instance : new V1RoleList()); + instance = instance != null ? instance : new V1RoleList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Role item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1RoleBuilder builder = new V1RoleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Role item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Role item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1RoleBuilder builder = new V1RoleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Role item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Role... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Role... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Role... items) { - if (this.items == null) return (A)this; - for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Role... items) { + if (this.items == null) { + return (A) this; + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1RoleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1RoleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Role... items) { + public A withItems(V1Role... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Role... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Role item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RoleListFluent that = (V1RoleListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1RoleFluent> implements Nest int index; public N and() { - return (N) V1RoleListFluent.this.setToItems(index,builder.build()); + return (N) V1RoleListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 bf87789b64..bea6a84629 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RoleRefBuilder extends V1RoleRefFluent implements VisitableBuilder{ public V1RoleRefBuilder() { this(new V1RoleRef()); 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 bd8b0737c4..7e0928e5f6 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1RoleRefFluent> extends BaseFluent{ +public class V1RoleRefFluent> extends BaseFluent{ public V1RoleRefFluent() { } @@ -21,12 +23,12 @@ public V1RoleRefFluent(V1RoleRef instance) { private String name; protected void copyInstance(V1RoleRef instance) { - instance = (instance != null ? instance : new V1RoleRef()); + instance = instance != null ? instance : new V1RoleRef(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - } + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } } public String getApiGroup() { @@ -69,26 +71,49 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RoleRefFluent that = (V1RoleRefFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + 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(); } 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 6f1cb211f0..96f798316e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RollingUpdateDaemonSetBuilder extends V1RollingUpdateDaemonSetFluent implements VisitableBuilder{ public V1RollingUpdateDaemonSetBuilder() { this(new V1RollingUpdateDaemonSet()); 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 2c071af1f5..f09c37c40b 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1RollingUpdateDaemonSetFluent> extends BaseFluent{ +public class V1RollingUpdateDaemonSetFluent> extends BaseFluent{ public V1RollingUpdateDaemonSetFluent() { } @@ -21,11 +23,11 @@ public V1RollingUpdateDaemonSetFluent(V1RollingUpdateDaemonSet instance) { private IntOrString maxUnavailable; protected void copyInstance(V1RollingUpdateDaemonSet instance) { - instance = (instance != null ? instance : new V1RollingUpdateDaemonSet()); + instance = instance != null ? instance : new V1RollingUpdateDaemonSet(); if (instance != null) { - this.withMaxSurge(instance.getMaxSurge()); - this.withMaxUnavailable(instance.getMaxUnavailable()); - } + this.withMaxSurge(instance.getMaxSurge()); + this.withMaxUnavailable(instance.getMaxUnavailable()); + } } public IntOrString getMaxSurge() { @@ -42,11 +44,11 @@ public boolean hasMaxSurge() { } public A withNewMaxSurge(int value) { - return (A)withMaxSurge(new IntOrString(value)); + return (A) this.withMaxSurge(new IntOrString(value)); } public A withNewMaxSurge(String value) { - return (A)withMaxSurge(new IntOrString(value)); + return (A) this.withMaxSurge(new IntOrString(value)); } public IntOrString getMaxUnavailable() { @@ -63,32 +65,49 @@ public boolean hasMaxUnavailable() { } public A withNewMaxUnavailable(int value) { - return (A)withMaxUnavailable(new IntOrString(value)); + return (A) this.withMaxUnavailable(new IntOrString(value)); } public A withNewMaxUnavailable(String value) { - return (A)withMaxUnavailable(new IntOrString(value)); + return (A) this.withMaxUnavailable(new IntOrString(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RollingUpdateDaemonSetFluent that = (V1RollingUpdateDaemonSetFluent) o; - if (!java.util.Objects.equals(maxSurge, that.maxSurge)) return false; - if (!java.util.Objects.equals(maxUnavailable, that.maxUnavailable)) return false; + if (!(Objects.equals(maxSurge, that.maxSurge))) { + return false; + } + if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); + return Objects.hash(maxSurge, maxUnavailable); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxSurge != null) { sb.append("maxSurge:"); sb.append(maxSurge + ","); } - if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable); } + if (!(maxSurge == null)) { + sb.append("maxSurge:"); + sb.append(maxSurge); + sb.append(","); + } + if (!(maxUnavailable == null)) { + sb.append("maxUnavailable:"); + sb.append(maxUnavailable); + } sb.append("}"); return sb.toString(); } 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 14e05d6d99..cefd5bb866 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RollingUpdateDeploymentBuilder extends V1RollingUpdateDeploymentFluent implements VisitableBuilder{ public V1RollingUpdateDeploymentBuilder() { this(new V1RollingUpdateDeployment()); 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 82cbfbbe84..02f5d94b6f 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1RollingUpdateDeploymentFluent> extends BaseFluent{ +public class V1RollingUpdateDeploymentFluent> extends BaseFluent{ public V1RollingUpdateDeploymentFluent() { } @@ -21,11 +23,11 @@ public V1RollingUpdateDeploymentFluent(V1RollingUpdateDeployment instance) { private IntOrString maxUnavailable; protected void copyInstance(V1RollingUpdateDeployment instance) { - instance = (instance != null ? instance : new V1RollingUpdateDeployment()); + instance = instance != null ? instance : new V1RollingUpdateDeployment(); if (instance != null) { - this.withMaxSurge(instance.getMaxSurge()); - this.withMaxUnavailable(instance.getMaxUnavailable()); - } + this.withMaxSurge(instance.getMaxSurge()); + this.withMaxUnavailable(instance.getMaxUnavailable()); + } } public IntOrString getMaxSurge() { @@ -42,11 +44,11 @@ public boolean hasMaxSurge() { } public A withNewMaxSurge(int value) { - return (A)withMaxSurge(new IntOrString(value)); + return (A) this.withMaxSurge(new IntOrString(value)); } public A withNewMaxSurge(String value) { - return (A)withMaxSurge(new IntOrString(value)); + return (A) this.withMaxSurge(new IntOrString(value)); } public IntOrString getMaxUnavailable() { @@ -63,32 +65,49 @@ public boolean hasMaxUnavailable() { } public A withNewMaxUnavailable(int value) { - return (A)withMaxUnavailable(new IntOrString(value)); + return (A) this.withMaxUnavailable(new IntOrString(value)); } public A withNewMaxUnavailable(String value) { - return (A)withMaxUnavailable(new IntOrString(value)); + return (A) this.withMaxUnavailable(new IntOrString(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RollingUpdateDeploymentFluent that = (V1RollingUpdateDeploymentFluent) o; - if (!java.util.Objects.equals(maxSurge, that.maxSurge)) return false; - if (!java.util.Objects.equals(maxUnavailable, that.maxUnavailable)) return false; + if (!(Objects.equals(maxSurge, that.maxSurge))) { + return false; + } + if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); + return Objects.hash(maxSurge, maxUnavailable); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxSurge != null) { sb.append("maxSurge:"); sb.append(maxSurge + ","); } - if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable); } + if (!(maxSurge == null)) { + sb.append("maxSurge:"); + sb.append(maxSurge); + sb.append(","); + } + if (!(maxUnavailable == null)) { + sb.append("maxUnavailable:"); + sb.append(maxUnavailable); + } sb.append("}"); return sb.toString(); } 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 dd1f6a065b..6dba4e1332 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RollingUpdateStatefulSetStrategyBuilder extends V1RollingUpdateStatefulSetStrategyFluent implements VisitableBuilder{ public V1RollingUpdateStatefulSetStrategyBuilder() { this(new V1RollingUpdateStatefulSetStrategy()); 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 ce8d066ff8..9dc575e69f 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1RollingUpdateStatefulSetStrategyFluent> extends BaseFluent{ +public class V1RollingUpdateStatefulSetStrategyFluent> extends BaseFluent{ public V1RollingUpdateStatefulSetStrategyFluent() { } @@ -22,11 +24,11 @@ public V1RollingUpdateStatefulSetStrategyFluent(V1RollingUpdateStatefulSetStrate private Integer partition; protected void copyInstance(V1RollingUpdateStatefulSetStrategy instance) { - instance = (instance != null ? instance : new V1RollingUpdateStatefulSetStrategy()); + instance = instance != null ? instance : new V1RollingUpdateStatefulSetStrategy(); if (instance != null) { - this.withMaxUnavailable(instance.getMaxUnavailable()); - this.withPartition(instance.getPartition()); - } + this.withMaxUnavailable(instance.getMaxUnavailable()); + this.withPartition(instance.getPartition()); + } } public IntOrString getMaxUnavailable() { @@ -43,11 +45,11 @@ public boolean hasMaxUnavailable() { } public A withNewMaxUnavailable(int value) { - return (A)withMaxUnavailable(new IntOrString(value)); + return (A) this.withMaxUnavailable(new IntOrString(value)); } public A withNewMaxUnavailable(String value) { - return (A)withMaxUnavailable(new IntOrString(value)); + return (A) this.withMaxUnavailable(new IntOrString(value)); } public Integer getPartition() { @@ -64,24 +66,41 @@ public boolean hasPartition() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RollingUpdateStatefulSetStrategyFluent that = (V1RollingUpdateStatefulSetStrategyFluent) o; - if (!java.util.Objects.equals(maxUnavailable, that.maxUnavailable)) return false; - if (!java.util.Objects.equals(partition, that.partition)) return false; + if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { + return false; + } + if (!(Objects.equals(partition, that.partition))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(maxUnavailable, partition, super.hashCode()); + return Objects.hash(maxUnavailable, partition); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable + ","); } - if (partition != null) { sb.append("partition:"); sb.append(partition); } + if (!(maxUnavailable == null)) { + sb.append("maxUnavailable:"); + sb.append(maxUnavailable); + sb.append(","); + } + if (!(partition == null)) { + sb.append("partition:"); + sb.append(partition); + } sb.append("}"); return sb.toString(); } 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 c0d8b6b5ee..ab8ee3ea2b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RuleWithOperationsBuilder extends V1RuleWithOperationsFluent implements VisitableBuilder{ public V1RuleWithOperationsBuilder() { this(new V1RuleWithOperations()); 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 39fcea9908..29f8cd9098 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1RuleWithOperationsFluent> extends BaseFluent{ +public class V1RuleWithOperationsFluent> extends BaseFluent{ public V1RuleWithOperationsFluent() { } @@ -27,45 +29,70 @@ public V1RuleWithOperationsFluent(V1RuleWithOperations instance) { private String scope; protected void copyInstance(V1RuleWithOperations instance) { - instance = (instance != null ? instance : new V1RuleWithOperations()); + instance = instance != null ? instance : new V1RuleWithOperations(); if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withApiVersions(instance.getApiVersions()); - this.withOperations(instance.getOperations()); - this.withResources(instance.getResources()); - this.withScope(instance.getScope()); - } + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); + } } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + return (A) this; } public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.set(index, item); return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } - public A removeFromApiGroups(java.lang.String... items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public List getApiGroups() { @@ -114,7 +141,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -128,38 +155,63 @@ public A withApiGroups(java.lang.String... apiGroups) { } public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } public A addToApiVersions(int index,String item) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } this.apiVersions.add(index, item); - return (A)this; + return (A) this; } public A setToApiVersions(int index,String item) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - this.apiVersions.set(index, item); return (A)this; + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(index, item); + return (A) this; } - public A addToApiVersions(java.lang.String... items) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - for (String item : items) {this.apiVersions.add(item);} return (A)this; + public A addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); + } + return (A) this; } public A addAllToApiVersions(Collection items) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - for (String item : items) {this.apiVersions.add(item);} return (A)this; + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); + } + return (A) this; } - public A removeFromApiVersions(java.lang.String... items) { - if (this.apiVersions == null) return (A)this; - for (String item : items) { this.apiVersions.remove(item);} return (A)this; + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } public A removeAllFromApiVersions(Collection items) { - if (this.apiVersions == null) return (A)this; - for (String item : items) { this.apiVersions.remove(item);} return (A)this; + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } public List getApiVersions() { @@ -208,7 +260,7 @@ public A withApiVersions(List apiVersions) { return (A) this; } - public A withApiVersions(java.lang.String... apiVersions) { + public A withApiVersions(String... apiVersions) { if (this.apiVersions != null) { this.apiVersions.clear(); _visitables.remove("apiVersions"); @@ -222,38 +274,63 @@ public A withApiVersions(java.lang.String... apiVersions) { } public boolean hasApiVersions() { - return this.apiVersions != null && !this.apiVersions.isEmpty(); + return this.apiVersions != null && !(this.apiVersions.isEmpty()); } public A addToOperations(int index,String item) { - if (this.operations == null) {this.operations = new ArrayList();} + if (this.operations == null) { + this.operations = new ArrayList(); + } this.operations.add(index, item); - return (A)this; + return (A) this; } public A setToOperations(int index,String item) { - if (this.operations == null) {this.operations = new ArrayList();} - this.operations.set(index, item); return (A)this; + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.set(index, item); + return (A) this; } - public A addToOperations(java.lang.String... items) { - if (this.operations == null) {this.operations = new ArrayList();} - for (String item : items) {this.operations.add(item);} return (A)this; + public A addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } public A addAllToOperations(Collection items) { - if (this.operations == null) {this.operations = new ArrayList();} - for (String item : items) {this.operations.add(item);} return (A)this; + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } - public A removeFromOperations(java.lang.String... items) { - if (this.operations == null) return (A)this; - for (String item : items) { this.operations.remove(item);} return (A)this; + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } public A removeAllFromOperations(Collection items) { - if (this.operations == null) return (A)this; - for (String item : items) { this.operations.remove(item);} return (A)this; + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } public List getOperations() { @@ -302,7 +379,7 @@ public A withOperations(List operations) { return (A) this; } - public A withOperations(java.lang.String... operations) { + public A withOperations(String... operations) { if (this.operations != null) { this.operations.clear(); _visitables.remove("operations"); @@ -316,38 +393,63 @@ public A withOperations(java.lang.String... operations) { } public boolean hasOperations() { - return this.operations != null && !this.operations.isEmpty(); + return this.operations != null && !(this.operations.isEmpty()); } public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } this.resources.add(index, item); - return (A)this; + return (A) this; } public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public A removeFromResources(java.lang.String... items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public List getResources() { @@ -396,7 +498,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -410,7 +512,7 @@ public A withResources(java.lang.String... resources) { } public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + return this.resources != null && !(this.resources.isEmpty()); } public String getScope() { @@ -427,30 +529,65 @@ public boolean hasScope() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RuleWithOperationsFluent that = (V1RuleWithOperationsFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(apiVersions, that.apiVersions)) return false; - if (!java.util.Objects.equals(operations, that.operations)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(scope, that.scope)) return false; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroups, apiVersions, operations, resources, scope, super.hashCode()); + return Objects.hash(apiGroups, apiVersions, operations, resources, scope); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } - if (apiVersions != null && !apiVersions.isEmpty()) { sb.append("apiVersions:"); sb.append(apiVersions + ","); } - if (operations != null && !operations.isEmpty()) { sb.append("operations:"); sb.append(operations + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } - if (scope != null) { sb.append("scope:"); sb.append(scope); } + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(apiVersions == null) && !(apiVersions.isEmpty())) { + sb.append("apiVersions:"); + sb.append(apiVersions); + sb.append(","); + } + if (!(operations == null) && !(operations.isEmpty())) { + sb.append("operations:"); + sb.append(operations); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } sb.append("}"); return sb.toString(); } 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 4a6e60709a..8e2d5d375e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RuntimeClassBuilder extends V1RuntimeClassFluent implements VisitableBuilder{ public V1RuntimeClassBuilder() { this(new V1RuntimeClass()); 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 1c607dbad4..c91762c985 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RuntimeClassFluent> extends BaseFluent{ +public class V1RuntimeClassFluent> extends BaseFluent{ public V1RuntimeClassFluent() { } @@ -25,15 +28,15 @@ public V1RuntimeClassFluent(V1RuntimeClass instance) { private V1SchedulingBuilder scheduling; protected void copyInstance(V1RuntimeClass instance) { - instance = (instance != null ? instance : new V1RuntimeClass()); + instance = instance != null ? instance : new V1RuntimeClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withHandler(instance.getHandler()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withOverhead(instance.getOverhead()); - this.withScheduling(instance.getScheduling()); - } + this.withApiVersion(instance.getApiVersion()); + this.withHandler(instance.getHandler()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withOverhead(instance.getOverhead()); + this.withScheduling(instance.getScheduling()); + } } public String getApiVersion() { @@ -104,15 +107,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1Overhead buildOverhead() { @@ -144,15 +147,15 @@ public OverheadNested withNewOverheadLike(V1Overhead item) { } public OverheadNested editOverhead() { - return withNewOverheadLike(java.util.Optional.ofNullable(buildOverhead()).orElse(null)); + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(null)); } public OverheadNested editOrNewOverhead() { - return withNewOverheadLike(java.util.Optional.ofNullable(buildOverhead()).orElse(new V1OverheadBuilder().build())); + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(new V1OverheadBuilder().build())); } public OverheadNested editOrNewOverheadLike(V1Overhead item) { - return withNewOverheadLike(java.util.Optional.ofNullable(buildOverhead()).orElse(item)); + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(item)); } public V1Scheduling buildScheduling() { @@ -184,44 +187,85 @@ public SchedulingNested withNewSchedulingLike(V1Scheduling item) { } public SchedulingNested editScheduling() { - return withNewSchedulingLike(java.util.Optional.ofNullable(buildScheduling()).orElse(null)); + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(null)); } public SchedulingNested editOrNewScheduling() { - return withNewSchedulingLike(java.util.Optional.ofNullable(buildScheduling()).orElse(new V1SchedulingBuilder().build())); + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(new V1SchedulingBuilder().build())); } public SchedulingNested editOrNewSchedulingLike(V1Scheduling item) { - return withNewSchedulingLike(java.util.Optional.ofNullable(buildScheduling()).orElse(item)); + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RuntimeClassFluent that = (V1RuntimeClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(handler, that.handler)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(overhead, that.overhead)) return false; - if (!java.util.Objects.equals(scheduling, that.scheduling)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(handler, that.handler))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(overhead, that.overhead))) { + return false; + } + if (!(Objects.equals(scheduling, that.scheduling))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, handler, kind, metadata, overhead, scheduling, super.hashCode()); + return Objects.hash(apiVersion, handler, kind, metadata, overhead, scheduling); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (handler != null) { sb.append("handler:"); sb.append(handler + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (overhead != null) { sb.append("overhead:"); sb.append(overhead + ","); } - if (scheduling != null) { sb.append("scheduling:"); sb.append(scheduling); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(handler == null)) { + sb.append("handler:"); + sb.append(handler); + 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 (!(overhead == null)) { + sb.append("overhead:"); + sb.append(overhead); + sb.append(","); + } + if (!(scheduling == null)) { + sb.append("scheduling:"); + sb.append(scheduling); + } sb.append("}"); return sb.toString(); } 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 8486bb68ef..ee6e419287 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RuntimeClassListBuilder extends V1RuntimeClassListFluent implements VisitableBuilder{ public V1RuntimeClassListBuilder() { this(new V1RuntimeClassList()); 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 ffb2120b73..0b0f6ee02f 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RuntimeClassListFluent> extends BaseFluent{ +public class V1RuntimeClassListFluent> extends BaseFluent{ public V1RuntimeClassListFluent() { } @@ -29,13 +32,13 @@ public V1RuntimeClassListFluent(V1RuntimeClassList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1RuntimeClassList instance) { - instance = (instance != null ? instance : new V1RuntimeClassList()); + instance = instance != null ? instance : new V1RuntimeClassList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1RuntimeClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1RuntimeClass item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1RuntimeClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1RuntimeClass item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1RuntimeClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { - if (this.items == null) return (A)this; - for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1RuntimeClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1RuntimeClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1RuntimeClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { + public A withItems(V1RuntimeClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1RuntimeClass item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1RuntimeClassListFluent that = (V1RuntimeClassListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1RuntimeClassFluent> impleme int index; public N and() { - return (N) V1RuntimeClassListFluent.this.setToItems(index,builder.build()); + return (N) V1RuntimeClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 87dede1097..b24d1fb4e6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SELinuxOptionsBuilder extends V1SELinuxOptionsFluent implements VisitableBuilder{ public V1SELinuxOptionsBuilder() { this(new V1SELinuxOptions()); 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 1283c5736c..7cd5f1af77 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SELinuxOptionsFluent> extends BaseFluent{ +public class V1SELinuxOptionsFluent> extends BaseFluent{ public V1SELinuxOptionsFluent() { } @@ -22,13 +24,13 @@ public V1SELinuxOptionsFluent(V1SELinuxOptions instance) { private String user; protected void copyInstance(V1SELinuxOptions instance) { - instance = (instance != null ? instance : new V1SELinuxOptions()); + instance = instance != null ? instance : new V1SELinuxOptions(); if (instance != null) { - this.withLevel(instance.getLevel()); - this.withRole(instance.getRole()); - this.withType(instance.getType()); - this.withUser(instance.getUser()); - } + this.withLevel(instance.getLevel()); + this.withRole(instance.getRole()); + this.withType(instance.getType()); + this.withUser(instance.getUser()); + } } public String getLevel() { @@ -84,28 +86,57 @@ public boolean hasUser() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SELinuxOptionsFluent that = (V1SELinuxOptionsFluent) o; - if (!java.util.Objects.equals(level, that.level)) return false; - if (!java.util.Objects.equals(role, that.role)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; + if (!(Objects.equals(level, that.level))) { + return false; + } + if (!(Objects.equals(role, that.role))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(level, role, type, user, super.hashCode()); + return Objects.hash(level, role, type, user); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (level != null) { sb.append("level:"); sb.append(level + ","); } - if (role != null) { sb.append("role:"); sb.append(role + ","); } - if (type != null) { sb.append("type:"); sb.append(type + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } + if (!(level == null)) { + sb.append("level:"); + sb.append(level); + sb.append(","); + } + if (!(role == null)) { + sb.append("role:"); + sb.append(role); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } sb.append("}"); return sb.toString(); } 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 a4657fcd2b..8a672ef924 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleBuilder extends V1ScaleFluent implements VisitableBuilder{ public V1ScaleBuilder() { this(new V1Scale()); 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 2ecd469dc4..cb70716f68 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleFluent> extends BaseFluent{ +public class V1ScaleFluent> extends BaseFluent{ public V1ScaleFluent() { } @@ -24,14 +27,14 @@ public V1ScaleFluent(V1Scale instance) { private V1ScaleStatusBuilder status; protected void copyInstance(V1Scale instance) { - instance = (instance != null ? instance : new V1Scale()); + instance = instance != null ? instance : new V1Scale(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1ScaleSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1ScaleSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ScaleSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ScaleSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1ScaleSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1ScaleStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1ScaleStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ScaleStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ScaleStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1ScaleStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ScaleFluent that = (V1ScaleFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 c4c41cc940..32f5350d55 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleIOPersistentVolumeSourceBuilder extends V1ScaleIOPersistentVolumeSourceFluent implements VisitableBuilder{ public V1ScaleIOPersistentVolumeSourceBuilder() { this(new V1ScaleIOPersistentVolumeSource()); 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 f38035752e..a991eab44a 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 @@ -1,9 +1,12 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; @@ -11,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleIOPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1ScaleIOPersistentVolumeSourceFluent> extends BaseFluent{ public V1ScaleIOPersistentVolumeSourceFluent() { } @@ -30,19 +33,19 @@ public V1ScaleIOPersistentVolumeSourceFluent(V1ScaleIOPersistentVolumeSource ins private String volumeName; protected void copyInstance(V1ScaleIOPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1ScaleIOPersistentVolumeSource()); + instance = instance != null ? instance : new V1ScaleIOPersistentVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withGateway(instance.getGateway()); - this.withProtectionDomain(instance.getProtectionDomain()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withSslEnabled(instance.getSslEnabled()); - this.withStorageMode(instance.getStorageMode()); - this.withStoragePool(instance.getStoragePool()); - this.withSystem(instance.getSystem()); - this.withVolumeName(instance.getVolumeName()); - } + this.withFsType(instance.getFsType()); + this.withGateway(instance.getGateway()); + this.withProtectionDomain(instance.getProtectionDomain()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withSslEnabled(instance.getSslEnabled()); + this.withStorageMode(instance.getStorageMode()); + this.withStoragePool(instance.getStoragePool()); + this.withSystem(instance.getSystem()); + this.withVolumeName(instance.getVolumeName()); + } } public String getFsType() { @@ -126,15 +129,15 @@ public SecretRefNested withNewSecretRefLike(V1SecretReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public Boolean getSslEnabled() { @@ -203,40 +206,105 @@ public boolean hasVolumeName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ScaleIOPersistentVolumeSourceFluent that = (V1ScaleIOPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(gateway, that.gateway)) return false; - if (!java.util.Objects.equals(protectionDomain, that.protectionDomain)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(sslEnabled, that.sslEnabled)) return false; - if (!java.util.Objects.equals(storageMode, that.storageMode)) return false; - if (!java.util.Objects.equals(storagePool, that.storagePool)) return false; - if (!java.util.Objects.equals(system, that.system)) return false; - if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(gateway, that.gateway))) { + return false; + } + if (!(Objects.equals(protectionDomain, that.protectionDomain))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(sslEnabled, that.sslEnabled))) { + return false; + } + if (!(Objects.equals(storageMode, that.storageMode))) { + return false; + } + if (!(Objects.equals(storagePool, that.storagePool))) { + return false; + } + if (!(Objects.equals(system, that.system))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName, super.hashCode()); + return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (gateway != null) { sb.append("gateway:"); sb.append(gateway + ","); } - if (protectionDomain != null) { sb.append("protectionDomain:"); sb.append(protectionDomain + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (sslEnabled != null) { sb.append("sslEnabled:"); sb.append(sslEnabled + ","); } - if (storageMode != null) { sb.append("storageMode:"); sb.append(storageMode + ","); } - if (storagePool != null) { sb.append("storagePool:"); sb.append(storagePool + ","); } - if (system != null) { sb.append("system:"); sb.append(system + ","); } - if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(gateway == null)) { + sb.append("gateway:"); + sb.append(gateway); + sb.append(","); + } + if (!(protectionDomain == null)) { + sb.append("protectionDomain:"); + sb.append(protectionDomain); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(sslEnabled == null)) { + sb.append("sslEnabled:"); + sb.append(sslEnabled); + sb.append(","); + } + if (!(storageMode == null)) { + sb.append("storageMode:"); + sb.append(storageMode); + sb.append(","); + } + if (!(storagePool == null)) { + sb.append("storagePool:"); + sb.append(storagePool); + sb.append(","); + } + if (!(system == null)) { + sb.append("system:"); + sb.append(system); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + } sb.append("}"); return sb.toString(); } 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 1470252a33..eee626a5ce 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleIOVolumeSourceBuilder extends V1ScaleIOVolumeSourceFluent implements VisitableBuilder{ public V1ScaleIOVolumeSourceBuilder() { this(new V1ScaleIOVolumeSource()); 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 5090f4378b..2435ba2fdb 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 @@ -1,9 +1,12 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; @@ -11,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleIOVolumeSourceFluent> extends BaseFluent{ +public class V1ScaleIOVolumeSourceFluent> extends BaseFluent{ public V1ScaleIOVolumeSourceFluent() { } @@ -30,19 +33,19 @@ public V1ScaleIOVolumeSourceFluent(V1ScaleIOVolumeSource instance) { private String volumeName; protected void copyInstance(V1ScaleIOVolumeSource instance) { - instance = (instance != null ? instance : new V1ScaleIOVolumeSource()); + instance = instance != null ? instance : new V1ScaleIOVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withGateway(instance.getGateway()); - this.withProtectionDomain(instance.getProtectionDomain()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withSslEnabled(instance.getSslEnabled()); - this.withStorageMode(instance.getStorageMode()); - this.withStoragePool(instance.getStoragePool()); - this.withSystem(instance.getSystem()); - this.withVolumeName(instance.getVolumeName()); - } + this.withFsType(instance.getFsType()); + this.withGateway(instance.getGateway()); + this.withProtectionDomain(instance.getProtectionDomain()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withSslEnabled(instance.getSslEnabled()); + this.withStorageMode(instance.getStorageMode()); + this.withStoragePool(instance.getStoragePool()); + this.withSystem(instance.getSystem()); + this.withVolumeName(instance.getVolumeName()); + } } public String getFsType() { @@ -126,15 +129,15 @@ public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public Boolean getSslEnabled() { @@ -203,40 +206,105 @@ public boolean hasVolumeName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ScaleIOVolumeSourceFluent that = (V1ScaleIOVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(gateway, that.gateway)) return false; - if (!java.util.Objects.equals(protectionDomain, that.protectionDomain)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(sslEnabled, that.sslEnabled)) return false; - if (!java.util.Objects.equals(storageMode, that.storageMode)) return false; - if (!java.util.Objects.equals(storagePool, that.storagePool)) return false; - if (!java.util.Objects.equals(system, that.system)) return false; - if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(gateway, that.gateway))) { + return false; + } + if (!(Objects.equals(protectionDomain, that.protectionDomain))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(sslEnabled, that.sslEnabled))) { + return false; + } + if (!(Objects.equals(storageMode, that.storageMode))) { + return false; + } + if (!(Objects.equals(storagePool, that.storagePool))) { + return false; + } + if (!(Objects.equals(system, that.system))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName, super.hashCode()); + return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (gateway != null) { sb.append("gateway:"); sb.append(gateway + ","); } - if (protectionDomain != null) { sb.append("protectionDomain:"); sb.append(protectionDomain + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (sslEnabled != null) { sb.append("sslEnabled:"); sb.append(sslEnabled + ","); } - if (storageMode != null) { sb.append("storageMode:"); sb.append(storageMode + ","); } - if (storagePool != null) { sb.append("storagePool:"); sb.append(storagePool + ","); } - if (system != null) { sb.append("system:"); sb.append(system + ","); } - if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(gateway == null)) { + sb.append("gateway:"); + sb.append(gateway); + sb.append(","); + } + if (!(protectionDomain == null)) { + sb.append("protectionDomain:"); + sb.append(protectionDomain); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(sslEnabled == null)) { + sb.append("sslEnabled:"); + sb.append(sslEnabled); + sb.append(","); + } + if (!(storageMode == null)) { + sb.append("storageMode:"); + sb.append(storageMode); + sb.append(","); + } + if (!(storagePool == null)) { + sb.append("storagePool:"); + sb.append(storagePool); + sb.append(","); + } + if (!(system == null)) { + sb.append("system:"); + sb.append(system); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + } sb.append("}"); return sb.toString(); } 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 c75525f37c..9aded6a56b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleSpecBuilder extends V1ScaleSpecFluent implements VisitableBuilder{ public V1ScaleSpecBuilder() { this(new V1ScaleSpec()); 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 568a508398..bc486daa90 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleSpecFluent> extends BaseFluent{ +public class V1ScaleSpecFluent> extends BaseFluent{ public V1ScaleSpecFluent() { } @@ -20,10 +22,10 @@ public V1ScaleSpecFluent(V1ScaleSpec instance) { private Integer replicas; protected void copyInstance(V1ScaleSpec instance) { - instance = (instance != null ? instance : new V1ScaleSpec()); + instance = instance != null ? instance : new V1ScaleSpec(); if (instance != null) { - this.withReplicas(instance.getReplicas()); - } + this.withReplicas(instance.getReplicas()); + } } public Integer getReplicas() { @@ -40,22 +42,33 @@ public boolean hasReplicas() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ScaleSpecFluent that = (V1ScaleSpecFluent) o; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(replicas, super.hashCode()); + return Objects.hash(replicas); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (replicas != null) { sb.append("replicas:"); sb.append(replicas); } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + } sb.append("}"); return sb.toString(); } 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 a2ba69563d..09d6d8ff97 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleStatusBuilder extends V1ScaleStatusFluent implements VisitableBuilder{ public V1ScaleStatusBuilder() { this(new V1ScaleStatus()); 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 9673b528e3..455d8b17c6 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleStatusFluent> extends BaseFluent{ +public class V1ScaleStatusFluent> extends BaseFluent{ public V1ScaleStatusFluent() { } @@ -21,11 +23,11 @@ public V1ScaleStatusFluent(V1ScaleStatus instance) { private String selector; protected void copyInstance(V1ScaleStatus instance) { - instance = (instance != null ? instance : new V1ScaleStatus()); + instance = instance != null ? instance : new V1ScaleStatus(); if (instance != null) { - this.withReplicas(instance.getReplicas()); - this.withSelector(instance.getSelector()); - } + this.withReplicas(instance.getReplicas()); + this.withSelector(instance.getSelector()); + } } public Integer getReplicas() { @@ -55,24 +57,41 @@ public boolean hasSelector() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ScaleStatusFluent that = (V1ScaleStatusFluent) o; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(replicas, selector, super.hashCode()); + return Objects.hash(replicas, selector); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector); } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } sb.append("}"); return sb.toString(); } 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 272bb268c5..ec2bede429 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SchedulingBuilder extends V1SchedulingFluent implements VisitableBuilder{ public V1SchedulingBuilder() { this(new V1Scheduling()); 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 49e6ee3938..72d6cec288 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SchedulingFluent> extends BaseFluent{ +public class V1SchedulingFluent> extends BaseFluent{ public V1SchedulingFluent() { } @@ -29,31 +31,55 @@ public V1SchedulingFluent(V1Scheduling instance) { private ArrayList tolerations; protected void copyInstance(V1Scheduling instance) { - instance = (instance != null ? instance : new V1Scheduling()); + instance = instance != null ? instance : new V1Scheduling(); if (instance != null) { - this.withNodeSelector(instance.getNodeSelector()); - this.withTolerations(instance.getTolerations()); - } + this.withNodeSelector(instance.getNodeSelector()); + this.withTolerations(instance.getTolerations()); + } } public A addToNodeSelector(String key,String value) { - if(this.nodeSelector == null && key != null && value != null) { this.nodeSelector = new LinkedHashMap(); } - if(key != null && value != null) {this.nodeSelector.put(key, value);} return (A)this; + if (this.nodeSelector == null && key != null && value != null) { + this.nodeSelector = new LinkedHashMap(); + } + if (key != null && value != null) { + this.nodeSelector.put(key, value); + } + return (A) this; } public A addToNodeSelector(Map map) { - if(this.nodeSelector == null && map != null) { this.nodeSelector = new LinkedHashMap(); } - if(map != null) { this.nodeSelector.putAll(map);} return (A)this; + if (this.nodeSelector == null && map != null) { + this.nodeSelector = new LinkedHashMap(); + } + if (map != null) { + this.nodeSelector.putAll(map); + } + return (A) this; } public A removeFromNodeSelector(String key) { - if(this.nodeSelector == null) { return (A) this; } - if(key != null && this.nodeSelector != null) {this.nodeSelector.remove(key);} return (A)this; + if (this.nodeSelector == null) { + return (A) this; + } + if (key != null && this.nodeSelector != null) { + this.nodeSelector.remove(key); + } + return (A) this; } public A removeFromNodeSelector(Map map) { - if(this.nodeSelector == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.nodeSelector != null){this.nodeSelector.remove(key);}}} return (A)this; + if (this.nodeSelector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.nodeSelector != null) { + this.nodeSelector.remove(key); + } + } + } + return (A) this; } public Map getNodeSelector() { @@ -74,7 +100,9 @@ public boolean hasNodeSelector() { } public A addToTolerations(int index,V1Toleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -83,11 +111,13 @@ public A addToTolerations(int index,V1Toleration item) { _visitables.get("tolerations").add(builder); tolerations.add(index, builder); } - return (A)this; + return (A) this; } public A setToTolerations(int index,V1Toleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -96,41 +126,71 @@ public A setToTolerations(int index,V1Toleration item) { _visitables.get("tolerations").add(builder); tolerations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A addToTolerations(V1Toleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) return (A)this; - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A removeFromTolerations(V1Toleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + if (this.tolerations == null) { + return (A) this; + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - V1TolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1TolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTolerations() { @@ -182,7 +242,7 @@ public A withTolerations(List tolerations) { return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations) { + public A withTolerations(V1Toleration... tolerations) { if (this.tolerations != null) { this.tolerations.clear(); _visitables.remove("tolerations"); @@ -196,7 +256,7 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tol } public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + return this.tolerations != null && !(this.tolerations.isEmpty()); } public TolerationsNested addNewToleration() { @@ -212,49 +272,77 @@ public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { } public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } public TolerationsNested editLastToleration() { int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i=0;i extends V1TolerationFluent implements VisitableBuilder{ public V1ScopeSelectorBuilder() { this(new V1ScopeSelector()); 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 98c5cc144a..58dfe35b4a 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ScopeSelectorFluent> extends BaseFluent{ +public class V1ScopeSelectorFluent> extends BaseFluent{ public V1ScopeSelectorFluent() { } @@ -26,14 +28,16 @@ public V1ScopeSelectorFluent(V1ScopeSelector instance) { private ArrayList matchExpressions; protected void copyInstance(V1ScopeSelector instance) { - instance = (instance != null ? instance : new V1ScopeSelector()); + instance = instance != null ? instance : new V1ScopeSelector(); if (instance != null) { - this.withMatchExpressions(instance.getMatchExpressions()); - } + this.withMatchExpressions(instance.getMatchExpressions()); + } } public A addToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); @@ -42,11 +46,13 @@ public A addToMatchExpressions(int index,V1ScopedResourceSelectorRequirement ite _visitables.get("matchExpressions").add(builder); matchExpressions.add(index, builder); } - return (A)this; + return (A) this; } public A setToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); @@ -55,41 +61,71 @@ public A setToMatchExpressions(int index,V1ScopedResourceSelectorRequirement ite _visitables.get("matchExpressions").add(builder); matchExpressions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + public A addToMatchExpressions(V1ScopedResourceSelectorRequirement... items) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } public A addAllToMatchExpressions(Collection items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } - public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { - if (this.matchExpressions == null) return (A)this; - for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + public A removeFromMatchExpressions(V1ScopedResourceSelectorRequirement... items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; } public A removeAllFromMatchExpressions(Collection items) { - if (this.matchExpressions == null) return (A)this; - for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + if (this.matchExpressions == null) { + return (A) this; + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; } public A removeMatchingFromMatchExpressions(Predicate predicate) { - if (matchExpressions == null) return (A) this; - final Iterator each = matchExpressions.iterator(); - final List visitables = _visitables.get("matchExpressions"); + if (matchExpressions == null) { + return (A) this; + } + Iterator each = matchExpressions.iterator(); + List visitables = _visitables.get("matchExpressions"); while (each.hasNext()) { - V1ScopedResourceSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ScopedResourceSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMatchExpressions() { @@ -141,7 +177,7 @@ public A withMatchExpressions(List matchExp return (A) this; } - public A withMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... matchExpressions) { + public A withMatchExpressions(V1ScopedResourceSelectorRequirement... matchExpressions) { if (this.matchExpressions != null) { this.matchExpressions.clear(); _visitables.remove("matchExpressions"); @@ -155,7 +191,7 @@ public A withMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResour } public boolean hasMatchExpressions() { - return this.matchExpressions != null && !this.matchExpressions.isEmpty(); + return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); } public MatchExpressionsNested addNewMatchExpression() { @@ -171,47 +207,69 @@ public MatchExpressionsNested setNewMatchExpressionLike(int index,V1ScopedRes } public MatchExpressionsNested editMatchExpression(int index) { - if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + if (index <= matchExpressions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } public MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); - return setNewMatchExpressionLike(0, buildMatchExpression(0)); + if (matchExpressions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(0, this.buildMatchExpression(0)); } public MatchExpressionsNested editLastMatchExpression() { int index = matchExpressions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ScopedResourceSelectorRequireme int index; public N and() { - return (N) V1ScopeSelectorFluent.this.setToMatchExpressions(index,builder.build()); + return (N) V1ScopeSelectorFluent.this.setToMatchExpressions(index, builder.build()); } public N endMatchExpression() { 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 636acba0e3..42b4089f5a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScopedResourceSelectorRequirementBuilder extends V1ScopedResourceSelectorRequirementFluent implements VisitableBuilder{ public V1ScopedResourceSelectorRequirementBuilder() { this(new V1ScopedResourceSelectorRequirement()); 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 d3be316153..448277c5d7 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ScopedResourceSelectorRequirementFluent> extends BaseFluent{ +public class V1ScopedResourceSelectorRequirementFluent> extends BaseFluent{ public V1ScopedResourceSelectorRequirementFluent() { } @@ -25,12 +27,12 @@ public V1ScopedResourceSelectorRequirementFluent(V1ScopedResourceSelectorRequire private List values; protected void copyInstance(V1ScopedResourceSelectorRequirement instance) { - instance = (instance != null ? instance : new V1ScopedResourceSelectorRequirement()); + instance = instance != null ? instance : new V1ScopedResourceSelectorRequirement(); if (instance != null) { - this.withOperator(instance.getOperator()); - this.withScopeName(instance.getScopeName()); - this.withValues(instance.getValues()); - } + this.withOperator(instance.getOperator()); + this.withScopeName(instance.getScopeName()); + this.withValues(instance.getValues()); + } } public String getOperator() { @@ -60,34 +62,59 @@ public boolean hasScopeName() { } public A addToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} + if (this.values == null) { + this.values = new ArrayList(); + } this.values.add(index, item); - return (A)this; + return (A) this; } public A setToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public A addToValues(java.lang.String... items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + public A addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } public A addAllToValues(Collection items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } - public A removeFromValues(java.lang.String... items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public A removeAllFromValues(Collection items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public List getValues() { @@ -136,7 +163,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.String... values) { + public A withValues(String... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -150,30 +177,53 @@ public A withValues(java.lang.String... values) { } public boolean hasValues() { - return this.values != null && !this.values.isEmpty(); + return this.values != null && !(this.values.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ScopedResourceSelectorRequirementFluent that = (V1ScopedResourceSelectorRequirementFluent) o; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(scopeName, that.scopeName)) return false; - if (!java.util.Objects.equals(values, that.values)) return false; + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(scopeName, that.scopeName))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(operator, scopeName, values, super.hashCode()); + return Objects.hash(operator, scopeName, values); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (scopeName != null) { sb.append("scopeName:"); sb.append(scopeName + ","); } - if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(scopeName == null)) { + sb.append("scopeName:"); + sb.append(scopeName); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } sb.append("}"); return sb.toString(); } 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 8c0c4c45c7..3d68cdb0a6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SeccompProfileBuilder extends V1SeccompProfileFluent implements VisitableBuilder{ public V1SeccompProfileBuilder() { this(new V1SeccompProfile()); 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 f9fb598e79..cd1e344a91 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SeccompProfileFluent> extends BaseFluent{ +public class V1SeccompProfileFluent> extends BaseFluent{ public V1SeccompProfileFluent() { } @@ -20,11 +22,11 @@ public V1SeccompProfileFluent(V1SeccompProfile instance) { private String type; protected void copyInstance(V1SeccompProfile instance) { - instance = (instance != null ? instance : new V1SeccompProfile()); + instance = instance != null ? instance : new V1SeccompProfile(); if (instance != null) { - this.withLocalhostProfile(instance.getLocalhostProfile()); - this.withType(instance.getType()); - } + this.withLocalhostProfile(instance.getLocalhostProfile()); + this.withType(instance.getType()); + } } public String getLocalhostProfile() { @@ -54,24 +56,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SeccompProfileFluent that = (V1SeccompProfileFluent) o; - if (!java.util.Objects.equals(localhostProfile, that.localhostProfile)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(localhostProfile, that.localhostProfile))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(localhostProfile, type, super.hashCode()); + return Objects.hash(localhostProfile, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (localhostProfile != null) { sb.append("localhostProfile:"); sb.append(localhostProfile + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(localhostProfile == null)) { + sb.append("localhostProfile:"); + sb.append(localhostProfile); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 8f98f08706..d85bc47434 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretBuilder extends V1SecretFluent implements VisitableBuilder{ public V1SecretBuilder() { this(new V1Secret()); 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 ae9b0f077b..fed82230a4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretEnvSourceBuilder extends V1SecretEnvSourceFluent implements VisitableBuilder{ public V1SecretEnvSourceBuilder() { this(new V1SecretEnvSource()); 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 fa654d662e..d534e76544 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SecretEnvSourceFluent> extends BaseFluent{ +public class V1SecretEnvSourceFluent> extends BaseFluent{ public V1SecretEnvSourceFluent() { } @@ -21,11 +23,11 @@ public V1SecretEnvSourceFluent(V1SecretEnvSource instance) { private Boolean optional; protected void copyInstance(V1SecretEnvSource instance) { - instance = (instance != null ? instance : new V1SecretEnvSource()); + instance = instance != null ? instance : new V1SecretEnvSource(); if (instance != null) { - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } public String getName() { @@ -55,24 +57,41 @@ public boolean hasOptional() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SecretEnvSourceFluent that = (V1SecretEnvSourceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, optional, super.hashCode()); + return Objects.hash(name, optional); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } sb.append("}"); return sb.toString(); } 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 bbc32a9618..4e01aedea6 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 @@ -1,10 +1,13 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; import java.util.Map; @@ -13,7 +16,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SecretFluent> extends BaseFluent{ +public class V1SecretFluent> extends BaseFluent{ public V1SecretFluent() { } @@ -29,16 +32,16 @@ public V1SecretFluent(V1Secret instance) { private String type; protected void copyInstance(V1Secret instance) { - instance = (instance != null ? instance : new V1Secret()); + instance = instance != null ? instance : new V1Secret(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withData(instance.getData()); - this.withImmutable(instance.getImmutable()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withStringData(instance.getStringData()); - this.withType(instance.getType()); - } + this.withApiVersion(instance.getApiVersion()); + this.withData(instance.getData()); + this.withImmutable(instance.getImmutable()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withStringData(instance.getStringData()); + this.withType(instance.getType()); + } } public String getApiVersion() { @@ -55,23 +58,47 @@ public boolean hasApiVersion() { } public A addToData(String key,byte[] value) { - if(this.data == null && key != null && value != null) { this.data = new LinkedHashMap(); } - if(key != null && value != null) {this.data.put(key, value);} return (A)this; + if (this.data == null && key != null && value != null) { + this.data = new LinkedHashMap(); + } + if (key != null && value != null) { + this.data.put(key, value); + } + return (A) this; } public A addToData(Map map) { - if(this.data == null && map != null) { this.data = new LinkedHashMap(); } - if(map != null) { this.data.putAll(map);} return (A)this; + if (this.data == null && map != null) { + this.data = new LinkedHashMap(); + } + if (map != null) { + this.data.putAll(map); + } + return (A) this; } public A removeFromData(String key) { - if(this.data == null) { return (A) this; } - if(key != null && this.data != null) {this.data.remove(key);} return (A)this; + if (this.data == null) { + return (A) this; + } + if (key != null && this.data != null) { + this.data.remove(key); + } + return (A) this; } public A removeFromData(Map map) { - if(this.data == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.data != null){this.data.remove(key);}}} return (A)this; + if (this.data == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.data != null) { + this.data.remove(key); + } + } + } + return (A) this; } public Map getData() { @@ -146,35 +173,59 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public A addToStringData(String key,String value) { - if(this.stringData == null && key != null && value != null) { this.stringData = new LinkedHashMap(); } - if(key != null && value != null) {this.stringData.put(key, value);} return (A)this; + if (this.stringData == null && key != null && value != null) { + this.stringData = new LinkedHashMap(); + } + if (key != null && value != null) { + this.stringData.put(key, value); + } + return (A) this; } public A addToStringData(Map map) { - if(this.stringData == null && map != null) { this.stringData = new LinkedHashMap(); } - if(map != null) { this.stringData.putAll(map);} return (A)this; + if (this.stringData == null && map != null) { + this.stringData = new LinkedHashMap(); + } + if (map != null) { + this.stringData.putAll(map); + } + return (A) this; } public A removeFromStringData(String key) { - if(this.stringData == null) { return (A) this; } - if(key != null && this.stringData != null) {this.stringData.remove(key);} return (A)this; + if (this.stringData == null) { + return (A) this; + } + if (key != null && this.stringData != null) { + this.stringData.remove(key); + } + return (A) this; } public A removeFromStringData(Map map) { - if(this.stringData == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.stringData != null){this.stringData.remove(key);}}} return (A)this; + if (this.stringData == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.stringData != null) { + this.stringData.remove(key); + } + } + } + return (A) this; } public Map getStringData() { @@ -208,34 +259,81 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SecretFluent that = (V1SecretFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(immutable, that.immutable)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(stringData, that.stringData)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(immutable, that.immutable))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(stringData, that.stringData))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, data, immutable, kind, metadata, stringData, type, super.hashCode()); + return Objects.hash(apiVersion, data, immutable, kind, metadata, stringData, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (data != null && !data.isEmpty()) { sb.append("data:"); sb.append(data + ","); } - if (immutable != null) { sb.append("immutable:"); sb.append(immutable + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (stringData != null && !stringData.isEmpty()) { sb.append("stringData:"); sb.append(stringData + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(data == null) && !(data.isEmpty())) { + sb.append("data:"); + sb.append(data); + sb.append(","); + } + if (!(immutable == null)) { + sb.append("immutable:"); + sb.append(immutable); + 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 (!(stringData == null) && !(stringData.isEmpty())) { + sb.append("stringData:"); + sb.append(stringData); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 43376f6c85..263dd4e0b9 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretKeySelectorBuilder extends V1SecretKeySelectorFluent implements VisitableBuilder{ public V1SecretKeySelectorBuilder() { this(new V1SecretKeySelector()); 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 3eebc027a8..c2d061a112 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SecretKeySelectorFluent> extends BaseFluent{ +public class V1SecretKeySelectorFluent> extends BaseFluent{ public V1SecretKeySelectorFluent() { } @@ -22,12 +24,12 @@ public V1SecretKeySelectorFluent(V1SecretKeySelector instance) { private Boolean optional; protected void copyInstance(V1SecretKeySelector instance) { - instance = (instance != null ? instance : new V1SecretKeySelector()); + instance = instance != null ? instance : new V1SecretKeySelector(); if (instance != null) { - this.withKey(instance.getKey()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + this.withKey(instance.getKey()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } public String getKey() { @@ -70,26 +72,49 @@ public boolean hasOptional() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SecretKeySelectorFluent that = (V1SecretKeySelectorFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(key, name, optional, super.hashCode()); + return Objects.hash(key, name, optional); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } sb.append("}"); return sb.toString(); } 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 c0c9a311ec..8d8031104b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretListBuilder extends V1SecretListFluent implements VisitableBuilder{ public V1SecretListBuilder() { this(new V1SecretList()); 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 0567ce97fc..3e8f816541 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecretListFluent> extends BaseFluent{ +public class V1SecretListFluent> extends BaseFluent{ public V1SecretListFluent() { } @@ -29,13 +32,13 @@ public V1SecretListFluent(V1SecretList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1SecretList instance) { - instance = (instance != null ? instance : new V1SecretList()); + instance = instance != null ? instance : new V1SecretList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Secret item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1SecretBuilder builder = new V1SecretBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Secret item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Secret item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1SecretBuilder builder = new V1SecretBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Secret item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Secret... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Secret... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Secret... items) { - if (this.items == null) return (A)this; - for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Secret... items) { + if (this.items == null) { + return (A) this; + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1SecretBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1SecretBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Secret... items) { + public A withItems(V1Secret... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Secret... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Secret item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SecretListFluent that = (V1SecretListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1SecretFluent> implements Ne int index; public N and() { - return (N) V1SecretListFluent.this.setToItems(index,builder.build()); + return (N) V1SecretListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 1ca9cf51a8..08bc2e494e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretProjectionBuilder extends V1SecretProjectionFluent implements VisitableBuilder{ public V1SecretProjectionBuilder() { this(new V1SecretProjection()); 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 a15f5ea7fc..272b7d2266 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SecretProjectionFluent> extends BaseFluent{ +public class V1SecretProjectionFluent> extends BaseFluent{ public V1SecretProjectionFluent() { } @@ -29,16 +31,18 @@ public V1SecretProjectionFluent(V1SecretProjection instance) { private Boolean optional; protected void copyInstance(V1SecretProjection instance) { - instance = (instance != null ? instance : new V1SecretProjection()); + instance = instance != null ? instance : new V1SecretProjection(); if (instance != null) { - this.withItems(instance.getItems()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + this.withItems(instance.getItems()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } public A addToItems(int index,V1KeyToPath item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -47,11 +51,13 @@ public A addToItems(int index,V1KeyToPath item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1KeyToPath item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -60,41 +66,71 @@ public A setToItems(int index,V1KeyToPath item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1KeyToPath... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -146,7 +182,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { + public A withItems(V1KeyToPath... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -160,7 +196,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -176,28 +212,39 @@ public ItemsNested setNewItemLike(int index,V1KeyToPath item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 extends V1KeyToPathFluent> implements int index; public N and() { - return (N) V1SecretProjectionFluent.this.setToItems(index,builder.build()); + return (N) V1SecretProjectionFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 78013ec9bd..9eb020a0a0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretReferenceBuilder extends V1SecretReferenceFluent implements VisitableBuilder{ public V1SecretReferenceBuilder() { this(new V1SecretReference()); 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 799a9a6d2e..42aae60c27 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SecretReferenceFluent> extends BaseFluent{ +public class V1SecretReferenceFluent> extends BaseFluent{ public V1SecretReferenceFluent() { } @@ -20,11 +22,11 @@ public V1SecretReferenceFluent(V1SecretReference instance) { private String namespace; protected void copyInstance(V1SecretReference instance) { - instance = (instance != null ? instance : new V1SecretReference()); + instance = instance != null ? instance : new V1SecretReference(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + } } public String getName() { @@ -54,24 +56,41 @@ public boolean hasNamespace() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SecretReferenceFluent that = (V1SecretReferenceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, namespace, super.hashCode()); + return Objects.hash(name, namespace); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } 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 a294cad4e3..0b127b4949 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretVolumeSourceBuilder extends V1SecretVolumeSourceFluent implements VisitableBuilder{ public V1SecretVolumeSourceBuilder() { this(new V1SecretVolumeSource()); 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 cf7c1e94fc..20c8666d43 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SecretVolumeSourceFluent> extends BaseFluent{ +public class V1SecretVolumeSourceFluent> extends BaseFluent{ public V1SecretVolumeSourceFluent() { } @@ -31,13 +33,13 @@ public V1SecretVolumeSourceFluent(V1SecretVolumeSource instance) { private String secretName; protected void copyInstance(V1SecretVolumeSource instance) { - instance = (instance != null ? instance : new V1SecretVolumeSource()); + instance = instance != null ? instance : new V1SecretVolumeSource(); if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withItems(instance.getItems()); - this.withOptional(instance.getOptional()); - this.withSecretName(instance.getSecretName()); - } + this.withDefaultMode(instance.getDefaultMode()); + this.withItems(instance.getItems()); + this.withOptional(instance.getOptional()); + this.withSecretName(instance.getSecretName()); + } } public Integer getDefaultMode() { @@ -54,7 +56,9 @@ public boolean hasDefaultMode() { } public A addToItems(int index,V1KeyToPath item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -63,11 +67,13 @@ public A addToItems(int index,V1KeyToPath item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1KeyToPath item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -76,41 +82,71 @@ public A setToItems(int index,V1KeyToPath item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1KeyToPath... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -162,7 +198,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { + public A withItems(V1KeyToPath... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -176,7 +212,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -192,28 +228,39 @@ public ItemsNested setNewItemLike(int index,V1KeyToPath item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 extends V1KeyToPathFluent> implements int index; public N and() { - return (N) V1SecretVolumeSourceFluent.this.setToItems(index,builder.build()); + return (N) V1SecretVolumeSourceFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 48ec988e0d..d5b461a4d5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecurityContextBuilder extends V1SecurityContextFluent implements VisitableBuilder{ public V1SecurityContextBuilder() { this(new V1SecurityContext()); 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 20ca3ef8f9..28ab9664c0 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 @@ -1,18 +1,21 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Boolean; +import java.util.Optional; import java.lang.Long; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecurityContextFluent> extends BaseFluent{ +public class V1SecurityContextFluent> extends BaseFluent{ public V1SecurityContextFluent() { } @@ -33,21 +36,21 @@ public V1SecurityContextFluent(V1SecurityContext instance) { private V1WindowsSecurityContextOptionsBuilder windowsOptions; protected void copyInstance(V1SecurityContext instance) { - instance = (instance != null ? instance : new V1SecurityContext()); + instance = instance != null ? instance : new V1SecurityContext(); if (instance != null) { - this.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); - this.withAppArmorProfile(instance.getAppArmorProfile()); - this.withCapabilities(instance.getCapabilities()); - this.withPrivileged(instance.getPrivileged()); - this.withProcMount(instance.getProcMount()); - this.withReadOnlyRootFilesystem(instance.getReadOnlyRootFilesystem()); - this.withRunAsGroup(instance.getRunAsGroup()); - this.withRunAsNonRoot(instance.getRunAsNonRoot()); - this.withRunAsUser(instance.getRunAsUser()); - this.withSeLinuxOptions(instance.getSeLinuxOptions()); - this.withSeccompProfile(instance.getSeccompProfile()); - this.withWindowsOptions(instance.getWindowsOptions()); - } + this.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); + this.withAppArmorProfile(instance.getAppArmorProfile()); + this.withCapabilities(instance.getCapabilities()); + this.withPrivileged(instance.getPrivileged()); + this.withProcMount(instance.getProcMount()); + this.withReadOnlyRootFilesystem(instance.getReadOnlyRootFilesystem()); + this.withRunAsGroup(instance.getRunAsGroup()); + this.withRunAsNonRoot(instance.getRunAsNonRoot()); + this.withRunAsUser(instance.getRunAsUser()); + this.withSeLinuxOptions(instance.getSeLinuxOptions()); + this.withSeccompProfile(instance.getSeccompProfile()); + this.withWindowsOptions(instance.getWindowsOptions()); + } } public Boolean getAllowPrivilegeEscalation() { @@ -92,15 +95,15 @@ public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile ite } public AppArmorProfileNested editAppArmorProfile() { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(null)); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(null)); } public AppArmorProfileNested editOrNewAppArmorProfile() { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); } public AppArmorProfileNested editOrNewAppArmorProfileLike(V1AppArmorProfile item) { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(item)); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(item)); } public V1Capabilities buildCapabilities() { @@ -132,15 +135,15 @@ public CapabilitiesNested withNewCapabilitiesLike(V1Capabilities item) { } public CapabilitiesNested editCapabilities() { - return withNewCapabilitiesLike(java.util.Optional.ofNullable(buildCapabilities()).orElse(null)); + return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(null)); } public CapabilitiesNested editOrNewCapabilities() { - return withNewCapabilitiesLike(java.util.Optional.ofNullable(buildCapabilities()).orElse(new V1CapabilitiesBuilder().build())); + return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(new V1CapabilitiesBuilder().build())); } public CapabilitiesNested editOrNewCapabilitiesLike(V1Capabilities item) { - return withNewCapabilitiesLike(java.util.Optional.ofNullable(buildCapabilities()).orElse(item)); + return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(item)); } public Boolean getPrivileged() { @@ -250,15 +253,15 @@ public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) } public SeLinuxOptionsNested editSeLinuxOptions() { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(null)); + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(null)); } public SeLinuxOptionsNested editOrNewSeLinuxOptions() { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); } public SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(item)); + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(item)); } public V1SeccompProfile buildSeccompProfile() { @@ -290,15 +293,15 @@ public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) } public SeccompProfileNested editSeccompProfile() { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(null)); + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(null)); } public SeccompProfileNested editOrNewSeccompProfile() { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); } public SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(item)); + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(item)); } public V1WindowsSecurityContextOptions buildWindowsOptions() { @@ -330,56 +333,133 @@ public WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContex } public WindowsOptionsNested editWindowsOptions() { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(null)); + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(null)); } public WindowsOptionsNested editOrNewWindowsOptions() { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); } public WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(item)); + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SecurityContextFluent that = (V1SecurityContextFluent) o; - if (!java.util.Objects.equals(allowPrivilegeEscalation, that.allowPrivilegeEscalation)) return false; - if (!java.util.Objects.equals(appArmorProfile, that.appArmorProfile)) return false; - if (!java.util.Objects.equals(capabilities, that.capabilities)) return false; - if (!java.util.Objects.equals(privileged, that.privileged)) return false; - if (!java.util.Objects.equals(procMount, that.procMount)) return false; - if (!java.util.Objects.equals(readOnlyRootFilesystem, that.readOnlyRootFilesystem)) return false; - if (!java.util.Objects.equals(runAsGroup, that.runAsGroup)) return false; - if (!java.util.Objects.equals(runAsNonRoot, that.runAsNonRoot)) return false; - if (!java.util.Objects.equals(runAsUser, that.runAsUser)) return false; - if (!java.util.Objects.equals(seLinuxOptions, that.seLinuxOptions)) return false; - if (!java.util.Objects.equals(seccompProfile, that.seccompProfile)) return false; - if (!java.util.Objects.equals(windowsOptions, that.windowsOptions)) return false; + if (!(Objects.equals(allowPrivilegeEscalation, that.allowPrivilegeEscalation))) { + return false; + } + if (!(Objects.equals(appArmorProfile, that.appArmorProfile))) { + return false; + } + if (!(Objects.equals(capabilities, that.capabilities))) { + return false; + } + if (!(Objects.equals(privileged, that.privileged))) { + return false; + } + if (!(Objects.equals(procMount, that.procMount))) { + return false; + } + if (!(Objects.equals(readOnlyRootFilesystem, that.readOnlyRootFilesystem))) { + return false; + } + if (!(Objects.equals(runAsGroup, that.runAsGroup))) { + return false; + } + if (!(Objects.equals(runAsNonRoot, that.runAsNonRoot))) { + return false; + } + if (!(Objects.equals(runAsUser, that.runAsUser))) { + return false; + } + if (!(Objects.equals(seLinuxOptions, that.seLinuxOptions))) { + return false; + } + if (!(Objects.equals(seccompProfile, that.seccompProfile))) { + return false; + } + if (!(Objects.equals(windowsOptions, that.windowsOptions))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(allowPrivilegeEscalation, appArmorProfile, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions, super.hashCode()); + return Objects.hash(allowPrivilegeEscalation, appArmorProfile, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allowPrivilegeEscalation != null) { sb.append("allowPrivilegeEscalation:"); sb.append(allowPrivilegeEscalation + ","); } - if (appArmorProfile != null) { sb.append("appArmorProfile:"); sb.append(appArmorProfile + ","); } - if (capabilities != null) { sb.append("capabilities:"); sb.append(capabilities + ","); } - if (privileged != null) { sb.append("privileged:"); sb.append(privileged + ","); } - if (procMount != null) { sb.append("procMount:"); sb.append(procMount + ","); } - if (readOnlyRootFilesystem != null) { sb.append("readOnlyRootFilesystem:"); sb.append(readOnlyRootFilesystem + ","); } - if (runAsGroup != null) { sb.append("runAsGroup:"); sb.append(runAsGroup + ","); } - if (runAsNonRoot != null) { sb.append("runAsNonRoot:"); sb.append(runAsNonRoot + ","); } - if (runAsUser != null) { sb.append("runAsUser:"); sb.append(runAsUser + ","); } - if (seLinuxOptions != null) { sb.append("seLinuxOptions:"); sb.append(seLinuxOptions + ","); } - if (seccompProfile != null) { sb.append("seccompProfile:"); sb.append(seccompProfile + ","); } - if (windowsOptions != null) { sb.append("windowsOptions:"); sb.append(windowsOptions); } + if (!(allowPrivilegeEscalation == null)) { + sb.append("allowPrivilegeEscalation:"); + sb.append(allowPrivilegeEscalation); + sb.append(","); + } + if (!(appArmorProfile == null)) { + sb.append("appArmorProfile:"); + sb.append(appArmorProfile); + sb.append(","); + } + if (!(capabilities == null)) { + sb.append("capabilities:"); + sb.append(capabilities); + sb.append(","); + } + if (!(privileged == null)) { + sb.append("privileged:"); + sb.append(privileged); + sb.append(","); + } + if (!(procMount == null)) { + sb.append("procMount:"); + sb.append(procMount); + sb.append(","); + } + if (!(readOnlyRootFilesystem == null)) { + sb.append("readOnlyRootFilesystem:"); + sb.append(readOnlyRootFilesystem); + sb.append(","); + } + if (!(runAsGroup == null)) { + sb.append("runAsGroup:"); + sb.append(runAsGroup); + sb.append(","); + } + if (!(runAsNonRoot == null)) { + sb.append("runAsNonRoot:"); + sb.append(runAsNonRoot); + sb.append(","); + } + if (!(runAsUser == null)) { + sb.append("runAsUser:"); + sb.append(runAsUser); + sb.append(","); + } + if (!(seLinuxOptions == null)) { + sb.append("seLinuxOptions:"); + sb.append(seLinuxOptions); + sb.append(","); + } + if (!(seccompProfile == null)) { + sb.append("seccompProfile:"); + sb.append(seccompProfile); + sb.append(","); + } + if (!(windowsOptions == null)) { + sb.append("windowsOptions:"); + sb.append(windowsOptions); + } sb.append("}"); return sb.toString(); } 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 1e1054e464..5312792e7b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelectableFieldBuilder extends V1SelectableFieldFluent implements VisitableBuilder{ public V1SelectableFieldBuilder() { this(new V1SelectableField()); 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 2d75916ecd..4fbb8fcad0 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SelectableFieldFluent> extends BaseFluent{ +public class V1SelectableFieldFluent> extends BaseFluent{ public V1SelectableFieldFluent() { } @@ -19,10 +21,10 @@ public V1SelectableFieldFluent(V1SelectableField instance) { private String jsonPath; protected void copyInstance(V1SelectableField instance) { - instance = (instance != null ? instance : new V1SelectableField()); + instance = instance != null ? instance : new V1SelectableField(); if (instance != null) { - this.withJsonPath(instance.getJsonPath()); - } + this.withJsonPath(instance.getJsonPath()); + } } public String getJsonPath() { @@ -39,22 +41,33 @@ public boolean hasJsonPath() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SelectableFieldFluent that = (V1SelectableFieldFluent) o; - if (!java.util.Objects.equals(jsonPath, that.jsonPath)) return false; + if (!(Objects.equals(jsonPath, that.jsonPath))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(jsonPath, super.hashCode()); + return Objects.hash(jsonPath); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (jsonPath != null) { sb.append("jsonPath:"); sb.append(jsonPath); } + if (!(jsonPath == null)) { + sb.append("jsonPath:"); + sb.append(jsonPath); + } sb.append("}"); return sb.toString(); } 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 a1d3b2425b..b796bbfb73 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectAccessReviewBuilder extends V1SelfSubjectAccessReviewFluent implements VisitableBuilder{ public V1SelfSubjectAccessReviewBuilder() { this(new V1SelfSubjectAccessReview()); 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 9fc46c0698..3e3553f1fe 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectAccessReviewFluent> extends BaseFluent{ +public class V1SelfSubjectAccessReviewFluent> extends BaseFluent{ public V1SelfSubjectAccessReviewFluent() { } @@ -24,14 +27,14 @@ public V1SelfSubjectAccessReviewFluent(V1SelfSubjectAccessReview instance) { private V1SubjectAccessReviewStatusBuilder status; protected void copyInstance(V1SelfSubjectAccessReview instance) { - instance = (instance != null ? instance : new V1SelfSubjectAccessReview()); + instance = instance != null ? instance : new V1SelfSubjectAccessReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1SelfSubjectAccessReviewSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1SelfSubjectAccessReviewSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1SelfSubjectAccessReviewSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SelfSubjectAccessReviewSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1SelfSubjectAccessReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1SubjectAccessReviewStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SelfSubjectAccessReviewFluent that = (V1SelfSubjectAccessReviewFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 2dbe91a797..1211188ddd 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectAccessReviewSpecBuilder extends V1SelfSubjectAccessReviewSpecFluent implements VisitableBuilder{ public V1SelfSubjectAccessReviewSpecBuilder() { this(new V1SelfSubjectAccessReviewSpec()); 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 2df99913dc..0f1dc6ab29 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectAccessReviewSpecFluent> extends BaseFluent{ +public class V1SelfSubjectAccessReviewSpecFluent> extends BaseFluent{ public V1SelfSubjectAccessReviewSpecFluent() { } @@ -21,11 +24,11 @@ public V1SelfSubjectAccessReviewSpecFluent(V1SelfSubjectAccessReviewSpec instanc private V1ResourceAttributesBuilder resourceAttributes; protected void copyInstance(V1SelfSubjectAccessReviewSpec instance) { - instance = (instance != null ? instance : new V1SelfSubjectAccessReviewSpec()); + instance = instance != null ? instance : new V1SelfSubjectAccessReviewSpec(); if (instance != null) { - this.withNonResourceAttributes(instance.getNonResourceAttributes()); - this.withResourceAttributes(instance.getResourceAttributes()); - } + this.withNonResourceAttributes(instance.getNonResourceAttributes()); + this.withResourceAttributes(instance.getResourceAttributes()); + } } public V1NonResourceAttributes buildNonResourceAttributes() { @@ -57,15 +60,15 @@ public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonReso } public NonResourceAttributesNested editNonResourceAttributes() { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(null)); + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(null)); } public NonResourceAttributesNested editOrNewNonResourceAttributes() { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); } public NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(item)); + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(item)); } public V1ResourceAttributes buildResourceAttributes() { @@ -97,36 +100,53 @@ public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttri } public ResourceAttributesNested editResourceAttributes() { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(null)); + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(null)); } public ResourceAttributesNested editOrNewResourceAttributes() { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); } public ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(item)); + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SelfSubjectAccessReviewSpecFluent that = (V1SelfSubjectAccessReviewSpecFluent) o; - if (!java.util.Objects.equals(nonResourceAttributes, that.nonResourceAttributes)) return false; - if (!java.util.Objects.equals(resourceAttributes, that.resourceAttributes)) return false; + if (!(Objects.equals(nonResourceAttributes, that.nonResourceAttributes))) { + return false; + } + if (!(Objects.equals(resourceAttributes, that.resourceAttributes))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(nonResourceAttributes, resourceAttributes, super.hashCode()); + return Objects.hash(nonResourceAttributes, resourceAttributes); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nonResourceAttributes != null) { sb.append("nonResourceAttributes:"); sb.append(nonResourceAttributes + ","); } - if (resourceAttributes != null) { sb.append("resourceAttributes:"); sb.append(resourceAttributes); } + if (!(nonResourceAttributes == null)) { + sb.append("nonResourceAttributes:"); + sb.append(nonResourceAttributes); + sb.append(","); + } + if (!(resourceAttributes == null)) { + sb.append("resourceAttributes:"); + sb.append(resourceAttributes); + } sb.append("}"); return sb.toString(); } 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 f1d9826999..89bb154c05 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectReviewBuilder extends V1SelfSubjectReviewFluent implements VisitableBuilder{ public V1SelfSubjectReviewBuilder() { this(new V1SelfSubjectReview()); 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 5c1031689b..c534784a65 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectReviewFluent> extends BaseFluent{ +public class V1SelfSubjectReviewFluent> extends BaseFluent{ public V1SelfSubjectReviewFluent() { } @@ -23,13 +26,13 @@ public V1SelfSubjectReviewFluent(V1SelfSubjectReview instance) { private V1SelfSubjectReviewStatusBuilder status; protected void copyInstance(V1SelfSubjectReview instance) { - instance = (instance != null ? instance : new V1SelfSubjectReview()); + instance = instance != null ? instance : new V1SelfSubjectReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1SelfSubjectReviewStatus buildStatus() { @@ -127,40 +130,69 @@ public StatusNested withNewStatusLike(V1SelfSubjectReviewStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1SelfSubjectReviewStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SelfSubjectReviewStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1SelfSubjectReviewStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SelfSubjectReviewFluent that = (V1SelfSubjectReviewFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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(status, that.status))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, status, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, status); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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 (!(status == null)) { + sb.append("status:"); + sb.append(status); + } sb.append("}"); return sb.toString(); } 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 c3665c506d..842341bf02 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectReviewStatusBuilder extends V1SelfSubjectReviewStatusFluent implements VisitableBuilder{ public V1SelfSubjectReviewStatusBuilder() { this(new V1SelfSubjectReviewStatus()); 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 66b92592ab..3dc9c2e201 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectReviewStatusFluent> extends BaseFluent{ +public class V1SelfSubjectReviewStatusFluent> extends BaseFluent{ public V1SelfSubjectReviewStatusFluent() { } @@ -20,10 +23,10 @@ public V1SelfSubjectReviewStatusFluent(V1SelfSubjectReviewStatus instance) { private V1UserInfoBuilder userInfo; protected void copyInstance(V1SelfSubjectReviewStatus instance) { - instance = (instance != null ? instance : new V1SelfSubjectReviewStatus()); + instance = instance != null ? instance : new V1SelfSubjectReviewStatus(); if (instance != null) { - this.withUserInfo(instance.getUserInfo()); - } + this.withUserInfo(instance.getUserInfo()); + } } public V1UserInfo buildUserInfo() { @@ -55,34 +58,45 @@ public UserInfoNested withNewUserInfoLike(V1UserInfo item) { } public UserInfoNested editUserInfo() { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(null)); + return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(null)); } public UserInfoNested editOrNewUserInfo() { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(new V1UserInfoBuilder().build())); + return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(new V1UserInfoBuilder().build())); } public UserInfoNested editOrNewUserInfoLike(V1UserInfo item) { - return withNewUserInfoLike(java.util.Optional.ofNullable(buildUserInfo()).orElse(item)); + return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SelfSubjectReviewStatusFluent that = (V1SelfSubjectReviewStatusFluent) o; - if (!java.util.Objects.equals(userInfo, that.userInfo)) return false; + if (!(Objects.equals(userInfo, that.userInfo))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(userInfo, super.hashCode()); + return Objects.hash(userInfo); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (userInfo != null) { sb.append("userInfo:"); sb.append(userInfo); } + if (!(userInfo == null)) { + sb.append("userInfo:"); + sb.append(userInfo); + } sb.append("}"); return sb.toString(); } 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 959ead8e08..8e7e5ae084 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectRulesReviewBuilder extends V1SelfSubjectRulesReviewFluent implements VisitableBuilder{ public V1SelfSubjectRulesReviewBuilder() { this(new V1SelfSubjectRulesReview()); 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 f6ca13cb93..114e960959 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectRulesReviewFluent> extends BaseFluent{ +public class V1SelfSubjectRulesReviewFluent> extends BaseFluent{ public V1SelfSubjectRulesReviewFluent() { } @@ -24,14 +27,14 @@ public V1SelfSubjectRulesReviewFluent(V1SelfSubjectRulesReview instance) { private V1SubjectRulesReviewStatusBuilder status; protected void copyInstance(V1SelfSubjectRulesReview instance) { - instance = (instance != null ? instance : new V1SelfSubjectRulesReview()); + instance = instance != null ? instance : new V1SelfSubjectRulesReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1SelfSubjectRulesReviewSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1SelfSubjectRulesReviewSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1SelfSubjectRulesReviewSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SelfSubjectRulesReviewSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1SelfSubjectRulesReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1SubjectRulesReviewStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1SubjectRulesReviewStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1SubjectRulesReviewStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectRulesReviewStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1SubjectRulesReviewStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SelfSubjectRulesReviewFluent that = (V1SelfSubjectRulesReviewFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 6f63428ece..8ce16ee2c1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectRulesReviewSpecBuilder extends V1SelfSubjectRulesReviewSpecFluent implements VisitableBuilder{ public V1SelfSubjectRulesReviewSpecBuilder() { this(new V1SelfSubjectRulesReviewSpec()); 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 d2ead8c37a..b15cf2c189 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectRulesReviewSpecFluent> extends BaseFluent{ +public class V1SelfSubjectRulesReviewSpecFluent> extends BaseFluent{ public V1SelfSubjectRulesReviewSpecFluent() { } @@ -19,10 +21,10 @@ public V1SelfSubjectRulesReviewSpecFluent(V1SelfSubjectRulesReviewSpec instance) private String namespace; protected void copyInstance(V1SelfSubjectRulesReviewSpec instance) { - instance = (instance != null ? instance : new V1SelfSubjectRulesReviewSpec()); + instance = instance != null ? instance : new V1SelfSubjectRulesReviewSpec(); if (instance != null) { - this.withNamespace(instance.getNamespace()); - } + this.withNamespace(instance.getNamespace()); + } } public String getNamespace() { @@ -39,22 +41,33 @@ public boolean hasNamespace() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SelfSubjectRulesReviewSpecFluent that = (V1SelfSubjectRulesReviewSpecFluent) o; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(namespace, super.hashCode()); + return Objects.hash(namespace); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } 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 94ed49347e..4307a13a08 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServerAddressByClientCIDRBuilder extends V1ServerAddressByClientCIDRFluent implements VisitableBuilder{ public V1ServerAddressByClientCIDRBuilder() { this(new V1ServerAddressByClientCIDR()); 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 483fd5276a..e72bcc7821 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ServerAddressByClientCIDRFluent> extends BaseFluent{ +public class V1ServerAddressByClientCIDRFluent> extends BaseFluent{ public V1ServerAddressByClientCIDRFluent() { } @@ -20,11 +22,11 @@ public V1ServerAddressByClientCIDRFluent(V1ServerAddressByClientCIDR instance) { private String serverAddress; protected void copyInstance(V1ServerAddressByClientCIDR instance) { - instance = (instance != null ? instance : new V1ServerAddressByClientCIDR()); + instance = instance != null ? instance : new V1ServerAddressByClientCIDR(); if (instance != null) { - this.withClientCIDR(instance.getClientCIDR()); - this.withServerAddress(instance.getServerAddress()); - } + this.withClientCIDR(instance.getClientCIDR()); + this.withServerAddress(instance.getServerAddress()); + } } public String getClientCIDR() { @@ -54,24 +56,41 @@ public boolean hasServerAddress() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServerAddressByClientCIDRFluent that = (V1ServerAddressByClientCIDRFluent) o; - if (!java.util.Objects.equals(clientCIDR, that.clientCIDR)) return false; - if (!java.util.Objects.equals(serverAddress, that.serverAddress)) return false; + if (!(Objects.equals(clientCIDR, that.clientCIDR))) { + return false; + } + if (!(Objects.equals(serverAddress, that.serverAddress))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(clientCIDR, serverAddress, super.hashCode()); + return Objects.hash(clientCIDR, serverAddress); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (clientCIDR != null) { sb.append("clientCIDR:"); sb.append(clientCIDR + ","); } - if (serverAddress != null) { sb.append("serverAddress:"); sb.append(serverAddress); } + if (!(clientCIDR == null)) { + sb.append("clientCIDR:"); + sb.append(clientCIDR); + sb.append(","); + } + if (!(serverAddress == null)) { + sb.append("serverAddress:"); + sb.append(serverAddress); + } sb.append("}"); return sb.toString(); } 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 92ef392aeb..a72a4db728 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceAccountBuilder extends V1ServiceAccountFluent implements VisitableBuilder{ public V1ServiceAccountBuilder() { this(new V1ServiceAccount()); 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 a9b9f8fa4f..2fcd80983c 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 @@ -1,15 +1,18 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceAccountFluent> extends BaseFluent{ +public class V1ServiceAccountFluent> extends BaseFluent{ public V1ServiceAccountFluent() { } @@ -32,15 +35,15 @@ public V1ServiceAccountFluent(V1ServiceAccount instance) { private ArrayList secrets; protected void copyInstance(V1ServiceAccount instance) { - instance = (instance != null ? instance : new V1ServiceAccount()); + instance = instance != null ? instance : new V1ServiceAccount(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); - this.withImagePullSecrets(instance.getImagePullSecrets()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSecrets(instance.getSecrets()); - } + this.withApiVersion(instance.getApiVersion()); + this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); + this.withImagePullSecrets(instance.getImagePullSecrets()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSecrets(instance.getSecrets()); + } } public String getApiVersion() { @@ -70,7 +73,9 @@ public boolean hasAutomountServiceAccountToken() { } public A addToImagePullSecrets(int index,V1LocalObjectReference item) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); @@ -79,11 +84,13 @@ public A addToImagePullSecrets(int index,V1LocalObjectReference item) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.add(index, builder); } - return (A)this; + return (A) this; } public A setToImagePullSecrets(int index,V1LocalObjectReference item) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); @@ -92,41 +99,71 @@ public A setToImagePullSecrets(int index,V1LocalObjectReference item) { _visitables.get("imagePullSecrets").add(builder); imagePullSecrets.set(index, builder); } - return (A)this; + return (A) this; } - public A addToImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; + public A addToImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); + } + return (A) this; } public A addAllToImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); + } + return (A) this; } - public A removeFromImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) return (A)this; - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder); this.imagePullSecrets.remove(builder);} return (A)this; + public A removeFromImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + return (A) this; + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); + } + return (A) this; } public A removeAllFromImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) return (A)this; - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder); this.imagePullSecrets.remove(builder);} return (A)this; + if (this.imagePullSecrets == null) { + return (A) this; + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); + } + return (A) this; } public A removeMatchingFromImagePullSecrets(Predicate predicate) { - if (imagePullSecrets == null) return (A) this; - final Iterator each = imagePullSecrets.iterator(); - final List visitables = _visitables.get("imagePullSecrets"); + if (imagePullSecrets == null) { + return (A) this; + } + Iterator each = imagePullSecrets.iterator(); + List visitables = _visitables.get("imagePullSecrets"); while (each.hasNext()) { - V1LocalObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1LocalObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildImagePullSecrets() { @@ -178,7 +215,7 @@ public A withImagePullSecrets(List imagePullSecrets) { return (A) this; } - public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets) { + public A withImagePullSecrets(V1LocalObjectReference... imagePullSecrets) { if (this.imagePullSecrets != null) { this.imagePullSecrets.clear(); _visitables.remove("imagePullSecrets"); @@ -192,7 +229,7 @@ public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectR } public boolean hasImagePullSecrets() { - return this.imagePullSecrets != null && !this.imagePullSecrets.isEmpty(); + return this.imagePullSecrets != null && !(this.imagePullSecrets.isEmpty()); } public ImagePullSecretsNested addNewImagePullSecret() { @@ -208,28 +245,39 @@ public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObje } public ImagePullSecretsNested editImagePullSecret(int index) { - if (imagePullSecrets.size() <= index) throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); - return setNewImagePullSecretLike(index, buildImagePullSecret(index)); + if (index <= imagePullSecrets.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } public ImagePullSecretsNested editFirstImagePullSecret() { - if (imagePullSecrets.size() == 0) throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); - return setNewImagePullSecretLike(0, buildImagePullSecret(0)); + if (imagePullSecrets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(0, this.buildImagePullSecret(0)); } public ImagePullSecretsNested editLastImagePullSecret() { int index = imagePullSecrets.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last imagePullSecrets. The list is empty."); - return setNewImagePullSecretLike(index, buildImagePullSecret(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { int index = -1; - for (int i=0;i withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public A addToSecrets(int index,V1ObjectReference item) { - if (this.secrets == null) {this.secrets = new ArrayList();} + if (this.secrets == null) { + this.secrets = new ArrayList(); + } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= secrets.size()) { _visitables.get("secrets").add(builder); @@ -295,11 +345,13 @@ public A addToSecrets(int index,V1ObjectReference item) { _visitables.get("secrets").add(builder); secrets.add(index, builder); } - return (A)this; + return (A) this; } public A setToSecrets(int index,V1ObjectReference item) { - if (this.secrets == null) {this.secrets = new ArrayList();} + if (this.secrets == null) { + this.secrets = new ArrayList(); + } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= secrets.size()) { _visitables.get("secrets").add(builder); @@ -308,41 +360,71 @@ public A setToSecrets(int index,V1ObjectReference item) { _visitables.get("secrets").add(builder); secrets.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.secrets == null) {this.secrets = new ArrayList();} - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").add(builder);this.secrets.add(builder);} return (A)this; + public A addToSecrets(V1ObjectReference... items) { + if (this.secrets == null) { + this.secrets = new ArrayList(); + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").add(builder); + this.secrets.add(builder); + } + return (A) this; } public A addAllToSecrets(Collection items) { - if (this.secrets == null) {this.secrets = new ArrayList();} - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").add(builder);this.secrets.add(builder);} return (A)this; + if (this.secrets == null) { + this.secrets = new ArrayList(); + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").add(builder); + this.secrets.add(builder); + } + return (A) this; } - public A removeFromSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.secrets == null) return (A)this; - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").remove(builder); this.secrets.remove(builder);} return (A)this; + public A removeFromSecrets(V1ObjectReference... items) { + if (this.secrets == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").remove(builder); + this.secrets.remove(builder); + } + return (A) this; } public A removeAllFromSecrets(Collection items) { - if (this.secrets == null) return (A)this; - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").remove(builder); this.secrets.remove(builder);} return (A)this; + if (this.secrets == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").remove(builder); + this.secrets.remove(builder); + } + return (A) this; } public A removeMatchingFromSecrets(Predicate predicate) { - if (secrets == null) return (A) this; - final Iterator each = secrets.iterator(); - final List visitables = _visitables.get("secrets"); + if (secrets == null) { + return (A) this; + } + Iterator each = secrets.iterator(); + List visitables = _visitables.get("secrets"); while (each.hasNext()) { - V1ObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSecrets() { @@ -394,7 +476,7 @@ public A withSecrets(List secrets) { return (A) this; } - public A withSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... secrets) { + public A withSecrets(V1ObjectReference... secrets) { if (this.secrets != null) { this.secrets.clear(); _visitables.remove("secrets"); @@ -408,7 +490,7 @@ public A withSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... se } public boolean hasSecrets() { - return this.secrets != null && !this.secrets.isEmpty(); + return this.secrets != null && !(this.secrets.isEmpty()); } public SecretsNested addNewSecret() { @@ -424,57 +506,109 @@ public SecretsNested setNewSecretLike(int index,V1ObjectReference item) { } public SecretsNested editSecret(int index) { - if (secrets.size() <= index) throw new RuntimeException("Can't edit secrets. Index exceeds size."); - return setNewSecretLike(index, buildSecret(index)); + if (index <= secrets.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "secrets")); + } + return this.setNewSecretLike(index, this.buildSecret(index)); } public SecretsNested editFirstSecret() { - if (secrets.size() == 0) throw new RuntimeException("Can't edit first secrets. The list is empty."); - return setNewSecretLike(0, buildSecret(0)); + if (secrets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "secrets")); + } + return this.setNewSecretLike(0, this.buildSecret(0)); } public SecretsNested editLastSecret() { int index = secrets.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last secrets. The list is empty."); - return setNewSecretLike(index, buildSecret(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "secrets")); + } + return this.setNewSecretLike(index, this.buildSecret(index)); } public SecretsNested editMatchingSecret(Predicate predicate) { int index = -1; - for (int i=0;i extends V1LocalObjectReferenceFluent extends V1ObjectReferenceFluent> int index; public N and() { - return (N) V1ServiceAccountFluent.this.setToSecrets(index,builder.build()); + return (N) V1ServiceAccountFluent.this.setToSecrets(index, builder.build()); } public N endSecret() { 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 705e2f1155..8fa9f3157d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceAccountListBuilder extends V1ServiceAccountListFluent implements VisitableBuilder{ public V1ServiceAccountListBuilder() { this(new V1ServiceAccountList()); 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 9d33e26915..4bcd55731e 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceAccountListFluent> extends BaseFluent{ +public class V1ServiceAccountListFluent> extends BaseFluent{ public V1ServiceAccountListFluent() { } @@ -29,13 +32,13 @@ public V1ServiceAccountListFluent(V1ServiceAccountList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ServiceAccountList instance) { - instance = (instance != null ? instance : new V1ServiceAccountList()); + instance = instance != null ? instance : new V1ServiceAccountList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ServiceAccount item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ServiceAccount item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ServiceAccount item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ServiceAccount item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ServiceAccount... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { - if (this.items == null) return (A)this; - for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ServiceAccount... items) { + if (this.items == null) { + return (A) this; + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ServiceAccountBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ServiceAccountBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { + public A withItems(V1ServiceAccount... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ServiceAccount item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceAccountListFluent that = (V1ServiceAccountListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ServiceAccountFluent> imple int index; public N and() { - return (N) V1ServiceAccountListFluent.this.setToItems(index,builder.build()); + return (N) V1ServiceAccountListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 b6307996ba..b4085cafbd 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceAccountSubjectBuilder extends V1ServiceAccountSubjectFluent implements VisitableBuilder{ public V1ServiceAccountSubjectBuilder() { this(new V1ServiceAccountSubject()); 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 c398528f76..5d14c0a74c 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceAccountSubjectFluent> extends BaseFluent{ +public class V1ServiceAccountSubjectFluent> extends BaseFluent{ public V1ServiceAccountSubjectFluent() { } @@ -20,11 +22,11 @@ public V1ServiceAccountSubjectFluent(V1ServiceAccountSubject instance) { private String namespace; protected void copyInstance(V1ServiceAccountSubject instance) { - instance = (instance != null ? instance : new V1ServiceAccountSubject()); + instance = instance != null ? instance : new V1ServiceAccountSubject(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + } } public String getName() { @@ -54,24 +56,41 @@ public boolean hasNamespace() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceAccountSubjectFluent that = (V1ServiceAccountSubjectFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, namespace, super.hashCode()); + return Objects.hash(name, namespace); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } 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 db3c1273b5..a855d1ef4d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceAccountTokenProjectionBuilder extends V1ServiceAccountTokenProjectionFluent implements VisitableBuilder{ public V1ServiceAccountTokenProjectionBuilder() { this(new V1ServiceAccountTokenProjection()); 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 00589a2a40..916e62b876 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceAccountTokenProjectionFluent> extends BaseFluent{ +public class V1ServiceAccountTokenProjectionFluent> extends BaseFluent{ public V1ServiceAccountTokenProjectionFluent() { } @@ -22,12 +24,12 @@ public V1ServiceAccountTokenProjectionFluent(V1ServiceAccountTokenProjection ins private String path; protected void copyInstance(V1ServiceAccountTokenProjection instance) { - instance = (instance != null ? instance : new V1ServiceAccountTokenProjection()); + instance = instance != null ? instance : new V1ServiceAccountTokenProjection(); if (instance != null) { - this.withAudience(instance.getAudience()); - this.withExpirationSeconds(instance.getExpirationSeconds()); - this.withPath(instance.getPath()); - } + this.withAudience(instance.getAudience()); + this.withExpirationSeconds(instance.getExpirationSeconds()); + this.withPath(instance.getPath()); + } } public String getAudience() { @@ -70,26 +72,49 @@ public boolean hasPath() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceAccountTokenProjectionFluent that = (V1ServiceAccountTokenProjectionFluent) o; - if (!java.util.Objects.equals(audience, that.audience)) return false; - if (!java.util.Objects.equals(expirationSeconds, that.expirationSeconds)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; + if (!(Objects.equals(audience, that.audience))) { + return false; + } + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(audience, expirationSeconds, path, super.hashCode()); + return Objects.hash(audience, expirationSeconds, path); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audience != null) { sb.append("audience:"); sb.append(audience + ","); } - if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds + ","); } - if (path != null) { sb.append("path:"); sb.append(path); } + if (!(audience == null)) { + sb.append("audience:"); + sb.append(audience); + sb.append(","); + } + if (!(expirationSeconds == null)) { + sb.append("expirationSeconds:"); + sb.append(expirationSeconds); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + } sb.append("}"); return sb.toString(); } 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 71aff254d3..70f9012a4c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceBackendPortBuilder extends V1ServiceBackendPortFluent implements VisitableBuilder{ public V1ServiceBackendPortBuilder() { this(new V1ServiceBackendPort()); 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 b4b1a08078..07b089fbf8 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceBackendPortFluent> extends BaseFluent{ +public class V1ServiceBackendPortFluent> extends BaseFluent{ public V1ServiceBackendPortFluent() { } @@ -21,11 +23,11 @@ public V1ServiceBackendPortFluent(V1ServiceBackendPort instance) { private Integer number; protected void copyInstance(V1ServiceBackendPort instance) { - instance = (instance != null ? instance : new V1ServiceBackendPort()); + instance = instance != null ? instance : new V1ServiceBackendPort(); if (instance != null) { - this.withName(instance.getName()); - this.withNumber(instance.getNumber()); - } + this.withName(instance.getName()); + this.withNumber(instance.getNumber()); + } } public String getName() { @@ -55,24 +57,41 @@ public boolean hasNumber() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceBackendPortFluent that = (V1ServiceBackendPortFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(number, that.number)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(number, that.number))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, number, super.hashCode()); + return Objects.hash(name, number); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (number != null) { sb.append("number:"); sb.append(number); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(number == null)) { + sb.append("number:"); + sb.append(number); + } sb.append("}"); return sb.toString(); } 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 b6c2375c31..360a947e4d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceBuilder extends V1ServiceFluent implements VisitableBuilder{ public V1ServiceBuilder() { this(new V1Service()); 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 4a38d474f3..8152363638 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceCIDRBuilder extends V1ServiceCIDRFluent implements VisitableBuilder{ public V1ServiceCIDRBuilder() { this(new V1ServiceCIDR()); 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 ef07b825ff..93ee65aa45 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceCIDRFluent> extends BaseFluent{ +public class V1ServiceCIDRFluent> extends BaseFluent{ public V1ServiceCIDRFluent() { } @@ -24,14 +27,14 @@ public V1ServiceCIDRFluent(V1ServiceCIDR instance) { private V1ServiceCIDRStatusBuilder status; protected void copyInstance(V1ServiceCIDR instance) { - instance = (instance != null ? instance : new V1ServiceCIDR()); + instance = instance != null ? instance : new V1ServiceCIDR(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1ServiceCIDRSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1ServiceCIDRSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ServiceCIDRSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ServiceCIDRSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1ServiceCIDRSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1ServiceCIDRStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1ServiceCIDRStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ServiceCIDRStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ServiceCIDRStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1ServiceCIDRStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceCIDRFluent that = (V1ServiceCIDRFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 2b4bedbe34..cc9569b343 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceCIDRListBuilder extends V1ServiceCIDRListFluent implements VisitableBuilder{ public V1ServiceCIDRListBuilder() { this(new V1ServiceCIDRList()); 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 8d43a424ad..7c8f7e31a1 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceCIDRListFluent> extends BaseFluent{ +public class V1ServiceCIDRListFluent> extends BaseFluent{ public V1ServiceCIDRListFluent() { } @@ -29,13 +32,13 @@ public V1ServiceCIDRListFluent(V1ServiceCIDRList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ServiceCIDRList instance) { - instance = (instance != null ? instance : new V1ServiceCIDRList()); + instance = instance != null ? instance : new V1ServiceCIDRList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ServiceCIDR item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ServiceCIDR item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ServiceCIDR item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ServiceCIDR item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ServiceCIDR... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ServiceCIDR item : items) { + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ServiceCIDR item : items) { + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { - if (this.items == null) return (A)this; - for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ServiceCIDR... items) { + if (this.items == null) { + return (A) this; + } + for (V1ServiceCIDR item : items) { + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ServiceCIDR item : items) {V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ServiceCIDR item : items) { + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ServiceCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ServiceCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { + public A withItems(V1ServiceCIDR... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ServiceCIDR... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ServiceCIDR item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceCIDRListFluent that = (V1ServiceCIDRListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ServiceCIDRFluent> implemen int index; public N and() { - return (N) V1ServiceCIDRListFluent.this.setToItems(index,builder.build()); + return (N) V1ServiceCIDRListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 0e939584e4..90ae679ecc 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceCIDRSpecBuilder extends V1ServiceCIDRSpecFluent implements VisitableBuilder{ public V1ServiceCIDRSpecBuilder() { this(new V1ServiceCIDRSpec()); 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 6f123ed2c3..0f91ac2646 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceCIDRSpecFluent> extends BaseFluent{ +public class V1ServiceCIDRSpecFluent> extends BaseFluent{ public V1ServiceCIDRSpecFluent() { } @@ -23,41 +25,66 @@ public V1ServiceCIDRSpecFluent(V1ServiceCIDRSpec instance) { private List cidrs; protected void copyInstance(V1ServiceCIDRSpec instance) { - instance = (instance != null ? instance : new V1ServiceCIDRSpec()); + instance = instance != null ? instance : new V1ServiceCIDRSpec(); if (instance != null) { - this.withCidrs(instance.getCidrs()); - } + this.withCidrs(instance.getCidrs()); + } } public A addToCidrs(int index,String item) { - if (this.cidrs == null) {this.cidrs = new ArrayList();} + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } this.cidrs.add(index, item); - return (A)this; + 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; + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + this.cidrs.set(index, item); + return (A) this; } - public A addToCidrs(java.lang.String... items) { - if (this.cidrs == null) {this.cidrs = new ArrayList();} - for (String item : items) {this.cidrs.add(item);} return (A)this; + public A addToCidrs(String... items) { + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + for (String item : items) { + this.cidrs.add(item); + } + return (A) this; } public A addAllToCidrs(Collection items) { - if (this.cidrs == null) {this.cidrs = new ArrayList();} - for (String item : items) {this.cidrs.add(item);} return (A)this; + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + for (String item : items) { + this.cidrs.add(item); + } + return (A) this; } - public A removeFromCidrs(java.lang.String... items) { - if (this.cidrs == null) return (A)this; - for (String item : items) { this.cidrs.remove(item);} return (A)this; + public A removeFromCidrs(String... items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; } public A removeAllFromCidrs(Collection items) { - if (this.cidrs == null) return (A)this; - for (String item : items) { this.cidrs.remove(item);} return (A)this; + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; } public List getCidrs() { @@ -106,7 +133,7 @@ public A withCidrs(List cidrs) { return (A) this; } - public A withCidrs(java.lang.String... cidrs) { + public A withCidrs(String... cidrs) { if (this.cidrs != null) { this.cidrs.clear(); _visitables.remove("cidrs"); @@ -120,26 +147,37 @@ public A withCidrs(java.lang.String... cidrs) { } public boolean hasCidrs() { - return this.cidrs != null && !this.cidrs.isEmpty(); + return this.cidrs != null && !(this.cidrs.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceCIDRSpecFluent that = (V1ServiceCIDRSpecFluent) o; - if (!java.util.Objects.equals(cidrs, that.cidrs)) return false; + if (!(Objects.equals(cidrs, that.cidrs))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(cidrs, super.hashCode()); + return Objects.hash(cidrs); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (cidrs != null && !cidrs.isEmpty()) { sb.append("cidrs:"); sb.append(cidrs); } + if (!(cidrs == null) && !(cidrs.isEmpty())) { + sb.append("cidrs:"); + sb.append(cidrs); + } sb.append("}"); return sb.toString(); } 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 eb9491bfbf..0ab3c76892 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceCIDRStatusBuilder extends V1ServiceCIDRStatusFluent implements VisitableBuilder{ public V1ServiceCIDRStatusBuilder() { this(new V1ServiceCIDRStatus()); 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 3b9e6ead0f..fed4623fd3 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceCIDRStatusFluent> extends BaseFluent{ +public class V1ServiceCIDRStatusFluent> extends BaseFluent{ public V1ServiceCIDRStatusFluent() { } @@ -26,14 +28,16 @@ public V1ServiceCIDRStatusFluent(V1ServiceCIDRStatus instance) { private ArrayList conditions; protected void copyInstance(V1ServiceCIDRStatus instance) { - instance = (instance != null ? instance : new V1ServiceCIDRStatus()); + instance = instance != null ? instance : new V1ServiceCIDRStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - } + this.withConditions(instance.getConditions()); + } } public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -42,11 +46,13 @@ public A addToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -55,41 +61,71 @@ public A setToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A 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 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; + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -141,7 +177,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + public A withConditions(V1Condition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -155,7 +191,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -171,47 +207,69 @@ public ConditionsNested setNewConditionLike(int index,V1Condition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1ConditionFluent> int index; public N and() { - return (N) V1ServiceCIDRStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1ServiceCIDRStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 dddb2cbcab..0b2e084820 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceFluent> extends BaseFluent{ +public class V1ServiceFluent> extends BaseFluent{ public V1ServiceFluent() { } @@ -24,14 +27,14 @@ public V1ServiceFluent(V1Service instance) { private V1ServiceStatusBuilder status; protected void copyInstance(V1Service instance) { - instance = (instance != null ? instance : new V1Service()); + instance = instance != null ? instance : new V1Service(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1ServiceSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1ServiceSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ServiceSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ServiceSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1ServiceSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1ServiceStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1ServiceStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ServiceStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ServiceStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1ServiceStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceFluent that = (V1ServiceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 ebde06c333..3d68ed0eca 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceListBuilder extends V1ServiceListFluent implements VisitableBuilder{ public V1ServiceListBuilder() { this(new V1ServiceList()); 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 fdbe00e477..dd4b9bf2f5 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceListFluent> extends BaseFluent{ +public class V1ServiceListFluent> extends BaseFluent{ public V1ServiceListFluent() { } @@ -29,13 +32,13 @@ public V1ServiceListFluent(V1ServiceList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1ServiceList instance) { - instance = (instance != null ? instance : new V1ServiceList()); + instance = instance != null ? instance : new V1ServiceList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1Service item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ServiceBuilder builder = new V1ServiceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1Service item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1Service item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ServiceBuilder builder = new V1ServiceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1Service item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1Service... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1Service... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Service... items) { - if (this.items == null) return (A)this; - for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1Service... items) { + if (this.items == null) { + return (A) this; + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ServiceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ServiceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Service... items) { + public A withItems(V1Service... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1Service... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1Service item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceListFluent that = (V1ServiceListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ServiceFluent> implements N int index; public N and() { - return (N) V1ServiceListFluent.this.setToItems(index,builder.build()); + return (N) V1ServiceListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 c2cbe7f5b9..eeb76fe25a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServicePortBuilder extends V1ServicePortFluent implements VisitableBuilder{ public V1ServicePortBuilder() { this(new V1ServicePort()); 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 1ebdb2e74a..1e17a55dbc 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ServicePortFluent> extends BaseFluent{ +public class V1ServicePortFluent> extends BaseFluent{ public V1ServicePortFluent() { } @@ -26,15 +28,15 @@ public V1ServicePortFluent(V1ServicePort instance) { private IntOrString targetPort; protected void copyInstance(V1ServicePort instance) { - instance = (instance != null ? instance : new V1ServicePort()); + instance = instance != null ? instance : new V1ServicePort(); if (instance != null) { - this.withAppProtocol(instance.getAppProtocol()); - this.withName(instance.getName()); - this.withNodePort(instance.getNodePort()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - this.withTargetPort(instance.getTargetPort()); - } + this.withAppProtocol(instance.getAppProtocol()); + this.withName(instance.getName()); + this.withNodePort(instance.getNodePort()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + this.withTargetPort(instance.getTargetPort()); + } } public String getAppProtocol() { @@ -116,40 +118,81 @@ public boolean hasTargetPort() { } public A withNewTargetPort(int value) { - return (A)withTargetPort(new IntOrString(value)); + return (A) this.withTargetPort(new IntOrString(value)); } public A withNewTargetPort(String value) { - return (A)withTargetPort(new IntOrString(value)); + return (A) this.withTargetPort(new IntOrString(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServicePortFluent that = (V1ServicePortFluent) o; - if (!java.util.Objects.equals(appProtocol, that.appProtocol)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(nodePort, that.nodePort)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; - if (!java.util.Objects.equals(targetPort, that.targetPort)) return false; + if (!(Objects.equals(appProtocol, that.appProtocol))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodePort, that.nodePort))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } + if (!(Objects.equals(targetPort, that.targetPort))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(appProtocol, name, nodePort, port, protocol, targetPort, super.hashCode()); + return Objects.hash(appProtocol, name, nodePort, port, protocol, targetPort); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (appProtocol != null) { sb.append("appProtocol:"); sb.append(appProtocol + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (nodePort != null) { sb.append("nodePort:"); sb.append(nodePort + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol + ","); } - if (targetPort != null) { sb.append("targetPort:"); sb.append(targetPort); } + if (!(appProtocol == null)) { + sb.append("appProtocol:"); + sb.append(appProtocol); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nodePort == null)) { + sb.append("nodePort:"); + sb.append(nodePort); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + sb.append(","); + } + if (!(targetPort == null)) { + sb.append("targetPort:"); + sb.append(targetPort); + } sb.append("}"); return sb.toString(); } 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 9186e2c714..ac4317761c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceSpecBuilder extends V1ServiceSpecFluent implements VisitableBuilder{ public V1ServiceSpecBuilder() { this(new V1ServiceSpec()); 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 449ecfb4c3..404ddfcce5 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; import java.lang.Integer; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; @@ -20,7 +23,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceSpecFluent> extends BaseFluent{ +public class V1ServiceSpecFluent> extends BaseFluent{ public V1ServiceSpecFluent() { } @@ -49,29 +52,29 @@ public V1ServiceSpecFluent(V1ServiceSpec instance) { private String type; protected void copyInstance(V1ServiceSpec instance) { - instance = (instance != null ? instance : new V1ServiceSpec()); + instance = instance != null ? instance : new V1ServiceSpec(); if (instance != null) { - this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); - this.withClusterIP(instance.getClusterIP()); - this.withClusterIPs(instance.getClusterIPs()); - this.withExternalIPs(instance.getExternalIPs()); - this.withExternalName(instance.getExternalName()); - this.withExternalTrafficPolicy(instance.getExternalTrafficPolicy()); - this.withHealthCheckNodePort(instance.getHealthCheckNodePort()); - this.withInternalTrafficPolicy(instance.getInternalTrafficPolicy()); - this.withIpFamilies(instance.getIpFamilies()); - this.withIpFamilyPolicy(instance.getIpFamilyPolicy()); - this.withLoadBalancerClass(instance.getLoadBalancerClass()); - this.withLoadBalancerIP(instance.getLoadBalancerIP()); - this.withLoadBalancerSourceRanges(instance.getLoadBalancerSourceRanges()); - this.withPorts(instance.getPorts()); - this.withPublishNotReadyAddresses(instance.getPublishNotReadyAddresses()); - this.withSelector(instance.getSelector()); - this.withSessionAffinity(instance.getSessionAffinity()); - this.withSessionAffinityConfig(instance.getSessionAffinityConfig()); - this.withTrafficDistribution(instance.getTrafficDistribution()); - this.withType(instance.getType()); - } + this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); + this.withClusterIP(instance.getClusterIP()); + this.withClusterIPs(instance.getClusterIPs()); + this.withExternalIPs(instance.getExternalIPs()); + this.withExternalName(instance.getExternalName()); + this.withExternalTrafficPolicy(instance.getExternalTrafficPolicy()); + this.withHealthCheckNodePort(instance.getHealthCheckNodePort()); + this.withInternalTrafficPolicy(instance.getInternalTrafficPolicy()); + this.withIpFamilies(instance.getIpFamilies()); + this.withIpFamilyPolicy(instance.getIpFamilyPolicy()); + this.withLoadBalancerClass(instance.getLoadBalancerClass()); + this.withLoadBalancerIP(instance.getLoadBalancerIP()); + this.withLoadBalancerSourceRanges(instance.getLoadBalancerSourceRanges()); + this.withPorts(instance.getPorts()); + this.withPublishNotReadyAddresses(instance.getPublishNotReadyAddresses()); + this.withSelector(instance.getSelector()); + this.withSessionAffinity(instance.getSessionAffinity()); + this.withSessionAffinityConfig(instance.getSessionAffinityConfig()); + this.withTrafficDistribution(instance.getTrafficDistribution()); + this.withType(instance.getType()); + } } public Boolean getAllocateLoadBalancerNodePorts() { @@ -101,34 +104,59 @@ public boolean hasClusterIP() { } public A addToClusterIPs(int index,String item) { - if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); + } this.clusterIPs.add(index, item); - return (A)this; + return (A) this; } public A setToClusterIPs(int index,String item) { - if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} - this.clusterIPs.set(index, item); return (A)this; + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); + } + this.clusterIPs.set(index, item); + return (A) this; } - public A addToClusterIPs(java.lang.String... items) { - if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} - for (String item : items) {this.clusterIPs.add(item);} return (A)this; + public A addToClusterIPs(String... items) { + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); + } + for (String item : items) { + this.clusterIPs.add(item); + } + return (A) this; } public A addAllToClusterIPs(Collection items) { - if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} - for (String item : items) {this.clusterIPs.add(item);} return (A)this; + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); + } + for (String item : items) { + this.clusterIPs.add(item); + } + return (A) this; } - public A removeFromClusterIPs(java.lang.String... items) { - if (this.clusterIPs == null) return (A)this; - for (String item : items) { this.clusterIPs.remove(item);} return (A)this; + public A removeFromClusterIPs(String... items) { + if (this.clusterIPs == null) { + return (A) this; + } + for (String item : items) { + this.clusterIPs.remove(item); + } + return (A) this; } public A removeAllFromClusterIPs(Collection items) { - if (this.clusterIPs == null) return (A)this; - for (String item : items) { this.clusterIPs.remove(item);} return (A)this; + if (this.clusterIPs == null) { + return (A) this; + } + for (String item : items) { + this.clusterIPs.remove(item); + } + return (A) this; } public List getClusterIPs() { @@ -177,7 +205,7 @@ public A withClusterIPs(List clusterIPs) { return (A) this; } - public A withClusterIPs(java.lang.String... clusterIPs) { + public A withClusterIPs(String... clusterIPs) { if (this.clusterIPs != null) { this.clusterIPs.clear(); _visitables.remove("clusterIPs"); @@ -191,38 +219,63 @@ public A withClusterIPs(java.lang.String... clusterIPs) { } public boolean hasClusterIPs() { - return this.clusterIPs != null && !this.clusterIPs.isEmpty(); + return this.clusterIPs != null && !(this.clusterIPs.isEmpty()); } public A addToExternalIPs(int index,String item) { - if (this.externalIPs == null) {this.externalIPs = new ArrayList();} + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); + } this.externalIPs.add(index, item); - return (A)this; + return (A) this; } public A setToExternalIPs(int index,String item) { - if (this.externalIPs == null) {this.externalIPs = new ArrayList();} - this.externalIPs.set(index, item); return (A)this; + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); + } + this.externalIPs.set(index, item); + return (A) this; } - public A addToExternalIPs(java.lang.String... items) { - if (this.externalIPs == null) {this.externalIPs = new ArrayList();} - for (String item : items) {this.externalIPs.add(item);} return (A)this; + public A addToExternalIPs(String... items) { + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); + } + for (String item : items) { + this.externalIPs.add(item); + } + return (A) this; } public A addAllToExternalIPs(Collection items) { - if (this.externalIPs == null) {this.externalIPs = new ArrayList();} - for (String item : items) {this.externalIPs.add(item);} return (A)this; + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); + } + for (String item : items) { + this.externalIPs.add(item); + } + return (A) this; } - public A removeFromExternalIPs(java.lang.String... items) { - if (this.externalIPs == null) return (A)this; - for (String item : items) { this.externalIPs.remove(item);} return (A)this; + public A removeFromExternalIPs(String... items) { + if (this.externalIPs == null) { + return (A) this; + } + for (String item : items) { + this.externalIPs.remove(item); + } + return (A) this; } public A removeAllFromExternalIPs(Collection items) { - if (this.externalIPs == null) return (A)this; - for (String item : items) { this.externalIPs.remove(item);} return (A)this; + if (this.externalIPs == null) { + return (A) this; + } + for (String item : items) { + this.externalIPs.remove(item); + } + return (A) this; } public List getExternalIPs() { @@ -271,7 +324,7 @@ public A withExternalIPs(List externalIPs) { return (A) this; } - public A withExternalIPs(java.lang.String... externalIPs) { + public A withExternalIPs(String... externalIPs) { if (this.externalIPs != null) { this.externalIPs.clear(); _visitables.remove("externalIPs"); @@ -285,7 +338,7 @@ public A withExternalIPs(java.lang.String... externalIPs) { } public boolean hasExternalIPs() { - return this.externalIPs != null && !this.externalIPs.isEmpty(); + return this.externalIPs != null && !(this.externalIPs.isEmpty()); } public String getExternalName() { @@ -341,34 +394,59 @@ public boolean hasInternalTrafficPolicy() { } public A addToIpFamilies(int index,String item) { - if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } this.ipFamilies.add(index, item); - return (A)this; + return (A) this; } public A setToIpFamilies(int index,String item) { - if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} - this.ipFamilies.set(index, item); return (A)this; + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } + this.ipFamilies.set(index, item); + return (A) this; } - public A addToIpFamilies(java.lang.String... items) { - if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} - for (String item : items) {this.ipFamilies.add(item);} return (A)this; + public A addToIpFamilies(String... items) { + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } + for (String item : items) { + this.ipFamilies.add(item); + } + return (A) this; } public A addAllToIpFamilies(Collection items) { - if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} - for (String item : items) {this.ipFamilies.add(item);} return (A)this; + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } + for (String item : items) { + this.ipFamilies.add(item); + } + return (A) this; } - public A removeFromIpFamilies(java.lang.String... items) { - if (this.ipFamilies == null) return (A)this; - for (String item : items) { this.ipFamilies.remove(item);} return (A)this; + public A removeFromIpFamilies(String... items) { + if (this.ipFamilies == null) { + return (A) this; + } + for (String item : items) { + this.ipFamilies.remove(item); + } + return (A) this; } public A removeAllFromIpFamilies(Collection items) { - if (this.ipFamilies == null) return (A)this; - for (String item : items) { this.ipFamilies.remove(item);} return (A)this; + if (this.ipFamilies == null) { + return (A) this; + } + for (String item : items) { + this.ipFamilies.remove(item); + } + return (A) this; } public List getIpFamilies() { @@ -417,7 +495,7 @@ public A withIpFamilies(List ipFamilies) { return (A) this; } - public A withIpFamilies(java.lang.String... ipFamilies) { + public A withIpFamilies(String... ipFamilies) { if (this.ipFamilies != null) { this.ipFamilies.clear(); _visitables.remove("ipFamilies"); @@ -431,7 +509,7 @@ public A withIpFamilies(java.lang.String... ipFamilies) { } public boolean hasIpFamilies() { - return this.ipFamilies != null && !this.ipFamilies.isEmpty(); + return this.ipFamilies != null && !(this.ipFamilies.isEmpty()); } public String getIpFamilyPolicy() { @@ -474,34 +552,59 @@ public boolean hasLoadBalancerIP() { } public A addToLoadBalancerSourceRanges(int index,String item) { - if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); + } this.loadBalancerSourceRanges.add(index, item); - return (A)this; + return (A) this; } public A setToLoadBalancerSourceRanges(int index,String item) { - if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} - this.loadBalancerSourceRanges.set(index, item); return (A)this; + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); + } + this.loadBalancerSourceRanges.set(index, item); + return (A) this; } - public A addToLoadBalancerSourceRanges(java.lang.String... items) { - if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} - for (String item : items) {this.loadBalancerSourceRanges.add(item);} return (A)this; + public A addToLoadBalancerSourceRanges(String... items) { + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); + } + for (String item : items) { + this.loadBalancerSourceRanges.add(item); + } + return (A) this; } public A addAllToLoadBalancerSourceRanges(Collection items) { - if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} - for (String item : items) {this.loadBalancerSourceRanges.add(item);} return (A)this; + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); + } + for (String item : items) { + this.loadBalancerSourceRanges.add(item); + } + return (A) this; } - public A removeFromLoadBalancerSourceRanges(java.lang.String... items) { - if (this.loadBalancerSourceRanges == null) return (A)this; - for (String item : items) { this.loadBalancerSourceRanges.remove(item);} return (A)this; + public A removeFromLoadBalancerSourceRanges(String... items) { + if (this.loadBalancerSourceRanges == null) { + return (A) this; + } + for (String item : items) { + this.loadBalancerSourceRanges.remove(item); + } + return (A) this; } public A removeAllFromLoadBalancerSourceRanges(Collection items) { - if (this.loadBalancerSourceRanges == null) return (A)this; - for (String item : items) { this.loadBalancerSourceRanges.remove(item);} return (A)this; + if (this.loadBalancerSourceRanges == null) { + return (A) this; + } + for (String item : items) { + this.loadBalancerSourceRanges.remove(item); + } + return (A) this; } public List getLoadBalancerSourceRanges() { @@ -550,7 +653,7 @@ public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges) { return (A) this; } - public A withLoadBalancerSourceRanges(java.lang.String... loadBalancerSourceRanges) { + public A withLoadBalancerSourceRanges(String... loadBalancerSourceRanges) { if (this.loadBalancerSourceRanges != null) { this.loadBalancerSourceRanges.clear(); _visitables.remove("loadBalancerSourceRanges"); @@ -564,11 +667,13 @@ public A withLoadBalancerSourceRanges(java.lang.String... loadBalancerSourceRang } public boolean hasLoadBalancerSourceRanges() { - return this.loadBalancerSourceRanges != null && !this.loadBalancerSourceRanges.isEmpty(); + return this.loadBalancerSourceRanges != null && !(this.loadBalancerSourceRanges.isEmpty()); } public A addToPorts(int index,V1ServicePort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1ServicePortBuilder builder = new V1ServicePortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -577,11 +682,13 @@ public A addToPorts(int index,V1ServicePort item) { _visitables.get("ports").add(builder); ports.add(index, builder); } - return (A)this; + return (A) this; } public A setToPorts(int index,V1ServicePort item) { - if (this.ports == null) {this.ports = new ArrayList();} + if (this.ports == null) { + this.ports = new ArrayList(); + } V1ServicePortBuilder builder = new V1ServicePortBuilder(item); if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); @@ -590,41 +697,71 @@ public A setToPorts(int index,V1ServicePort item) { _visitables.get("ports").add(builder); ports.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.V1ServicePort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A addToPorts(V1ServicePort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ServicePort... items) { - if (this.ports == null) return (A)this; - for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeFromPorts(V1ServicePort... items) { + if (this.ports == null) { + return (A) this; + } + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - V1ServicePortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ServicePortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPorts() { @@ -676,7 +813,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1ServicePort... ports) { + public A withPorts(V1ServicePort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -690,7 +827,7 @@ public A withPorts(io.kubernetes.client.openapi.models.V1ServicePort... ports) { } public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + return this.ports != null && !(this.ports.isEmpty()); } public PortsNested addNewPort() { @@ -706,28 +843,39 @@ public PortsNested setNewPortLike(int index,V1ServicePort item) { } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (index <= ports.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public PortsNested editLastPort() { int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editMatchingPort(Predicate predicate) { int index = -1; - for (int i=0;i map) { - if(this.selector == null && map != null) { this.selector = new LinkedHashMap(); } - if(map != null) { this.selector.putAll(map);} return (A)this; + if (this.selector == null && map != null) { + this.selector = new LinkedHashMap(); + } + if (map != null) { + this.selector.putAll(map); + } + return (A) this; } public A removeFromSelector(String key) { - if(this.selector == null) { return (A) this; } - if(key != null && this.selector != null) {this.selector.remove(key);} return (A)this; + if (this.selector == null) { + return (A) this; + } + if (key != null && this.selector != null) { + this.selector.remove(key); + } + return (A) this; } public A removeFromSelector(Map map) { - if(this.selector == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.selector != null){this.selector.remove(key);}}} return (A)this; + if (this.selector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.selector != null) { + this.selector.remove(key); + } + } + } + return (A) this; } public Map getSelector() { @@ -822,15 +994,15 @@ public SessionAffinityConfigNested withNewSessionAffinityConfigLike(V1Session } public SessionAffinityConfigNested editSessionAffinityConfig() { - return withNewSessionAffinityConfigLike(java.util.Optional.ofNullable(buildSessionAffinityConfig()).orElse(null)); + return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(null)); } public SessionAffinityConfigNested editOrNewSessionAffinityConfig() { - return withNewSessionAffinityConfigLike(java.util.Optional.ofNullable(buildSessionAffinityConfig()).orElse(new V1SessionAffinityConfigBuilder().build())); + return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(new V1SessionAffinityConfigBuilder().build())); } public SessionAffinityConfigNested editOrNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { - return withNewSessionAffinityConfigLike(java.util.Optional.ofNullable(buildSessionAffinityConfig()).orElse(item)); + return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(item)); } public String getTrafficDistribution() { @@ -860,60 +1032,185 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceSpecFluent that = (V1ServiceSpecFluent) o; - if (!java.util.Objects.equals(allocateLoadBalancerNodePorts, that.allocateLoadBalancerNodePorts)) return false; - if (!java.util.Objects.equals(clusterIP, that.clusterIP)) return false; - if (!java.util.Objects.equals(clusterIPs, that.clusterIPs)) return false; - if (!java.util.Objects.equals(externalIPs, that.externalIPs)) return false; - if (!java.util.Objects.equals(externalName, that.externalName)) return false; - if (!java.util.Objects.equals(externalTrafficPolicy, that.externalTrafficPolicy)) return false; - if (!java.util.Objects.equals(healthCheckNodePort, that.healthCheckNodePort)) return false; - if (!java.util.Objects.equals(internalTrafficPolicy, that.internalTrafficPolicy)) return false; - if (!java.util.Objects.equals(ipFamilies, that.ipFamilies)) return false; - if (!java.util.Objects.equals(ipFamilyPolicy, that.ipFamilyPolicy)) return false; - if (!java.util.Objects.equals(loadBalancerClass, that.loadBalancerClass)) return false; - if (!java.util.Objects.equals(loadBalancerIP, that.loadBalancerIP)) return false; - if (!java.util.Objects.equals(loadBalancerSourceRanges, that.loadBalancerSourceRanges)) return false; - if (!java.util.Objects.equals(ports, that.ports)) return false; - if (!java.util.Objects.equals(publishNotReadyAddresses, that.publishNotReadyAddresses)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(sessionAffinity, that.sessionAffinity)) return false; - if (!java.util.Objects.equals(sessionAffinityConfig, that.sessionAffinityConfig)) return false; - if (!java.util.Objects.equals(trafficDistribution, that.trafficDistribution)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(allocateLoadBalancerNodePorts, that.allocateLoadBalancerNodePorts))) { + return false; + } + if (!(Objects.equals(clusterIP, that.clusterIP))) { + return false; + } + if (!(Objects.equals(clusterIPs, that.clusterIPs))) { + return false; + } + if (!(Objects.equals(externalIPs, that.externalIPs))) { + return false; + } + if (!(Objects.equals(externalName, that.externalName))) { + return false; + } + if (!(Objects.equals(externalTrafficPolicy, that.externalTrafficPolicy))) { + return false; + } + if (!(Objects.equals(healthCheckNodePort, that.healthCheckNodePort))) { + return false; + } + if (!(Objects.equals(internalTrafficPolicy, that.internalTrafficPolicy))) { + return false; + } + if (!(Objects.equals(ipFamilies, that.ipFamilies))) { + return false; + } + if (!(Objects.equals(ipFamilyPolicy, that.ipFamilyPolicy))) { + return false; + } + if (!(Objects.equals(loadBalancerClass, that.loadBalancerClass))) { + return false; + } + if (!(Objects.equals(loadBalancerIP, that.loadBalancerIP))) { + return false; + } + if (!(Objects.equals(loadBalancerSourceRanges, that.loadBalancerSourceRanges))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + if (!(Objects.equals(publishNotReadyAddresses, that.publishNotReadyAddresses))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(sessionAffinity, that.sessionAffinity))) { + return false; + } + if (!(Objects.equals(sessionAffinityConfig, that.sessionAffinityConfig))) { + return false; + } + if (!(Objects.equals(trafficDistribution, that.trafficDistribution))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, trafficDistribution, type, super.hashCode()); + return Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, trafficDistribution, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allocateLoadBalancerNodePorts != null) { sb.append("allocateLoadBalancerNodePorts:"); sb.append(allocateLoadBalancerNodePorts + ","); } - if (clusterIP != null) { sb.append("clusterIP:"); sb.append(clusterIP + ","); } - if (clusterIPs != null && !clusterIPs.isEmpty()) { sb.append("clusterIPs:"); sb.append(clusterIPs + ","); } - if (externalIPs != null && !externalIPs.isEmpty()) { sb.append("externalIPs:"); sb.append(externalIPs + ","); } - if (externalName != null) { sb.append("externalName:"); sb.append(externalName + ","); } - if (externalTrafficPolicy != null) { sb.append("externalTrafficPolicy:"); sb.append(externalTrafficPolicy + ","); } - if (healthCheckNodePort != null) { sb.append("healthCheckNodePort:"); sb.append(healthCheckNodePort + ","); } - if (internalTrafficPolicy != null) { sb.append("internalTrafficPolicy:"); sb.append(internalTrafficPolicy + ","); } - if (ipFamilies != null && !ipFamilies.isEmpty()) { sb.append("ipFamilies:"); sb.append(ipFamilies + ","); } - if (ipFamilyPolicy != null) { sb.append("ipFamilyPolicy:"); sb.append(ipFamilyPolicy + ","); } - if (loadBalancerClass != null) { sb.append("loadBalancerClass:"); sb.append(loadBalancerClass + ","); } - if (loadBalancerIP != null) { sb.append("loadBalancerIP:"); sb.append(loadBalancerIP + ","); } - if (loadBalancerSourceRanges != null && !loadBalancerSourceRanges.isEmpty()) { sb.append("loadBalancerSourceRanges:"); sb.append(loadBalancerSourceRanges + ","); } - if (ports != null && !ports.isEmpty()) { sb.append("ports:"); sb.append(ports + ","); } - if (publishNotReadyAddresses != null) { sb.append("publishNotReadyAddresses:"); sb.append(publishNotReadyAddresses + ","); } - if (selector != null && !selector.isEmpty()) { sb.append("selector:"); sb.append(selector + ","); } - if (sessionAffinity != null) { sb.append("sessionAffinity:"); sb.append(sessionAffinity + ","); } - if (sessionAffinityConfig != null) { sb.append("sessionAffinityConfig:"); sb.append(sessionAffinityConfig + ","); } - if (trafficDistribution != null) { sb.append("trafficDistribution:"); sb.append(trafficDistribution + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(allocateLoadBalancerNodePorts == null)) { + sb.append("allocateLoadBalancerNodePorts:"); + sb.append(allocateLoadBalancerNodePorts); + sb.append(","); + } + if (!(clusterIP == null)) { + sb.append("clusterIP:"); + sb.append(clusterIP); + sb.append(","); + } + if (!(clusterIPs == null) && !(clusterIPs.isEmpty())) { + sb.append("clusterIPs:"); + sb.append(clusterIPs); + sb.append(","); + } + if (!(externalIPs == null) && !(externalIPs.isEmpty())) { + sb.append("externalIPs:"); + sb.append(externalIPs); + sb.append(","); + } + if (!(externalName == null)) { + sb.append("externalName:"); + sb.append(externalName); + sb.append(","); + } + if (!(externalTrafficPolicy == null)) { + sb.append("externalTrafficPolicy:"); + sb.append(externalTrafficPolicy); + sb.append(","); + } + if (!(healthCheckNodePort == null)) { + sb.append("healthCheckNodePort:"); + sb.append(healthCheckNodePort); + sb.append(","); + } + if (!(internalTrafficPolicy == null)) { + sb.append("internalTrafficPolicy:"); + sb.append(internalTrafficPolicy); + sb.append(","); + } + if (!(ipFamilies == null) && !(ipFamilies.isEmpty())) { + sb.append("ipFamilies:"); + sb.append(ipFamilies); + sb.append(","); + } + if (!(ipFamilyPolicy == null)) { + sb.append("ipFamilyPolicy:"); + sb.append(ipFamilyPolicy); + sb.append(","); + } + if (!(loadBalancerClass == null)) { + sb.append("loadBalancerClass:"); + sb.append(loadBalancerClass); + sb.append(","); + } + if (!(loadBalancerIP == null)) { + sb.append("loadBalancerIP:"); + sb.append(loadBalancerIP); + sb.append(","); + } + if (!(loadBalancerSourceRanges == null) && !(loadBalancerSourceRanges.isEmpty())) { + sb.append("loadBalancerSourceRanges:"); + sb.append(loadBalancerSourceRanges); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + sb.append(","); + } + if (!(publishNotReadyAddresses == null)) { + sb.append("publishNotReadyAddresses:"); + sb.append(publishNotReadyAddresses); + sb.append(","); + } + if (!(selector == null) && !(selector.isEmpty())) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(sessionAffinity == null)) { + sb.append("sessionAffinity:"); + sb.append(sessionAffinity); + sb.append(","); + } + if (!(sessionAffinityConfig == null)) { + sb.append("sessionAffinityConfig:"); + sb.append(sessionAffinityConfig); + sb.append(","); + } + if (!(trafficDistribution == null)) { + sb.append("trafficDistribution:"); + sb.append(trafficDistribution); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } @@ -934,7 +1231,7 @@ public class PortsNested extends V1ServicePortFluent> implemen int index; public N and() { - return (N) V1ServiceSpecFluent.this.setToPorts(index,builder.build()); + return (N) V1ServiceSpecFluent.this.setToPorts(index, builder.build()); } public N endPort() { 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 3196ea48f4..74833a9c26 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceStatusBuilder extends V1ServiceStatusFluent implements VisitableBuilder{ public V1ServiceStatusBuilder() { this(new V1ServiceStatus()); 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 98573d1730..574c5fb757 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceStatusFluent> extends BaseFluent{ +public class V1ServiceStatusFluent> extends BaseFluent{ public V1ServiceStatusFluent() { } @@ -27,15 +30,17 @@ public V1ServiceStatusFluent(V1ServiceStatus instance) { private V1LoadBalancerStatusBuilder loadBalancer; protected void copyInstance(V1ServiceStatus instance) { - instance = (instance != null ? instance : new V1ServiceStatus()); + instance = instance != null ? instance : new V1ServiceStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - this.withLoadBalancer(instance.getLoadBalancer()); - } + this.withConditions(instance.getConditions()); + this.withLoadBalancer(instance.getLoadBalancer()); + } } public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -44,11 +49,13 @@ public A addToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -57,41 +64,71 @@ public A setToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A 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 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; + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -143,7 +180,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + public A withConditions(V1Condition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -157,7 +194,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -173,28 +210,39 @@ public ConditionsNested setNewConditionLike(int index,V1Condition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 withNewLoadBalancerLike(V1LoadBalancerStatus item) } public LoadBalancerNested editLoadBalancer() { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(null)); + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(null)); } public LoadBalancerNested editOrNewLoadBalancer() { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(new V1LoadBalancerStatusBuilder().build())); + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(new V1LoadBalancerStatusBuilder().build())); } public LoadBalancerNested editOrNewLoadBalancerLike(V1LoadBalancerStatus item) { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(item)); + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ServiceStatusFluent that = (V1ServiceStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(loadBalancer, that.loadBalancer)) return false; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(loadBalancer, that.loadBalancer))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(conditions, loadBalancer, super.hashCode()); + return Objects.hash(conditions, loadBalancer); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (loadBalancer != null) { sb.append("loadBalancer:"); sb.append(loadBalancer); } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(loadBalancer == null)) { + sb.append("loadBalancer:"); + sb.append(loadBalancer); + } sb.append("}"); return sb.toString(); } @@ -268,7 +333,7 @@ public class ConditionsNested extends V1ConditionFluent> int index; public N and() { - return (N) V1ServiceStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1ServiceStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 e0b3b5e5b4..18787763fe 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SessionAffinityConfigBuilder extends V1SessionAffinityConfigFluent implements VisitableBuilder{ public V1SessionAffinityConfigBuilder() { this(new V1SessionAffinityConfig()); 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 a5943dfe2f..04812381ac 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SessionAffinityConfigFluent> extends BaseFluent{ +public class V1SessionAffinityConfigFluent> extends BaseFluent{ public V1SessionAffinityConfigFluent() { } @@ -20,10 +23,10 @@ public V1SessionAffinityConfigFluent(V1SessionAffinityConfig instance) { private V1ClientIPConfigBuilder clientIP; protected void copyInstance(V1SessionAffinityConfig instance) { - instance = (instance != null ? instance : new V1SessionAffinityConfig()); + instance = instance != null ? instance : new V1SessionAffinityConfig(); if (instance != null) { - this.withClientIP(instance.getClientIP()); - } + this.withClientIP(instance.getClientIP()); + } } public V1ClientIPConfig buildClientIP() { @@ -55,34 +58,45 @@ public ClientIPNested withNewClientIPLike(V1ClientIPConfig item) { } public ClientIPNested editClientIP() { - return withNewClientIPLike(java.util.Optional.ofNullable(buildClientIP()).orElse(null)); + return this.withNewClientIPLike(Optional.ofNullable(this.buildClientIP()).orElse(null)); } public ClientIPNested editOrNewClientIP() { - return withNewClientIPLike(java.util.Optional.ofNullable(buildClientIP()).orElse(new V1ClientIPConfigBuilder().build())); + return this.withNewClientIPLike(Optional.ofNullable(this.buildClientIP()).orElse(new V1ClientIPConfigBuilder().build())); } public ClientIPNested editOrNewClientIPLike(V1ClientIPConfig item) { - return withNewClientIPLike(java.util.Optional.ofNullable(buildClientIP()).orElse(item)); + return this.withNewClientIPLike(Optional.ofNullable(this.buildClientIP()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SessionAffinityConfigFluent that = (V1SessionAffinityConfigFluent) o; - if (!java.util.Objects.equals(clientIP, that.clientIP)) return false; + if (!(Objects.equals(clientIP, that.clientIP))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(clientIP, super.hashCode()); + return Objects.hash(clientIP); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (clientIP != null) { sb.append("clientIP:"); sb.append(clientIP); } + if (!(clientIP == null)) { + sb.append("clientIP:"); + sb.append(clientIP); + } sb.append("}"); return sb.toString(); } 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 cfd1d66dad..a307a74b44 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SleepActionBuilder extends V1SleepActionFluent implements VisitableBuilder{ public V1SleepActionBuilder() { this(new V1SleepAction()); 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 a943df99d3..e11e2500db 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SleepActionFluent> extends BaseFluent{ +public class V1SleepActionFluent> extends BaseFluent{ public V1SleepActionFluent() { } @@ -20,10 +22,10 @@ public V1SleepActionFluent(V1SleepAction instance) { private Long seconds; protected void copyInstance(V1SleepAction instance) { - instance = (instance != null ? instance : new V1SleepAction()); + instance = instance != null ? instance : new V1SleepAction(); if (instance != null) { - this.withSeconds(instance.getSeconds()); - } + this.withSeconds(instance.getSeconds()); + } } public Long getSeconds() { @@ -40,22 +42,33 @@ public boolean hasSeconds() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SleepActionFluent that = (V1SleepActionFluent) o; - if (!java.util.Objects.equals(seconds, that.seconds)) return false; + if (!(Objects.equals(seconds, that.seconds))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(seconds, super.hashCode()); + return Objects.hash(seconds); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (seconds != null) { sb.append("seconds:"); sb.append(seconds); } + if (!(seconds == null)) { + sb.append("seconds:"); + sb.append(seconds); + } sb.append("}"); return sb.toString(); } 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 11d8a248cc..98c633db0d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetBuilder extends V1StatefulSetFluent implements VisitableBuilder{ public V1StatefulSetBuilder() { this(new V1StatefulSet()); 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 f44b6cfc3b..47e398cc7e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetConditionBuilder extends V1StatefulSetConditionFluent implements VisitableBuilder{ public V1StatefulSetConditionBuilder() { this(new V1StatefulSetCondition()); 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 89b9419182..a177093f28 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetConditionFluent> extends BaseFluent{ +public class V1StatefulSetConditionFluent> extends BaseFluent{ public V1StatefulSetConditionFluent() { } @@ -24,14 +26,14 @@ public V1StatefulSetConditionFluent(V1StatefulSetCondition instance) { private String type; protected void copyInstance(V1StatefulSetCondition instance) { - instance = (instance != null ? instance : new V1StatefulSetCondition()); + instance = instance != null ? instance : new V1StatefulSetCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StatefulSetConditionFluent that = (V1StatefulSetConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 394864639e..ccc2fa0f30 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetFluent> extends BaseFluent{ +public class V1StatefulSetFluent> extends BaseFluent{ public V1StatefulSetFluent() { } @@ -24,14 +27,14 @@ public V1StatefulSetFluent(V1StatefulSet instance) { private V1StatefulSetStatusBuilder status; protected void copyInstance(V1StatefulSet instance) { - instance = (instance != null ? instance : new V1StatefulSet()); + instance = instance != null ? instance : new V1StatefulSet(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1StatefulSetSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1StatefulSetSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1StatefulSetSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1StatefulSetSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1StatefulSetSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1StatefulSetStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1StatefulSetStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1StatefulSetStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1StatefulSetStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1StatefulSetStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StatefulSetFluent that = (V1StatefulSetFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 04dbfd274a..1d53289596 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetListBuilder extends V1StatefulSetListFluent implements VisitableBuilder{ public V1StatefulSetListBuilder() { this(new V1StatefulSetList()); 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 b89a193942..38c40a551a 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetListFluent> extends BaseFluent{ +public class V1StatefulSetListFluent> extends BaseFluent{ public V1StatefulSetListFluent() { } @@ -29,13 +32,13 @@ public V1StatefulSetListFluent(V1StatefulSetList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1StatefulSetList instance) { - instance = (instance != null ? instance : new V1StatefulSetList()); + instance = instance != null ? instance : new V1StatefulSetList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1StatefulSet item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1StatefulSet item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1StatefulSet item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1StatefulSet item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1StatefulSet... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { - if (this.items == null) return (A)this; - for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1StatefulSet... items) { + if (this.items == null) { + return (A) this; + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1StatefulSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1StatefulSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { + public A withItems(V1StatefulSet... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1StatefulSet item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StatefulSetListFluent that = (V1StatefulSetListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1StatefulSetFluent> implemen int index; public N and() { - return (N) V1StatefulSetListFluent.this.setToItems(index,builder.build()); + return (N) V1StatefulSetListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 2d8e02b984..6dbc7bc512 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetOrdinalsBuilder extends V1StatefulSetOrdinalsFluent implements VisitableBuilder{ public V1StatefulSetOrdinalsBuilder() { this(new V1StatefulSetOrdinals()); 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 582c535f39..33049c196d 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetOrdinalsFluent> extends BaseFluent{ +public class V1StatefulSetOrdinalsFluent> extends BaseFluent{ public V1StatefulSetOrdinalsFluent() { } @@ -20,10 +22,10 @@ public V1StatefulSetOrdinalsFluent(V1StatefulSetOrdinals instance) { private Integer start; protected void copyInstance(V1StatefulSetOrdinals instance) { - instance = (instance != null ? instance : new V1StatefulSetOrdinals()); + instance = instance != null ? instance : new V1StatefulSetOrdinals(); if (instance != null) { - this.withStart(instance.getStart()); - } + this.withStart(instance.getStart()); + } } public Integer getStart() { @@ -40,22 +42,33 @@ public boolean hasStart() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StatefulSetOrdinalsFluent that = (V1StatefulSetOrdinalsFluent) o; - if (!java.util.Objects.equals(start, that.start)) return false; + if (!(Objects.equals(start, that.start))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(start, super.hashCode()); + return Objects.hash(start); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (start != null) { sb.append("start:"); sb.append(start); } + if (!(start == null)) { + sb.append("start:"); + sb.append(start); + } sb.append("}"); return sb.toString(); } 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 91a57ae759..342905619d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent implements VisitableBuilder{ public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder() { this(new V1StatefulSetPersistentVolumeClaimRetentionPolicy()); 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 6556bb9328..dadc7cbd2d 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> extends BaseFluent{ +public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> extends BaseFluent{ public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent() { } @@ -20,11 +22,11 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent(V1StatefulSetPers private String whenScaled; protected void copyInstance(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { - instance = (instance != null ? instance : new V1StatefulSetPersistentVolumeClaimRetentionPolicy()); + instance = instance != null ? instance : new V1StatefulSetPersistentVolumeClaimRetentionPolicy(); if (instance != null) { - this.withWhenDeleted(instance.getWhenDeleted()); - this.withWhenScaled(instance.getWhenScaled()); - } + this.withWhenDeleted(instance.getWhenDeleted()); + this.withWhenScaled(instance.getWhenScaled()); + } } public String getWhenDeleted() { @@ -54,24 +56,41 @@ public boolean hasWhenScaled() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent that = (V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent) o; - if (!java.util.Objects.equals(whenDeleted, that.whenDeleted)) return false; - if (!java.util.Objects.equals(whenScaled, that.whenScaled)) return false; + if (!(Objects.equals(whenDeleted, that.whenDeleted))) { + return false; + } + if (!(Objects.equals(whenScaled, that.whenScaled))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(whenDeleted, whenScaled, super.hashCode()); + return Objects.hash(whenDeleted, whenScaled); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (whenDeleted != null) { sb.append("whenDeleted:"); sb.append(whenDeleted + ","); } - if (whenScaled != null) { sb.append("whenScaled:"); sb.append(whenScaled); } + if (!(whenDeleted == null)) { + sb.append("whenDeleted:"); + sb.append(whenDeleted); + sb.append(","); + } + if (!(whenScaled == null)) { + sb.append("whenScaled:"); + sb.append(whenScaled); + } sb.append("}"); return sb.toString(); } 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 64a602f3e6..a0fa642aa1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetSpecBuilder extends V1StatefulSetSpecFluent implements VisitableBuilder{ public V1StatefulSetSpecBuilder() { this(new V1StatefulSetSpec()); 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 cb36f94939..c63dfdc980 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 @@ -1,15 +1,18 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; import java.lang.Integer; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetSpecFluent> extends BaseFluent{ +public class V1StatefulSetSpecFluent> extends BaseFluent{ public V1StatefulSetSpecFluent() { } @@ -37,20 +40,20 @@ public V1StatefulSetSpecFluent(V1StatefulSetSpec instance) { private ArrayList volumeClaimTemplates; protected void copyInstance(V1StatefulSetSpec instance) { - instance = (instance != null ? instance : new V1StatefulSetSpec()); + instance = instance != null ? instance : new V1StatefulSetSpec(); if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withOrdinals(instance.getOrdinals()); - this.withPersistentVolumeClaimRetentionPolicy(instance.getPersistentVolumeClaimRetentionPolicy()); - this.withPodManagementPolicy(instance.getPodManagementPolicy()); - this.withReplicas(instance.getReplicas()); - this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); - this.withSelector(instance.getSelector()); - this.withServiceName(instance.getServiceName()); - this.withTemplate(instance.getTemplate()); - this.withUpdateStrategy(instance.getUpdateStrategy()); - this.withVolumeClaimTemplates(instance.getVolumeClaimTemplates()); - } + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withOrdinals(instance.getOrdinals()); + this.withPersistentVolumeClaimRetentionPolicy(instance.getPersistentVolumeClaimRetentionPolicy()); + this.withPodManagementPolicy(instance.getPodManagementPolicy()); + this.withReplicas(instance.getReplicas()); + this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); + this.withSelector(instance.getSelector()); + this.withServiceName(instance.getServiceName()); + this.withTemplate(instance.getTemplate()); + this.withUpdateStrategy(instance.getUpdateStrategy()); + this.withVolumeClaimTemplates(instance.getVolumeClaimTemplates()); + } } public Integer getMinReadySeconds() { @@ -95,15 +98,15 @@ public OrdinalsNested withNewOrdinalsLike(V1StatefulSetOrdinals item) { } public OrdinalsNested editOrdinals() { - return withNewOrdinalsLike(java.util.Optional.ofNullable(buildOrdinals()).orElse(null)); + return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(null)); } public OrdinalsNested editOrNewOrdinals() { - return withNewOrdinalsLike(java.util.Optional.ofNullable(buildOrdinals()).orElse(new V1StatefulSetOrdinalsBuilder().build())); + return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(new V1StatefulSetOrdinalsBuilder().build())); } public OrdinalsNested editOrNewOrdinalsLike(V1StatefulSetOrdinals item) { - return withNewOrdinalsLike(java.util.Optional.ofNullable(buildOrdinals()).orElse(item)); + return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(item)); } public V1StatefulSetPersistentVolumeClaimRetentionPolicy buildPersistentVolumeClaimRetentionPolicy() { @@ -135,15 +138,15 @@ public PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClai } public PersistentVolumeClaimRetentionPolicyNested editPersistentVolumeClaimRetentionPolicy() { - return withNewPersistentVolumeClaimRetentionPolicyLike(java.util.Optional.ofNullable(buildPersistentVolumeClaimRetentionPolicy()).orElse(null)); + return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(null)); } public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicy() { - return withNewPersistentVolumeClaimRetentionPolicyLike(java.util.Optional.ofNullable(buildPersistentVolumeClaimRetentionPolicy()).orElse(new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder().build())); + return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder().build())); } public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { - return withNewPersistentVolumeClaimRetentionPolicyLike(java.util.Optional.ofNullable(buildPersistentVolumeClaimRetentionPolicy()).orElse(item)); + return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(item)); } public String getPodManagementPolicy() { @@ -214,15 +217,15 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public String getServiceName() { @@ -267,15 +270,15 @@ public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { } public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } public V1StatefulSetUpdateStrategy buildUpdateStrategy() { @@ -307,19 +310,21 @@ public UpdateStrategyNested withNewUpdateStrategyLike(V1StatefulSetUpdateStra } public UpdateStrategyNested editUpdateStrategy() { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(null)); + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(null)); } public UpdateStrategyNested editOrNewUpdateStrategy() { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(new V1StatefulSetUpdateStrategyBuilder().build())); + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(new V1StatefulSetUpdateStrategyBuilder().build())); } public UpdateStrategyNested editOrNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(item)); + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(item)); } public A addToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { - if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} + if (this.volumeClaimTemplates == null) { + this.volumeClaimTemplates = new ArrayList(); + } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= volumeClaimTemplates.size()) { _visitables.get("volumeClaimTemplates").add(builder); @@ -328,11 +333,13 @@ public A addToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { _visitables.get("volumeClaimTemplates").add(builder); volumeClaimTemplates.add(index, builder); } - return (A)this; + return (A) this; } public A setToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { - if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} + if (this.volumeClaimTemplates == null) { + this.volumeClaimTemplates = new ArrayList(); + } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= volumeClaimTemplates.size()) { _visitables.get("volumeClaimTemplates").add(builder); @@ -341,41 +348,71 @@ public A setToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { _visitables.get("volumeClaimTemplates").add(builder); volumeClaimTemplates.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").add(builder);this.volumeClaimTemplates.add(builder);} return (A)this; + public A addToVolumeClaimTemplates(V1PersistentVolumeClaim... items) { + if (this.volumeClaimTemplates == null) { + this.volumeClaimTemplates = new ArrayList(); + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").add(builder); + this.volumeClaimTemplates.add(builder); + } + return (A) this; } public A addAllToVolumeClaimTemplates(Collection items) { - if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").add(builder);this.volumeClaimTemplates.add(builder);} return (A)this; + if (this.volumeClaimTemplates == null) { + this.volumeClaimTemplates = new ArrayList(); + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").add(builder); + this.volumeClaimTemplates.add(builder); + } + return (A) this; } - public A removeFromVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.volumeClaimTemplates == null) return (A)this; - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").remove(builder); this.volumeClaimTemplates.remove(builder);} return (A)this; + public A removeFromVolumeClaimTemplates(V1PersistentVolumeClaim... items) { + if (this.volumeClaimTemplates == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").remove(builder); + this.volumeClaimTemplates.remove(builder); + } + return (A) this; } public A removeAllFromVolumeClaimTemplates(Collection items) { - if (this.volumeClaimTemplates == null) return (A)this; - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").remove(builder); this.volumeClaimTemplates.remove(builder);} return (A)this; + if (this.volumeClaimTemplates == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").remove(builder); + this.volumeClaimTemplates.remove(builder); + } + return (A) this; } public A removeMatchingFromVolumeClaimTemplates(Predicate predicate) { - if (volumeClaimTemplates == null) return (A) this; - final Iterator each = volumeClaimTemplates.iterator(); - final List visitables = _visitables.get("volumeClaimTemplates"); + if (volumeClaimTemplates == null) { + return (A) this; + } + Iterator each = volumeClaimTemplates.iterator(); + List visitables = _visitables.get("volumeClaimTemplates"); while (each.hasNext()) { - V1PersistentVolumeClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PersistentVolumeClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVolumeClaimTemplates() { @@ -427,7 +464,7 @@ public A withVolumeClaimTemplates(List volumeClaimTempl return (A) this; } - public A withVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... volumeClaimTemplates) { + public A withVolumeClaimTemplates(V1PersistentVolumeClaim... volumeClaimTemplates) { if (this.volumeClaimTemplates != null) { this.volumeClaimTemplates.clear(); _visitables.remove("volumeClaimTemplates"); @@ -441,7 +478,7 @@ public A withVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1Persiste } public boolean hasVolumeClaimTemplates() { - return this.volumeClaimTemplates != null && !this.volumeClaimTemplates.isEmpty(); + return this.volumeClaimTemplates != null && !(this.volumeClaimTemplates.isEmpty()); } public VolumeClaimTemplatesNested addNewVolumeClaimTemplate() { @@ -457,67 +494,149 @@ public VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike(int index,V1P } public VolumeClaimTemplatesNested editVolumeClaimTemplate(int index) { - if (volumeClaimTemplates.size() <= index) throw new RuntimeException("Can't edit volumeClaimTemplates. Index exceeds size."); - return setNewVolumeClaimTemplateLike(index, buildVolumeClaimTemplate(index)); + if (index <= volumeClaimTemplates.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeClaimTemplates")); + } + return this.setNewVolumeClaimTemplateLike(index, this.buildVolumeClaimTemplate(index)); } public VolumeClaimTemplatesNested editFirstVolumeClaimTemplate() { - if (volumeClaimTemplates.size() == 0) throw new RuntimeException("Can't edit first volumeClaimTemplates. The list is empty."); - return setNewVolumeClaimTemplateLike(0, buildVolumeClaimTemplate(0)); + if (volumeClaimTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeClaimTemplates")); + } + return this.setNewVolumeClaimTemplateLike(0, this.buildVolumeClaimTemplate(0)); } public VolumeClaimTemplatesNested editLastVolumeClaimTemplate() { int index = volumeClaimTemplates.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumeClaimTemplates. The list is empty."); - return setNewVolumeClaimTemplateLike(index, buildVolumeClaimTemplate(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeClaimTemplates")); + } + return this.setNewVolumeClaimTemplateLike(index, this.buildVolumeClaimTemplate(index)); } public VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate(Predicate predicate) { int index = -1; - for (int i=0;i extends V1PersistentVolumeClaimFluent int index; public N and() { - return (N) V1StatefulSetSpecFluent.this.setToVolumeClaimTemplates(index,builder.build()); + return (N) V1StatefulSetSpecFluent.this.setToVolumeClaimTemplates(index, builder.build()); } public N endVolumeClaimTemplate() { 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 fdf8bfd80f..c965403350 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetStatusBuilder extends V1StatefulSetStatusFluent implements VisitableBuilder{ public V1StatefulSetStatusBuilder() { this(new V1StatefulSetStatus()); 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 c70666096e..54793f868c 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 @@ -1,15 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetStatusFluent> extends BaseFluent{ +public class V1StatefulSetStatusFluent> extends BaseFluent{ public V1StatefulSetStatusFluent() { } @@ -37,19 +39,19 @@ public V1StatefulSetStatusFluent(V1StatefulSetStatus instance) { private Integer updatedReplicas; protected void copyInstance(V1StatefulSetStatus instance) { - instance = (instance != null ? instance : new V1StatefulSetStatus()); + instance = instance != null ? instance : new V1StatefulSetStatus(); if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withCollisionCount(instance.getCollisionCount()); - this.withConditions(instance.getConditions()); - this.withCurrentReplicas(instance.getCurrentReplicas()); - this.withCurrentRevision(instance.getCurrentRevision()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - this.withUpdateRevision(instance.getUpdateRevision()); - this.withUpdatedReplicas(instance.getUpdatedReplicas()); - } + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withCollisionCount(instance.getCollisionCount()); + this.withConditions(instance.getConditions()); + this.withCurrentReplicas(instance.getCurrentReplicas()); + this.withCurrentRevision(instance.getCurrentRevision()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + this.withUpdateRevision(instance.getUpdateRevision()); + this.withUpdatedReplicas(instance.getUpdatedReplicas()); + } } public Integer getAvailableReplicas() { @@ -79,7 +81,9 @@ public boolean hasCollisionCount() { } public A addToConditions(int index,V1StatefulSetCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -88,11 +92,13 @@ public A addToConditions(int index,V1StatefulSetCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1StatefulSetCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -101,41 +107,71 @@ public A setToConditions(int index,V1StatefulSetCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1StatefulSetCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... items) { - if (this.conditions == null) return (A)this; - for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1StatefulSetCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1StatefulSetConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1StatefulSetConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -187,7 +223,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... conditions) { + public A withConditions(V1StatefulSetCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -201,7 +237,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1StatefulSetConditi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -217,28 +253,39 @@ public ConditionsNested setNewConditionLike(int index,V1StatefulSetCondition } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1StatefulSetConditionFluent implements VisitableBuilder{ public V1StatefulSetUpdateStrategyBuilder() { this(new V1StatefulSetUpdateStrategy()); 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 65140ef9f9..0a71b8fd98 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetUpdateStrategyFluent> extends BaseFluent{ +public class V1StatefulSetUpdateStrategyFluent> extends BaseFluent{ public V1StatefulSetUpdateStrategyFluent() { } @@ -21,11 +24,11 @@ public V1StatefulSetUpdateStrategyFluent(V1StatefulSetUpdateStrategy instance) { private String type; protected void copyInstance(V1StatefulSetUpdateStrategy instance) { - instance = (instance != null ? instance : new V1StatefulSetUpdateStrategy()); + instance = instance != null ? instance : new V1StatefulSetUpdateStrategy(); if (instance != null) { - this.withRollingUpdate(instance.getRollingUpdate()); - this.withType(instance.getType()); - } + this.withRollingUpdate(instance.getRollingUpdate()); + this.withType(instance.getType()); + } } public V1RollingUpdateStatefulSetStrategy buildRollingUpdate() { @@ -57,15 +60,15 @@ public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateStatefulSe } public RollingUpdateNested editRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(null)); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); } public RollingUpdateNested editOrNewRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(new V1RollingUpdateStatefulSetStrategyBuilder().build())); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(new V1RollingUpdateStatefulSetStrategyBuilder().build())); } public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(item)); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(item)); } public String getType() { @@ -82,24 +85,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StatefulSetUpdateStrategyFluent that = (V1StatefulSetUpdateStrategyFluent) o; - if (!java.util.Objects.equals(rollingUpdate, that.rollingUpdate)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(rollingUpdate, that.rollingUpdate))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); + return Objects.hash(rollingUpdate, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rollingUpdate != null) { sb.append("rollingUpdate:"); sb.append(rollingUpdate + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(rollingUpdate == null)) { + sb.append("rollingUpdate:"); + sb.append(rollingUpdate); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 40ada78b44..d0e4445104 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatusBuilder extends V1StatusFluent implements VisitableBuilder{ public V1StatusBuilder() { this(new V1Status()); 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 282ca99f4d..d12456fd72 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatusCauseBuilder extends V1StatusCauseFluent implements VisitableBuilder{ public V1StatusCauseBuilder() { this(new V1StatusCause()); 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 0db54946fd..1fa4f79f95 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StatusCauseFluent> extends BaseFluent{ +public class V1StatusCauseFluent> extends BaseFluent{ public V1StatusCauseFluent() { } @@ -21,12 +23,12 @@ public V1StatusCauseFluent(V1StatusCause instance) { private String reason; protected void copyInstance(V1StatusCause instance) { - instance = (instance != null ? instance : new V1StatusCause()); + instance = instance != null ? instance : new V1StatusCause(); if (instance != null) { - this.withField(instance.getField()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - } + this.withField(instance.getField()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + } } public String getField() { @@ -69,26 +71,49 @@ public boolean hasReason() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StatusCauseFluent that = (V1StatusCauseFluent) o; - if (!java.util.Objects.equals(field, that.field)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; + if (!(Objects.equals(field, that.field))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(field, message, reason, super.hashCode()); + return Objects.hash(field, message, reason); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (field != null) { sb.append("field:"); sb.append(field + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } + if (!(field == null)) { + sb.append("field:"); + sb.append(field); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } 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 9b902656fe..3f4215d77d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatusDetailsBuilder extends V1StatusDetailsFluent implements VisitableBuilder{ public V1StatusDetailsBuilder() { this(new V1StatusDetails()); 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 eb689d8a24..870bdcd060 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -17,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StatusDetailsFluent> extends BaseFluent{ +public class V1StatusDetailsFluent> extends BaseFluent{ public V1StatusDetailsFluent() { } @@ -32,19 +34,21 @@ public V1StatusDetailsFluent(V1StatusDetails instance) { private String uid; protected void copyInstance(V1StatusDetails instance) { - instance = (instance != null ? instance : new V1StatusDetails()); + instance = instance != null ? instance : new V1StatusDetails(); if (instance != null) { - this.withCauses(instance.getCauses()); - this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withRetryAfterSeconds(instance.getRetryAfterSeconds()); - this.withUid(instance.getUid()); - } + this.withCauses(instance.getCauses()); + this.withGroup(instance.getGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withRetryAfterSeconds(instance.getRetryAfterSeconds()); + this.withUid(instance.getUid()); + } } public A addToCauses(int index,V1StatusCause item) { - if (this.causes == null) {this.causes = new ArrayList();} + if (this.causes == null) { + this.causes = new ArrayList(); + } V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); if (index < 0 || index >= causes.size()) { _visitables.get("causes").add(builder); @@ -53,11 +57,13 @@ public A addToCauses(int index,V1StatusCause item) { _visitables.get("causes").add(builder); causes.add(index, builder); } - return (A)this; + return (A) this; } public A setToCauses(int index,V1StatusCause item) { - if (this.causes == null) {this.causes = new ArrayList();} + if (this.causes == null) { + this.causes = new ArrayList(); + } V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); if (index < 0 || index >= causes.size()) { _visitables.get("causes").add(builder); @@ -66,41 +72,71 @@ public A setToCauses(int index,V1StatusCause item) { _visitables.get("causes").add(builder); causes.set(index, builder); } - return (A)this; + return (A) this; } - public A addToCauses(io.kubernetes.client.openapi.models.V1StatusCause... items) { - if (this.causes == null) {this.causes = new ArrayList();} - for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").add(builder);this.causes.add(builder);} return (A)this; + public A addToCauses(V1StatusCause... items) { + if (this.causes == null) { + this.causes = new ArrayList(); + } + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").add(builder); + this.causes.add(builder); + } + return (A) this; } public A addAllToCauses(Collection items) { - if (this.causes == null) {this.causes = new ArrayList();} - for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").add(builder);this.causes.add(builder);} return (A)this; + if (this.causes == null) { + this.causes = new ArrayList(); + } + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").add(builder); + this.causes.add(builder); + } + return (A) this; } - public A removeFromCauses(io.kubernetes.client.openapi.models.V1StatusCause... items) { - if (this.causes == null) return (A)this; - for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").remove(builder); this.causes.remove(builder);} return (A)this; + public A removeFromCauses(V1StatusCause... items) { + if (this.causes == null) { + return (A) this; + } + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").remove(builder); + this.causes.remove(builder); + } + return (A) this; } public A removeAllFromCauses(Collection items) { - if (this.causes == null) return (A)this; - for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").remove(builder); this.causes.remove(builder);} return (A)this; + if (this.causes == null) { + return (A) this; + } + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").remove(builder); + this.causes.remove(builder); + } + return (A) this; } public A removeMatchingFromCauses(Predicate predicate) { - if (causes == null) return (A) this; - final Iterator each = causes.iterator(); - final List visitables = _visitables.get("causes"); + if (causes == null) { + return (A) this; + } + Iterator each = causes.iterator(); + List visitables = _visitables.get("causes"); while (each.hasNext()) { - V1StatusCauseBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1StatusCauseBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildCauses() { @@ -152,7 +188,7 @@ public A withCauses(List causes) { return (A) this; } - public A withCauses(io.kubernetes.client.openapi.models.V1StatusCause... causes) { + public A withCauses(V1StatusCause... causes) { if (this.causes != null) { this.causes.clear(); _visitables.remove("causes"); @@ -166,7 +202,7 @@ public A withCauses(io.kubernetes.client.openapi.models.V1StatusCause... causes) } public boolean hasCauses() { - return this.causes != null && !this.causes.isEmpty(); + return this.causes != null && !(this.causes.isEmpty()); } public CausesNested addNewCause() { @@ -182,28 +218,39 @@ public CausesNested setNewCauseLike(int index,V1StatusCause item) { } public CausesNested editCause(int index) { - if (causes.size() <= index) throw new RuntimeException("Can't edit causes. Index exceeds size."); - return setNewCauseLike(index, buildCause(index)); + if (index <= causes.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "causes")); + } + return this.setNewCauseLike(index, this.buildCause(index)); } public CausesNested editFirstCause() { - if (causes.size() == 0) throw new RuntimeException("Can't edit first causes. The list is empty."); - return setNewCauseLike(0, buildCause(0)); + if (causes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "causes")); + } + return this.setNewCauseLike(0, this.buildCause(0)); } public CausesNested editLastCause() { int index = causes.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last causes. The list is empty."); - return setNewCauseLike(index, buildCause(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "causes")); + } + return this.setNewCauseLike(index, this.buildCause(index)); } public CausesNested editMatchingCause(Predicate predicate) { int index = -1; - for (int i=0;i extends V1StatusCauseFluent> implem int index; public N and() { - return (N) V1StatusDetailsFluent.this.setToCauses(index,builder.build()); + return (N) V1StatusDetailsFluent.this.setToCauses(index, builder.build()); } public N endCause() { 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 5e531fe992..0e2267acd4 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatusFluent> extends BaseFluent{ +public class V1StatusFluent> extends BaseFluent{ public V1StatusFluent() { } @@ -28,17 +31,17 @@ public V1StatusFluent(V1Status instance) { private String status; protected void copyInstance(V1Status instance) { - instance = (instance != null ? instance : new V1Status()); + instance = instance != null ? instance : new V1Status(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withCode(instance.getCode()); - this.withDetails(instance.getDetails()); - this.withKind(instance.getKind()); - this.withMessage(instance.getMessage()); - this.withMetadata(instance.getMetadata()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withCode(instance.getCode()); + this.withDetails(instance.getDetails()); + this.withKind(instance.getKind()); + this.withMessage(instance.getMessage()); + this.withMetadata(instance.getMetadata()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -96,15 +99,15 @@ public DetailsNested withNewDetailsLike(V1StatusDetails item) { } public DetailsNested editDetails() { - return withNewDetailsLike(java.util.Optional.ofNullable(buildDetails()).orElse(null)); + return this.withNewDetailsLike(Optional.ofNullable(this.buildDetails()).orElse(null)); } public DetailsNested editOrNewDetails() { - return withNewDetailsLike(java.util.Optional.ofNullable(buildDetails()).orElse(new V1StatusDetailsBuilder().build())); + return this.withNewDetailsLike(Optional.ofNullable(this.buildDetails()).orElse(new V1StatusDetailsBuilder().build())); } public DetailsNested editOrNewDetailsLike(V1StatusDetails item) { - return withNewDetailsLike(java.util.Optional.ofNullable(buildDetails()).orElse(item)); + return this.withNewDetailsLike(Optional.ofNullable(this.buildDetails()).orElse(item)); } public String getKind() { @@ -162,15 +165,15 @@ public MetadataNested withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public String getReason() { @@ -200,36 +203,89 @@ public boolean hasStatus() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StatusFluent that = (V1StatusFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(code, that.code)) return false; - if (!java.util.Objects.equals(details, that.details)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(code, that.code))) { + return false; + } + if (!(Objects.equals(details, that.details))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, code, details, kind, message, metadata, reason, status, super.hashCode()); + return Objects.hash(apiVersion, code, details, kind, message, metadata, reason, status); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (code != null) { sb.append("code:"); sb.append(code + ","); } - if (details != null) { sb.append("details:"); sb.append(details + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(code == null)) { + sb.append("code:"); + sb.append(code); + sb.append(","); + } + if (!(details == null)) { + sb.append("details:"); + sb.append(details); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + 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(); } 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 82fe5eb151..2d1ea3feb1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StorageClassBuilder extends V1StorageClassFluent implements VisitableBuilder{ public V1StorageClassBuilder() { this(new V1StorageClass()); 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 9ada5be1d6..82cebf1847 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; @@ -19,7 +22,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StorageClassFluent> extends BaseFluent{ +public class V1StorageClassFluent> extends BaseFluent{ public V1StorageClassFluent() { } @@ -38,19 +41,19 @@ public V1StorageClassFluent(V1StorageClass instance) { private String volumeBindingMode; protected void copyInstance(V1StorageClass instance) { - instance = (instance != null ? instance : new V1StorageClass()); + instance = instance != null ? instance : new V1StorageClass(); if (instance != null) { - this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); - this.withAllowedTopologies(instance.getAllowedTopologies()); - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withMountOptions(instance.getMountOptions()); - this.withParameters(instance.getParameters()); - this.withProvisioner(instance.getProvisioner()); - this.withReclaimPolicy(instance.getReclaimPolicy()); - this.withVolumeBindingMode(instance.getVolumeBindingMode()); - } + this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); + this.withAllowedTopologies(instance.getAllowedTopologies()); + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withMountOptions(instance.getMountOptions()); + this.withParameters(instance.getParameters()); + this.withProvisioner(instance.getProvisioner()); + this.withReclaimPolicy(instance.getReclaimPolicy()); + this.withVolumeBindingMode(instance.getVolumeBindingMode()); + } } public Boolean getAllowVolumeExpansion() { @@ -67,7 +70,9 @@ public boolean hasAllowVolumeExpansion() { } public A addToAllowedTopologies(int index,V1TopologySelectorTerm item) { - if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} + if (this.allowedTopologies == null) { + this.allowedTopologies = new ArrayList(); + } V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); if (index < 0 || index >= allowedTopologies.size()) { _visitables.get("allowedTopologies").add(builder); @@ -76,11 +81,13 @@ public A addToAllowedTopologies(int index,V1TopologySelectorTerm item) { _visitables.get("allowedTopologies").add(builder); allowedTopologies.add(index, builder); } - return (A)this; + return (A) this; } public A setToAllowedTopologies(int index,V1TopologySelectorTerm item) { - if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} + if (this.allowedTopologies == null) { + this.allowedTopologies = new ArrayList(); + } V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); if (index < 0 || index >= allowedTopologies.size()) { _visitables.get("allowedTopologies").add(builder); @@ -89,41 +96,71 @@ public A setToAllowedTopologies(int index,V1TopologySelectorTerm item) { _visitables.get("allowedTopologies").add(builder); allowedTopologies.set(index, builder); } - return (A)this; + return (A) this; } - public A addToAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { - if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} - for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").add(builder);this.allowedTopologies.add(builder);} return (A)this; + public A addToAllowedTopologies(V1TopologySelectorTerm... items) { + if (this.allowedTopologies == null) { + this.allowedTopologies = new ArrayList(); + } + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").add(builder); + this.allowedTopologies.add(builder); + } + return (A) this; } public A addAllToAllowedTopologies(Collection items) { - if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} - for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").add(builder);this.allowedTopologies.add(builder);} return (A)this; + if (this.allowedTopologies == null) { + this.allowedTopologies = new ArrayList(); + } + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").add(builder); + this.allowedTopologies.add(builder); + } + return (A) this; } - public A removeFromAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { - if (this.allowedTopologies == null) return (A)this; - for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").remove(builder); this.allowedTopologies.remove(builder);} return (A)this; + public A removeFromAllowedTopologies(V1TopologySelectorTerm... items) { + if (this.allowedTopologies == null) { + return (A) this; + } + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").remove(builder); + this.allowedTopologies.remove(builder); + } + return (A) this; } public A removeAllFromAllowedTopologies(Collection items) { - if (this.allowedTopologies == null) return (A)this; - for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").remove(builder); this.allowedTopologies.remove(builder);} return (A)this; + if (this.allowedTopologies == null) { + return (A) this; + } + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").remove(builder); + this.allowedTopologies.remove(builder); + } + return (A) this; } public A removeMatchingFromAllowedTopologies(Predicate predicate) { - if (allowedTopologies == null) return (A) this; - final Iterator each = allowedTopologies.iterator(); - final List visitables = _visitables.get("allowedTopologies"); + if (allowedTopologies == null) { + return (A) this; + } + Iterator each = allowedTopologies.iterator(); + List visitables = _visitables.get("allowedTopologies"); while (each.hasNext()) { - V1TopologySelectorTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1TopologySelectorTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildAllowedTopologies() { @@ -175,7 +212,7 @@ public A withAllowedTopologies(List allowedTopologies) { return (A) this; } - public A withAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... allowedTopologies) { + public A withAllowedTopologies(V1TopologySelectorTerm... allowedTopologies) { if (this.allowedTopologies != null) { this.allowedTopologies.clear(); _visitables.remove("allowedTopologies"); @@ -189,7 +226,7 @@ public A withAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySel } public boolean hasAllowedTopologies() { - return this.allowedTopologies != null && !this.allowedTopologies.isEmpty(); + return this.allowedTopologies != null && !(this.allowedTopologies.isEmpty()); } public AllowedTopologiesNested addNewAllowedTopology() { @@ -205,28 +242,39 @@ public AllowedTopologiesNested setNewAllowedTopologyLike(int index,V1Topology } public AllowedTopologiesNested editAllowedTopology(int index) { - if (allowedTopologies.size() <= index) throw new RuntimeException("Can't edit allowedTopologies. Index exceeds size."); - return setNewAllowedTopologyLike(index, buildAllowedTopology(index)); + if (index <= allowedTopologies.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allowedTopologies")); + } + return this.setNewAllowedTopologyLike(index, this.buildAllowedTopology(index)); } public AllowedTopologiesNested editFirstAllowedTopology() { - if (allowedTopologies.size() == 0) throw new RuntimeException("Can't edit first allowedTopologies. The list is empty."); - return setNewAllowedTopologyLike(0, buildAllowedTopology(0)); + if (allowedTopologies.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "allowedTopologies")); + } + return this.setNewAllowedTopologyLike(0, this.buildAllowedTopology(0)); } public AllowedTopologiesNested editLastAllowedTopology() { int index = allowedTopologies.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last allowedTopologies. The list is empty."); - return setNewAllowedTopologyLike(index, buildAllowedTopology(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "allowedTopologies")); + } + return this.setNewAllowedTopologyLike(index, this.buildAllowedTopology(index)); } public AllowedTopologiesNested editMatchingAllowedTopology(Predicate predicate) { int index = -1; - for (int i=0;i withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public A addToMountOptions(int index,String item) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } this.mountOptions.add(index, item); - return (A)this; + return (A) this; } public A setToMountOptions(int index,String item) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - this.mountOptions.set(index, item); return (A)this; + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + this.mountOptions.set(index, item); + return (A) this; } - public A addToMountOptions(java.lang.String... items) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - for (String item : items) {this.mountOptions.add(item);} return (A)this; + public A addToMountOptions(String... items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + for (String item : items) { + this.mountOptions.add(item); + } + return (A) this; } public A addAllToMountOptions(Collection items) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - for (String item : items) {this.mountOptions.add(item);} return (A)this; + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + for (String item : items) { + this.mountOptions.add(item); + } + return (A) this; } - public A removeFromMountOptions(java.lang.String... items) { - if (this.mountOptions == null) return (A)this; - for (String item : items) { this.mountOptions.remove(item);} return (A)this; + public A removeFromMountOptions(String... items) { + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); + } + return (A) this; } public A removeAllFromMountOptions(Collection items) { - if (this.mountOptions == null) return (A)this; - for (String item : items) { this.mountOptions.remove(item);} return (A)this; + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); + } + return (A) this; } public List getMountOptions() { @@ -372,7 +445,7 @@ public A withMountOptions(List mountOptions) { return (A) this; } - public A withMountOptions(java.lang.String... mountOptions) { + public A withMountOptions(String... mountOptions) { if (this.mountOptions != null) { this.mountOptions.clear(); _visitables.remove("mountOptions"); @@ -386,27 +459,51 @@ public A withMountOptions(java.lang.String... mountOptions) { } public boolean hasMountOptions() { - return this.mountOptions != null && !this.mountOptions.isEmpty(); + return this.mountOptions != null && !(this.mountOptions.isEmpty()); } 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; + 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 A addToParameters(Map map) { - if(this.parameters == null && map != null) { this.parameters = new LinkedHashMap(); } - if(map != null) { this.parameters.putAll(map);} return (A)this; + if (this.parameters == null && map != null) { + this.parameters = new LinkedHashMap(); + } + if (map != null) { + this.parameters.putAll(map); + } + return (A) this; } 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; + 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; + 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 Map getParameters() { @@ -466,40 +563,105 @@ public boolean hasVolumeBindingMode() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StorageClassFluent that = (V1StorageClassFluent) o; - if (!java.util.Objects.equals(allowVolumeExpansion, that.allowVolumeExpansion)) return false; - if (!java.util.Objects.equals(allowedTopologies, that.allowedTopologies)) return false; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(mountOptions, that.mountOptions)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; - if (!java.util.Objects.equals(provisioner, that.provisioner)) return false; - if (!java.util.Objects.equals(reclaimPolicy, that.reclaimPolicy)) return false; - if (!java.util.Objects.equals(volumeBindingMode, that.volumeBindingMode)) return false; + if (!(Objects.equals(allowVolumeExpansion, that.allowVolumeExpansion))) { + return false; + } + if (!(Objects.equals(allowedTopologies, that.allowedTopologies))) { + return false; + } + 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(mountOptions, that.mountOptions))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + if (!(Objects.equals(provisioner, that.provisioner))) { + return false; + } + if (!(Objects.equals(reclaimPolicy, that.reclaimPolicy))) { + return false; + } + if (!(Objects.equals(volumeBindingMode, that.volumeBindingMode))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode, super.hashCode()); + return Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allowVolumeExpansion != null) { sb.append("allowVolumeExpansion:"); sb.append(allowVolumeExpansion + ","); } - if (allowedTopologies != null && !allowedTopologies.isEmpty()) { sb.append("allowedTopologies:"); sb.append(allowedTopologies + ","); } - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (mountOptions != null && !mountOptions.isEmpty()) { sb.append("mountOptions:"); sb.append(mountOptions + ","); } - if (parameters != null && !parameters.isEmpty()) { sb.append("parameters:"); sb.append(parameters + ","); } - if (provisioner != null) { sb.append("provisioner:"); sb.append(provisioner + ","); } - if (reclaimPolicy != null) { sb.append("reclaimPolicy:"); sb.append(reclaimPolicy + ","); } - if (volumeBindingMode != null) { sb.append("volumeBindingMode:"); sb.append(volumeBindingMode); } + if (!(allowVolumeExpansion == null)) { + sb.append("allowVolumeExpansion:"); + sb.append(allowVolumeExpansion); + sb.append(","); + } + if (!(allowedTopologies == null) && !(allowedTopologies.isEmpty())) { + sb.append("allowedTopologies:"); + sb.append(allowedTopologies); + 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 (!(mountOptions == null) && !(mountOptions.isEmpty())) { + sb.append("mountOptions:"); + sb.append(mountOptions); + sb.append(","); + } + if (!(parameters == null) && !(parameters.isEmpty())) { + sb.append("parameters:"); + sb.append(parameters); + sb.append(","); + } + if (!(provisioner == null)) { + sb.append("provisioner:"); + sb.append(provisioner); + sb.append(","); + } + if (!(reclaimPolicy == null)) { + sb.append("reclaimPolicy:"); + sb.append(reclaimPolicy); + sb.append(","); + } + if (!(volumeBindingMode == null)) { + sb.append("volumeBindingMode:"); + sb.append(volumeBindingMode); + } sb.append("}"); return sb.toString(); } @@ -516,7 +678,7 @@ public class AllowedTopologiesNested extends V1TopologySelectorTermFluent implements VisitableBuilder{ public V1StorageClassListBuilder() { this(new V1StorageClassList()); 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 aa991fa366..849939f873 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StorageClassListFluent> extends BaseFluent{ +public class V1StorageClassListFluent> extends BaseFluent{ public V1StorageClassListFluent() { } @@ -29,13 +32,13 @@ public V1StorageClassListFluent(V1StorageClassList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1StorageClassList instance) { - instance = (instance != null ? instance : new V1StorageClassList()); + instance = instance != null ? instance : new V1StorageClassList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1StorageClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1StorageClassBuilder builder = new V1StorageClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1StorageClass item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1StorageClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1StorageClassBuilder builder = new V1StorageClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1StorageClass item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1StorageClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { - if (this.items == null) return (A)this; - for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1StorageClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1StorageClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1StorageClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { + public A withItems(V1StorageClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1StorageClass... items) } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1StorageClass item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StorageClassListFluent that = (V1StorageClassListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1StorageClassFluent> impleme int index; public N and() { - return (N) V1StorageClassListFluent.this.setToItems(index,builder.build()); + return (N) V1StorageClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 29f1f23c4d..395a16b403 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StorageOSPersistentVolumeSourceBuilder extends V1StorageOSPersistentVolumeSourceFluent implements VisitableBuilder{ public V1StorageOSPersistentVolumeSourceBuilder() { this(new V1StorageOSPersistentVolumeSource()); 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 b8e4352540..aa674e0ada 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 @@ -1,9 +1,12 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; @@ -11,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StorageOSPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1StorageOSPersistentVolumeSourceFluent> extends BaseFluent{ public V1StorageOSPersistentVolumeSourceFluent() { } @@ -25,14 +28,14 @@ public V1StorageOSPersistentVolumeSourceFluent(V1StorageOSPersistentVolumeSource private String volumeNamespace; protected void copyInstance(V1StorageOSPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1StorageOSPersistentVolumeSource()); + instance = instance != null ? instance : new V1StorageOSPersistentVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withVolumeName(instance.getVolumeName()); - this.withVolumeNamespace(instance.getVolumeNamespace()); - } + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withVolumeName(instance.getVolumeName()); + this.withVolumeNamespace(instance.getVolumeNamespace()); + } } public String getFsType() { @@ -90,15 +93,15 @@ public SecretRefNested withNewSecretRefLike(V1ObjectReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1ObjectReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1ObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getVolumeName() { @@ -128,30 +131,65 @@ public boolean hasVolumeNamespace() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StorageOSPersistentVolumeSourceFluent that = (V1StorageOSPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; - if (!java.util.Objects.equals(volumeNamespace, that.volumeNamespace)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + if (!(Objects.equals(volumeNamespace, that.volumeNamespace))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); + return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName + ","); } - if (volumeNamespace != null) { sb.append("volumeNamespace:"); sb.append(volumeNamespace); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + sb.append(","); + } + if (!(volumeNamespace == null)) { + sb.append("volumeNamespace:"); + sb.append(volumeNamespace); + } sb.append("}"); return sb.toString(); } 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 62266f9f4f..9565e7b40b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StorageOSVolumeSourceBuilder extends V1StorageOSVolumeSourceFluent implements VisitableBuilder{ public V1StorageOSVolumeSourceBuilder() { this(new V1StorageOSVolumeSource()); 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 30c20c62fe..533162013e 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 @@ -1,9 +1,12 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; @@ -11,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1StorageOSVolumeSourceFluent> extends BaseFluent{ +public class V1StorageOSVolumeSourceFluent> extends BaseFluent{ public V1StorageOSVolumeSourceFluent() { } @@ -25,14 +28,14 @@ public V1StorageOSVolumeSourceFluent(V1StorageOSVolumeSource instance) { private String volumeNamespace; protected void copyInstance(V1StorageOSVolumeSource instance) { - instance = (instance != null ? instance : new V1StorageOSVolumeSource()); + instance = instance != null ? instance : new V1StorageOSVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withVolumeName(instance.getVolumeName()); - this.withVolumeNamespace(instance.getVolumeNamespace()); - } + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withVolumeName(instance.getVolumeName()); + this.withVolumeNamespace(instance.getVolumeNamespace()); + } } public String getFsType() { @@ -90,15 +93,15 @@ public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { } public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } public String getVolumeName() { @@ -128,30 +131,65 @@ public boolean hasVolumeNamespace() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1StorageOSVolumeSourceFluent that = (V1StorageOSVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; - if (!java.util.Objects.equals(volumeNamespace, that.volumeNamespace)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + if (!(Objects.equals(volumeNamespace, that.volumeNamespace))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); + return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName + ","); } - if (volumeNamespace != null) { sb.append("volumeNamespace:"); sb.append(volumeNamespace); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + sb.append(","); + } + if (!(volumeNamespace == null)) { + sb.append("volumeNamespace:"); + sb.append(volumeNamespace); + } sb.append("}"); return sb.toString(); } 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 e707b2e8c7..21e0bb9600 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SubjectAccessReviewBuilder extends V1SubjectAccessReviewFluent implements VisitableBuilder{ public V1SubjectAccessReviewBuilder() { this(new V1SubjectAccessReview()); 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 6cb9c037e4..6b86a1423f 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SubjectAccessReviewFluent> extends BaseFluent{ +public class V1SubjectAccessReviewFluent> extends BaseFluent{ public V1SubjectAccessReviewFluent() { } @@ -24,14 +27,14 @@ public V1SubjectAccessReviewFluent(V1SubjectAccessReview instance) { private V1SubjectAccessReviewStatusBuilder status; protected void copyInstance(V1SubjectAccessReview instance) { - instance = (instance != null ? instance : new V1SubjectAccessReview()); + instance = instance != null ? instance : new V1SubjectAccessReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1SubjectAccessReviewSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1SubjectAccessReviewSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SubjectAccessReviewSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1SubjectAccessReviewStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SubjectAccessReviewFluent that = (V1SubjectAccessReviewFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 956ffdef64..43b0b1e076 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SubjectAccessReviewSpecBuilder extends V1SubjectAccessReviewSpecFluent implements VisitableBuilder{ public V1SubjectAccessReviewSpecBuilder() { this(new V1SubjectAccessReviewSpec()); 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 85ae52f92f..ad718dd798 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 @@ -1,5 +1,6 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -7,16 +8,18 @@ import java.util.LinkedHashMap; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; import java.util.Map; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SubjectAccessReviewSpecFluent> extends BaseFluent{ +public class V1SubjectAccessReviewSpecFluent> extends BaseFluent{ public V1SubjectAccessReviewSpecFluent() { } @@ -31,35 +34,59 @@ public V1SubjectAccessReviewSpecFluent(V1SubjectAccessReviewSpec instance) { private String user; protected void copyInstance(V1SubjectAccessReviewSpec instance) { - instance = (instance != null ? instance : new V1SubjectAccessReviewSpec()); + instance = instance != null ? instance : new V1SubjectAccessReviewSpec(); if (instance != null) { - this.withExtra(instance.getExtra()); - this.withGroups(instance.getGroups()); - this.withNonResourceAttributes(instance.getNonResourceAttributes()); - this.withResourceAttributes(instance.getResourceAttributes()); - this.withUid(instance.getUid()); - this.withUser(instance.getUser()); - } + this.withExtra(instance.getExtra()); + this.withGroups(instance.getGroups()); + this.withNonResourceAttributes(instance.getNonResourceAttributes()); + this.withResourceAttributes(instance.getResourceAttributes()); + this.withUid(instance.getUid()); + this.withUser(instance.getUser()); + } } public A addToExtra(String key,List value) { - if(this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } - if(key != null && value != null) {this.extra.put(key, value);} return (A)this; + if (this.extra == null && key != null && value != null) { + this.extra = new LinkedHashMap(); + } + if (key != null && value != null) { + this.extra.put(key, value); + } + return (A) this; } public A addToExtra(Map> map) { - if(this.extra == null && map != null) { this.extra = new LinkedHashMap(); } - if(map != null) { this.extra.putAll(map);} return (A)this; + if (this.extra == null && map != null) { + this.extra = new LinkedHashMap(); + } + if (map != null) { + this.extra.putAll(map); + } + return (A) this; } public A removeFromExtra(String key) { - if(this.extra == null) { return (A) this; } - if(key != null && this.extra != null) {this.extra.remove(key);} return (A)this; + if (this.extra == null) { + return (A) this; + } + if (key != null && this.extra != null) { + this.extra.remove(key); + } + return (A) this; } public A removeFromExtra(Map> map) { - if(this.extra == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.extra != null){this.extra.remove(key);}}} return (A)this; + if (this.extra == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.extra != null) { + this.extra.remove(key); + } + } + } + return (A) this; } public Map> getExtra() { @@ -80,34 +107,59 @@ public boolean hasExtra() { } public A addToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} + if (this.groups == null) { + this.groups = new ArrayList(); + } this.groups.add(index, item); - return (A)this; + return (A) this; } public A setToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} - this.groups.set(index, item); return (A)this; + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.set(index, item); + return (A) this; } - public A addToGroups(java.lang.String... items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + public A addToGroups(String... items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } public A addAllToGroups(Collection items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } - public A removeFromGroups(java.lang.String... items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + public A removeFromGroups(String... items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; } public A removeAllFromGroups(Collection items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; } public List getGroups() { @@ -156,7 +208,7 @@ public A withGroups(List groups) { return (A) this; } - public A withGroups(java.lang.String... groups) { + public A withGroups(String... groups) { if (this.groups != null) { this.groups.clear(); _visitables.remove("groups"); @@ -170,7 +222,7 @@ public A withGroups(java.lang.String... groups) { } public boolean hasGroups() { - return this.groups != null && !this.groups.isEmpty(); + return this.groups != null && !(this.groups.isEmpty()); } public V1NonResourceAttributes buildNonResourceAttributes() { @@ -202,15 +254,15 @@ public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonReso } public NonResourceAttributesNested editNonResourceAttributes() { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(null)); + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(null)); } public NonResourceAttributesNested editOrNewNonResourceAttributes() { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); } public NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(item)); + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(item)); } public V1ResourceAttributes buildResourceAttributes() { @@ -242,15 +294,15 @@ public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttri } public ResourceAttributesNested editResourceAttributes() { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(null)); + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(null)); } public ResourceAttributesNested editOrNewResourceAttributes() { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); } public ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(item)); + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(item)); } public String getUid() { @@ -280,32 +332,73 @@ public boolean hasUser() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SubjectAccessReviewSpecFluent that = (V1SubjectAccessReviewSpecFluent) o; - if (!java.util.Objects.equals(extra, that.extra)) return false; - if (!java.util.Objects.equals(groups, that.groups)) return false; - if (!java.util.Objects.equals(nonResourceAttributes, that.nonResourceAttributes)) return false; - if (!java.util.Objects.equals(resourceAttributes, that.resourceAttributes)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; + if (!(Objects.equals(extra, that.extra))) { + return false; + } + if (!(Objects.equals(groups, that.groups))) { + return false; + } + if (!(Objects.equals(nonResourceAttributes, that.nonResourceAttributes))) { + return false; + } + if (!(Objects.equals(resourceAttributes, that.resourceAttributes))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(extra, groups, nonResourceAttributes, resourceAttributes, uid, user, super.hashCode()); + return Objects.hash(extra, groups, nonResourceAttributes, resourceAttributes, uid, user); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (extra != null && !extra.isEmpty()) { sb.append("extra:"); sb.append(extra + ","); } - if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } - if (nonResourceAttributes != null) { sb.append("nonResourceAttributes:"); sb.append(nonResourceAttributes + ","); } - if (resourceAttributes != null) { sb.append("resourceAttributes:"); sb.append(resourceAttributes + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } + if (!(extra == null) && !(extra.isEmpty())) { + sb.append("extra:"); + sb.append(extra); + sb.append(","); + } + if (!(groups == null) && !(groups.isEmpty())) { + sb.append("groups:"); + sb.append(groups); + sb.append(","); + } + if (!(nonResourceAttributes == null)) { + sb.append("nonResourceAttributes:"); + sb.append(nonResourceAttributes); + sb.append(","); + } + if (!(resourceAttributes == null)) { + sb.append("resourceAttributes:"); + sb.append(resourceAttributes); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } sb.append("}"); return sb.toString(); } 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 8377ffb8fc..b33b1b2d26 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SubjectAccessReviewStatusBuilder extends V1SubjectAccessReviewStatusFluent implements VisitableBuilder{ public V1SubjectAccessReviewStatusBuilder() { this(new V1SubjectAccessReviewStatus()); 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 68f98296e0..3033f2771b 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SubjectAccessReviewStatusFluent> extends BaseFluent{ +public class V1SubjectAccessReviewStatusFluent> extends BaseFluent{ public V1SubjectAccessReviewStatusFluent() { } @@ -23,13 +25,13 @@ public V1SubjectAccessReviewStatusFluent(V1SubjectAccessReviewStatus instance) { private String reason; protected void copyInstance(V1SubjectAccessReviewStatus instance) { - instance = (instance != null ? instance : new V1SubjectAccessReviewStatus()); + instance = instance != null ? instance : new V1SubjectAccessReviewStatus(); if (instance != null) { - this.withAllowed(instance.getAllowed()); - this.withDenied(instance.getDenied()); - this.withEvaluationError(instance.getEvaluationError()); - this.withReason(instance.getReason()); - } + this.withAllowed(instance.getAllowed()); + this.withDenied(instance.getDenied()); + this.withEvaluationError(instance.getEvaluationError()); + this.withReason(instance.getReason()); + } } public Boolean getAllowed() { @@ -85,28 +87,57 @@ public boolean hasReason() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SubjectAccessReviewStatusFluent that = (V1SubjectAccessReviewStatusFluent) o; - if (!java.util.Objects.equals(allowed, that.allowed)) return false; - if (!java.util.Objects.equals(denied, that.denied)) return false; - if (!java.util.Objects.equals(evaluationError, that.evaluationError)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; + if (!(Objects.equals(allowed, that.allowed))) { + return false; + } + if (!(Objects.equals(denied, that.denied))) { + return false; + } + if (!(Objects.equals(evaluationError, that.evaluationError))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(allowed, denied, evaluationError, reason, super.hashCode()); + return Objects.hash(allowed, denied, evaluationError, reason); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allowed != null) { sb.append("allowed:"); sb.append(allowed + ","); } - if (denied != null) { sb.append("denied:"); sb.append(denied + ","); } - if (evaluationError != null) { sb.append("evaluationError:"); sb.append(evaluationError + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } + if (!(allowed == null)) { + sb.append("allowed:"); + sb.append(allowed); + sb.append(","); + } + if (!(denied == null)) { + sb.append("denied:"); + sb.append(denied); + sb.append(","); + } + if (!(evaluationError == null)) { + sb.append("evaluationError:"); + sb.append(evaluationError); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } 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 8e46ac5da5..8a2806f6e2 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SubjectRulesReviewStatusBuilder extends V1SubjectRulesReviewStatusFluent implements VisitableBuilder{ public V1SubjectRulesReviewStatusBuilder() { this(new V1SubjectRulesReviewStatus()); 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 9427f605c6..3c238db207 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 @@ -1,23 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; import java.util.List; import java.lang.Boolean; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SubjectRulesReviewStatusFluent> extends BaseFluent{ +public class V1SubjectRulesReviewStatusFluent> extends BaseFluent{ public V1SubjectRulesReviewStatusFluent() { } @@ -30,13 +32,13 @@ public V1SubjectRulesReviewStatusFluent(V1SubjectRulesReviewStatus instance) { private ArrayList resourceRules; protected void copyInstance(V1SubjectRulesReviewStatus instance) { - instance = (instance != null ? instance : new V1SubjectRulesReviewStatus()); + instance = instance != null ? instance : new V1SubjectRulesReviewStatus(); if (instance != null) { - this.withEvaluationError(instance.getEvaluationError()); - this.withIncomplete(instance.getIncomplete()); - this.withNonResourceRules(instance.getNonResourceRules()); - this.withResourceRules(instance.getResourceRules()); - } + this.withEvaluationError(instance.getEvaluationError()); + this.withIncomplete(instance.getIncomplete()); + this.withNonResourceRules(instance.getNonResourceRules()); + this.withResourceRules(instance.getResourceRules()); + } } public String getEvaluationError() { @@ -66,7 +68,9 @@ public boolean hasIncomplete() { } public A addToNonResourceRules(int index,V1NonResourceRule item) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); @@ -75,11 +79,13 @@ public A addToNonResourceRules(int index,V1NonResourceRule item) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToNonResourceRules(int index,V1NonResourceRule item) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); @@ -88,41 +94,71 @@ public A setToNonResourceRules(int index,V1NonResourceRule item) { _visitables.get("nonResourceRules").add(builder); nonResourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; + public A addToNonResourceRules(V1NonResourceRule... items) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); + } + return (A) this; } public A addAllToNonResourceRules(Collection items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); + } + return (A) this; } - public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items) { - if (this.nonResourceRules == null) return (A)this; - for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; + public A removeFromNonResourceRules(V1NonResourceRule... items) { + if (this.nonResourceRules == null) { + return (A) this; + } + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); + } + return (A) this; } public A removeAllFromNonResourceRules(Collection items) { - if (this.nonResourceRules == null) return (A)this; - for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; + if (this.nonResourceRules == null) { + return (A) this; + } + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromNonResourceRules(Predicate predicate) { - if (nonResourceRules == null) return (A) this; - final Iterator each = nonResourceRules.iterator(); - final List visitables = _visitables.get("nonResourceRules"); + if (nonResourceRules == null) { + return (A) this; + } + Iterator each = nonResourceRules.iterator(); + List visitables = _visitables.get("nonResourceRules"); while (each.hasNext()) { - V1NonResourceRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NonResourceRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildNonResourceRules() { @@ -174,7 +210,7 @@ public A withNonResourceRules(List nonResourceRules) { return (A) this; } - public A withNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... nonResourceRules) { + public A withNonResourceRules(V1NonResourceRule... nonResourceRules) { if (this.nonResourceRules != null) { this.nonResourceRules.clear(); _visitables.remove("nonResourceRules"); @@ -188,7 +224,7 @@ public A withNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceR } public boolean hasNonResourceRules() { - return this.nonResourceRules != null && !this.nonResourceRules.isEmpty(); + return this.nonResourceRules != null && !(this.nonResourceRules.isEmpty()); } public NonResourceRulesNested addNewNonResourceRule() { @@ -204,32 +240,45 @@ public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResour } public NonResourceRulesNested editNonResourceRule(int index) { - if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); - return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); + if (index <= nonResourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } public NonResourceRulesNested editFirstNonResourceRule() { - if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); - return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); + if (nonResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(0, this.buildNonResourceRule(0)); } public NonResourceRulesNested editLastNonResourceRule() { int index = nonResourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last nonResourceRules. The list is empty."); - return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } public NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -238,11 +287,13 @@ public A addToResourceRules(int index,V1ResourceRule item) { _visitables.get("resourceRules").add(builder); resourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToResourceRules(int index,V1ResourceRule item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -251,41 +302,71 @@ public A setToResourceRules(int index,V1ResourceRule item) { _visitables.get("resourceRules").add(builder); resourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public A addToResourceRules(V1ResourceRule... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items) { - if (this.resourceRules == null) return (A)this; - for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public A removeFromResourceRules(V1ResourceRule... items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + if (this.resourceRules == null) { + return (A) this; + } + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromResourceRules(Predicate predicate) { - if (resourceRules == null) return (A) this; - final Iterator each = resourceRules.iterator(); - final List visitables = _visitables.get("resourceRules"); + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); while (each.hasNext()) { - V1ResourceRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ResourceRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResourceRules() { @@ -337,7 +418,7 @@ public A withResourceRules(List resourceRules) { return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... resourceRules) { + public A withResourceRules(V1ResourceRule... resourceRules) { if (this.resourceRules != null) { this.resourceRules.clear(); _visitables.remove("resourceRules"); @@ -351,7 +432,7 @@ public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... } public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } public ResourceRulesNested addNewResourceRule() { @@ -367,53 +448,93 @@ public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourceRule it } public ResourceRulesNested editResourceRule(int index) { - if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index <= resourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); - return setNewResourceRuleLike(0, buildResourceRule(0)); + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); } public ResourceRulesNested editLastResourceRule() { int index = resourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1NonResourceRuleFluent extends V1ResourceRuleFluent implements VisitableBuilder{ public V1SuccessPolicyBuilder() { this(new V1SuccessPolicy()); 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 c54009e686..3f1f194606 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SuccessPolicyFluent> extends BaseFluent{ +public class V1SuccessPolicyFluent> extends BaseFluent{ public V1SuccessPolicyFluent() { } @@ -26,14 +28,16 @@ public V1SuccessPolicyFluent(V1SuccessPolicy instance) { private ArrayList rules; protected void copyInstance(V1SuccessPolicy instance) { - instance = (instance != null ? instance : new V1SuccessPolicy()); + instance = instance != null ? instance : new V1SuccessPolicy(); if (instance != null) { - this.withRules(instance.getRules()); - } + this.withRules(instance.getRules()); + } } public A addToRules(int index,V1SuccessPolicyRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -42,11 +46,13 @@ public A addToRules(int index,V1SuccessPolicyRule item) { _visitables.get("rules").add(builder); rules.add(index, builder); } - return (A)this; + return (A) this; } public A setToRules(int index,V1SuccessPolicyRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -55,41 +61,71 @@ public A setToRules(int index,V1SuccessPolicyRule item) { _visitables.get("rules").add(builder); rules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRules(io.kubernetes.client.openapi.models.V1SuccessPolicyRule... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1SuccessPolicyRule item : items) {V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public A addToRules(V1SuccessPolicyRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1SuccessPolicyRule item : items) { + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1SuccessPolicyRule item : items) {V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1SuccessPolicyRule item : items) { + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1SuccessPolicyRule... items) { - if (this.rules == null) return (A)this; - for (V1SuccessPolicyRule item : items) {V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A removeFromRules(V1SuccessPolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1SuccessPolicyRule item : items) { + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1SuccessPolicyRule item : items) {V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + if (this.rules == null) { + return (A) this; + } + for (V1SuccessPolicyRule item : items) { + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1SuccessPolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1SuccessPolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRules() { @@ -141,7 +177,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1SuccessPolicyRule... rules) { + public A withRules(V1SuccessPolicyRule... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -155,7 +191,7 @@ public A withRules(io.kubernetes.client.openapi.models.V1SuccessPolicyRule... ru } public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + return this.rules != null && !(this.rules.isEmpty()); } public RulesNested addNewRule() { @@ -171,47 +207,69 @@ public RulesNested setNewRuleLike(int index,V1SuccessPolicyRule item) { } public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); + if (index <= rules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } public RulesNested editLastRule() { int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1SuccessPolicyRuleFluent> im int index; public N and() { - return (N) V1SuccessPolicyFluent.this.setToRules(index,builder.build()); + return (N) V1SuccessPolicyFluent.this.setToRules(index, builder.build()); } public N endRule() { 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 55e0c068a3..ebbd483805 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SuccessPolicyRuleBuilder extends V1SuccessPolicyRuleFluent implements VisitableBuilder{ public V1SuccessPolicyRuleBuilder() { this(new V1SuccessPolicyRule()); 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 8ba146a359..9674aaa0f7 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SuccessPolicyRuleFluent> extends BaseFluent{ +public class V1SuccessPolicyRuleFluent> extends BaseFluent{ public V1SuccessPolicyRuleFluent() { } @@ -21,11 +23,11 @@ public V1SuccessPolicyRuleFluent(V1SuccessPolicyRule instance) { private String succeededIndexes; protected void copyInstance(V1SuccessPolicyRule instance) { - instance = (instance != null ? instance : new V1SuccessPolicyRule()); + instance = instance != null ? instance : new V1SuccessPolicyRule(); if (instance != null) { - this.withSucceededCount(instance.getSucceededCount()); - this.withSucceededIndexes(instance.getSucceededIndexes()); - } + this.withSucceededCount(instance.getSucceededCount()); + this.withSucceededIndexes(instance.getSucceededIndexes()); + } } public Integer getSucceededCount() { @@ -55,24 +57,41 @@ public boolean hasSucceededIndexes() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SuccessPolicyRuleFluent that = (V1SuccessPolicyRuleFluent) o; - if (!java.util.Objects.equals(succeededCount, that.succeededCount)) return false; - if (!java.util.Objects.equals(succeededIndexes, that.succeededIndexes)) return false; + if (!(Objects.equals(succeededCount, that.succeededCount))) { + return false; + } + if (!(Objects.equals(succeededIndexes, that.succeededIndexes))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(succeededCount, succeededIndexes, super.hashCode()); + return Objects.hash(succeededCount, succeededIndexes); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (succeededCount != null) { sb.append("succeededCount:"); sb.append(succeededCount + ","); } - if (succeededIndexes != null) { sb.append("succeededIndexes:"); sb.append(succeededIndexes); } + if (!(succeededCount == null)) { + sb.append("succeededCount:"); + sb.append(succeededCount); + sb.append(","); + } + if (!(succeededIndexes == null)) { + sb.append("succeededIndexes:"); + sb.append(succeededIndexes); + } sb.append("}"); return sb.toString(); } 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 9bdff84ba8..6605a1cef1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SysctlBuilder extends V1SysctlFluent implements VisitableBuilder{ public V1SysctlBuilder() { this(new V1Sysctl()); 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 ce52229cce..f4dae997f9 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1SysctlFluent> extends BaseFluent{ +public class V1SysctlFluent> extends BaseFluent{ public V1SysctlFluent() { } @@ -20,11 +22,11 @@ public V1SysctlFluent(V1Sysctl instance) { private String value; protected void copyInstance(V1Sysctl instance) { - instance = (instance != null ? instance : new V1Sysctl()); + instance = instance != null ? instance : new V1Sysctl(); if (instance != null) { - this.withName(instance.getName()); - this.withValue(instance.getValue()); - } + this.withName(instance.getName()); + this.withValue(instance.getValue()); + } } public String getName() { @@ -54,24 +56,41 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SysctlFluent that = (V1SysctlFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, value, super.hashCode()); + return Objects.hash(name, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 3bf4414b2d..9e5eb08537 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TCPSocketActionBuilder extends V1TCPSocketActionFluent implements VisitableBuilder{ public V1TCPSocketActionBuilder() { this(new V1TCPSocketAction()); 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 290933eecb..ef59846d1a 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TCPSocketActionFluent> extends BaseFluent{ +public class V1TCPSocketActionFluent> extends BaseFluent{ public V1TCPSocketActionFluent() { } @@ -21,11 +23,11 @@ public V1TCPSocketActionFluent(V1TCPSocketAction instance) { private IntOrString port; protected void copyInstance(V1TCPSocketAction instance) { - instance = (instance != null ? instance : new V1TCPSocketAction()); + instance = instance != null ? instance : new V1TCPSocketAction(); if (instance != null) { - this.withHost(instance.getHost()); - this.withPort(instance.getPort()); - } + this.withHost(instance.getHost()); + this.withPort(instance.getPort()); + } } public String getHost() { @@ -55,32 +57,49 @@ public boolean hasPort() { } public A withNewPort(int value) { - return (A)withPort(new IntOrString(value)); + return (A) this.withPort(new IntOrString(value)); } public A withNewPort(String value) { - return (A)withPort(new IntOrString(value)); + return (A) this.withPort(new IntOrString(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TCPSocketActionFluent that = (V1TCPSocketActionFluent) o; - if (!java.util.Objects.equals(host, that.host)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; + if (!(Objects.equals(host, that.host))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(host, port, super.hashCode()); + return Objects.hash(host, port); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (host != null) { sb.append("host:"); sb.append(host + ","); } - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(host == null)) { + sb.append("host:"); + sb.append(host); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } 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 c6640dc364..12ed35098b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TaintBuilder extends V1TaintFluent implements VisitableBuilder{ public V1TaintBuilder() { this(new V1Taint()); 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 b843ffcfcc..f0d8802691 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TaintFluent> extends BaseFluent{ +public class V1TaintFluent> extends BaseFluent{ public V1TaintFluent() { } @@ -23,13 +25,13 @@ public V1TaintFluent(V1Taint instance) { private String value; protected void copyInstance(V1Taint instance) { - instance = (instance != null ? instance : new V1Taint()); + instance = instance != null ? instance : new V1Taint(); if (instance != null) { - this.withEffect(instance.getEffect()); - this.withKey(instance.getKey()); - this.withTimeAdded(instance.getTimeAdded()); - this.withValue(instance.getValue()); - } + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } } public String getEffect() { @@ -85,28 +87,57 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TaintFluent that = (V1TaintFluent) o; - if (!java.util.Objects.equals(effect, that.effect)) return false; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + return Objects.hash(effect, key, timeAdded, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 b304886ba6..9ca8b80a27 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenRequestSpecBuilder extends V1TokenRequestSpecFluent implements VisitableBuilder{ public V1TokenRequestSpecBuilder() { this(new V1TokenRequestSpec()); 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 5b5615f25c..da06b56c0e 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 @@ -1,5 +1,7 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -7,6 +9,7 @@ import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -15,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TokenRequestSpecFluent> extends BaseFluent{ +public class V1TokenRequestSpecFluent> extends BaseFluent{ public V1TokenRequestSpecFluent() { } @@ -27,43 +30,68 @@ public V1TokenRequestSpecFluent(V1TokenRequestSpec instance) { private Long expirationSeconds; protected void copyInstance(V1TokenRequestSpec instance) { - instance = (instance != null ? instance : new V1TokenRequestSpec()); + instance = instance != null ? instance : new V1TokenRequestSpec(); if (instance != null) { - this.withAudiences(instance.getAudiences()); - this.withBoundObjectRef(instance.getBoundObjectRef()); - this.withExpirationSeconds(instance.getExpirationSeconds()); - } + this.withAudiences(instance.getAudiences()); + this.withBoundObjectRef(instance.getBoundObjectRef()); + this.withExpirationSeconds(instance.getExpirationSeconds()); + } } public A addToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} + if (this.audiences == null) { + this.audiences = new ArrayList(); + } this.audiences.add(index, item); - return (A)this; + return (A) this; } public A setToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} - this.audiences.set(index, item); return (A)this; + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + this.audiences.set(index, item); + return (A) this; } - public A addToAudiences(java.lang.String... items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + public A addToAudiences(String... items) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; } public A addAllToAudiences(Collection items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; } - public A removeFromAudiences(java.lang.String... items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + public A removeFromAudiences(String... items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; } public A removeAllFromAudiences(Collection items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; } public List getAudiences() { @@ -112,7 +140,7 @@ public A withAudiences(List audiences) { return (A) this; } - public A withAudiences(java.lang.String... audiences) { + public A withAudiences(String... audiences) { if (this.audiences != null) { this.audiences.clear(); _visitables.remove("audiences"); @@ -126,7 +154,7 @@ public A withAudiences(java.lang.String... audiences) { } public boolean hasAudiences() { - return this.audiences != null && !this.audiences.isEmpty(); + return this.audiences != null && !(this.audiences.isEmpty()); } public V1BoundObjectReference buildBoundObjectRef() { @@ -158,15 +186,15 @@ public BoundObjectRefNested withNewBoundObjectRefLike(V1BoundObjectReference } public BoundObjectRefNested editBoundObjectRef() { - return withNewBoundObjectRefLike(java.util.Optional.ofNullable(buildBoundObjectRef()).orElse(null)); + return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(null)); } public BoundObjectRefNested editOrNewBoundObjectRef() { - return withNewBoundObjectRefLike(java.util.Optional.ofNullable(buildBoundObjectRef()).orElse(new V1BoundObjectReferenceBuilder().build())); + return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(new V1BoundObjectReferenceBuilder().build())); } public BoundObjectRefNested editOrNewBoundObjectRefLike(V1BoundObjectReference item) { - return withNewBoundObjectRefLike(java.util.Optional.ofNullable(buildBoundObjectRef()).orElse(item)); + return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(item)); } public Long getExpirationSeconds() { @@ -183,26 +211,49 @@ public boolean hasExpirationSeconds() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TokenRequestSpecFluent that = (V1TokenRequestSpecFluent) o; - if (!java.util.Objects.equals(audiences, that.audiences)) return false; - if (!java.util.Objects.equals(boundObjectRef, that.boundObjectRef)) return false; - if (!java.util.Objects.equals(expirationSeconds, that.expirationSeconds)) return false; + if (!(Objects.equals(audiences, that.audiences))) { + return false; + } + if (!(Objects.equals(boundObjectRef, that.boundObjectRef))) { + return false; + } + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(audiences, boundObjectRef, expirationSeconds, super.hashCode()); + return Objects.hash(audiences, boundObjectRef, expirationSeconds); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audiences != null && !audiences.isEmpty()) { sb.append("audiences:"); sb.append(audiences + ","); } - if (boundObjectRef != null) { sb.append("boundObjectRef:"); sb.append(boundObjectRef + ","); } - if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds); } + if (!(audiences == null) && !(audiences.isEmpty())) { + sb.append("audiences:"); + sb.append(audiences); + sb.append(","); + } + if (!(boundObjectRef == null)) { + sb.append("boundObjectRef:"); + sb.append(boundObjectRef); + sb.append(","); + } + if (!(expirationSeconds == null)) { + sb.append("expirationSeconds:"); + sb.append(expirationSeconds); + } sb.append("}"); return sb.toString(); } 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 9fd0524632..1239c55cd6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenRequestStatusBuilder extends V1TokenRequestStatusFluent implements VisitableBuilder{ public V1TokenRequestStatusBuilder() { this(new V1TokenRequestStatus()); 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 635c05ff9f..cbc55c1554 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TokenRequestStatusFluent> extends BaseFluent{ +public class V1TokenRequestStatusFluent> extends BaseFluent{ public V1TokenRequestStatusFluent() { } @@ -21,11 +23,11 @@ public V1TokenRequestStatusFluent(V1TokenRequestStatus instance) { private String token; protected void copyInstance(V1TokenRequestStatus instance) { - instance = (instance != null ? instance : new V1TokenRequestStatus()); + instance = instance != null ? instance : new V1TokenRequestStatus(); if (instance != null) { - this.withExpirationTimestamp(instance.getExpirationTimestamp()); - this.withToken(instance.getToken()); - } + this.withExpirationTimestamp(instance.getExpirationTimestamp()); + this.withToken(instance.getToken()); + } } public OffsetDateTime getExpirationTimestamp() { @@ -55,24 +57,41 @@ public boolean hasToken() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TokenRequestStatusFluent that = (V1TokenRequestStatusFluent) o; - if (!java.util.Objects.equals(expirationTimestamp, that.expirationTimestamp)) return false; - if (!java.util.Objects.equals(token, that.token)) return false; + if (!(Objects.equals(expirationTimestamp, that.expirationTimestamp))) { + return false; + } + if (!(Objects.equals(token, that.token))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expirationTimestamp, token, super.hashCode()); + return Objects.hash(expirationTimestamp, token); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expirationTimestamp != null) { sb.append("expirationTimestamp:"); sb.append(expirationTimestamp + ","); } - if (token != null) { sb.append("token:"); sb.append(token); } + if (!(expirationTimestamp == null)) { + sb.append("expirationTimestamp:"); + sb.append(expirationTimestamp); + sb.append(","); + } + if (!(token == null)) { + sb.append("token:"); + sb.append(token); + } sb.append("}"); return sb.toString(); } 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 aa2af1ad55..0d3913ec23 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenReviewBuilder extends V1TokenReviewFluent implements VisitableBuilder{ public V1TokenReviewBuilder() { this(new V1TokenReview()); 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 be872aa41d..cd83a07bda 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TokenReviewFluent> extends BaseFluent{ +public class V1TokenReviewFluent> extends BaseFluent{ public V1TokenReviewFluent() { } @@ -24,14 +27,14 @@ public V1TokenReviewFluent(V1TokenReview instance) { private V1TokenReviewStatusBuilder status; protected void copyInstance(V1TokenReview instance) { - instance = (instance != null ? instance : new V1TokenReview()); + instance = instance != null ? instance : new V1TokenReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1TokenReviewSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1TokenReviewSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1TokenReviewSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1TokenReviewSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1TokenReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1TokenReviewStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1TokenReviewStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1TokenReviewStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1TokenReviewStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1TokenReviewStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TokenReviewFluent that = (V1TokenReviewFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 f7e67fa129..154f32e055 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenReviewSpecBuilder extends V1TokenReviewSpecFluent implements VisitableBuilder{ public V1TokenReviewSpecBuilder() { this(new V1TokenReviewSpec()); 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 faac9a0b8e..8f4f9eb8e5 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TokenReviewSpecFluent> extends BaseFluent{ +public class V1TokenReviewSpecFluent> extends BaseFluent{ public V1TokenReviewSpecFluent() { } @@ -24,42 +26,67 @@ public V1TokenReviewSpecFluent(V1TokenReviewSpec instance) { private String token; protected void copyInstance(V1TokenReviewSpec instance) { - instance = (instance != null ? instance : new V1TokenReviewSpec()); + instance = instance != null ? instance : new V1TokenReviewSpec(); if (instance != null) { - this.withAudiences(instance.getAudiences()); - this.withToken(instance.getToken()); - } + this.withAudiences(instance.getAudiences()); + this.withToken(instance.getToken()); + } } public A addToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} + if (this.audiences == null) { + this.audiences = new ArrayList(); + } this.audiences.add(index, item); - return (A)this; + return (A) this; } public A setToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} - this.audiences.set(index, item); return (A)this; + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + this.audiences.set(index, item); + return (A) this; } - public A addToAudiences(java.lang.String... items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + public A addToAudiences(String... items) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; } public A addAllToAudiences(Collection items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; } - public A removeFromAudiences(java.lang.String... items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + public A removeFromAudiences(String... items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; } public A removeAllFromAudiences(Collection items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; } public List getAudiences() { @@ -108,7 +135,7 @@ public A withAudiences(List audiences) { return (A) this; } - public A withAudiences(java.lang.String... audiences) { + public A withAudiences(String... audiences) { if (this.audiences != null) { this.audiences.clear(); _visitables.remove("audiences"); @@ -122,7 +149,7 @@ public A withAudiences(java.lang.String... audiences) { } public boolean hasAudiences() { - return this.audiences != null && !this.audiences.isEmpty(); + return this.audiences != null && !(this.audiences.isEmpty()); } public String getToken() { @@ -139,24 +166,41 @@ public boolean hasToken() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TokenReviewSpecFluent that = (V1TokenReviewSpecFluent) o; - if (!java.util.Objects.equals(audiences, that.audiences)) return false; - if (!java.util.Objects.equals(token, that.token)) return false; + if (!(Objects.equals(audiences, that.audiences))) { + return false; + } + if (!(Objects.equals(token, that.token))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(audiences, token, super.hashCode()); + return Objects.hash(audiences, token); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audiences != null && !audiences.isEmpty()) { sb.append("audiences:"); sb.append(audiences + ","); } - if (token != null) { sb.append("token:"); sb.append(token); } + if (!(audiences == null) && !(audiences.isEmpty())) { + sb.append("audiences:"); + sb.append(audiences); + sb.append(","); + } + if (!(token == null)) { + sb.append("token:"); + sb.append(token); + } sb.append("}"); return sb.toString(); } 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 f0349e294b..8598e9a438 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenReviewStatusBuilder extends V1TokenReviewStatusFluent implements VisitableBuilder{ public V1TokenReviewStatusBuilder() { this(new V1TokenReviewStatus()); 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 ad8a84da38..fffe5a37c9 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -15,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TokenReviewStatusFluent> extends BaseFluent{ +public class V1TokenReviewStatusFluent> extends BaseFluent{ public V1TokenReviewStatusFluent() { } @@ -28,44 +31,69 @@ public V1TokenReviewStatusFluent(V1TokenReviewStatus instance) { private V1UserInfoBuilder user; protected void copyInstance(V1TokenReviewStatus instance) { - instance = (instance != null ? instance : new V1TokenReviewStatus()); + instance = instance != null ? instance : new V1TokenReviewStatus(); if (instance != null) { - this.withAudiences(instance.getAudiences()); - this.withAuthenticated(instance.getAuthenticated()); - this.withError(instance.getError()); - this.withUser(instance.getUser()); - } + this.withAudiences(instance.getAudiences()); + this.withAuthenticated(instance.getAuthenticated()); + this.withError(instance.getError()); + this.withUser(instance.getUser()); + } } public A addToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} + if (this.audiences == null) { + this.audiences = new ArrayList(); + } this.audiences.add(index, item); - return (A)this; + return (A) this; } public A setToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} - this.audiences.set(index, item); return (A)this; + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + this.audiences.set(index, item); + return (A) this; } - public A addToAudiences(java.lang.String... items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + public A addToAudiences(String... items) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; } public A addAllToAudiences(Collection items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; } - public A removeFromAudiences(java.lang.String... items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + public A removeFromAudiences(String... items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; } public A removeAllFromAudiences(Collection items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; } public List getAudiences() { @@ -114,7 +142,7 @@ public A withAudiences(List audiences) { return (A) this; } - public A withAudiences(java.lang.String... audiences) { + public A withAudiences(String... audiences) { if (this.audiences != null) { this.audiences.clear(); _visitables.remove("audiences"); @@ -128,7 +156,7 @@ public A withAudiences(java.lang.String... audiences) { } public boolean hasAudiences() { - return this.audiences != null && !this.audiences.isEmpty(); + return this.audiences != null && !(this.audiences.isEmpty()); } public Boolean getAuthenticated() { @@ -186,40 +214,69 @@ public UserNested withNewUserLike(V1UserInfo item) { } public UserNested editUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(null)); + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); } public UserNested editOrNewUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1UserInfoBuilder().build())); + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1UserInfoBuilder().build())); } public UserNested editOrNewUserLike(V1UserInfo item) { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item)); + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TokenReviewStatusFluent that = (V1TokenReviewStatusFluent) o; - if (!java.util.Objects.equals(audiences, that.audiences)) return false; - if (!java.util.Objects.equals(authenticated, that.authenticated)) return false; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; + if (!(Objects.equals(audiences, that.audiences))) { + return false; + } + if (!(Objects.equals(authenticated, that.authenticated))) { + return false; + } + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(audiences, authenticated, error, user, super.hashCode()); + return Objects.hash(audiences, authenticated, error, user); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audiences != null && !audiences.isEmpty()) { sb.append("audiences:"); sb.append(audiences + ","); } - if (authenticated != null) { sb.append("authenticated:"); sb.append(authenticated + ","); } - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } + if (!(audiences == null) && !(audiences.isEmpty())) { + sb.append("audiences:"); + sb.append(audiences); + sb.append(","); + } + if (!(authenticated == null)) { + sb.append("authenticated:"); + sb.append(authenticated); + sb.append(","); + } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } sb.append("}"); return sb.toString(); } 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 219de58bd3..5d8a64971e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TolerationBuilder extends V1TolerationFluent implements VisitableBuilder{ public V1TolerationBuilder() { this(new V1Toleration()); 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 4c78b949f2..5a2d816494 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TolerationFluent> extends BaseFluent{ +public class V1TolerationFluent> extends BaseFluent{ public V1TolerationFluent() { } @@ -24,14 +26,14 @@ public V1TolerationFluent(V1Toleration instance) { private String value; protected void copyInstance(V1Toleration instance) { - instance = (instance != null ? instance : new V1Toleration()); + instance = instance != null ? instance : new V1Toleration(); if (instance != null) { - this.withEffect(instance.getEffect()); - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withTolerationSeconds(instance.getTolerationSeconds()); - this.withValue(instance.getValue()); - } + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } } public String getEffect() { @@ -100,30 +102,65 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TolerationFluent that = (V1TolerationFluent) o; - if (!java.util.Objects.equals(effect, that.effect)) return false; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(tolerationSeconds, that.tolerationSeconds))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + return Objects.hash(effect, key, operator, tolerationSeconds, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(tolerationSeconds == null)) { + sb.append("tolerationSeconds:"); + sb.append(tolerationSeconds); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 079e0f968c..eb92e1b633 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TopologySelectorLabelRequirementBuilder extends V1TopologySelectorLabelRequirementFluent implements VisitableBuilder{ public V1TopologySelectorLabelRequirementBuilder() { this(new V1TopologySelectorLabelRequirement()); 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 f10adb2e67..df549bdd5f 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TopologySelectorLabelRequirementFluent> extends BaseFluent{ +public class V1TopologySelectorLabelRequirementFluent> extends BaseFluent{ public V1TopologySelectorLabelRequirementFluent() { } @@ -24,11 +26,11 @@ public V1TopologySelectorLabelRequirementFluent(V1TopologySelectorLabelRequireme private List values; protected void copyInstance(V1TopologySelectorLabelRequirement instance) { - instance = (instance != null ? instance : new V1TopologySelectorLabelRequirement()); + instance = instance != null ? instance : new V1TopologySelectorLabelRequirement(); if (instance != null) { - this.withKey(instance.getKey()); - this.withValues(instance.getValues()); - } + this.withKey(instance.getKey()); + this.withValues(instance.getValues()); + } } public String getKey() { @@ -45,34 +47,59 @@ public boolean hasKey() { } public A addToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} + if (this.values == null) { + this.values = new ArrayList(); + } this.values.add(index, item); - return (A)this; + return (A) this; } public A setToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public A addToValues(java.lang.String... items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + public A addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } public A addAllToValues(Collection items) { - if (this.values == null) {this.values = new ArrayList();} - for (String item : items) {this.values.add(item);} return (A)this; + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } - public A removeFromValues(java.lang.String... items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public A removeAllFromValues(Collection items) { - if (this.values == null) return (A)this; - for (String item : items) { this.values.remove(item);} return (A)this; + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } public List getValues() { @@ -121,7 +148,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.String... values) { + public A withValues(String... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -135,28 +162,45 @@ public A withValues(java.lang.String... values) { } public boolean hasValues() { - return this.values != null && !this.values.isEmpty(); + return this.values != null && !(this.values.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TopologySelectorLabelRequirementFluent that = (V1TopologySelectorLabelRequirementFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(values, that.values)) return false; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(key, values, super.hashCode()); + return Objects.hash(key, values); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (values != null && !values.isEmpty()) { sb.append("values:"); sb.append(values); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } sb.append("}"); return sb.toString(); } 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 7c9b05cf36..442f14b741 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TopologySelectorTermBuilder extends V1TopologySelectorTermFluent implements VisitableBuilder{ public V1TopologySelectorTermBuilder() { this(new V1TopologySelectorTerm()); 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 f496a224bd..6bad0b3bc8 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TopologySelectorTermFluent> extends BaseFluent{ +public class V1TopologySelectorTermFluent> extends BaseFluent{ public V1TopologySelectorTermFluent() { } @@ -26,14 +28,16 @@ public V1TopologySelectorTermFluent(V1TopologySelectorTerm instance) { private ArrayList matchLabelExpressions; protected void copyInstance(V1TopologySelectorTerm instance) { - instance = (instance != null ? instance : new V1TopologySelectorTerm()); + instance = instance != null ? instance : new V1TopologySelectorTerm(); if (instance != null) { - this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); - } + this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); + } } public A addToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { - if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} + if (this.matchLabelExpressions == null) { + this.matchLabelExpressions = new ArrayList(); + } V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); if (index < 0 || index >= matchLabelExpressions.size()) { _visitables.get("matchLabelExpressions").add(builder); @@ -42,11 +46,13 @@ public A addToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement _visitables.get("matchLabelExpressions").add(builder); matchLabelExpressions.add(index, builder); } - return (A)this; + return (A) this; } public A setToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { - if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} + if (this.matchLabelExpressions == null) { + this.matchLabelExpressions = new ArrayList(); + } V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); if (index < 0 || index >= matchLabelExpressions.size()) { _visitables.get("matchLabelExpressions").add(builder); @@ -55,41 +61,71 @@ public A setToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement _visitables.get("matchLabelExpressions").add(builder); matchLabelExpressions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { - if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} - for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").add(builder);this.matchLabelExpressions.add(builder);} return (A)this; + public A addToMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) { + if (this.matchLabelExpressions == null) { + this.matchLabelExpressions = new ArrayList(); + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").add(builder); + this.matchLabelExpressions.add(builder); + } + return (A) this; } public A addAllToMatchLabelExpressions(Collection items) { - if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} - for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").add(builder);this.matchLabelExpressions.add(builder);} return (A)this; + if (this.matchLabelExpressions == null) { + this.matchLabelExpressions = new ArrayList(); + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").add(builder); + this.matchLabelExpressions.add(builder); + } + return (A) this; } - public A removeFromMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { - if (this.matchLabelExpressions == null) return (A)this; - for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").remove(builder); this.matchLabelExpressions.remove(builder);} return (A)this; + public A removeFromMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) { + if (this.matchLabelExpressions == null) { + return (A) this; + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").remove(builder); + this.matchLabelExpressions.remove(builder); + } + return (A) this; } public A removeAllFromMatchLabelExpressions(Collection items) { - if (this.matchLabelExpressions == null) return (A)this; - for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").remove(builder); this.matchLabelExpressions.remove(builder);} return (A)this; + if (this.matchLabelExpressions == null) { + return (A) this; + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").remove(builder); + this.matchLabelExpressions.remove(builder); + } + return (A) this; } public A removeMatchingFromMatchLabelExpressions(Predicate predicate) { - if (matchLabelExpressions == null) return (A) this; - final Iterator each = matchLabelExpressions.iterator(); - final List visitables = _visitables.get("matchLabelExpressions"); + if (matchLabelExpressions == null) { + return (A) this; + } + Iterator each = matchLabelExpressions.iterator(); + List visitables = _visitables.get("matchLabelExpressions"); while (each.hasNext()) { - V1TopologySelectorLabelRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1TopologySelectorLabelRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMatchLabelExpressions() { @@ -141,7 +177,7 @@ public A withMatchLabelExpressions(List matc return (A) this; } - public A withMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... matchLabelExpressions) { + public A withMatchLabelExpressions(V1TopologySelectorLabelRequirement... matchLabelExpressions) { if (this.matchLabelExpressions != null) { this.matchLabelExpressions.clear(); _visitables.remove("matchLabelExpressions"); @@ -155,7 +191,7 @@ public A withMatchLabelExpressions(io.kubernetes.client.openapi.models.V1Topolog } public boolean hasMatchLabelExpressions() { - return this.matchLabelExpressions != null && !this.matchLabelExpressions.isEmpty(); + return this.matchLabelExpressions != null && !(this.matchLabelExpressions.isEmpty()); } public MatchLabelExpressionsNested addNewMatchLabelExpression() { @@ -171,47 +207,69 @@ public MatchLabelExpressionsNested setNewMatchLabelExpressionLike(int index,V } public MatchLabelExpressionsNested editMatchLabelExpression(int index) { - if (matchLabelExpressions.size() <= index) throw new RuntimeException("Can't edit matchLabelExpressions. Index exceeds size."); - return setNewMatchLabelExpressionLike(index, buildMatchLabelExpression(index)); + if (index <= matchLabelExpressions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchLabelExpressions")); + } + return this.setNewMatchLabelExpressionLike(index, this.buildMatchLabelExpression(index)); } public MatchLabelExpressionsNested editFirstMatchLabelExpression() { - if (matchLabelExpressions.size() == 0) throw new RuntimeException("Can't edit first matchLabelExpressions. The list is empty."); - return setNewMatchLabelExpressionLike(0, buildMatchLabelExpression(0)); + if (matchLabelExpressions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchLabelExpressions")); + } + return this.setNewMatchLabelExpressionLike(0, this.buildMatchLabelExpression(0)); } public MatchLabelExpressionsNested editLastMatchLabelExpression() { int index = matchLabelExpressions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchLabelExpressions. The list is empty."); - return setNewMatchLabelExpressionLike(index, buildMatchLabelExpression(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchLabelExpressions")); + } + return this.setNewMatchLabelExpressionLike(index, this.buildMatchLabelExpression(index)); } public MatchLabelExpressionsNested editMatchingMatchLabelExpression(Predicate predicate) { int index = -1; - for (int i=0;i extends V1TopologySelectorLabelRequi int index; public N and() { - return (N) V1TopologySelectorTermFluent.this.setToMatchLabelExpressions(index,builder.build()); + return (N) V1TopologySelectorTermFluent.this.setToMatchLabelExpressions(index, builder.build()); } public N endMatchLabelExpression() { 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 d58b80b11a..7c254ea11a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TopologySpreadConstraintBuilder extends V1TopologySpreadConstraintFluent implements VisitableBuilder{ public V1TopologySpreadConstraintBuilder() { this(new V1TopologySpreadConstraint()); 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 13d4ba6a82..76f8b6dc09 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 @@ -1,5 +1,7 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -7,6 +9,7 @@ import java.util.function.Predicate; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -15,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TopologySpreadConstraintFluent> extends BaseFluent{ +public class V1TopologySpreadConstraintFluent> extends BaseFluent{ public V1TopologySpreadConstraintFluent() { } @@ -32,17 +35,17 @@ public V1TopologySpreadConstraintFluent(V1TopologySpreadConstraint instance) { private String whenUnsatisfiable; protected void copyInstance(V1TopologySpreadConstraint instance) { - instance = (instance != null ? instance : new V1TopologySpreadConstraint()); + instance = instance != null ? instance : new V1TopologySpreadConstraint(); if (instance != null) { - this.withLabelSelector(instance.getLabelSelector()); - this.withMatchLabelKeys(instance.getMatchLabelKeys()); - this.withMaxSkew(instance.getMaxSkew()); - this.withMinDomains(instance.getMinDomains()); - this.withNodeAffinityPolicy(instance.getNodeAffinityPolicy()); - this.withNodeTaintsPolicy(instance.getNodeTaintsPolicy()); - this.withTopologyKey(instance.getTopologyKey()); - this.withWhenUnsatisfiable(instance.getWhenUnsatisfiable()); - } + this.withLabelSelector(instance.getLabelSelector()); + this.withMatchLabelKeys(instance.getMatchLabelKeys()); + this.withMaxSkew(instance.getMaxSkew()); + this.withMinDomains(instance.getMinDomains()); + this.withNodeAffinityPolicy(instance.getNodeAffinityPolicy()); + this.withNodeTaintsPolicy(instance.getNodeTaintsPolicy()); + this.withTopologyKey(instance.getTopologyKey()); + this.withWhenUnsatisfiable(instance.getWhenUnsatisfiable()); + } } public V1LabelSelector buildLabelSelector() { @@ -74,46 +77,71 @@ public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { } public LabelSelectorNested editLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(null)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } public LabelSelectorNested editOrNewLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); } public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(item)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } public A addToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } this.matchLabelKeys.add(index, item); - return (A)this; + return (A) this; } public A setToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} - this.matchLabelKeys.set(index, item); return (A)this; + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + this.matchLabelKeys.set(index, item); + return (A) this; } - public A addToMatchLabelKeys(java.lang.String... items) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} - for (String item : items) {this.matchLabelKeys.add(item);} return (A)this; + public A addToMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.matchLabelKeys.add(item); + } + return (A) this; } public A addAllToMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} - for (String item : items) {this.matchLabelKeys.add(item);} return (A)this; + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.matchLabelKeys.add(item); + } + return (A) this; } - public A removeFromMatchLabelKeys(java.lang.String... items) { - if (this.matchLabelKeys == null) return (A)this; - for (String item : items) { this.matchLabelKeys.remove(item);} return (A)this; + public A removeFromMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.matchLabelKeys.remove(item); + } + return (A) this; } public A removeAllFromMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) return (A)this; - for (String item : items) { this.matchLabelKeys.remove(item);} return (A)this; + if (this.matchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.matchLabelKeys.remove(item); + } + return (A) this; } public List getMatchLabelKeys() { @@ -162,7 +190,7 @@ public A withMatchLabelKeys(List matchLabelKeys) { return (A) this; } - public A withMatchLabelKeys(java.lang.String... matchLabelKeys) { + public A withMatchLabelKeys(String... matchLabelKeys) { if (this.matchLabelKeys != null) { this.matchLabelKeys.clear(); _visitables.remove("matchLabelKeys"); @@ -176,7 +204,7 @@ public A withMatchLabelKeys(java.lang.String... matchLabelKeys) { } public boolean hasMatchLabelKeys() { - return this.matchLabelKeys != null && !this.matchLabelKeys.isEmpty(); + return this.matchLabelKeys != null && !(this.matchLabelKeys.isEmpty()); } public Integer getMaxSkew() { @@ -258,36 +286,89 @@ public boolean hasWhenUnsatisfiable() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TopologySpreadConstraintFluent that = (V1TopologySpreadConstraintFluent) o; - if (!java.util.Objects.equals(labelSelector, that.labelSelector)) return false; - if (!java.util.Objects.equals(matchLabelKeys, that.matchLabelKeys)) return false; - if (!java.util.Objects.equals(maxSkew, that.maxSkew)) return false; - if (!java.util.Objects.equals(minDomains, that.minDomains)) return false; - if (!java.util.Objects.equals(nodeAffinityPolicy, that.nodeAffinityPolicy)) return false; - if (!java.util.Objects.equals(nodeTaintsPolicy, that.nodeTaintsPolicy)) return false; - if (!java.util.Objects.equals(topologyKey, that.topologyKey)) return false; - if (!java.util.Objects.equals(whenUnsatisfiable, that.whenUnsatisfiable)) return false; + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(matchLabelKeys, that.matchLabelKeys))) { + return false; + } + if (!(Objects.equals(maxSkew, that.maxSkew))) { + return false; + } + if (!(Objects.equals(minDomains, that.minDomains))) { + return false; + } + if (!(Objects.equals(nodeAffinityPolicy, that.nodeAffinityPolicy))) { + return false; + } + if (!(Objects.equals(nodeTaintsPolicy, that.nodeTaintsPolicy))) { + return false; + } + if (!(Objects.equals(topologyKey, that.topologyKey))) { + return false; + } + if (!(Objects.equals(whenUnsatisfiable, that.whenUnsatisfiable))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(labelSelector, matchLabelKeys, maxSkew, minDomains, nodeAffinityPolicy, nodeTaintsPolicy, topologyKey, whenUnsatisfiable, super.hashCode()); + return Objects.hash(labelSelector, matchLabelKeys, maxSkew, minDomains, nodeAffinityPolicy, nodeTaintsPolicy, topologyKey, whenUnsatisfiable); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector + ","); } - if (matchLabelKeys != null && !matchLabelKeys.isEmpty()) { sb.append("matchLabelKeys:"); sb.append(matchLabelKeys + ","); } - if (maxSkew != null) { sb.append("maxSkew:"); sb.append(maxSkew + ","); } - if (minDomains != null) { sb.append("minDomains:"); sb.append(minDomains + ","); } - if (nodeAffinityPolicy != null) { sb.append("nodeAffinityPolicy:"); sb.append(nodeAffinityPolicy + ","); } - if (nodeTaintsPolicy != null) { sb.append("nodeTaintsPolicy:"); sb.append(nodeTaintsPolicy + ","); } - if (topologyKey != null) { sb.append("topologyKey:"); sb.append(topologyKey + ","); } - if (whenUnsatisfiable != null) { sb.append("whenUnsatisfiable:"); sb.append(whenUnsatisfiable); } + if (!(labelSelector == null)) { + sb.append("labelSelector:"); + sb.append(labelSelector); + sb.append(","); + } + if (!(matchLabelKeys == null) && !(matchLabelKeys.isEmpty())) { + sb.append("matchLabelKeys:"); + sb.append(matchLabelKeys); + sb.append(","); + } + if (!(maxSkew == null)) { + sb.append("maxSkew:"); + sb.append(maxSkew); + sb.append(","); + } + if (!(minDomains == null)) { + sb.append("minDomains:"); + sb.append(minDomains); + sb.append(","); + } + if (!(nodeAffinityPolicy == null)) { + sb.append("nodeAffinityPolicy:"); + sb.append(nodeAffinityPolicy); + sb.append(","); + } + if (!(nodeTaintsPolicy == null)) { + sb.append("nodeTaintsPolicy:"); + sb.append(nodeTaintsPolicy); + sb.append(","); + } + if (!(topologyKey == null)) { + sb.append("topologyKey:"); + sb.append(topologyKey); + sb.append(","); + } + if (!(whenUnsatisfiable == null)) { + sb.append("whenUnsatisfiable:"); + sb.append(whenUnsatisfiable); + } sb.append("}"); return sb.toString(); } 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 f7abcdd2ea..aac079a172 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TypeCheckingBuilder extends V1TypeCheckingFluent implements VisitableBuilder{ public V1TypeCheckingBuilder() { this(new V1TypeChecking()); 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 c8aab24b16..b8c480d8e6 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TypeCheckingFluent> extends BaseFluent{ +public class V1TypeCheckingFluent> extends BaseFluent{ public V1TypeCheckingFluent() { } @@ -26,14 +28,16 @@ public V1TypeCheckingFluent(V1TypeChecking instance) { private ArrayList expressionWarnings; protected void copyInstance(V1TypeChecking instance) { - instance = (instance != null ? instance : new V1TypeChecking()); + instance = instance != null ? instance : new V1TypeChecking(); if (instance != null) { - this.withExpressionWarnings(instance.getExpressionWarnings()); - } + this.withExpressionWarnings(instance.getExpressionWarnings()); + } } public A addToExpressionWarnings(int index,V1ExpressionWarning item) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} + if (this.expressionWarnings == null) { + this.expressionWarnings = new ArrayList(); + } V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); @@ -42,11 +46,13 @@ public A addToExpressionWarnings(int index,V1ExpressionWarning item) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.add(index, builder); } - return (A)this; + return (A) this; } public A setToExpressionWarnings(int index,V1ExpressionWarning item) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} + if (this.expressionWarnings == null) { + this.expressionWarnings = new ArrayList(); + } V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); @@ -55,41 +61,71 @@ public A setToExpressionWarnings(int index,V1ExpressionWarning item) { _visitables.get("expressionWarnings").add(builder); expressionWarnings.set(index, builder); } - return (A)this; + return (A) this; } - public A addToExpressionWarnings(io.kubernetes.client.openapi.models.V1ExpressionWarning... items) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - for (V1ExpressionWarning item : items) {V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").add(builder);this.expressionWarnings.add(builder);} return (A)this; + public A addToExpressionWarnings(V1ExpressionWarning... items) { + if (this.expressionWarnings == null) { + this.expressionWarnings = new ArrayList(); + } + for (V1ExpressionWarning item : items) { + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + _visitables.get("expressionWarnings").add(builder); + this.expressionWarnings.add(builder); + } + return (A) this; } public A addAllToExpressionWarnings(Collection items) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - for (V1ExpressionWarning item : items) {V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").add(builder);this.expressionWarnings.add(builder);} return (A)this; + if (this.expressionWarnings == null) { + this.expressionWarnings = new ArrayList(); + } + for (V1ExpressionWarning item : items) { + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + _visitables.get("expressionWarnings").add(builder); + this.expressionWarnings.add(builder); + } + return (A) this; } - public A removeFromExpressionWarnings(io.kubernetes.client.openapi.models.V1ExpressionWarning... items) { - if (this.expressionWarnings == null) return (A)this; - for (V1ExpressionWarning item : items) {V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").remove(builder); this.expressionWarnings.remove(builder);} return (A)this; + public A removeFromExpressionWarnings(V1ExpressionWarning... items) { + if (this.expressionWarnings == null) { + return (A) this; + } + for (V1ExpressionWarning item : items) { + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + _visitables.get("expressionWarnings").remove(builder); + this.expressionWarnings.remove(builder); + } + return (A) this; } public A removeAllFromExpressionWarnings(Collection items) { - if (this.expressionWarnings == null) return (A)this; - for (V1ExpressionWarning item : items) {V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").remove(builder); this.expressionWarnings.remove(builder);} return (A)this; + if (this.expressionWarnings == null) { + return (A) this; + } + for (V1ExpressionWarning item : items) { + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + _visitables.get("expressionWarnings").remove(builder); + this.expressionWarnings.remove(builder); + } + return (A) this; } public A removeMatchingFromExpressionWarnings(Predicate predicate) { - if (expressionWarnings == null) return (A) this; - final Iterator each = expressionWarnings.iterator(); - final List visitables = _visitables.get("expressionWarnings"); + if (expressionWarnings == null) { + return (A) this; + } + Iterator each = expressionWarnings.iterator(); + List visitables = _visitables.get("expressionWarnings"); while (each.hasNext()) { - V1ExpressionWarningBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ExpressionWarningBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildExpressionWarnings() { @@ -141,7 +177,7 @@ public A withExpressionWarnings(List expressionWarnings) { return (A) this; } - public A withExpressionWarnings(io.kubernetes.client.openapi.models.V1ExpressionWarning... expressionWarnings) { + public A withExpressionWarnings(V1ExpressionWarning... expressionWarnings) { if (this.expressionWarnings != null) { this.expressionWarnings.clear(); _visitables.remove("expressionWarnings"); @@ -155,7 +191,7 @@ public A withExpressionWarnings(io.kubernetes.client.openapi.models.V1Expression } public boolean hasExpressionWarnings() { - return this.expressionWarnings != null && !this.expressionWarnings.isEmpty(); + return this.expressionWarnings != null && !(this.expressionWarnings.isEmpty()); } public ExpressionWarningsNested addNewExpressionWarning() { @@ -171,47 +207,69 @@ public ExpressionWarningsNested setNewExpressionWarningLike(int index,V1Expre } public ExpressionWarningsNested editExpressionWarning(int index) { - if (expressionWarnings.size() <= index) throw new RuntimeException("Can't edit expressionWarnings. Index exceeds size."); - return setNewExpressionWarningLike(index, buildExpressionWarning(index)); + if (index <= expressionWarnings.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "expressionWarnings")); + } + return this.setNewExpressionWarningLike(index, this.buildExpressionWarning(index)); } public ExpressionWarningsNested editFirstExpressionWarning() { - if (expressionWarnings.size() == 0) throw new RuntimeException("Can't edit first expressionWarnings. The list is empty."); - return setNewExpressionWarningLike(0, buildExpressionWarning(0)); + if (expressionWarnings.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "expressionWarnings")); + } + return this.setNewExpressionWarningLike(0, this.buildExpressionWarning(0)); } public ExpressionWarningsNested editLastExpressionWarning() { int index = expressionWarnings.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last expressionWarnings. The list is empty."); - return setNewExpressionWarningLike(index, buildExpressionWarning(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "expressionWarnings")); + } + return this.setNewExpressionWarningLike(index, this.buildExpressionWarning(index)); } public ExpressionWarningsNested editMatchingExpressionWarning(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ExpressionWarningFluent implements VisitableBuilder{ public V1TypedLocalObjectReferenceBuilder() { this(new V1TypedLocalObjectReference()); 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 8aec8486d7..2942d8cc77 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TypedLocalObjectReferenceFluent> extends BaseFluent{ +public class V1TypedLocalObjectReferenceFluent> extends BaseFluent{ public V1TypedLocalObjectReferenceFluent() { } @@ -21,12 +23,12 @@ public V1TypedLocalObjectReferenceFluent(V1TypedLocalObjectReference instance) { private String name; protected void copyInstance(V1TypedLocalObjectReference instance) { - instance = (instance != null ? instance : new V1TypedLocalObjectReference()); + instance = instance != null ? instance : new V1TypedLocalObjectReference(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - } + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } } public String getApiGroup() { @@ -69,26 +71,49 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TypedLocalObjectReferenceFluent that = (V1TypedLocalObjectReferenceFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + 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(); } 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 8fd6b6f461..e8fef8bd3d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TypedObjectReferenceBuilder extends V1TypedObjectReferenceFluent implements VisitableBuilder{ public V1TypedObjectReferenceBuilder() { this(new V1TypedObjectReference()); 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 eb29dda794..375e287164 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1TypedObjectReferenceFluent> extends BaseFluent{ +public class V1TypedObjectReferenceFluent> extends BaseFluent{ public V1TypedObjectReferenceFluent() { } @@ -22,13 +24,13 @@ public V1TypedObjectReferenceFluent(V1TypedObjectReference instance) { private String namespace; protected void copyInstance(V1TypedObjectReference instance) { - instance = (instance != null ? instance : new V1TypedObjectReference()); + instance = instance != null ? instance : new V1TypedObjectReference(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + } } public String getApiGroup() { @@ -84,28 +86,57 @@ public boolean hasNamespace() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1TypedObjectReferenceFluent that = (V1TypedObjectReferenceFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, namespace, super.hashCode()); + return Objects.hash(apiGroup, kind, name, namespace); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } + 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(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } 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 ebb6a39485..65c60ae3aa 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1UncountedTerminatedPodsBuilder extends V1UncountedTerminatedPodsFluent implements VisitableBuilder{ public V1UncountedTerminatedPodsBuilder() { this(new V1UncountedTerminatedPods()); 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 29b3bc6d9e..3cc7afa1ac 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1UncountedTerminatedPodsFluent> extends BaseFluent{ +public class V1UncountedTerminatedPodsFluent> extends BaseFluent{ public V1UncountedTerminatedPodsFluent() { } @@ -24,42 +26,67 @@ public V1UncountedTerminatedPodsFluent(V1UncountedTerminatedPods instance) { private List succeeded; protected void copyInstance(V1UncountedTerminatedPods instance) { - instance = (instance != null ? instance : new V1UncountedTerminatedPods()); + instance = instance != null ? instance : new V1UncountedTerminatedPods(); if (instance != null) { - this.withFailed(instance.getFailed()); - this.withSucceeded(instance.getSucceeded()); - } + this.withFailed(instance.getFailed()); + this.withSucceeded(instance.getSucceeded()); + } } public A addToFailed(int index,String item) { - if (this.failed == null) {this.failed = new ArrayList();} + if (this.failed == null) { + this.failed = new ArrayList(); + } this.failed.add(index, item); - return (A)this; + return (A) this; } public A setToFailed(int index,String item) { - if (this.failed == null) {this.failed = new ArrayList();} - this.failed.set(index, item); return (A)this; + if (this.failed == null) { + this.failed = new ArrayList(); + } + this.failed.set(index, item); + return (A) this; } - public A addToFailed(java.lang.String... items) { - if (this.failed == null) {this.failed = new ArrayList();} - for (String item : items) {this.failed.add(item);} return (A)this; + public A addToFailed(String... items) { + if (this.failed == null) { + this.failed = new ArrayList(); + } + for (String item : items) { + this.failed.add(item); + } + return (A) this; } public A addAllToFailed(Collection items) { - if (this.failed == null) {this.failed = new ArrayList();} - for (String item : items) {this.failed.add(item);} return (A)this; + if (this.failed == null) { + this.failed = new ArrayList(); + } + for (String item : items) { + this.failed.add(item); + } + return (A) this; } - public A removeFromFailed(java.lang.String... items) { - if (this.failed == null) return (A)this; - for (String item : items) { this.failed.remove(item);} return (A)this; + public A removeFromFailed(String... items) { + if (this.failed == null) { + return (A) this; + } + for (String item : items) { + this.failed.remove(item); + } + return (A) this; } public A removeAllFromFailed(Collection items) { - if (this.failed == null) return (A)this; - for (String item : items) { this.failed.remove(item);} return (A)this; + if (this.failed == null) { + return (A) this; + } + for (String item : items) { + this.failed.remove(item); + } + return (A) this; } public List getFailed() { @@ -108,7 +135,7 @@ public A withFailed(List failed) { return (A) this; } - public A withFailed(java.lang.String... failed) { + public A withFailed(String... failed) { if (this.failed != null) { this.failed.clear(); _visitables.remove("failed"); @@ -122,38 +149,63 @@ public A withFailed(java.lang.String... failed) { } public boolean hasFailed() { - return this.failed != null && !this.failed.isEmpty(); + return this.failed != null && !(this.failed.isEmpty()); } public A addToSucceeded(int index,String item) { - if (this.succeeded == null) {this.succeeded = new ArrayList();} + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } this.succeeded.add(index, item); - return (A)this; + return (A) this; } public A setToSucceeded(int index,String item) { - if (this.succeeded == null) {this.succeeded = new ArrayList();} - this.succeeded.set(index, item); return (A)this; + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } + this.succeeded.set(index, item); + return (A) this; } - public A addToSucceeded(java.lang.String... items) { - if (this.succeeded == null) {this.succeeded = new ArrayList();} - for (String item : items) {this.succeeded.add(item);} return (A)this; + public A addToSucceeded(String... items) { + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } + for (String item : items) { + this.succeeded.add(item); + } + return (A) this; } public A addAllToSucceeded(Collection items) { - if (this.succeeded == null) {this.succeeded = new ArrayList();} - for (String item : items) {this.succeeded.add(item);} return (A)this; + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } + for (String item : items) { + this.succeeded.add(item); + } + return (A) this; } - public A removeFromSucceeded(java.lang.String... items) { - if (this.succeeded == null) return (A)this; - for (String item : items) { this.succeeded.remove(item);} return (A)this; + public A removeFromSucceeded(String... items) { + if (this.succeeded == null) { + return (A) this; + } + for (String item : items) { + this.succeeded.remove(item); + } + return (A) this; } public A removeAllFromSucceeded(Collection items) { - if (this.succeeded == null) return (A)this; - for (String item : items) { this.succeeded.remove(item);} return (A)this; + if (this.succeeded == null) { + return (A) this; + } + for (String item : items) { + this.succeeded.remove(item); + } + return (A) this; } public List getSucceeded() { @@ -202,7 +254,7 @@ public A withSucceeded(List succeeded) { return (A) this; } - public A withSucceeded(java.lang.String... succeeded) { + public A withSucceeded(String... succeeded) { if (this.succeeded != null) { this.succeeded.clear(); _visitables.remove("succeeded"); @@ -216,28 +268,45 @@ public A withSucceeded(java.lang.String... succeeded) { } public boolean hasSucceeded() { - return this.succeeded != null && !this.succeeded.isEmpty(); + return this.succeeded != null && !(this.succeeded.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1UncountedTerminatedPodsFluent that = (V1UncountedTerminatedPodsFluent) o; - if (!java.util.Objects.equals(failed, that.failed)) return false; - if (!java.util.Objects.equals(succeeded, that.succeeded)) return false; + if (!(Objects.equals(failed, that.failed))) { + return false; + } + if (!(Objects.equals(succeeded, that.succeeded))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(failed, succeeded, super.hashCode()); + return Objects.hash(failed, succeeded); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (failed != null && !failed.isEmpty()) { sb.append("failed:"); sb.append(failed + ","); } - if (succeeded != null && !succeeded.isEmpty()) { sb.append("succeeded:"); sb.append(succeeded); } + if (!(failed == null) && !(failed.isEmpty())) { + sb.append("failed:"); + sb.append(failed); + sb.append(","); + } + if (!(succeeded == null) && !(succeeded.isEmpty())) { + sb.append("succeeded:"); + sb.append(succeeded); + } sb.append("}"); return sb.toString(); } 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 96c1cfb6c8..bd278b8bde 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1UserInfoBuilder extends V1UserInfoFluent implements VisitableBuilder{ public V1UserInfoBuilder() { this(new V1UserInfo()); 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 1809b435e2..2601a91eef 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 @@ -1,21 +1,23 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.lang.String; +import java.util.LinkedHashMap; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; -import java.lang.String; import java.util.Map; -import java.util.LinkedHashMap; -import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1UserInfoFluent> extends BaseFluent{ +public class V1UserInfoFluent> extends BaseFluent{ public V1UserInfoFluent() { } @@ -28,33 +30,57 @@ public V1UserInfoFluent(V1UserInfo instance) { private String username; protected void copyInstance(V1UserInfo instance) { - instance = (instance != null ? instance : new V1UserInfo()); + instance = instance != null ? instance : new V1UserInfo(); if (instance != null) { - this.withExtra(instance.getExtra()); - this.withGroups(instance.getGroups()); - this.withUid(instance.getUid()); - this.withUsername(instance.getUsername()); - } + this.withExtra(instance.getExtra()); + this.withGroups(instance.getGroups()); + this.withUid(instance.getUid()); + this.withUsername(instance.getUsername()); + } } public A addToExtra(String key,List value) { - if(this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } - if(key != null && value != null) {this.extra.put(key, value);} return (A)this; + if (this.extra == null && key != null && value != null) { + this.extra = new LinkedHashMap(); + } + if (key != null && value != null) { + this.extra.put(key, value); + } + return (A) this; } public A addToExtra(Map> map) { - if(this.extra == null && map != null) { this.extra = new LinkedHashMap(); } - if(map != null) { this.extra.putAll(map);} return (A)this; + if (this.extra == null && map != null) { + this.extra = new LinkedHashMap(); + } + if (map != null) { + this.extra.putAll(map); + } + return (A) this; } public A removeFromExtra(String key) { - if(this.extra == null) { return (A) this; } - if(key != null && this.extra != null) {this.extra.remove(key);} return (A)this; + if (this.extra == null) { + return (A) this; + } + if (key != null && this.extra != null) { + this.extra.remove(key); + } + return (A) this; } public A removeFromExtra(Map> map) { - if(this.extra == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.extra != null){this.extra.remove(key);}}} return (A)this; + if (this.extra == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.extra != null) { + this.extra.remove(key); + } + } + } + return (A) this; } public Map> getExtra() { @@ -75,34 +101,59 @@ public boolean hasExtra() { } public A addToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} + if (this.groups == null) { + this.groups = new ArrayList(); + } this.groups.add(index, item); - return (A)this; + return (A) this; } public A setToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} - this.groups.set(index, item); return (A)this; + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.set(index, item); + return (A) this; } - public A addToGroups(java.lang.String... items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + public A addToGroups(String... items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } public A addAllToGroups(Collection items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } - public A removeFromGroups(java.lang.String... items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + public A removeFromGroups(String... items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; } public A removeAllFromGroups(Collection items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; } public List getGroups() { @@ -151,7 +202,7 @@ public A withGroups(List groups) { return (A) this; } - public A withGroups(java.lang.String... groups) { + public A withGroups(String... groups) { if (this.groups != null) { this.groups.clear(); _visitables.remove("groups"); @@ -165,7 +216,7 @@ public A withGroups(java.lang.String... groups) { } public boolean hasGroups() { - return this.groups != null && !this.groups.isEmpty(); + return this.groups != null && !(this.groups.isEmpty()); } public String getUid() { @@ -195,28 +246,57 @@ public boolean hasUsername() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1UserInfoFluent that = (V1UserInfoFluent) o; - if (!java.util.Objects.equals(extra, that.extra)) return false; - if (!java.util.Objects.equals(groups, that.groups)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - if (!java.util.Objects.equals(username, that.username)) return false; + if (!(Objects.equals(extra, that.extra))) { + return false; + } + if (!(Objects.equals(groups, that.groups))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + if (!(Objects.equals(username, that.username))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(extra, groups, uid, username, super.hashCode()); + return Objects.hash(extra, groups, uid, username); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (extra != null && !extra.isEmpty()) { sb.append("extra:"); sb.append(extra + ","); } - if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid + ","); } - if (username != null) { sb.append("username:"); sb.append(username); } + if (!(extra == null) && !(extra.isEmpty())) { + sb.append("extra:"); + sb.append(extra); + sb.append(","); + } + if (!(groups == null) && !(groups.isEmpty())) { + sb.append("groups:"); + sb.append(groups); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + sb.append(","); + } + if (!(username == null)) { + sb.append("username:"); + sb.append(username); + } sb.append("}"); return sb.toString(); } 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 25c656fd6d..92479117e6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1UserSubjectBuilder extends V1UserSubjectFluent implements VisitableBuilder{ public V1UserSubjectBuilder() { this(new V1UserSubject()); 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 ad6c49b3ae..fce8023127 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1UserSubjectFluent> extends BaseFluent{ +public class V1UserSubjectFluent> extends BaseFluent{ public V1UserSubjectFluent() { } @@ -19,10 +21,10 @@ public V1UserSubjectFluent(V1UserSubject instance) { private String name; protected void copyInstance(V1UserSubject instance) { - instance = (instance != null ? instance : new V1UserSubject()); + instance = instance != null ? instance : new V1UserSubject(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } public String getName() { @@ -39,22 +41,33 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1UserSubjectFluent that = (V1UserSubjectFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 bc8b57501c..c1d4ceac8e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyBindingBuilder extends V1ValidatingAdmissionPolicyBindingFluent implements VisitableBuilder{ public V1ValidatingAdmissionPolicyBindingBuilder() { this(new V1ValidatingAdmissionPolicyBinding()); 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 bafff65443..3ae261a0ea 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ public V1ValidatingAdmissionPolicyBindingFluent() { } @@ -23,13 +26,13 @@ public V1ValidatingAdmissionPolicyBindingFluent(V1ValidatingAdmissionPolicyBindi private V1ValidatingAdmissionPolicyBindingSpecBuilder spec; protected void copyInstance(V1ValidatingAdmissionPolicyBinding instance) { - instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyBinding()); + instance = instance != null ? instance : new V1ValidatingAdmissionPolicyBinding(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1ValidatingAdmissionPolicyBindingSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec item } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ValidatingAdmissionPolicyBindingSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ValidatingAdmissionPolicyBindingSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ValidatingAdmissionPolicyBindingFluent that = (V1ValidatingAdmissionPolicyBindingFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 a24e4690c7..3b4f0d7637 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyBindingListBuilder extends V1ValidatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ public V1ValidatingAdmissionPolicyBindingListBuilder() { this(new V1ValidatingAdmissionPolicyBindingList()); 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 6301420310..7845cce75c 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ public V1ValidatingAdmissionPolicyBindingListFluent() { } @@ -29,13 +32,13 @@ public V1ValidatingAdmissionPolicyBindingListFluent(V1ValidatingAdmissionPolicyB private V1ListMetaBuilder metadata; protected void copyInstance(V1ValidatingAdmissionPolicyBindingList instance) { - instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyBindingList()); + instance = instance != null ? instance : new V1ValidatingAdmissionPolicyBindingList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ValidatingAdmissionPolicyBinding item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ValidatingAdmissionPolicyBinding item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ValidatingAdmissionPolicyBinding item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ValidatingAdmissionPolicyBinding item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBinding... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ValidatingAdmissionPolicyBinding item : items) {V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ValidatingAdmissionPolicyBinding... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ValidatingAdmissionPolicyBinding item : items) { + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ValidatingAdmissionPolicyBinding item : items) {V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ValidatingAdmissionPolicyBinding item : items) { + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBinding... items) { - if (this.items == null) return (A)this; - for (V1ValidatingAdmissionPolicyBinding item : items) {V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ValidatingAdmissionPolicyBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingAdmissionPolicyBinding item : items) { + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ValidatingAdmissionPolicyBinding item : items) {V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ValidatingAdmissionPolicyBinding item : items) { + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ValidatingAdmissionPolicyBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ValidatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBinding... items) { + public A withItems(V1ValidatingAdmissionPolicyBinding... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPoli } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicyBindin } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ValidatingAdmissionPolicyBindingListFluent that = (V1ValidatingAdmissionPolicyBindingListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ValidatingAdmissionPolicyBindingFluent implements VisitableBuilder{ public V1ValidatingAdmissionPolicyBindingSpecBuilder() { this(new V1ValidatingAdmissionPolicyBindingSpec()); 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 a270a51692..0179dd6c05 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ public V1ValidatingAdmissionPolicyBindingSpecFluent() { } @@ -27,13 +30,13 @@ public V1ValidatingAdmissionPolicyBindingSpecFluent(V1ValidatingAdmissionPolicyB private List validationActions; protected void copyInstance(V1ValidatingAdmissionPolicyBindingSpec instance) { - instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyBindingSpec()); + instance = instance != null ? instance : new V1ValidatingAdmissionPolicyBindingSpec(); if (instance != null) { - this.withMatchResources(instance.getMatchResources()); - this.withParamRef(instance.getParamRef()); - this.withPolicyName(instance.getPolicyName()); - this.withValidationActions(instance.getValidationActions()); - } + this.withMatchResources(instance.getMatchResources()); + this.withParamRef(instance.getParamRef()); + this.withPolicyName(instance.getPolicyName()); + this.withValidationActions(instance.getValidationActions()); + } } public V1MatchResources buildMatchResources() { @@ -65,15 +68,15 @@ public MatchResourcesNested withNewMatchResourcesLike(V1MatchResources item) } public MatchResourcesNested editMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(null)); + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(null)); } public MatchResourcesNested editOrNewMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(new V1MatchResourcesBuilder().build())); + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(new V1MatchResourcesBuilder().build())); } public MatchResourcesNested editOrNewMatchResourcesLike(V1MatchResources item) { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(item)); + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); } public V1ParamRef buildParamRef() { @@ -105,15 +108,15 @@ public ParamRefNested withNewParamRefLike(V1ParamRef item) { } public ParamRefNested editParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(null)); + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); } public ParamRefNested editOrNewParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(new V1ParamRefBuilder().build())); + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1ParamRefBuilder().build())); } public ParamRefNested editOrNewParamRefLike(V1ParamRef item) { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(item)); + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); } public String getPolicyName() { @@ -130,34 +133,59 @@ public boolean hasPolicyName() { } public A addToValidationActions(int index,String item) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} + if (this.validationActions == null) { + this.validationActions = new ArrayList(); + } this.validationActions.add(index, item); - return (A)this; + return (A) this; } public A setToValidationActions(int index,String item) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - this.validationActions.set(index, item); return (A)this; + if (this.validationActions == null) { + this.validationActions = new ArrayList(); + } + this.validationActions.set(index, item); + return (A) this; } - public A addToValidationActions(java.lang.String... items) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - for (String item : items) {this.validationActions.add(item);} return (A)this; + public A addToValidationActions(String... items) { + if (this.validationActions == null) { + this.validationActions = new ArrayList(); + } + for (String item : items) { + this.validationActions.add(item); + } + return (A) this; } public A addAllToValidationActions(Collection items) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - for (String item : items) {this.validationActions.add(item);} return (A)this; + if (this.validationActions == null) { + this.validationActions = new ArrayList(); + } + for (String item : items) { + this.validationActions.add(item); + } + return (A) this; } - public A removeFromValidationActions(java.lang.String... items) { - if (this.validationActions == null) return (A)this; - for (String item : items) { this.validationActions.remove(item);} return (A)this; + public A removeFromValidationActions(String... items) { + if (this.validationActions == null) { + return (A) this; + } + for (String item : items) { + this.validationActions.remove(item); + } + return (A) this; } public A removeAllFromValidationActions(Collection items) { - if (this.validationActions == null) return (A)this; - for (String item : items) { this.validationActions.remove(item);} return (A)this; + if (this.validationActions == null) { + return (A) this; + } + for (String item : items) { + this.validationActions.remove(item); + } + return (A) this; } public List getValidationActions() { @@ -206,7 +234,7 @@ public A withValidationActions(List validationActions) { return (A) this; } - public A withValidationActions(java.lang.String... validationActions) { + public A withValidationActions(String... validationActions) { if (this.validationActions != null) { this.validationActions.clear(); _visitables.remove("validationActions"); @@ -220,32 +248,61 @@ public A withValidationActions(java.lang.String... validationActions) { } public boolean hasValidationActions() { - return this.validationActions != null && !this.validationActions.isEmpty(); + return this.validationActions != null && !(this.validationActions.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ValidatingAdmissionPolicyBindingSpecFluent that = (V1ValidatingAdmissionPolicyBindingSpecFluent) o; - if (!java.util.Objects.equals(matchResources, that.matchResources)) return false; - if (!java.util.Objects.equals(paramRef, that.paramRef)) return false; - if (!java.util.Objects.equals(policyName, that.policyName)) return false; - if (!java.util.Objects.equals(validationActions, that.validationActions)) return false; + if (!(Objects.equals(matchResources, that.matchResources))) { + return false; + } + if (!(Objects.equals(paramRef, that.paramRef))) { + return false; + } + if (!(Objects.equals(policyName, that.policyName))) { + return false; + } + if (!(Objects.equals(validationActions, that.validationActions))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(matchResources, paramRef, policyName, validationActions, super.hashCode()); + return Objects.hash(matchResources, paramRef, policyName, validationActions); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (matchResources != null) { sb.append("matchResources:"); sb.append(matchResources + ","); } - if (paramRef != null) { sb.append("paramRef:"); sb.append(paramRef + ","); } - if (policyName != null) { sb.append("policyName:"); sb.append(policyName + ","); } - if (validationActions != null && !validationActions.isEmpty()) { sb.append("validationActions:"); sb.append(validationActions); } + if (!(matchResources == null)) { + sb.append("matchResources:"); + sb.append(matchResources); + sb.append(","); + } + if (!(paramRef == null)) { + sb.append("paramRef:"); + sb.append(paramRef); + sb.append(","); + } + if (!(policyName == null)) { + sb.append("policyName:"); + sb.append(policyName); + sb.append(","); + } + if (!(validationActions == null) && !(validationActions.isEmpty())) { + sb.append("validationActions:"); + sb.append(validationActions); + } sb.append("}"); return sb.toString(); } 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 6abb02599b..9c34436f48 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyBuilder extends V1ValidatingAdmissionPolicyFluent implements VisitableBuilder{ public V1ValidatingAdmissionPolicyBuilder() { this(new V1ValidatingAdmissionPolicy()); 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 3f346ba88c..dd1864f3f6 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyFluent> extends BaseFluent{ public V1ValidatingAdmissionPolicyFluent() { } @@ -24,14 +27,14 @@ public V1ValidatingAdmissionPolicyFluent(V1ValidatingAdmissionPolicy instance) { private V1ValidatingAdmissionPolicyStatusBuilder status; protected void copyInstance(V1ValidatingAdmissionPolicy instance) { - instance = (instance != null ? instance : new V1ValidatingAdmissionPolicy()); + instance = instance != null ? instance : new V1ValidatingAdmissionPolicy(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1ValidatingAdmissionPolicySpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicySpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1ValidatingAdmissionPolicySpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ValidatingAdmissionPolicySpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1ValidatingAdmissionPolicySpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1ValidatingAdmissionPolicyStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1ValidatingAdmissionPolicyStatus item) } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1ValidatingAdmissionPolicyStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ValidatingAdmissionPolicyStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ValidatingAdmissionPolicyFluent that = (V1ValidatingAdmissionPolicyFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 4f6360d8e4..2c145cb676 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyListBuilder extends V1ValidatingAdmissionPolicyListFluent implements VisitableBuilder{ public V1ValidatingAdmissionPolicyListBuilder() { this(new V1ValidatingAdmissionPolicyList()); 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 551bee18b3..4df6470f09 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ public V1ValidatingAdmissionPolicyListFluent() { } @@ -29,13 +32,13 @@ public V1ValidatingAdmissionPolicyListFluent(V1ValidatingAdmissionPolicyList ins private V1ListMetaBuilder metadata; protected void copyInstance(V1ValidatingAdmissionPolicyList instance) { - instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyList()); + instance = instance != null ? instance : new V1ValidatingAdmissionPolicyList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ValidatingAdmissionPolicy item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ValidatingAdmissionPolicy item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ValidatingAdmissionPolicy item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ValidatingAdmissionPolicy item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicy... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ValidatingAdmissionPolicy item : items) {V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ValidatingAdmissionPolicy... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ValidatingAdmissionPolicy item : items) { + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ValidatingAdmissionPolicy item : items) {V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ValidatingAdmissionPolicy item : items) { + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicy... items) { - if (this.items == null) return (A)this; - for (V1ValidatingAdmissionPolicy item : items) {V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ValidatingAdmissionPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingAdmissionPolicy item : items) { + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ValidatingAdmissionPolicy item : items) {V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ValidatingAdmissionPolicy item : items) { + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ValidatingAdmissionPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ValidatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicy... items) { + public A withItems(V1ValidatingAdmissionPolicy... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPoli } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicy item) } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ValidatingAdmissionPolicyListFluent that = (V1ValidatingAdmissionPolicyListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ValidatingAdmissionPolicyFluent implements VisitableBuilder{ public V1ValidatingAdmissionPolicySpecBuilder() { this(new V1ValidatingAdmissionPolicySpec()); 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 f64690ac28..5a1e35e893 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ public V1ValidatingAdmissionPolicySpecFluent() { } @@ -32,20 +35,22 @@ public V1ValidatingAdmissionPolicySpecFluent(V1ValidatingAdmissionPolicySpec ins private ArrayList variables; protected void copyInstance(V1ValidatingAdmissionPolicySpec instance) { - instance = (instance != null ? instance : new V1ValidatingAdmissionPolicySpec()); + instance = instance != null ? instance : new V1ValidatingAdmissionPolicySpec(); if (instance != null) { - this.withAuditAnnotations(instance.getAuditAnnotations()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchConstraints(instance.getMatchConstraints()); - this.withParamKind(instance.getParamKind()); - this.withValidations(instance.getValidations()); - this.withVariables(instance.getVariables()); - } + this.withAuditAnnotations(instance.getAuditAnnotations()); + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchConstraints(instance.getMatchConstraints()); + this.withParamKind(instance.getParamKind()); + this.withValidations(instance.getValidations()); + this.withVariables(instance.getVariables()); + } } public A addToAuditAnnotations(int index,V1AuditAnnotation item) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} + if (this.auditAnnotations == null) { + this.auditAnnotations = new ArrayList(); + } V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); @@ -54,11 +59,13 @@ public A addToAuditAnnotations(int index,V1AuditAnnotation item) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.add(index, builder); } - return (A)this; + return (A) this; } public A setToAuditAnnotations(int index,V1AuditAnnotation item) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} + if (this.auditAnnotations == null) { + this.auditAnnotations = new ArrayList(); + } V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); @@ -67,41 +74,71 @@ public A setToAuditAnnotations(int index,V1AuditAnnotation item) { _visitables.get("auditAnnotations").add(builder); auditAnnotations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToAuditAnnotations(io.kubernetes.client.openapi.models.V1AuditAnnotation... items) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - for (V1AuditAnnotation item : items) {V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").add(builder);this.auditAnnotations.add(builder);} return (A)this; + public A addToAuditAnnotations(V1AuditAnnotation... items) { + if (this.auditAnnotations == null) { + this.auditAnnotations = new ArrayList(); + } + for (V1AuditAnnotation item : items) { + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + _visitables.get("auditAnnotations").add(builder); + this.auditAnnotations.add(builder); + } + return (A) this; } public A addAllToAuditAnnotations(Collection items) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - for (V1AuditAnnotation item : items) {V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").add(builder);this.auditAnnotations.add(builder);} return (A)this; + if (this.auditAnnotations == null) { + this.auditAnnotations = new ArrayList(); + } + for (V1AuditAnnotation item : items) { + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + _visitables.get("auditAnnotations").add(builder); + this.auditAnnotations.add(builder); + } + return (A) this; } - public A removeFromAuditAnnotations(io.kubernetes.client.openapi.models.V1AuditAnnotation... items) { - if (this.auditAnnotations == null) return (A)this; - for (V1AuditAnnotation item : items) {V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").remove(builder); this.auditAnnotations.remove(builder);} return (A)this; + public A removeFromAuditAnnotations(V1AuditAnnotation... items) { + if (this.auditAnnotations == null) { + return (A) this; + } + for (V1AuditAnnotation item : items) { + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + _visitables.get("auditAnnotations").remove(builder); + this.auditAnnotations.remove(builder); + } + return (A) this; } public A removeAllFromAuditAnnotations(Collection items) { - if (this.auditAnnotations == null) return (A)this; - for (V1AuditAnnotation item : items) {V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").remove(builder); this.auditAnnotations.remove(builder);} return (A)this; + if (this.auditAnnotations == null) { + return (A) this; + } + for (V1AuditAnnotation item : items) { + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + _visitables.get("auditAnnotations").remove(builder); + this.auditAnnotations.remove(builder); + } + return (A) this; } public A removeMatchingFromAuditAnnotations(Predicate predicate) { - if (auditAnnotations == null) return (A) this; - final Iterator each = auditAnnotations.iterator(); - final List visitables = _visitables.get("auditAnnotations"); + if (auditAnnotations == null) { + return (A) this; + } + Iterator each = auditAnnotations.iterator(); + List visitables = _visitables.get("auditAnnotations"); while (each.hasNext()) { - V1AuditAnnotationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1AuditAnnotationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildAuditAnnotations() { @@ -153,7 +190,7 @@ public A withAuditAnnotations(List auditAnnotations) { return (A) this; } - public A withAuditAnnotations(io.kubernetes.client.openapi.models.V1AuditAnnotation... auditAnnotations) { + public A withAuditAnnotations(V1AuditAnnotation... auditAnnotations) { if (this.auditAnnotations != null) { this.auditAnnotations.clear(); _visitables.remove("auditAnnotations"); @@ -167,7 +204,7 @@ public A withAuditAnnotations(io.kubernetes.client.openapi.models.V1AuditAnnotat } public boolean hasAuditAnnotations() { - return this.auditAnnotations != null && !this.auditAnnotations.isEmpty(); + return this.auditAnnotations != null && !(this.auditAnnotations.isEmpty()); } public AuditAnnotationsNested addNewAuditAnnotation() { @@ -183,28 +220,39 @@ public AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1AuditAnno } public AuditAnnotationsNested editAuditAnnotation(int index) { - if (auditAnnotations.size() <= index) throw new RuntimeException("Can't edit auditAnnotations. Index exceeds size."); - return setNewAuditAnnotationLike(index, buildAuditAnnotation(index)); + if (index <= auditAnnotations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "auditAnnotations")); + } + return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); } public AuditAnnotationsNested editFirstAuditAnnotation() { - if (auditAnnotations.size() == 0) throw new RuntimeException("Can't edit first auditAnnotations. The list is empty."); - return setNewAuditAnnotationLike(0, buildAuditAnnotation(0)); + if (auditAnnotations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "auditAnnotations")); + } + return this.setNewAuditAnnotationLike(0, this.buildAuditAnnotation(0)); } public AuditAnnotationsNested editLastAuditAnnotation() { int index = auditAnnotations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last auditAnnotations. The list is empty."); - return setNewAuditAnnotationLike(index, buildAuditAnnotation(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "auditAnnotations")); + } + return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); } public AuditAnnotationsNested editMatchingAuditAnnotation(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); @@ -230,11 +280,13 @@ public A addToMatchConditions(int index,V1MatchCondition item) { _visitables.get("matchConditions").add(builder); matchConditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); @@ -243,41 +295,71 @@ public A setToMatchConditions(int index,V1MatchCondition item) { _visitables.get("matchConditions").add(builder); matchConditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + public A addToMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } - public A removeFromMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... items) { - if (this.matchConditions == null) return (A)this; - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + public A removeFromMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) return (A)this; - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + if (this.matchConditions == null) { + return (A) this; + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) return (A) this; - final Iterator each = matchConditions.iterator(); - final List visitables = _visitables.get("matchConditions"); + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); while (each.hasNext()) { - V1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMatchConditions() { @@ -329,7 +411,7 @@ public A withMatchConditions(List matchConditions) { return (A) this; } - public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... matchConditions) { + public A withMatchConditions(V1MatchCondition... matchConditions) { if (this.matchConditions != null) { this.matchConditions.clear(); _visitables.remove("matchConditions"); @@ -343,7 +425,7 @@ public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchConditio } public boolean hasMatchConditions() { - return this.matchConditions != null && !this.matchConditions.isEmpty(); + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } public MatchConditionsNested addNewMatchCondition() { @@ -359,28 +441,39 @@ public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondit } public MatchConditionsNested editMatchCondition(int index) { - if (matchConditions.size() <= index) throw new RuntimeException("Can't edit matchConditions. Index exceeds size."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); + if (index <= matchConditions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) throw new RuntimeException("Can't edit first matchConditions. The list is empty."); - return setNewMatchConditionLike(0, buildMatchCondition(0)); + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); } public MatchConditionsNested editLastMatchCondition() { int index = matchConditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchConditions. The list is empty."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { int index = -1; - for (int i=0;i withNewMatchConstraintsLike(V1MatchResources it } public MatchConstraintsNested editMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(null)); + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); } public MatchConstraintsNested editOrNewMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(new V1MatchResourcesBuilder().build())); + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1MatchResourcesBuilder().build())); } public MatchConstraintsNested editOrNewMatchConstraintsLike(V1MatchResources item) { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(item)); + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); } public V1ParamKind buildParamKind() { @@ -452,19 +545,21 @@ public ParamKindNested withNewParamKindLike(V1ParamKind item) { } public ParamKindNested editParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(null)); + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); } public ParamKindNested editOrNewParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(new V1ParamKindBuilder().build())); + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1ParamKindBuilder().build())); } public ParamKindNested editOrNewParamKindLike(V1ParamKind item) { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(item)); + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); } public A addToValidations(int index,V1Validation item) { - if (this.validations == null) {this.validations = new ArrayList();} + if (this.validations == null) { + this.validations = new ArrayList(); + } V1ValidationBuilder builder = new V1ValidationBuilder(item); if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); @@ -473,11 +568,13 @@ public A addToValidations(int index,V1Validation item) { _visitables.get("validations").add(builder); validations.add(index, builder); } - return (A)this; + return (A) this; } public A setToValidations(int index,V1Validation item) { - if (this.validations == null) {this.validations = new ArrayList();} + if (this.validations == null) { + this.validations = new ArrayList(); + } V1ValidationBuilder builder = new V1ValidationBuilder(item); if (index < 0 || index >= validations.size()) { _visitables.get("validations").add(builder); @@ -486,41 +583,71 @@ public A setToValidations(int index,V1Validation item) { _visitables.get("validations").add(builder); validations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToValidations(io.kubernetes.client.openapi.models.V1Validation... items) { - if (this.validations == null) {this.validations = new ArrayList();} - for (V1Validation item : items) {V1ValidationBuilder builder = new V1ValidationBuilder(item);_visitables.get("validations").add(builder);this.validations.add(builder);} return (A)this; + public A addToValidations(V1Validation... items) { + if (this.validations == null) { + this.validations = new ArrayList(); + } + for (V1Validation item : items) { + V1ValidationBuilder builder = new V1ValidationBuilder(item); + _visitables.get("validations").add(builder); + this.validations.add(builder); + } + return (A) this; } public A addAllToValidations(Collection items) { - if (this.validations == null) {this.validations = new ArrayList();} - for (V1Validation item : items) {V1ValidationBuilder builder = new V1ValidationBuilder(item);_visitables.get("validations").add(builder);this.validations.add(builder);} return (A)this; + if (this.validations == null) { + this.validations = new ArrayList(); + } + for (V1Validation item : items) { + V1ValidationBuilder builder = new V1ValidationBuilder(item); + _visitables.get("validations").add(builder); + this.validations.add(builder); + } + return (A) this; } - public A removeFromValidations(io.kubernetes.client.openapi.models.V1Validation... items) { - if (this.validations == null) return (A)this; - for (V1Validation item : items) {V1ValidationBuilder builder = new V1ValidationBuilder(item);_visitables.get("validations").remove(builder); this.validations.remove(builder);} return (A)this; + public A removeFromValidations(V1Validation... items) { + if (this.validations == null) { + return (A) this; + } + for (V1Validation item : items) { + V1ValidationBuilder builder = new V1ValidationBuilder(item); + _visitables.get("validations").remove(builder); + this.validations.remove(builder); + } + return (A) this; } public A removeAllFromValidations(Collection items) { - if (this.validations == null) return (A)this; - for (V1Validation item : items) {V1ValidationBuilder builder = new V1ValidationBuilder(item);_visitables.get("validations").remove(builder); this.validations.remove(builder);} return (A)this; + if (this.validations == null) { + return (A) this; + } + for (V1Validation item : items) { + V1ValidationBuilder builder = new V1ValidationBuilder(item); + _visitables.get("validations").remove(builder); + this.validations.remove(builder); + } + return (A) this; } public A removeMatchingFromValidations(Predicate predicate) { - if (validations == null) return (A) this; - final Iterator each = validations.iterator(); - final List visitables = _visitables.get("validations"); + if (validations == null) { + return (A) this; + } + Iterator each = validations.iterator(); + List visitables = _visitables.get("validations"); while (each.hasNext()) { - V1ValidationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ValidationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildValidations() { @@ -572,7 +699,7 @@ public A withValidations(List validations) { return (A) this; } - public A withValidations(io.kubernetes.client.openapi.models.V1Validation... validations) { + public A withValidations(V1Validation... validations) { if (this.validations != null) { this.validations.clear(); _visitables.remove("validations"); @@ -586,7 +713,7 @@ public A withValidations(io.kubernetes.client.openapi.models.V1Validation... val } public boolean hasValidations() { - return this.validations != null && !this.validations.isEmpty(); + return this.validations != null && !(this.validations.isEmpty()); } public ValidationsNested addNewValidation() { @@ -602,32 +729,45 @@ public ValidationsNested setNewValidationLike(int index,V1Validation item) { } public ValidationsNested editValidation(int index) { - if (validations.size() <= index) throw new RuntimeException("Can't edit validations. Index exceeds size."); - return setNewValidationLike(index, buildValidation(index)); + if (index <= validations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "validations")); + } + return this.setNewValidationLike(index, this.buildValidation(index)); } public ValidationsNested editFirstValidation() { - if (validations.size() == 0) throw new RuntimeException("Can't edit first validations. The list is empty."); - return setNewValidationLike(0, buildValidation(0)); + if (validations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "validations")); + } + return this.setNewValidationLike(0, this.buildValidation(0)); } public ValidationsNested editLastValidation() { int index = validations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last validations. The list is empty."); - return setNewValidationLike(index, buildValidation(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "validations")); + } + return this.setNewValidationLike(index, this.buildValidation(index)); } public ValidationsNested editMatchingValidation(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.variables == null) { + this.variables = new ArrayList(); + } V1VariableBuilder builder = new V1VariableBuilder(item); if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); @@ -636,11 +776,13 @@ public A addToVariables(int index,V1Variable item) { _visitables.get("variables").add(builder); variables.add(index, builder); } - return (A)this; + return (A) this; } public A setToVariables(int index,V1Variable item) { - if (this.variables == null) {this.variables = new ArrayList();} + if (this.variables == null) { + this.variables = new ArrayList(); + } V1VariableBuilder builder = new V1VariableBuilder(item); if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); @@ -649,41 +791,71 @@ public A setToVariables(int index,V1Variable item) { _visitables.get("variables").add(builder); variables.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVariables(io.kubernetes.client.openapi.models.V1Variable... items) { - if (this.variables == null) {this.variables = new ArrayList();} - for (V1Variable item : items) {V1VariableBuilder builder = new V1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; + public A addToVariables(V1Variable... items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; } public A addAllToVariables(Collection items) { - if (this.variables == null) {this.variables = new ArrayList();} - for (V1Variable item : items) {V1VariableBuilder builder = new V1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; } - public A removeFromVariables(io.kubernetes.client.openapi.models.V1Variable... items) { - if (this.variables == null) return (A)this; - for (V1Variable item : items) {V1VariableBuilder builder = new V1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; + public A removeFromVariables(V1Variable... items) { + if (this.variables == null) { + return (A) this; + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; } public A removeAllFromVariables(Collection items) { - if (this.variables == null) return (A)this; - for (V1Variable item : items) {V1VariableBuilder builder = new V1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; + if (this.variables == null) { + return (A) this; + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; } public A removeMatchingFromVariables(Predicate predicate) { - if (variables == null) return (A) this; - final Iterator each = variables.iterator(); - final List visitables = _visitables.get("variables"); + if (variables == null) { + return (A) this; + } + Iterator each = variables.iterator(); + List visitables = _visitables.get("variables"); while (each.hasNext()) { - V1VariableBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVariables() { @@ -735,7 +907,7 @@ public A withVariables(List variables) { return (A) this; } - public A withVariables(io.kubernetes.client.openapi.models.V1Variable... variables) { + public A withVariables(V1Variable... variables) { if (this.variables != null) { this.variables.clear(); _visitables.remove("variables"); @@ -749,7 +921,7 @@ public A withVariables(io.kubernetes.client.openapi.models.V1Variable... variabl } public boolean hasVariables() { - return this.variables != null && !this.variables.isEmpty(); + return this.variables != null && !(this.variables.isEmpty()); } public VariablesNested addNewVariable() { @@ -765,59 +937,117 @@ public VariablesNested setNewVariableLike(int index,V1Variable item) { } public VariablesNested editVariable(int index) { - if (variables.size() <= index) throw new RuntimeException("Can't edit variables. Index exceeds size."); - return setNewVariableLike(index, buildVariable(index)); + if (index <= variables.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); } public VariablesNested editFirstVariable() { - if (variables.size() == 0) throw new RuntimeException("Can't edit first variables. The list is empty."); - return setNewVariableLike(0, buildVariable(0)); + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(0, this.buildVariable(0)); } public VariablesNested editLastVariable() { int index = variables.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last variables. The list is empty."); - return setNewVariableLike(index, buildVariable(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); } public VariablesNested editMatchingVariable(Predicate predicate) { int index = -1; - for (int i=0;i extends V1AuditAnnotationFluent extends V1MatchConditionFluent extends V1ValidationFluent extends V1VariableFluent> imp int index; public N and() { - return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToVariables(index,builder.build()); + return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToVariables(index, builder.build()); } public N endVariable() { 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 82fc841b78..a21fcf6f7d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyStatusBuilder extends V1ValidatingAdmissionPolicyStatusFluent implements VisitableBuilder{ public V1ValidatingAdmissionPolicyStatusBuilder() { this(new V1ValidatingAdmissionPolicyStatus()); 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 8e5ab00294..5e6af2c572 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 @@ -1,23 +1,26 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ public V1ValidatingAdmissionPolicyStatusFluent() { } @@ -29,16 +32,18 @@ public V1ValidatingAdmissionPolicyStatusFluent(V1ValidatingAdmissionPolicyStatus private V1TypeCheckingBuilder typeChecking; protected void copyInstance(V1ValidatingAdmissionPolicyStatus instance) { - instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyStatus()); + instance = instance != null ? instance : new V1ValidatingAdmissionPolicyStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withTypeChecking(instance.getTypeChecking()); - } + this.withConditions(instance.getConditions()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withTypeChecking(instance.getTypeChecking()); + } } public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -47,11 +52,13 @@ public A addToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -60,41 +67,71 @@ public A setToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A 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 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; + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -146,7 +183,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + public A withConditions(V1Condition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -160,7 +197,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -176,28 +213,39 @@ public ConditionsNested setNewConditionLike(int index,V1Condition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 withNewTypeCheckingLike(V1TypeChecking item) { } public TypeCheckingNested editTypeChecking() { - return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(null)); + return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(null)); } public TypeCheckingNested editOrNewTypeChecking() { - return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(new V1TypeCheckingBuilder().build())); + return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(new V1TypeCheckingBuilder().build())); } public TypeCheckingNested editOrNewTypeCheckingLike(V1TypeChecking item) { - return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(item)); + return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ValidatingAdmissionPolicyStatusFluent that = (V1ValidatingAdmissionPolicyStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - if (!java.util.Objects.equals(typeChecking, that.typeChecking)) return false; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(typeChecking, that.typeChecking))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(conditions, observedGeneration, typeChecking, super.hashCode()); + return Objects.hash(conditions, observedGeneration, typeChecking); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } - if (typeChecking != null) { sb.append("typeChecking:"); sb.append(typeChecking); } + 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 (!(typeChecking == null)) { + sb.append("typeChecking:"); + sb.append(typeChecking); + } sb.append("}"); return sb.toString(); } @@ -286,7 +357,7 @@ public class ConditionsNested extends V1ConditionFluent> int index; public N and() { - return (N) V1ValidatingAdmissionPolicyStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1ValidatingAdmissionPolicyStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 6ae4a12cf6..c8f2782016 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingWebhookBuilder extends V1ValidatingWebhookFluent implements VisitableBuilder{ public V1ValidatingWebhookBuilder() { this(new V1ValidatingWebhook()); 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 7194cef94a..3dd3d20e21 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingWebhookConfigurationBuilder extends V1ValidatingWebhookConfigurationFluent implements VisitableBuilder{ public V1ValidatingWebhookConfigurationBuilder() { this(new V1ValidatingWebhookConfiguration()); 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 0b85ef3363..136018909b 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingWebhookConfigurationFluent> extends BaseFluent{ +public class V1ValidatingWebhookConfigurationFluent> extends BaseFluent{ public V1ValidatingWebhookConfigurationFluent() { } @@ -29,13 +32,13 @@ public V1ValidatingWebhookConfigurationFluent(V1ValidatingWebhookConfiguration i private ArrayList webhooks; protected void copyInstance(V1ValidatingWebhookConfiguration instance) { - instance = (instance != null ? instance : new V1ValidatingWebhookConfiguration()); + instance = instance != null ? instance : new V1ValidatingWebhookConfiguration(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withWebhooks(instance.getWebhooks()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withWebhooks(instance.getWebhooks()); + } } public String getApiVersion() { @@ -93,19 +96,21 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public A addToWebhooks(int index,V1ValidatingWebhook item) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); @@ -114,11 +119,13 @@ public A addToWebhooks(int index,V1ValidatingWebhook item) { _visitables.get("webhooks").add(builder); webhooks.add(index, builder); } - return (A)this; + return (A) this; } public A setToWebhooks(int index,V1ValidatingWebhook item) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); @@ -127,41 +134,71 @@ public A setToWebhooks(int index,V1ValidatingWebhook item) { _visitables.get("webhooks").add(builder); webhooks.set(index, builder); } - return (A)this; + return (A) this; } - public A addToWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} - for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; + public A addToWebhooks(V1ValidatingWebhook... items) { + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").add(builder); + this.webhooks.add(builder); + } + return (A) this; } public A addAllToWebhooks(Collection items) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} - for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").add(builder); + this.webhooks.add(builder); + } + return (A) this; } - public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items) { - if (this.webhooks == null) return (A)this; - for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder); this.webhooks.remove(builder);} return (A)this; + public A removeFromWebhooks(V1ValidatingWebhook... items) { + if (this.webhooks == null) { + return (A) this; + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; } public A removeAllFromWebhooks(Collection items) { - if (this.webhooks == null) return (A)this; - for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder); this.webhooks.remove(builder);} return (A)this; + if (this.webhooks == null) { + return (A) this; + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; } public A removeMatchingFromWebhooks(Predicate predicate) { - if (webhooks == null) return (A) this; - final Iterator each = webhooks.iterator(); - final List visitables = _visitables.get("webhooks"); + if (webhooks == null) { + return (A) this; + } + Iterator each = webhooks.iterator(); + List visitables = _visitables.get("webhooks"); while (each.hasNext()) { - V1ValidatingWebhookBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ValidatingWebhookBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildWebhooks() { @@ -213,7 +250,7 @@ public A withWebhooks(List webhooks) { return (A) this; } - public A withWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... webhooks) { + public A withWebhooks(V1ValidatingWebhook... webhooks) { if (this.webhooks != null) { this.webhooks.clear(); _visitables.remove("webhooks"); @@ -227,7 +264,7 @@ public A withWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... } public boolean hasWebhooks() { - return this.webhooks != null && !this.webhooks.isEmpty(); + return this.webhooks != null && !(this.webhooks.isEmpty()); } public WebhooksNested addNewWebhook() { @@ -243,53 +280,93 @@ public WebhooksNested setNewWebhookLike(int index,V1ValidatingWebhook item) { } public WebhooksNested editWebhook(int index) { - if (webhooks.size() <= index) throw new RuntimeException("Can't edit webhooks. Index exceeds size."); - return setNewWebhookLike(index, buildWebhook(index)); + if (index <= webhooks.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } public WebhooksNested editFirstWebhook() { - if (webhooks.size() == 0) throw new RuntimeException("Can't edit first webhooks. The list is empty."); - return setNewWebhookLike(0, buildWebhook(0)); + if (webhooks.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "webhooks")); + } + return this.setNewWebhookLike(0, this.buildWebhook(0)); } public WebhooksNested editLastWebhook() { int index = webhooks.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last webhooks. The list is empty."); - return setNewWebhookLike(index, buildWebhook(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } public WebhooksNested editMatchingWebhook(Predicate predicate) { int index = -1; - for (int i=0;i extends V1ValidatingWebhookFluent implements VisitableBuilder{ public V1ValidatingWebhookConfigurationListBuilder() { this(new V1ValidatingWebhookConfigurationList()); 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 5ade2a6a82..5786b1ccf1 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingWebhookConfigurationListFluent> extends BaseFluent{ +public class V1ValidatingWebhookConfigurationListFluent> extends BaseFluent{ public V1ValidatingWebhookConfigurationListFluent() { } @@ -29,13 +32,13 @@ public V1ValidatingWebhookConfigurationListFluent(V1ValidatingWebhookConfigurati private V1ListMetaBuilder metadata; protected void copyInstance(V1ValidatingWebhookConfigurationList instance) { - instance = (instance != null ? instance : new V1ValidatingWebhookConfigurationList()); + instance = instance != null ? instance : new V1ValidatingWebhookConfigurationList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1ValidatingWebhookConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1ValidatingWebhookConfiguration item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1ValidatingWebhookConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1ValidatingWebhookConfiguration item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1ValidatingWebhookConfiguration... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { - if (this.items == null) return (A)this; - for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1ValidatingWebhookConfiguration... items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1ValidatingWebhookConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ValidatingWebhookConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { + public A withItems(V1ValidatingWebhookConfiguration... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfig } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1ValidatingWebhookConfiguration } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ValidatingWebhookConfigurationListFluent that = (V1ValidatingWebhookConfigurationListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1ValidatingWebhookConfigurationFluent> extends BaseFluent{ +public class V1ValidatingWebhookFluent> extends BaseFluent{ public V1ValidatingWebhookFluent() { } @@ -37,51 +40,76 @@ public V1ValidatingWebhookFluent(V1ValidatingWebhook instance) { private Integer timeoutSeconds; protected void copyInstance(V1ValidatingWebhook instance) { - instance = (instance != null ? instance : new V1ValidatingWebhook()); + instance = instance != null ? instance : new V1ValidatingWebhook(); if (instance != null) { - this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); - this.withClientConfig(instance.getClientConfig()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withName(instance.getName()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withRules(instance.getRules()); - this.withSideEffects(instance.getSideEffects()); - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); + this.withClientConfig(instance.getClientConfig()); + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withName(instance.getName()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withRules(instance.getRules()); + this.withSideEffects(instance.getSideEffects()); + this.withTimeoutSeconds(instance.getTimeoutSeconds()); + } } public A addToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } this.admissionReviewVersions.add(index, item); - return (A)this; + return (A) this; } public A setToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - this.admissionReviewVersions.set(index, item); return (A)this; + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + this.admissionReviewVersions.set(index, item); + return (A) this; } - public A addToAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; + public A addToAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + return (A) this; } public A addAllToAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + return (A) this; } - public A removeFromAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) return (A)this; - for (String item : items) { this.admissionReviewVersions.remove(item);} return (A)this; + public A removeFromAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.admissionReviewVersions.remove(item); + } + return (A) this; } public A removeAllFromAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) return (A)this; - for (String item : items) { this.admissionReviewVersions.remove(item);} return (A)this; + if (this.admissionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.admissionReviewVersions.remove(item); + } + return (A) this; } public List getAdmissionReviewVersions() { @@ -130,7 +158,7 @@ public A withAdmissionReviewVersions(List admissionReviewVersions) { return (A) this; } - public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions) { + public A withAdmissionReviewVersions(String... admissionReviewVersions) { if (this.admissionReviewVersions != null) { this.admissionReviewVersions.clear(); _visitables.remove("admissionReviewVersions"); @@ -144,7 +172,7 @@ public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions } public boolean hasAdmissionReviewVersions() { - return this.admissionReviewVersions != null && !this.admissionReviewVersions.isEmpty(); + return this.admissionReviewVersions != null && !(this.admissionReviewVersions.isEmpty()); } public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { @@ -176,15 +204,15 @@ public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1Webh } public ClientConfigNested editClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(null)); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); } public ClientConfigNested editOrNewClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); } public ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(item)); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); } public String getFailurePolicy() { @@ -201,7 +229,9 @@ public boolean hasFailurePolicy() { } public A addToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); @@ -210,11 +240,13 @@ public A addToMatchConditions(int index,V1MatchCondition item) { _visitables.get("matchConditions").add(builder); matchConditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); @@ -223,41 +255,71 @@ public A setToMatchConditions(int index,V1MatchCondition item) { _visitables.get("matchConditions").add(builder); matchConditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + public A addToMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } - public A removeFromMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... items) { - if (this.matchConditions == null) return (A)this; - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + public A removeFromMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) return (A)this; - for (V1MatchCondition item : items) {V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + if (this.matchConditions == null) { + return (A) this; + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) return (A) this; - final Iterator each = matchConditions.iterator(); - final List visitables = _visitables.get("matchConditions"); + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); while (each.hasNext()) { - V1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMatchConditions() { @@ -309,7 +371,7 @@ public A withMatchConditions(List matchConditions) { return (A) this; } - public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... matchConditions) { + public A withMatchConditions(V1MatchCondition... matchConditions) { if (this.matchConditions != null) { this.matchConditions.clear(); _visitables.remove("matchConditions"); @@ -323,7 +385,7 @@ public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchConditio } public boolean hasMatchConditions() { - return this.matchConditions != null && !this.matchConditions.isEmpty(); + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } public MatchConditionsNested addNewMatchCondition() { @@ -339,28 +401,39 @@ public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondit } public MatchConditionsNested editMatchCondition(int index) { - if (matchConditions.size() <= index) throw new RuntimeException("Can't edit matchConditions. Index exceeds size."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); + if (index <= matchConditions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) throw new RuntimeException("Can't edit first matchConditions. The list is empty."); - return setNewMatchConditionLike(0, buildMatchCondition(0)); + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); } public MatchConditionsNested editLastMatchCondition() { int index = matchConditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchConditions. The list is empty."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { int index = -1; - for (int i=0;i withNewNamespaceSelectorLike(V1LabelSelector i } public NamespaceSelectorNested editNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(null)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } public V1LabelSelector buildObjectSelector() { @@ -458,19 +531,21 @@ public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { } public ObjectSelectorNested editObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(null)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } public ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(item)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } public A addToRules(int index,V1RuleWithOperations item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -479,11 +554,13 @@ public A addToRules(int index,V1RuleWithOperations item) { _visitables.get("rules").add(builder); rules.add(index, builder); } - return (A)this; + return (A) this; } public A setToRules(int index,V1RuleWithOperations item) { - if (this.rules == null) {this.rules = new ArrayList();} + if (this.rules == null) { + this.rules = new ArrayList(); + } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); @@ -492,41 +569,71 @@ public A setToRules(int index,V1RuleWithOperations item) { _visitables.get("rules").add(builder); rules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public A addToRules(V1RuleWithOperations... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) return (A)this; - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A removeFromRules(V1RuleWithOperations... items) { + if (this.rules == null) { + return (A) this; + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + if (this.rules == null) { + return (A) this; + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1RuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1RuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRules() { @@ -578,7 +685,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules) { + public A withRules(V1RuleWithOperations... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -592,7 +699,7 @@ public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... r } public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + return this.rules != null && !(this.rules.isEmpty()); } public RulesNested addNewRule() { @@ -608,28 +715,39 @@ public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { } public RulesNested editRule(int index) { - if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); - return setNewRuleLike(index, buildRule(index)); + if (index <= rules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { - if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); - return setNewRuleLike(0, buildRule(0)); + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } public RulesNested editLastRule() { int index = rules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last rules. The list is empty."); - return setNewRuleLike(index, buildRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editMatchingRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1MatchConditionFluent extends V1RuleWithOperationsFluent> i int index; public N and() { - return (N) V1ValidatingWebhookFluent.this.setToRules(index,builder.build()); + return (N) V1ValidatingWebhookFluent.this.setToRules(index, builder.build()); } public N endRule() { 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 292d1921b0..269efd87aa 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidationBuilder extends V1ValidationFluent implements VisitableBuilder{ public V1ValidationBuilder() { this(new V1Validation()); 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 90b0032efe..aa2edae101 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ValidationFluent> extends BaseFluent{ +public class V1ValidationFluent> extends BaseFluent{ public V1ValidationFluent() { } @@ -22,13 +24,13 @@ public V1ValidationFluent(V1Validation instance) { private String reason; protected void copyInstance(V1Validation instance) { - instance = (instance != null ? instance : new V1Validation()); + instance = instance != null ? instance : new V1Validation(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withMessage(instance.getMessage()); - this.withMessageExpression(instance.getMessageExpression()); - this.withReason(instance.getReason()); - } + this.withExpression(instance.getExpression()); + this.withMessage(instance.getMessage()); + this.withMessageExpression(instance.getMessageExpression()); + this.withReason(instance.getReason()); + } } public String getExpression() { @@ -84,28 +86,57 @@ public boolean hasReason() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ValidationFluent that = (V1ValidationFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(messageExpression, that.messageExpression)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(messageExpression, that.messageExpression))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, message, messageExpression, reason, super.hashCode()); + return Objects.hash(expression, message, messageExpression, reason); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (messageExpression != null) { sb.append("messageExpression:"); sb.append(messageExpression + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(messageExpression == null)) { + sb.append("messageExpression:"); + sb.append(messageExpression); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } 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 3a129f74d5..b532ec02c3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidationRuleBuilder extends V1ValidationRuleFluent implements VisitableBuilder{ public V1ValidationRuleBuilder() { this(new V1ValidationRule()); 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 ecb3632675..2e3d135c91 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1ValidationRuleFluent> extends BaseFluent{ +public class V1ValidationRuleFluent> extends BaseFluent{ public V1ValidationRuleFluent() { } @@ -25,15 +27,15 @@ public V1ValidationRuleFluent(V1ValidationRule instance) { private String rule; protected void copyInstance(V1ValidationRule instance) { - instance = (instance != null ? instance : new V1ValidationRule()); + instance = instance != null ? instance : new V1ValidationRule(); if (instance != null) { - this.withFieldPath(instance.getFieldPath()); - this.withMessage(instance.getMessage()); - this.withMessageExpression(instance.getMessageExpression()); - this.withOptionalOldSelf(instance.getOptionalOldSelf()); - this.withReason(instance.getReason()); - this.withRule(instance.getRule()); - } + this.withFieldPath(instance.getFieldPath()); + this.withMessage(instance.getMessage()); + this.withMessageExpression(instance.getMessageExpression()); + this.withOptionalOldSelf(instance.getOptionalOldSelf()); + this.withReason(instance.getReason()); + this.withRule(instance.getRule()); + } } public String getFieldPath() { @@ -115,32 +117,73 @@ public boolean hasRule() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1ValidationRuleFluent that = (V1ValidationRuleFluent) o; - if (!java.util.Objects.equals(fieldPath, that.fieldPath)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(messageExpression, that.messageExpression)) return false; - if (!java.util.Objects.equals(optionalOldSelf, that.optionalOldSelf)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(rule, that.rule)) return false; + if (!(Objects.equals(fieldPath, that.fieldPath))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(messageExpression, that.messageExpression))) { + return false; + } + if (!(Objects.equals(optionalOldSelf, that.optionalOldSelf))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(rule, that.rule))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fieldPath, message, messageExpression, optionalOldSelf, reason, rule, super.hashCode()); + return Objects.hash(fieldPath, message, messageExpression, optionalOldSelf, reason, rule); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fieldPath != null) { sb.append("fieldPath:"); sb.append(fieldPath + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (messageExpression != null) { sb.append("messageExpression:"); sb.append(messageExpression + ","); } - if (optionalOldSelf != null) { sb.append("optionalOldSelf:"); sb.append(optionalOldSelf + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (rule != null) { sb.append("rule:"); sb.append(rule); } + if (!(fieldPath == null)) { + sb.append("fieldPath:"); + sb.append(fieldPath); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(messageExpression == null)) { + sb.append("messageExpression:"); + sb.append(messageExpression); + sb.append(","); + } + if (!(optionalOldSelf == null)) { + sb.append("optionalOldSelf:"); + sb.append(optionalOldSelf); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(rule == null)) { + sb.append("rule:"); + sb.append(rule); + } sb.append("}"); return sb.toString(); } 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 694bdf8756..3d3ed2bab5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VariableBuilder extends V1VariableFluent implements VisitableBuilder{ public V1VariableBuilder() { this(new V1Variable()); 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 894efd4dbc..1b4c133588 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VariableFluent> extends BaseFluent{ +public class V1VariableFluent> extends BaseFluent{ public V1VariableFluent() { } @@ -20,11 +22,11 @@ public V1VariableFluent(V1Variable instance) { private String name; protected void copyInstance(V1Variable instance) { - instance = (instance != null ? instance : new V1Variable()); + instance = instance != null ? instance : new V1Variable(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } } public String getExpression() { @@ -54,24 +56,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VariableFluent that = (V1VariableFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, name, super.hashCode()); + return Objects.hash(expression, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + 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(); } 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 35c970c661..5e761d1ba1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentBuilder extends V1VolumeAttachmentFluent implements VisitableBuilder{ public V1VolumeAttachmentBuilder() { this(new V1VolumeAttachment()); 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 20a0865a89..7099cdbca3 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentFluent> extends BaseFluent{ +public class V1VolumeAttachmentFluent> extends BaseFluent{ public V1VolumeAttachmentFluent() { } @@ -24,14 +27,14 @@ public V1VolumeAttachmentFluent(V1VolumeAttachment instance) { private V1VolumeAttachmentStatusBuilder status; protected void copyInstance(V1VolumeAttachment instance) { - instance = (instance != null ? instance : new V1VolumeAttachment()); + instance = instance != null ? instance : new V1VolumeAttachment(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1VolumeAttachmentSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1VolumeAttachmentSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1VolumeAttachmentSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1VolumeAttachmentSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1VolumeAttachmentSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1VolumeAttachmentStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1VolumeAttachmentStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1VolumeAttachmentStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1VolumeAttachmentStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1VolumeAttachmentStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeAttachmentFluent that = (V1VolumeAttachmentFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 b7b2ba6861..fe66c4f88b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentListBuilder extends V1VolumeAttachmentListFluent implements VisitableBuilder{ public V1VolumeAttachmentListBuilder() { this(new V1VolumeAttachmentList()); 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 68e8c120f2..249fb5c560 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentListFluent> extends BaseFluent{ +public class V1VolumeAttachmentListFluent> extends BaseFluent{ public V1VolumeAttachmentListFluent() { } @@ -29,13 +32,13 @@ public V1VolumeAttachmentListFluent(V1VolumeAttachmentList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1VolumeAttachmentList instance) { - instance = (instance != null ? instance : new V1VolumeAttachmentList()); + instance = instance != null ? instance : new V1VolumeAttachmentList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1VolumeAttachment item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1VolumeAttachment item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1VolumeAttachment item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1VolumeAttachment item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1VolumeAttachment... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { - if (this.items == null) return (A)this; - for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1VolumeAttachment... items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1VolumeAttachmentBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VolumeAttachmentBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { + public A withItems(V1VolumeAttachment... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... ite } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1VolumeAttachment item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeAttachmentListFluent that = (V1VolumeAttachmentListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1VolumeAttachmentFluent> imp int index; public N and() { - return (N) V1VolumeAttachmentListFluent.this.setToItems(index,builder.build()); + return (N) V1VolumeAttachmentListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 12d76d24d5..e61a3b4f3a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentSourceBuilder extends V1VolumeAttachmentSourceFluent implements VisitableBuilder{ public V1VolumeAttachmentSourceBuilder() { this(new V1VolumeAttachmentSource()); 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 d67efbaa57..f61af931b3 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentSourceFluent> extends BaseFluent{ +public class V1VolumeAttachmentSourceFluent> extends BaseFluent{ public V1VolumeAttachmentSourceFluent() { } @@ -21,11 +24,11 @@ public V1VolumeAttachmentSourceFluent(V1VolumeAttachmentSource instance) { private String persistentVolumeName; protected void copyInstance(V1VolumeAttachmentSource instance) { - instance = (instance != null ? instance : new V1VolumeAttachmentSource()); + instance = instance != null ? instance : new V1VolumeAttachmentSource(); if (instance != null) { - this.withInlineVolumeSpec(instance.getInlineVolumeSpec()); - this.withPersistentVolumeName(instance.getPersistentVolumeName()); - } + this.withInlineVolumeSpec(instance.getInlineVolumeSpec()); + this.withPersistentVolumeName(instance.getPersistentVolumeName()); + } } public V1PersistentVolumeSpec buildInlineVolumeSpec() { @@ -57,15 +60,15 @@ public InlineVolumeSpecNested withNewInlineVolumeSpecLike(V1PersistentVolumeS } public InlineVolumeSpecNested editInlineVolumeSpec() { - return withNewInlineVolumeSpecLike(java.util.Optional.ofNullable(buildInlineVolumeSpec()).orElse(null)); + return this.withNewInlineVolumeSpecLike(Optional.ofNullable(this.buildInlineVolumeSpec()).orElse(null)); } public InlineVolumeSpecNested editOrNewInlineVolumeSpec() { - return withNewInlineVolumeSpecLike(java.util.Optional.ofNullable(buildInlineVolumeSpec()).orElse(new V1PersistentVolumeSpecBuilder().build())); + return this.withNewInlineVolumeSpecLike(Optional.ofNullable(this.buildInlineVolumeSpec()).orElse(new V1PersistentVolumeSpecBuilder().build())); } public InlineVolumeSpecNested editOrNewInlineVolumeSpecLike(V1PersistentVolumeSpec item) { - return withNewInlineVolumeSpecLike(java.util.Optional.ofNullable(buildInlineVolumeSpec()).orElse(item)); + return this.withNewInlineVolumeSpecLike(Optional.ofNullable(this.buildInlineVolumeSpec()).orElse(item)); } public String getPersistentVolumeName() { @@ -82,24 +85,41 @@ public boolean hasPersistentVolumeName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeAttachmentSourceFluent that = (V1VolumeAttachmentSourceFluent) o; - if (!java.util.Objects.equals(inlineVolumeSpec, that.inlineVolumeSpec)) return false; - if (!java.util.Objects.equals(persistentVolumeName, that.persistentVolumeName)) return false; + if (!(Objects.equals(inlineVolumeSpec, that.inlineVolumeSpec))) { + return false; + } + if (!(Objects.equals(persistentVolumeName, that.persistentVolumeName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(inlineVolumeSpec, persistentVolumeName, super.hashCode()); + return Objects.hash(inlineVolumeSpec, persistentVolumeName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (inlineVolumeSpec != null) { sb.append("inlineVolumeSpec:"); sb.append(inlineVolumeSpec + ","); } - if (persistentVolumeName != null) { sb.append("persistentVolumeName:"); sb.append(persistentVolumeName); } + if (!(inlineVolumeSpec == null)) { + sb.append("inlineVolumeSpec:"); + sb.append(inlineVolumeSpec); + sb.append(","); + } + if (!(persistentVolumeName == null)) { + sb.append("persistentVolumeName:"); + sb.append(persistentVolumeName); + } sb.append("}"); return sb.toString(); } 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 7197b4c7be..9496d44845 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentSpecBuilder extends V1VolumeAttachmentSpecFluent implements VisitableBuilder{ public V1VolumeAttachmentSpecBuilder() { this(new V1VolumeAttachmentSpec()); 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 d8da50566d..bc9c2efe11 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentSpecFluent> extends BaseFluent{ +public class V1VolumeAttachmentSpecFluent> extends BaseFluent{ public V1VolumeAttachmentSpecFluent() { } @@ -22,12 +25,12 @@ public V1VolumeAttachmentSpecFluent(V1VolumeAttachmentSpec instance) { private V1VolumeAttachmentSourceBuilder source; protected void copyInstance(V1VolumeAttachmentSpec instance) { - instance = (instance != null ? instance : new V1VolumeAttachmentSpec()); + instance = instance != null ? instance : new V1VolumeAttachmentSpec(); if (instance != null) { - this.withAttacher(instance.getAttacher()); - this.withNodeName(instance.getNodeName()); - this.withSource(instance.getSource()); - } + this.withAttacher(instance.getAttacher()); + this.withNodeName(instance.getNodeName()); + this.withSource(instance.getSource()); + } } public String getAttacher() { @@ -85,38 +88,61 @@ public SourceNested withNewSourceLike(V1VolumeAttachmentSource item) { } public SourceNested editSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(null)); + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(null)); } public SourceNested editOrNewSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(new V1VolumeAttachmentSourceBuilder().build())); + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(new V1VolumeAttachmentSourceBuilder().build())); } public SourceNested editOrNewSourceLike(V1VolumeAttachmentSource item) { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(item)); + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeAttachmentSpecFluent that = (V1VolumeAttachmentSpecFluent) o; - if (!java.util.Objects.equals(attacher, that.attacher)) return false; - if (!java.util.Objects.equals(nodeName, that.nodeName)) return false; - if (!java.util.Objects.equals(source, that.source)) return false; + if (!(Objects.equals(attacher, that.attacher))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(attacher, nodeName, source, super.hashCode()); + return Objects.hash(attacher, nodeName, source); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (attacher != null) { sb.append("attacher:"); sb.append(attacher + ","); } - if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName + ","); } - if (source != null) { sb.append("source:"); sb.append(source); } + if (!(attacher == null)) { + sb.append("attacher:"); + sb.append(attacher); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + } sb.append("}"); return sb.toString(); } 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 726e0dd25b..257381cddd 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentStatusBuilder extends V1VolumeAttachmentStatusFluent implements VisitableBuilder{ public V1VolumeAttachmentStatusBuilder() { this(new V1VolumeAttachmentStatus()); 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 f769096049..b26b9104c5 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 @@ -1,10 +1,13 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.Boolean; import java.util.Map; @@ -13,7 +16,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentStatusFluent> extends BaseFluent{ +public class V1VolumeAttachmentStatusFluent> extends BaseFluent{ public V1VolumeAttachmentStatusFluent() { } @@ -26,13 +29,13 @@ public V1VolumeAttachmentStatusFluent(V1VolumeAttachmentStatus instance) { private V1VolumeErrorBuilder detachError; protected void copyInstance(V1VolumeAttachmentStatus instance) { - instance = (instance != null ? instance : new V1VolumeAttachmentStatus()); + instance = instance != null ? instance : new V1VolumeAttachmentStatus(); if (instance != null) { - this.withAttachError(instance.getAttachError()); - this.withAttached(instance.getAttached()); - this.withAttachmentMetadata(instance.getAttachmentMetadata()); - this.withDetachError(instance.getDetachError()); - } + this.withAttachError(instance.getAttachError()); + this.withAttached(instance.getAttached()); + this.withAttachmentMetadata(instance.getAttachmentMetadata()); + this.withDetachError(instance.getDetachError()); + } } public V1VolumeError buildAttachError() { @@ -64,15 +67,15 @@ public AttachErrorNested withNewAttachErrorLike(V1VolumeError item) { } public AttachErrorNested editAttachError() { - return withNewAttachErrorLike(java.util.Optional.ofNullable(buildAttachError()).orElse(null)); + return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(null)); } public AttachErrorNested editOrNewAttachError() { - return withNewAttachErrorLike(java.util.Optional.ofNullable(buildAttachError()).orElse(new V1VolumeErrorBuilder().build())); + return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(new V1VolumeErrorBuilder().build())); } public AttachErrorNested editOrNewAttachErrorLike(V1VolumeError item) { - return withNewAttachErrorLike(java.util.Optional.ofNullable(buildAttachError()).orElse(item)); + return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(item)); } public Boolean getAttached() { @@ -89,23 +92,47 @@ public boolean hasAttached() { } public A addToAttachmentMetadata(String key,String value) { - if(this.attachmentMetadata == null && key != null && value != null) { this.attachmentMetadata = new LinkedHashMap(); } - if(key != null && value != null) {this.attachmentMetadata.put(key, value);} return (A)this; + if (this.attachmentMetadata == null && key != null && value != null) { + this.attachmentMetadata = new LinkedHashMap(); + } + if (key != null && value != null) { + this.attachmentMetadata.put(key, value); + } + return (A) this; } public A addToAttachmentMetadata(Map map) { - if(this.attachmentMetadata == null && map != null) { this.attachmentMetadata = new LinkedHashMap(); } - if(map != null) { this.attachmentMetadata.putAll(map);} return (A)this; + if (this.attachmentMetadata == null && map != null) { + this.attachmentMetadata = new LinkedHashMap(); + } + if (map != null) { + this.attachmentMetadata.putAll(map); + } + return (A) this; } public A removeFromAttachmentMetadata(String key) { - if(this.attachmentMetadata == null) { return (A) this; } - if(key != null && this.attachmentMetadata != null) {this.attachmentMetadata.remove(key);} return (A)this; + if (this.attachmentMetadata == null) { + return (A) this; + } + if (key != null && this.attachmentMetadata != null) { + this.attachmentMetadata.remove(key); + } + return (A) this; } public A removeFromAttachmentMetadata(Map map) { - if(this.attachmentMetadata == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.attachmentMetadata != null){this.attachmentMetadata.remove(key);}}} return (A)this; + if (this.attachmentMetadata == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attachmentMetadata != null) { + this.attachmentMetadata.remove(key); + } + } + } + return (A) this; } public Map getAttachmentMetadata() { @@ -154,40 +181,69 @@ public DetachErrorNested withNewDetachErrorLike(V1VolumeError item) { } public DetachErrorNested editDetachError() { - return withNewDetachErrorLike(java.util.Optional.ofNullable(buildDetachError()).orElse(null)); + return this.withNewDetachErrorLike(Optional.ofNullable(this.buildDetachError()).orElse(null)); } public DetachErrorNested editOrNewDetachError() { - return withNewDetachErrorLike(java.util.Optional.ofNullable(buildDetachError()).orElse(new V1VolumeErrorBuilder().build())); + return this.withNewDetachErrorLike(Optional.ofNullable(this.buildDetachError()).orElse(new V1VolumeErrorBuilder().build())); } public DetachErrorNested editOrNewDetachErrorLike(V1VolumeError item) { - return withNewDetachErrorLike(java.util.Optional.ofNullable(buildDetachError()).orElse(item)); + return this.withNewDetachErrorLike(Optional.ofNullable(this.buildDetachError()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeAttachmentStatusFluent that = (V1VolumeAttachmentStatusFluent) o; - if (!java.util.Objects.equals(attachError, that.attachError)) return false; - if (!java.util.Objects.equals(attached, that.attached)) return false; - if (!java.util.Objects.equals(attachmentMetadata, that.attachmentMetadata)) return false; - if (!java.util.Objects.equals(detachError, that.detachError)) return false; + if (!(Objects.equals(attachError, that.attachError))) { + return false; + } + if (!(Objects.equals(attached, that.attached))) { + return false; + } + if (!(Objects.equals(attachmentMetadata, that.attachmentMetadata))) { + return false; + } + if (!(Objects.equals(detachError, that.detachError))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(attachError, attached, attachmentMetadata, detachError, super.hashCode()); + return Objects.hash(attachError, attached, attachmentMetadata, detachError); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (attachError != null) { sb.append("attachError:"); sb.append(attachError + ","); } - if (attached != null) { sb.append("attached:"); sb.append(attached + ","); } - if (attachmentMetadata != null && !attachmentMetadata.isEmpty()) { sb.append("attachmentMetadata:"); sb.append(attachmentMetadata + ","); } - if (detachError != null) { sb.append("detachError:"); sb.append(detachError); } + if (!(attachError == null)) { + sb.append("attachError:"); + sb.append(attachError); + sb.append(","); + } + if (!(attached == null)) { + sb.append("attached:"); + sb.append(attached); + sb.append(","); + } + if (!(attachmentMetadata == null) && !(attachmentMetadata.isEmpty())) { + sb.append("attachmentMetadata:"); + sb.append(attachmentMetadata); + sb.append(","); + } + if (!(detachError == null)) { + sb.append("detachError:"); + sb.append(detachError); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..01c8b3d6ae --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1VolumeAttributesClassBuilder extends V1VolumeAttributesClassFluent implements VisitableBuilder{ + public V1VolumeAttributesClassBuilder() { + this(new V1VolumeAttributesClass()); + } + + public V1VolumeAttributesClassBuilder(V1VolumeAttributesClassFluent fluent) { + this(fluent, new V1VolumeAttributesClass()); + } + + public V1VolumeAttributesClassBuilder(V1VolumeAttributesClassFluent fluent,V1VolumeAttributesClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VolumeAttributesClassBuilder(V1VolumeAttributesClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1VolumeAttributesClassFluent fluent; + + public V1VolumeAttributesClass build() { + V1VolumeAttributesClass buildable = new V1VolumeAttributesClass(); + 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/V1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java new file mode 100644 index 0000000000..931f4af3cd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java @@ -0,0 +1,262 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import java.util.LinkedHashMap; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.util.Map; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1VolumeAttributesClassFluent> extends BaseFluent{ + public V1VolumeAttributesClassFluent() { + } + + public V1VolumeAttributesClassFluent(V1VolumeAttributesClass instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String driverName; + private String kind; + private V1ObjectMetaBuilder metadata; + private Map parameters; + + protected void copyInstance(V1VolumeAttributesClass instance) { + instance = instance != null ? instance : new V1VolumeAttributesClass(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withDriverName(instance.getDriverName()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withParameters(instance.getParameters()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getDriverName() { + return this.driverName; + } + + public A withDriverName(String driverName) { + this.driverName = driverName; + return (A) this; + } + + public boolean hasDriverName() { + return this.driverName != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return 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 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 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 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 Map getParameters() { + return this.parameters; + } + + public A withParameters(Map parameters) { + if (parameters == null) { + this.parameters = null; + } else { + this.parameters = new LinkedHashMap(parameters); + } + return (A) this; + } + + public boolean hasParameters() { + return this.parameters != 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; + } + V1VolumeAttributesClassFluent that = (V1VolumeAttributesClassFluent) 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 int hashCode() { + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1VolumeAttributesClassFluent.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/V1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java new file mode 100644 index 0000000000..2f0c24d072 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1VolumeAttributesClassListBuilder extends V1VolumeAttributesClassListFluent implements VisitableBuilder{ + public V1VolumeAttributesClassListBuilder() { + this(new V1VolumeAttributesClassList()); + } + + public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassListFluent fluent) { + this(fluent, new V1VolumeAttributesClassList()); + } + + public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassListFluent fluent,V1VolumeAttributesClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1VolumeAttributesClassListFluent fluent; + + public V1VolumeAttributesClassList build() { + V1VolumeAttributesClassList buildable = new V1VolumeAttributesClassList(); + 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/V1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java new file mode 100644 index 0000000000..00dcccec22 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java @@ -0,0 +1,408 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1VolumeAttributesClassListFluent> extends BaseFluent{ + public V1VolumeAttributesClassListFluent() { + } + + public V1VolumeAttributesClassListFluent(V1VolumeAttributesClassList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1VolumeAttributesClassList instance) { + instance = instance != null ? instance : new V1VolumeAttributesClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1VolumeAttributesClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A) this; + } + + public A setToItems(int index,V1VolumeAttributesClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public A addToItems(V1VolumeAttributesClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A removeFromItems(V1VolumeAttributesClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(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 = _visitables.get("items"); + while (each.hasNext()) { + V1VolumeAttributesClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1VolumeAttributesClass buildItem(int index) { + return this.items.get(index).build(); + } + + public V1VolumeAttributesClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1VolumeAttributesClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1VolumeAttributesClass buildMatchingItem(Predicate predicate) { + for (V1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1VolumeAttributesClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1VolumeAttributesClass item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1VolumeAttributesClass item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + 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 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 String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + 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; + } + V1VolumeAttributesClassListFluent that = (V1VolumeAttributesClassListFluent) 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 int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 class ItemsNested extends V1VolumeAttributesClassFluent> implements Nested{ + ItemsNested(int index,V1VolumeAttributesClass item) { + this.index = index; + this.builder = new V1VolumeAttributesClassBuilder(this, item); + } + V1VolumeAttributesClassBuilder builder; + int index; + + public N and() { + return (N) V1VolumeAttributesClassListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1VolumeAttributesClassListFluent.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/V1VolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java index 9aa088753f..0668dc3922 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeBuilder extends V1VolumeFluent implements VisitableBuilder{ public V1VolumeBuilder() { this(new V1Volume()); 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 63e6a29ada..061f5213fe 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeDeviceBuilder extends V1VolumeDeviceFluent implements VisitableBuilder{ public V1VolumeDeviceBuilder() { this(new V1VolumeDevice()); 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 497ca8ff08..3b3ef1f366 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeDeviceFluent> extends BaseFluent{ +public class V1VolumeDeviceFluent> extends BaseFluent{ public V1VolumeDeviceFluent() { } @@ -20,11 +22,11 @@ public V1VolumeDeviceFluent(V1VolumeDevice instance) { private String name; protected void copyInstance(V1VolumeDevice instance) { - instance = (instance != null ? instance : new V1VolumeDevice()); + instance = instance != null ? instance : new V1VolumeDevice(); if (instance != null) { - this.withDevicePath(instance.getDevicePath()); - this.withName(instance.getName()); - } + this.withDevicePath(instance.getDevicePath()); + this.withName(instance.getName()); + } } public String getDevicePath() { @@ -54,24 +56,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeDeviceFluent that = (V1VolumeDeviceFluent) o; - if (!java.util.Objects.equals(devicePath, that.devicePath)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(devicePath, that.devicePath))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(devicePath, name, super.hashCode()); + return Objects.hash(devicePath, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devicePath != null) { sb.append("devicePath:"); sb.append(devicePath + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(devicePath == null)) { + sb.append("devicePath:"); + sb.append(devicePath); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 e4c0df43cf..8083da8ef3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeErrorBuilder extends V1VolumeErrorFluent implements VisitableBuilder{ public V1VolumeErrorBuilder() { this(new V1VolumeError()); 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 a41cff8ac7..4695d7d938 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeErrorFluent> extends BaseFluent{ +public class V1VolumeErrorFluent> extends BaseFluent{ public V1VolumeErrorFluent() { } @@ -23,12 +25,12 @@ public V1VolumeErrorFluent(V1VolumeError instance) { private OffsetDateTime time; protected void copyInstance(V1VolumeError instance) { - instance = (instance != null ? instance : new V1VolumeError()); + instance = instance != null ? instance : new V1VolumeError(); if (instance != null) { - this.withErrorCode(instance.getErrorCode()); - this.withMessage(instance.getMessage()); - this.withTime(instance.getTime()); - } + this.withErrorCode(instance.getErrorCode()); + this.withMessage(instance.getMessage()); + this.withTime(instance.getTime()); + } } public Integer getErrorCode() { @@ -71,26 +73,49 @@ public boolean hasTime() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeErrorFluent that = (V1VolumeErrorFluent) o; - if (!java.util.Objects.equals(errorCode, that.errorCode)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(time, that.time)) return false; + if (!(Objects.equals(errorCode, that.errorCode))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(time, that.time))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(errorCode, message, time, super.hashCode()); + return Objects.hash(errorCode, message, time); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (errorCode != null) { sb.append("errorCode:"); sb.append(errorCode + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (time != null) { sb.append("time:"); sb.append(time); } + if (!(errorCode == null)) { + sb.append("errorCode:"); + sb.append(errorCode); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(time == null)) { + sb.append("time:"); + sb.append(time); + } sb.append("}"); return sb.toString(); } 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 e5e96b63f7..eb3b3f1552 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 @@ -3,6 +3,9 @@ import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.util.Optional; +import java.util.Objects; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; @@ -10,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeFluent> extends BaseFluent{ +public class V1VolumeFluent> extends BaseFluent{ public V1VolumeFluent() { } @@ -50,40 +53,40 @@ public V1VolumeFluent(V1Volume instance) { private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; protected void copyInstance(V1Volume instance) { - instance = (instance != null ? instance : new V1Volume()); + instance = instance != null ? instance : new V1Volume(); if (instance != null) { - this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); - this.withAzureDisk(instance.getAzureDisk()); - this.withAzureFile(instance.getAzureFile()); - this.withCephfs(instance.getCephfs()); - this.withCinder(instance.getCinder()); - this.withConfigMap(instance.getConfigMap()); - this.withCsi(instance.getCsi()); - this.withDownwardAPI(instance.getDownwardAPI()); - this.withEmptyDir(instance.getEmptyDir()); - this.withEphemeral(instance.getEphemeral()); - this.withFc(instance.getFc()); - this.withFlexVolume(instance.getFlexVolume()); - this.withFlocker(instance.getFlocker()); - this.withGcePersistentDisk(instance.getGcePersistentDisk()); - this.withGitRepo(instance.getGitRepo()); - this.withGlusterfs(instance.getGlusterfs()); - this.withHostPath(instance.getHostPath()); - this.withImage(instance.getImage()); - this.withIscsi(instance.getIscsi()); - this.withName(instance.getName()); - this.withNfs(instance.getNfs()); - this.withPersistentVolumeClaim(instance.getPersistentVolumeClaim()); - this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); - this.withPortworxVolume(instance.getPortworxVolume()); - this.withProjected(instance.getProjected()); - this.withQuobyte(instance.getQuobyte()); - this.withRbd(instance.getRbd()); - this.withScaleIO(instance.getScaleIO()); - this.withSecret(instance.getSecret()); - this.withStorageos(instance.getStorageos()); - this.withVsphereVolume(instance.getVsphereVolume()); - } + this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); + this.withAzureDisk(instance.getAzureDisk()); + this.withAzureFile(instance.getAzureFile()); + this.withCephfs(instance.getCephfs()); + this.withCinder(instance.getCinder()); + this.withConfigMap(instance.getConfigMap()); + this.withCsi(instance.getCsi()); + this.withDownwardAPI(instance.getDownwardAPI()); + this.withEmptyDir(instance.getEmptyDir()); + this.withEphemeral(instance.getEphemeral()); + this.withFc(instance.getFc()); + this.withFlexVolume(instance.getFlexVolume()); + this.withFlocker(instance.getFlocker()); + this.withGcePersistentDisk(instance.getGcePersistentDisk()); + this.withGitRepo(instance.getGitRepo()); + this.withGlusterfs(instance.getGlusterfs()); + this.withHostPath(instance.getHostPath()); + this.withImage(instance.getImage()); + this.withIscsi(instance.getIscsi()); + this.withName(instance.getName()); + this.withNfs(instance.getNfs()); + this.withPersistentVolumeClaim(instance.getPersistentVolumeClaim()); + this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); + this.withPortworxVolume(instance.getPortworxVolume()); + this.withProjected(instance.getProjected()); + this.withQuobyte(instance.getQuobyte()); + this.withRbd(instance.getRbd()); + this.withScaleIO(instance.getScaleIO()); + this.withSecret(instance.getSecret()); + this.withStorageos(instance.getStorageos()); + this.withVsphereVolume(instance.getVsphereVolume()); + } } public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { @@ -115,15 +118,15 @@ public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasti } public AwsElasticBlockStoreNested editAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(null)); + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(null)); } public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); } public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(item)); + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(item)); } public V1AzureDiskVolumeSource buildAzureDisk() { @@ -155,15 +158,15 @@ public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { } public AzureDiskNested editAzureDisk() { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(null)); + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(null)); } public AzureDiskNested editOrNewAzureDisk() { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); } public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(item)); + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(item)); } public V1AzureFileVolumeSource buildAzureFile() { @@ -195,15 +198,15 @@ public AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item) { } public AzureFileNested editAzureFile() { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(null)); + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(null)); } public AzureFileNested editOrNewAzureFile() { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(new V1AzureFileVolumeSourceBuilder().build())); + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(new V1AzureFileVolumeSourceBuilder().build())); } public AzureFileNested editOrNewAzureFileLike(V1AzureFileVolumeSource item) { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(item)); + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(item)); } public V1CephFSVolumeSource buildCephfs() { @@ -235,15 +238,15 @@ public CephfsNested withNewCephfsLike(V1CephFSVolumeSource item) { } public CephfsNested editCephfs() { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(null)); + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(null)); } public CephfsNested editOrNewCephfs() { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(new V1CephFSVolumeSourceBuilder().build())); + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(new V1CephFSVolumeSourceBuilder().build())); } public CephfsNested editOrNewCephfsLike(V1CephFSVolumeSource item) { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(item)); + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(item)); } public V1CinderVolumeSource buildCinder() { @@ -275,15 +278,15 @@ public CinderNested withNewCinderLike(V1CinderVolumeSource item) { } public CinderNested editCinder() { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(null)); + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(null)); } public CinderNested editOrNewCinder() { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(new V1CinderVolumeSourceBuilder().build())); + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(new V1CinderVolumeSourceBuilder().build())); } public CinderNested editOrNewCinderLike(V1CinderVolumeSource item) { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(item)); + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(item)); } public V1ConfigMapVolumeSource buildConfigMap() { @@ -315,15 +318,15 @@ public ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item) { } public ConfigMapNested editConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(null)); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); } public ConfigMapNested editOrNewConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(new V1ConfigMapVolumeSourceBuilder().build())); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(new V1ConfigMapVolumeSourceBuilder().build())); } public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapVolumeSource item) { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(item)); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(item)); } public V1CSIVolumeSource buildCsi() { @@ -355,15 +358,15 @@ public CsiNested withNewCsiLike(V1CSIVolumeSource item) { } public CsiNested editCsi() { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(null)); + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(null)); } public CsiNested editOrNewCsi() { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(new V1CSIVolumeSourceBuilder().build())); + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(new V1CSIVolumeSourceBuilder().build())); } public CsiNested editOrNewCsiLike(V1CSIVolumeSource item) { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(item)); + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(item)); } public V1DownwardAPIVolumeSource buildDownwardAPI() { @@ -395,15 +398,15 @@ public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIVolumeSource ite } public DownwardAPINested editDownwardAPI() { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(null)); + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(null)); } public DownwardAPINested editOrNewDownwardAPI() { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(new V1DownwardAPIVolumeSourceBuilder().build())); + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(new V1DownwardAPIVolumeSourceBuilder().build())); } public DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIVolumeSource item) { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(item)); + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(item)); } public V1EmptyDirVolumeSource buildEmptyDir() { @@ -435,15 +438,15 @@ public EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item) { } public EmptyDirNested editEmptyDir() { - return withNewEmptyDirLike(java.util.Optional.ofNullable(buildEmptyDir()).orElse(null)); + return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(null)); } public EmptyDirNested editOrNewEmptyDir() { - return withNewEmptyDirLike(java.util.Optional.ofNullable(buildEmptyDir()).orElse(new V1EmptyDirVolumeSourceBuilder().build())); + return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(new V1EmptyDirVolumeSourceBuilder().build())); } public EmptyDirNested editOrNewEmptyDirLike(V1EmptyDirVolumeSource item) { - return withNewEmptyDirLike(java.util.Optional.ofNullable(buildEmptyDir()).orElse(item)); + return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(item)); } public V1EphemeralVolumeSource buildEphemeral() { @@ -475,15 +478,15 @@ public EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item) { } public EphemeralNested editEphemeral() { - return withNewEphemeralLike(java.util.Optional.ofNullable(buildEphemeral()).orElse(null)); + return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(null)); } public EphemeralNested editOrNewEphemeral() { - return withNewEphemeralLike(java.util.Optional.ofNullable(buildEphemeral()).orElse(new V1EphemeralVolumeSourceBuilder().build())); + return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(new V1EphemeralVolumeSourceBuilder().build())); } public EphemeralNested editOrNewEphemeralLike(V1EphemeralVolumeSource item) { - return withNewEphemeralLike(java.util.Optional.ofNullable(buildEphemeral()).orElse(item)); + return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(item)); } public V1FCVolumeSource buildFc() { @@ -515,15 +518,15 @@ public FcNested withNewFcLike(V1FCVolumeSource item) { } public FcNested editFc() { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(null)); + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(null)); } public FcNested editOrNewFc() { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); } public FcNested editOrNewFcLike(V1FCVolumeSource item) { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(item)); + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(item)); } public V1FlexVolumeSource buildFlexVolume() { @@ -555,15 +558,15 @@ public FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item) { } public FlexVolumeNested editFlexVolume() { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(null)); + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(null)); } public FlexVolumeNested editOrNewFlexVolume() { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(new V1FlexVolumeSourceBuilder().build())); + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(new V1FlexVolumeSourceBuilder().build())); } public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexVolumeSource item) { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(item)); + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(item)); } public V1FlockerVolumeSource buildFlocker() { @@ -595,15 +598,15 @@ public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { } public FlockerNested editFlocker() { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(null)); + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(null)); } public FlockerNested editOrNewFlocker() { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); } public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(item)); + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(item)); } public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { @@ -635,15 +638,15 @@ public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDi } public GcePersistentDiskNested editGcePersistentDisk() { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(null)); + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(null)); } public GcePersistentDiskNested editOrNewGcePersistentDisk() { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); } public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(item)); + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(item)); } public V1GitRepoVolumeSource buildGitRepo() { @@ -675,15 +678,15 @@ public GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item) { } public GitRepoNested editGitRepo() { - return withNewGitRepoLike(java.util.Optional.ofNullable(buildGitRepo()).orElse(null)); + return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(null)); } public GitRepoNested editOrNewGitRepo() { - return withNewGitRepoLike(java.util.Optional.ofNullable(buildGitRepo()).orElse(new V1GitRepoVolumeSourceBuilder().build())); + return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(new V1GitRepoVolumeSourceBuilder().build())); } public GitRepoNested editOrNewGitRepoLike(V1GitRepoVolumeSource item) { - return withNewGitRepoLike(java.util.Optional.ofNullable(buildGitRepo()).orElse(item)); + return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(item)); } public V1GlusterfsVolumeSource buildGlusterfs() { @@ -715,15 +718,15 @@ public GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item) { } public GlusterfsNested editGlusterfs() { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(null)); + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(null)); } public GlusterfsNested editOrNewGlusterfs() { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(new V1GlusterfsVolumeSourceBuilder().build())); + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(new V1GlusterfsVolumeSourceBuilder().build())); } public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsVolumeSource item) { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(item)); + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(item)); } public V1HostPathVolumeSource buildHostPath() { @@ -755,15 +758,15 @@ public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { } public HostPathNested editHostPath() { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(null)); + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(null)); } public HostPathNested editOrNewHostPath() { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); } public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(item)); + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(item)); } public V1ImageVolumeSource buildImage() { @@ -795,15 +798,15 @@ public ImageNested withNewImageLike(V1ImageVolumeSource item) { } public ImageNested editImage() { - return withNewImageLike(java.util.Optional.ofNullable(buildImage()).orElse(null)); + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(null)); } public ImageNested editOrNewImage() { - return withNewImageLike(java.util.Optional.ofNullable(buildImage()).orElse(new V1ImageVolumeSourceBuilder().build())); + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(new V1ImageVolumeSourceBuilder().build())); } public ImageNested editOrNewImageLike(V1ImageVolumeSource item) { - return withNewImageLike(java.util.Optional.ofNullable(buildImage()).orElse(item)); + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(item)); } public V1ISCSIVolumeSource buildIscsi() { @@ -835,15 +838,15 @@ public IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item) { } public IscsiNested editIscsi() { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(null)); + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(null)); } public IscsiNested editOrNewIscsi() { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(new V1ISCSIVolumeSourceBuilder().build())); + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(new V1ISCSIVolumeSourceBuilder().build())); } public IscsiNested editOrNewIscsiLike(V1ISCSIVolumeSource item) { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(item)); + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(item)); } public String getName() { @@ -888,15 +891,15 @@ public NfsNested withNewNfsLike(V1NFSVolumeSource item) { } public NfsNested editNfs() { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(null)); + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(null)); } public NfsNested editOrNewNfs() { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); } public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(item)); + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(item)); } public V1PersistentVolumeClaimVolumeSource buildPersistentVolumeClaim() { @@ -928,15 +931,15 @@ public PersistentVolumeClaimNested withNewPersistentVolumeClaimLike(V1Persist } public PersistentVolumeClaimNested editPersistentVolumeClaim() { - return withNewPersistentVolumeClaimLike(java.util.Optional.ofNullable(buildPersistentVolumeClaim()).orElse(null)); + return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(null)); } public PersistentVolumeClaimNested editOrNewPersistentVolumeClaim() { - return withNewPersistentVolumeClaimLike(java.util.Optional.ofNullable(buildPersistentVolumeClaim()).orElse(new V1PersistentVolumeClaimVolumeSourceBuilder().build())); + return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(new V1PersistentVolumeClaimVolumeSourceBuilder().build())); } public PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { - return withNewPersistentVolumeClaimLike(java.util.Optional.ofNullable(buildPersistentVolumeClaim()).orElse(item)); + return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(item)); } public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { @@ -968,15 +971,15 @@ public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPer } public PhotonPersistentDiskNested editPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(null)); + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(null)); } public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); } public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(item)); + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(item)); } public V1PortworxVolumeSource buildPortworxVolume() { @@ -1008,15 +1011,15 @@ public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource } public PortworxVolumeNested editPortworxVolume() { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(null)); + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(null)); } public PortworxVolumeNested editOrNewPortworxVolume() { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); } public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(item)); + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(item)); } public V1ProjectedVolumeSource buildProjected() { @@ -1048,15 +1051,15 @@ public ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item) { } public ProjectedNested editProjected() { - return withNewProjectedLike(java.util.Optional.ofNullable(buildProjected()).orElse(null)); + return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(null)); } public ProjectedNested editOrNewProjected() { - return withNewProjectedLike(java.util.Optional.ofNullable(buildProjected()).orElse(new V1ProjectedVolumeSourceBuilder().build())); + return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(new V1ProjectedVolumeSourceBuilder().build())); } public ProjectedNested editOrNewProjectedLike(V1ProjectedVolumeSource item) { - return withNewProjectedLike(java.util.Optional.ofNullable(buildProjected()).orElse(item)); + return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(item)); } public V1QuobyteVolumeSource buildQuobyte() { @@ -1088,15 +1091,15 @@ public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { } public QuobyteNested editQuobyte() { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(null)); + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(null)); } public QuobyteNested editOrNewQuobyte() { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); } public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(item)); + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(item)); } public V1RBDVolumeSource buildRbd() { @@ -1128,15 +1131,15 @@ public RbdNested withNewRbdLike(V1RBDVolumeSource item) { } public RbdNested editRbd() { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(null)); + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(null)); } public RbdNested editOrNewRbd() { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(new V1RBDVolumeSourceBuilder().build())); + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(new V1RBDVolumeSourceBuilder().build())); } public RbdNested editOrNewRbdLike(V1RBDVolumeSource item) { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(item)); + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(item)); } public V1ScaleIOVolumeSource buildScaleIO() { @@ -1168,15 +1171,15 @@ public ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item) { } public ScaleIONested editScaleIO() { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(null)); + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(null)); } public ScaleIONested editOrNewScaleIO() { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(new V1ScaleIOVolumeSourceBuilder().build())); + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(new V1ScaleIOVolumeSourceBuilder().build())); } public ScaleIONested editOrNewScaleIOLike(V1ScaleIOVolumeSource item) { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(item)); + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(item)); } public V1SecretVolumeSource buildSecret() { @@ -1208,15 +1211,15 @@ public SecretNested withNewSecretLike(V1SecretVolumeSource item) { } public SecretNested editSecret() { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(null)); + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(null)); } public SecretNested editOrNewSecret() { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(new V1SecretVolumeSourceBuilder().build())); + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(new V1SecretVolumeSourceBuilder().build())); } public SecretNested editOrNewSecretLike(V1SecretVolumeSource item) { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(item)); + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(item)); } public V1StorageOSVolumeSource buildStorageos() { @@ -1248,15 +1251,15 @@ public StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item) { } public StorageosNested editStorageos() { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(null)); + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(null)); } public StorageosNested editOrNewStorageos() { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(new V1StorageOSVolumeSourceBuilder().build())); + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(new V1StorageOSVolumeSourceBuilder().build())); } public StorageosNested editOrNewStorageosLike(V1StorageOSVolumeSource item) { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(item)); + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(item)); } public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { @@ -1288,94 +1291,285 @@ public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolum } public VsphereVolumeNested editVsphereVolume() { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(null)); + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(null)); } public VsphereVolumeNested editOrNewVsphereVolume() { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); } public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(item)); + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeFluent that = (V1VolumeFluent) o; - if (!java.util.Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore)) return false; - if (!java.util.Objects.equals(azureDisk, that.azureDisk)) return false; - if (!java.util.Objects.equals(azureFile, that.azureFile)) return false; - if (!java.util.Objects.equals(cephfs, that.cephfs)) return false; - if (!java.util.Objects.equals(cinder, that.cinder)) return false; - if (!java.util.Objects.equals(configMap, that.configMap)) return false; - if (!java.util.Objects.equals(csi, that.csi)) return false; - if (!java.util.Objects.equals(downwardAPI, that.downwardAPI)) return false; - if (!java.util.Objects.equals(emptyDir, that.emptyDir)) return false; - if (!java.util.Objects.equals(ephemeral, that.ephemeral)) return false; - if (!java.util.Objects.equals(fc, that.fc)) return false; - if (!java.util.Objects.equals(flexVolume, that.flexVolume)) return false; - if (!java.util.Objects.equals(flocker, that.flocker)) return false; - if (!java.util.Objects.equals(gcePersistentDisk, that.gcePersistentDisk)) return false; - if (!java.util.Objects.equals(gitRepo, that.gitRepo)) return false; - if (!java.util.Objects.equals(glusterfs, that.glusterfs)) return false; - if (!java.util.Objects.equals(hostPath, that.hostPath)) return false; - if (!java.util.Objects.equals(image, that.image)) return false; - if (!java.util.Objects.equals(iscsi, that.iscsi)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(nfs, that.nfs)) return false; - if (!java.util.Objects.equals(persistentVolumeClaim, that.persistentVolumeClaim)) return false; - if (!java.util.Objects.equals(photonPersistentDisk, that.photonPersistentDisk)) return false; - if (!java.util.Objects.equals(portworxVolume, that.portworxVolume)) return false; - if (!java.util.Objects.equals(projected, that.projected)) return false; - if (!java.util.Objects.equals(quobyte, that.quobyte)) return false; - if (!java.util.Objects.equals(rbd, that.rbd)) return false; - if (!java.util.Objects.equals(scaleIO, that.scaleIO)) return false; - if (!java.util.Objects.equals(secret, that.secret)) return false; - if (!java.util.Objects.equals(storageos, that.storageos)) return false; - if (!java.util.Objects.equals(vsphereVolume, that.vsphereVolume)) return false; + if (!(Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore))) { + return false; + } + if (!(Objects.equals(azureDisk, that.azureDisk))) { + return false; + } + if (!(Objects.equals(azureFile, that.azureFile))) { + return false; + } + if (!(Objects.equals(cephfs, that.cephfs))) { + return false; + } + if (!(Objects.equals(cinder, that.cinder))) { + return false; + } + if (!(Objects.equals(configMap, that.configMap))) { + return false; + } + if (!(Objects.equals(csi, that.csi))) { + return false; + } + if (!(Objects.equals(downwardAPI, that.downwardAPI))) { + return false; + } + if (!(Objects.equals(emptyDir, that.emptyDir))) { + return false; + } + if (!(Objects.equals(ephemeral, that.ephemeral))) { + return false; + } + if (!(Objects.equals(fc, that.fc))) { + return false; + } + if (!(Objects.equals(flexVolume, that.flexVolume))) { + return false; + } + if (!(Objects.equals(flocker, that.flocker))) { + return false; + } + if (!(Objects.equals(gcePersistentDisk, that.gcePersistentDisk))) { + return false; + } + if (!(Objects.equals(gitRepo, that.gitRepo))) { + return false; + } + if (!(Objects.equals(glusterfs, that.glusterfs))) { + return false; + } + if (!(Objects.equals(hostPath, that.hostPath))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(iscsi, that.iscsi))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nfs, that.nfs))) { + return false; + } + if (!(Objects.equals(persistentVolumeClaim, that.persistentVolumeClaim))) { + return false; + } + if (!(Objects.equals(photonPersistentDisk, that.photonPersistentDisk))) { + return false; + } + if (!(Objects.equals(portworxVolume, that.portworxVolume))) { + return false; + } + if (!(Objects.equals(projected, that.projected))) { + return false; + } + if (!(Objects.equals(quobyte, that.quobyte))) { + return false; + } + if (!(Objects.equals(rbd, that.rbd))) { + return false; + } + if (!(Objects.equals(scaleIO, that.scaleIO))) { + return false; + } + if (!(Objects.equals(secret, that.secret))) { + return false; + } + if (!(Objects.equals(storageos, that.storageos))) { + return false; + } + if (!(Objects.equals(vsphereVolume, that.vsphereVolume))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, image, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume, super.hashCode()); + return Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, image, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (awsElasticBlockStore != null) { sb.append("awsElasticBlockStore:"); sb.append(awsElasticBlockStore + ","); } - if (azureDisk != null) { sb.append("azureDisk:"); sb.append(azureDisk + ","); } - if (azureFile != null) { sb.append("azureFile:"); sb.append(azureFile + ","); } - if (cephfs != null) { sb.append("cephfs:"); sb.append(cephfs + ","); } - if (cinder != null) { sb.append("cinder:"); sb.append(cinder + ","); } - if (configMap != null) { sb.append("configMap:"); sb.append(configMap + ","); } - if (csi != null) { sb.append("csi:"); sb.append(csi + ","); } - if (downwardAPI != null) { sb.append("downwardAPI:"); sb.append(downwardAPI + ","); } - if (emptyDir != null) { sb.append("emptyDir:"); sb.append(emptyDir + ","); } - if (ephemeral != null) { sb.append("ephemeral:"); sb.append(ephemeral + ","); } - if (fc != null) { sb.append("fc:"); sb.append(fc + ","); } - if (flexVolume != null) { sb.append("flexVolume:"); sb.append(flexVolume + ","); } - if (flocker != null) { sb.append("flocker:"); sb.append(flocker + ","); } - if (gcePersistentDisk != null) { sb.append("gcePersistentDisk:"); sb.append(gcePersistentDisk + ","); } - if (gitRepo != null) { sb.append("gitRepo:"); sb.append(gitRepo + ","); } - if (glusterfs != null) { sb.append("glusterfs:"); sb.append(glusterfs + ","); } - if (hostPath != null) { sb.append("hostPath:"); sb.append(hostPath + ","); } - if (image != null) { sb.append("image:"); sb.append(image + ","); } - if (iscsi != null) { sb.append("iscsi:"); sb.append(iscsi + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (nfs != null) { sb.append("nfs:"); sb.append(nfs + ","); } - if (persistentVolumeClaim != null) { sb.append("persistentVolumeClaim:"); sb.append(persistentVolumeClaim + ","); } - if (photonPersistentDisk != null) { sb.append("photonPersistentDisk:"); sb.append(photonPersistentDisk + ","); } - if (portworxVolume != null) { sb.append("portworxVolume:"); sb.append(portworxVolume + ","); } - if (projected != null) { sb.append("projected:"); sb.append(projected + ","); } - if (quobyte != null) { sb.append("quobyte:"); sb.append(quobyte + ","); } - if (rbd != null) { sb.append("rbd:"); sb.append(rbd + ","); } - if (scaleIO != null) { sb.append("scaleIO:"); sb.append(scaleIO + ","); } - if (secret != null) { sb.append("secret:"); sb.append(secret + ","); } - if (storageos != null) { sb.append("storageos:"); sb.append(storageos + ","); } - if (vsphereVolume != null) { sb.append("vsphereVolume:"); sb.append(vsphereVolume); } + if (!(awsElasticBlockStore == null)) { + sb.append("awsElasticBlockStore:"); + sb.append(awsElasticBlockStore); + sb.append(","); + } + if (!(azureDisk == null)) { + sb.append("azureDisk:"); + sb.append(azureDisk); + sb.append(","); + } + if (!(azureFile == null)) { + sb.append("azureFile:"); + sb.append(azureFile); + sb.append(","); + } + if (!(cephfs == null)) { + sb.append("cephfs:"); + sb.append(cephfs); + sb.append(","); + } + if (!(cinder == null)) { + sb.append("cinder:"); + sb.append(cinder); + sb.append(","); + } + if (!(configMap == null)) { + sb.append("configMap:"); + sb.append(configMap); + sb.append(","); + } + if (!(csi == null)) { + sb.append("csi:"); + sb.append(csi); + sb.append(","); + } + if (!(downwardAPI == null)) { + sb.append("downwardAPI:"); + sb.append(downwardAPI); + sb.append(","); + } + if (!(emptyDir == null)) { + sb.append("emptyDir:"); + sb.append(emptyDir); + sb.append(","); + } + if (!(ephemeral == null)) { + sb.append("ephemeral:"); + sb.append(ephemeral); + sb.append(","); + } + if (!(fc == null)) { + sb.append("fc:"); + sb.append(fc); + sb.append(","); + } + if (!(flexVolume == null)) { + sb.append("flexVolume:"); + sb.append(flexVolume); + sb.append(","); + } + if (!(flocker == null)) { + sb.append("flocker:"); + sb.append(flocker); + sb.append(","); + } + if (!(gcePersistentDisk == null)) { + sb.append("gcePersistentDisk:"); + sb.append(gcePersistentDisk); + sb.append(","); + } + if (!(gitRepo == null)) { + sb.append("gitRepo:"); + sb.append(gitRepo); + sb.append(","); + } + if (!(glusterfs == null)) { + sb.append("glusterfs:"); + sb.append(glusterfs); + sb.append(","); + } + if (!(hostPath == null)) { + sb.append("hostPath:"); + sb.append(hostPath); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(iscsi == null)) { + sb.append("iscsi:"); + sb.append(iscsi); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nfs == null)) { + sb.append("nfs:"); + sb.append(nfs); + sb.append(","); + } + if (!(persistentVolumeClaim == null)) { + sb.append("persistentVolumeClaim:"); + sb.append(persistentVolumeClaim); + sb.append(","); + } + if (!(photonPersistentDisk == null)) { + sb.append("photonPersistentDisk:"); + sb.append(photonPersistentDisk); + sb.append(","); + } + if (!(portworxVolume == null)) { + sb.append("portworxVolume:"); + sb.append(portworxVolume); + sb.append(","); + } + if (!(projected == null)) { + sb.append("projected:"); + sb.append(projected); + sb.append(","); + } + if (!(quobyte == null)) { + sb.append("quobyte:"); + sb.append(quobyte); + sb.append(","); + } + if (!(rbd == null)) { + sb.append("rbd:"); + sb.append(rbd); + sb.append(","); + } + if (!(scaleIO == null)) { + sb.append("scaleIO:"); + sb.append(scaleIO); + sb.append(","); + } + if (!(secret == null)) { + sb.append("secret:"); + sb.append(secret); + sb.append(","); + } + if (!(storageos == null)) { + sb.append("storageos:"); + sb.append(storageos); + sb.append(","); + } + if (!(vsphereVolume == null)) { + sb.append("vsphereVolume:"); + sb.append(vsphereVolume); + } sb.append("}"); return sb.toString(); } 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 3225cc2a37..62268336ec 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeMountBuilder extends V1VolumeMountFluent implements VisitableBuilder{ public V1VolumeMountBuilder() { this(new V1VolumeMount()); 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 d092a55ee1..c7d5405650 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeMountFluent> extends BaseFluent{ +public class V1VolumeMountFluent> extends BaseFluent{ public V1VolumeMountFluent() { } @@ -26,16 +28,16 @@ public V1VolumeMountFluent(V1VolumeMount instance) { private String subPathExpr; protected void copyInstance(V1VolumeMount instance) { - instance = (instance != null ? instance : new V1VolumeMount()); + instance = instance != null ? instance : new V1VolumeMount(); if (instance != null) { - this.withMountPath(instance.getMountPath()); - this.withMountPropagation(instance.getMountPropagation()); - this.withName(instance.getName()); - this.withReadOnly(instance.getReadOnly()); - this.withRecursiveReadOnly(instance.getRecursiveReadOnly()); - this.withSubPath(instance.getSubPath()); - this.withSubPathExpr(instance.getSubPathExpr()); - } + this.withMountPath(instance.getMountPath()); + this.withMountPropagation(instance.getMountPropagation()); + this.withName(instance.getName()); + this.withReadOnly(instance.getReadOnly()); + this.withRecursiveReadOnly(instance.getRecursiveReadOnly()); + this.withSubPath(instance.getSubPath()); + this.withSubPathExpr(instance.getSubPathExpr()); + } } public String getMountPath() { @@ -130,34 +132,81 @@ public boolean hasSubPathExpr() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeMountFluent that = (V1VolumeMountFluent) o; - if (!java.util.Objects.equals(mountPath, that.mountPath)) return false; - if (!java.util.Objects.equals(mountPropagation, that.mountPropagation)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(recursiveReadOnly, that.recursiveReadOnly)) return false; - if (!java.util.Objects.equals(subPath, that.subPath)) return false; - if (!java.util.Objects.equals(subPathExpr, that.subPathExpr)) return false; + if (!(Objects.equals(mountPath, that.mountPath))) { + return false; + } + if (!(Objects.equals(mountPropagation, that.mountPropagation))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(recursiveReadOnly, that.recursiveReadOnly))) { + return false; + } + if (!(Objects.equals(subPath, that.subPath))) { + return false; + } + if (!(Objects.equals(subPathExpr, that.subPathExpr))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr, super.hashCode()); + return Objects.hash(mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (mountPath != null) { sb.append("mountPath:"); sb.append(mountPath + ","); } - if (mountPropagation != null) { sb.append("mountPropagation:"); sb.append(mountPropagation + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (recursiveReadOnly != null) { sb.append("recursiveReadOnly:"); sb.append(recursiveReadOnly + ","); } - if (subPath != null) { sb.append("subPath:"); sb.append(subPath + ","); } - if (subPathExpr != null) { sb.append("subPathExpr:"); sb.append(subPathExpr); } + if (!(mountPath == null)) { + sb.append("mountPath:"); + sb.append(mountPath); + sb.append(","); + } + if (!(mountPropagation == null)) { + sb.append("mountPropagation:"); + sb.append(mountPropagation); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(recursiveReadOnly == null)) { + sb.append("recursiveReadOnly:"); + sb.append(recursiveReadOnly); + sb.append(","); + } + if (!(subPath == null)) { + sb.append("subPath:"); + sb.append(subPath); + sb.append(","); + } + if (!(subPathExpr == null)) { + sb.append("subPathExpr:"); + sb.append(subPathExpr); + } sb.append("}"); return sb.toString(); } 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 3ed58ec456..da2d2502e6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeMountStatusBuilder extends V1VolumeMountStatusFluent implements VisitableBuilder{ public V1VolumeMountStatusBuilder() { this(new V1VolumeMountStatus()); 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 de5c185bd7..178040ff93 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeMountStatusFluent> extends BaseFluent{ +public class V1VolumeMountStatusFluent> extends BaseFluent{ public V1VolumeMountStatusFluent() { } @@ -23,13 +25,13 @@ public V1VolumeMountStatusFluent(V1VolumeMountStatus instance) { private String recursiveReadOnly; protected void copyInstance(V1VolumeMountStatus instance) { - instance = (instance != null ? instance : new V1VolumeMountStatus()); + instance = instance != null ? instance : new V1VolumeMountStatus(); if (instance != null) { - this.withMountPath(instance.getMountPath()); - this.withName(instance.getName()); - this.withReadOnly(instance.getReadOnly()); - this.withRecursiveReadOnly(instance.getRecursiveReadOnly()); - } + this.withMountPath(instance.getMountPath()); + this.withName(instance.getName()); + this.withReadOnly(instance.getReadOnly()); + this.withRecursiveReadOnly(instance.getRecursiveReadOnly()); + } } public String getMountPath() { @@ -85,28 +87,57 @@ public boolean hasRecursiveReadOnly() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeMountStatusFluent that = (V1VolumeMountStatusFluent) o; - if (!java.util.Objects.equals(mountPath, that.mountPath)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(recursiveReadOnly, that.recursiveReadOnly)) return false; + if (!(Objects.equals(mountPath, that.mountPath))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(recursiveReadOnly, that.recursiveReadOnly))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(mountPath, name, readOnly, recursiveReadOnly, super.hashCode()); + return Objects.hash(mountPath, name, readOnly, recursiveReadOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (mountPath != null) { sb.append("mountPath:"); sb.append(mountPath + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (recursiveReadOnly != null) { sb.append("recursiveReadOnly:"); sb.append(recursiveReadOnly); } + if (!(mountPath == null)) { + sb.append("mountPath:"); + sb.append(mountPath); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(recursiveReadOnly == null)) { + sb.append("recursiveReadOnly:"); + sb.append(recursiveReadOnly); + } sb.append("}"); return sb.toString(); } 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 5098c6ee40..bd6e41a7ef 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeNodeAffinityBuilder extends V1VolumeNodeAffinityFluent implements VisitableBuilder{ public V1VolumeNodeAffinityBuilder() { this(new V1VolumeNodeAffinity()); 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 3613194eea..44bd6198b2 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeNodeAffinityFluent> extends BaseFluent{ +public class V1VolumeNodeAffinityFluent> extends BaseFluent{ public V1VolumeNodeAffinityFluent() { } @@ -20,10 +23,10 @@ public V1VolumeNodeAffinityFluent(V1VolumeNodeAffinity instance) { private V1NodeSelectorBuilder required; protected void copyInstance(V1VolumeNodeAffinity instance) { - instance = (instance != null ? instance : new V1VolumeNodeAffinity()); + instance = instance != null ? instance : new V1VolumeNodeAffinity(); if (instance != null) { - this.withRequired(instance.getRequired()); - } + this.withRequired(instance.getRequired()); + } } public V1NodeSelector buildRequired() { @@ -55,34 +58,45 @@ public RequiredNested withNewRequiredLike(V1NodeSelector item) { } public RequiredNested editRequired() { - return withNewRequiredLike(java.util.Optional.ofNullable(buildRequired()).orElse(null)); + return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(null)); } public RequiredNested editOrNewRequired() { - return withNewRequiredLike(java.util.Optional.ofNullable(buildRequired()).orElse(new V1NodeSelectorBuilder().build())); + return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(new V1NodeSelectorBuilder().build())); } public RequiredNested editOrNewRequiredLike(V1NodeSelector item) { - return withNewRequiredLike(java.util.Optional.ofNullable(buildRequired()).orElse(item)); + return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeNodeAffinityFluent that = (V1VolumeNodeAffinityFluent) o; - if (!java.util.Objects.equals(required, that.required)) return false; + if (!(Objects.equals(required, that.required))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(required, super.hashCode()); + return Objects.hash(required); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (required != null) { sb.append("required:"); sb.append(required); } + if (!(required == null)) { + sb.append("required:"); + sb.append(required); + } sb.append("}"); return sb.toString(); } 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 cb6b598ff9..89edf57595 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeNodeResourcesBuilder extends V1VolumeNodeResourcesFluent implements VisitableBuilder{ public V1VolumeNodeResourcesBuilder() { this(new V1VolumeNodeResources()); 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 bade872fcf..7dcf24fa2f 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeNodeResourcesFluent> extends BaseFluent{ +public class V1VolumeNodeResourcesFluent> extends BaseFluent{ public V1VolumeNodeResourcesFluent() { } @@ -20,10 +22,10 @@ public V1VolumeNodeResourcesFluent(V1VolumeNodeResources instance) { private Integer count; protected void copyInstance(V1VolumeNodeResources instance) { - instance = (instance != null ? instance : new V1VolumeNodeResources()); + instance = instance != null ? instance : new V1VolumeNodeResources(); if (instance != null) { - this.withCount(instance.getCount()); - } + this.withCount(instance.getCount()); + } } public Integer getCount() { @@ -40,22 +42,33 @@ public boolean hasCount() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeNodeResourcesFluent that = (V1VolumeNodeResourcesFluent) o; - if (!java.util.Objects.equals(count, that.count)) return false; + if (!(Objects.equals(count, that.count))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(count, super.hashCode()); + return Objects.hash(count); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (count != null) { sb.append("count:"); sb.append(count); } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + } sb.append("}"); return sb.toString(); } 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 ea0c5e4e3c..bf49e8c9fb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeProjectionBuilder extends V1VolumeProjectionFluent implements VisitableBuilder{ public V1VolumeProjectionBuilder() { this(new V1VolumeProjection()); @@ -26,6 +27,7 @@ public V1VolumeProjection build() { buildable.setClusterTrustBundle(fluent.buildClusterTrustBundle()); buildable.setConfigMap(fluent.buildConfigMap()); buildable.setDownwardAPI(fluent.buildDownwardAPI()); + buildable.setPodCertificate(fluent.buildPodCertificate()); buildable.setSecret(fluent.buildSecret()); buildable.setServiceAccountToken(fluent.buildServiceAccountToken()); return buildable; 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 7bdf479983..70853aa46c 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeProjectionFluent> extends BaseFluent{ +public class V1VolumeProjectionFluent> extends BaseFluent{ public V1VolumeProjectionFluent() { } @@ -20,18 +23,20 @@ public V1VolumeProjectionFluent(V1VolumeProjection instance) { private V1ClusterTrustBundleProjectionBuilder clusterTrustBundle; private V1ConfigMapProjectionBuilder configMap; private V1DownwardAPIProjectionBuilder downwardAPI; + private V1PodCertificateProjectionBuilder podCertificate; private V1SecretProjectionBuilder secret; private V1ServiceAccountTokenProjectionBuilder serviceAccountToken; protected void copyInstance(V1VolumeProjection instance) { - instance = (instance != null ? instance : new V1VolumeProjection()); + instance = instance != null ? instance : new V1VolumeProjection(); if (instance != null) { - this.withClusterTrustBundle(instance.getClusterTrustBundle()); - this.withConfigMap(instance.getConfigMap()); - this.withDownwardAPI(instance.getDownwardAPI()); - this.withSecret(instance.getSecret()); - this.withServiceAccountToken(instance.getServiceAccountToken()); - } + this.withClusterTrustBundle(instance.getClusterTrustBundle()); + this.withConfigMap(instance.getConfigMap()); + this.withDownwardAPI(instance.getDownwardAPI()); + this.withPodCertificate(instance.getPodCertificate()); + this.withSecret(instance.getSecret()); + this.withServiceAccountToken(instance.getServiceAccountToken()); + } } public V1ClusterTrustBundleProjection buildClusterTrustBundle() { @@ -63,15 +68,15 @@ public ClusterTrustBundleNested withNewClusterTrustBundleLike(V1ClusterTrustB } public ClusterTrustBundleNested editClusterTrustBundle() { - return withNewClusterTrustBundleLike(java.util.Optional.ofNullable(buildClusterTrustBundle()).orElse(null)); + return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(null)); } public ClusterTrustBundleNested editOrNewClusterTrustBundle() { - return withNewClusterTrustBundleLike(java.util.Optional.ofNullable(buildClusterTrustBundle()).orElse(new V1ClusterTrustBundleProjectionBuilder().build())); + return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(new V1ClusterTrustBundleProjectionBuilder().build())); } public ClusterTrustBundleNested editOrNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { - return withNewClusterTrustBundleLike(java.util.Optional.ofNullable(buildClusterTrustBundle()).orElse(item)); + return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(item)); } public V1ConfigMapProjection buildConfigMap() { @@ -103,15 +108,15 @@ public ConfigMapNested withNewConfigMapLike(V1ConfigMapProjection item) { } public ConfigMapNested editConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(null)); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); } public ConfigMapNested editOrNewConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(new V1ConfigMapProjectionBuilder().build())); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(new V1ConfigMapProjectionBuilder().build())); } public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapProjection item) { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(item)); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(item)); } public V1DownwardAPIProjection buildDownwardAPI() { @@ -143,15 +148,55 @@ public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIProjection item) } public DownwardAPINested editDownwardAPI() { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(null)); + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(null)); } public DownwardAPINested editOrNewDownwardAPI() { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(new V1DownwardAPIProjectionBuilder().build())); + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(new V1DownwardAPIProjectionBuilder().build())); } public DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIProjection item) { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(item)); + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(item)); + } + + public V1PodCertificateProjection buildPodCertificate() { + return this.podCertificate != null ? this.podCertificate.build() : null; + } + + public A withPodCertificate(V1PodCertificateProjection podCertificate) { + this._visitables.remove("podCertificate"); + if (podCertificate != null) { + this.podCertificate = new V1PodCertificateProjectionBuilder(podCertificate); + this._visitables.get("podCertificate").add(this.podCertificate); + } else { + this.podCertificate = null; + this._visitables.get("podCertificate").remove(this.podCertificate); + } + return (A) this; + } + + public boolean hasPodCertificate() { + return this.podCertificate != null; + } + + public PodCertificateNested withNewPodCertificate() { + return new PodCertificateNested(null); + } + + public PodCertificateNested withNewPodCertificateLike(V1PodCertificateProjection item) { + return new PodCertificateNested(item); + } + + public PodCertificateNested editPodCertificate() { + return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(null)); + } + + public PodCertificateNested editOrNewPodCertificate() { + return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(new V1PodCertificateProjectionBuilder().build())); + } + + public PodCertificateNested editOrNewPodCertificateLike(V1PodCertificateProjection item) { + return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(item)); } public V1SecretProjection buildSecret() { @@ -183,15 +228,15 @@ public SecretNested withNewSecretLike(V1SecretProjection item) { } public SecretNested editSecret() { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(null)); + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(null)); } public SecretNested editOrNewSecret() { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(new V1SecretProjectionBuilder().build())); + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(new V1SecretProjectionBuilder().build())); } public SecretNested editOrNewSecretLike(V1SecretProjection item) { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(item)); + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(item)); } public V1ServiceAccountTokenProjection buildServiceAccountToken() { @@ -223,42 +268,85 @@ public ServiceAccountTokenNested withNewServiceAccountTokenLike(V1ServiceAcco } public ServiceAccountTokenNested editServiceAccountToken() { - return withNewServiceAccountTokenLike(java.util.Optional.ofNullable(buildServiceAccountToken()).orElse(null)); + return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(null)); } public ServiceAccountTokenNested editOrNewServiceAccountToken() { - return withNewServiceAccountTokenLike(java.util.Optional.ofNullable(buildServiceAccountToken()).orElse(new V1ServiceAccountTokenProjectionBuilder().build())); + return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(new V1ServiceAccountTokenProjectionBuilder().build())); } public ServiceAccountTokenNested editOrNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { - return withNewServiceAccountTokenLike(java.util.Optional.ofNullable(buildServiceAccountToken()).orElse(item)); + return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeProjectionFluent that = (V1VolumeProjectionFluent) o; - if (!java.util.Objects.equals(clusterTrustBundle, that.clusterTrustBundle)) return false; - if (!java.util.Objects.equals(configMap, that.configMap)) return false; - if (!java.util.Objects.equals(downwardAPI, that.downwardAPI)) return false; - if (!java.util.Objects.equals(secret, that.secret)) return false; - if (!java.util.Objects.equals(serviceAccountToken, that.serviceAccountToken)) return false; + if (!(Objects.equals(clusterTrustBundle, that.clusterTrustBundle))) { + return false; + } + if (!(Objects.equals(configMap, that.configMap))) { + return false; + } + if (!(Objects.equals(downwardAPI, that.downwardAPI))) { + return false; + } + if (!(Objects.equals(podCertificate, that.podCertificate))) { + return false; + } + if (!(Objects.equals(secret, that.secret))) { + return false; + } + if (!(Objects.equals(serviceAccountToken, that.serviceAccountToken))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(clusterTrustBundle, configMap, downwardAPI, secret, serviceAccountToken, super.hashCode()); + return Objects.hash(clusterTrustBundle, configMap, downwardAPI, podCertificate, secret, serviceAccountToken); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (clusterTrustBundle != null) { sb.append("clusterTrustBundle:"); sb.append(clusterTrustBundle + ","); } - if (configMap != null) { sb.append("configMap:"); sb.append(configMap + ","); } - if (downwardAPI != null) { sb.append("downwardAPI:"); sb.append(downwardAPI + ","); } - if (secret != null) { sb.append("secret:"); sb.append(secret + ","); } - if (serviceAccountToken != null) { sb.append("serviceAccountToken:"); sb.append(serviceAccountToken); } + if (!(clusterTrustBundle == null)) { + sb.append("clusterTrustBundle:"); + sb.append(clusterTrustBundle); + sb.append(","); + } + if (!(configMap == null)) { + sb.append("configMap:"); + sb.append(configMap); + sb.append(","); + } + if (!(downwardAPI == null)) { + sb.append("downwardAPI:"); + sb.append(downwardAPI); + sb.append(","); + } + if (!(podCertificate == null)) { + sb.append("podCertificate:"); + sb.append(podCertificate); + sb.append(","); + } + if (!(secret == null)) { + sb.append("secret:"); + sb.append(secret); + sb.append(","); + } + if (!(serviceAccountToken == null)) { + sb.append("serviceAccountToken:"); + sb.append(serviceAccountToken); + } sb.append("}"); return sb.toString(); } @@ -309,6 +397,22 @@ public N endDownwardAPI() { } + } + public class PodCertificateNested extends V1PodCertificateProjectionFluent> implements Nested{ + PodCertificateNested(V1PodCertificateProjection item) { + this.builder = new V1PodCertificateProjectionBuilder(this, item); + } + V1PodCertificateProjectionBuilder builder; + + public N and() { + return (N) V1VolumeProjectionFluent.this.withPodCertificate(builder.build()); + } + + public N endPodCertificate() { + return and(); + } + + } public class SecretNested extends V1SecretProjectionFluent> implements Nested{ SecretNested(V1SecretProjection item) { 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 80c34b2188..60f7c9436e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeResourceRequirementsBuilder extends V1VolumeResourceRequirementsFluent implements VisitableBuilder{ public V1VolumeResourceRequirementsBuilder() { this(new V1VolumeResourceRequirements()); 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 4c4f04e7ff..39e971e3fe 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -12,7 +14,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeResourceRequirementsFluent> extends BaseFluent{ +public class V1VolumeResourceRequirementsFluent> extends BaseFluent{ public V1VolumeResourceRequirementsFluent() { } @@ -23,31 +25,55 @@ public V1VolumeResourceRequirementsFluent(V1VolumeResourceRequirements instance) private Map requests; protected void copyInstance(V1VolumeResourceRequirements instance) { - instance = (instance != null ? instance : new V1VolumeResourceRequirements()); + instance = instance != null ? instance : new V1VolumeResourceRequirements(); if (instance != null) { - this.withLimits(instance.getLimits()); - this.withRequests(instance.getRequests()); - } + this.withLimits(instance.getLimits()); + this.withRequests(instance.getRequests()); + } } public A addToLimits(String key,Quantity value) { - if(this.limits == null && key != null && value != null) { this.limits = new LinkedHashMap(); } - if(key != null && value != null) {this.limits.put(key, value);} return (A)this; + if (this.limits == null && key != null && value != null) { + this.limits = new LinkedHashMap(); + } + if (key != null && value != null) { + this.limits.put(key, value); + } + return (A) this; } public A addToLimits(Map map) { - if(this.limits == null && map != null) { this.limits = new LinkedHashMap(); } - if(map != null) { this.limits.putAll(map);} return (A)this; + if (this.limits == null && map != null) { + this.limits = new LinkedHashMap(); + } + if (map != null) { + this.limits.putAll(map); + } + return (A) this; } public A removeFromLimits(String key) { - if(this.limits == null) { return (A) this; } - if(key != null && this.limits != null) {this.limits.remove(key);} return (A)this; + if (this.limits == null) { + return (A) this; + } + if (key != null && this.limits != null) { + this.limits.remove(key); + } + return (A) this; } public A removeFromLimits(Map map) { - if(this.limits == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.limits != null){this.limits.remove(key);}}} return (A)this; + if (this.limits == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.limits != null) { + this.limits.remove(key); + } + } + } + return (A) this; } public Map getLimits() { @@ -68,23 +94,47 @@ public boolean hasLimits() { } public A addToRequests(String key,Quantity value) { - if(this.requests == null && key != null && value != null) { this.requests = new LinkedHashMap(); } - if(key != null && value != null) {this.requests.put(key, value);} return (A)this; + if (this.requests == null && key != null && value != null) { + this.requests = new LinkedHashMap(); + } + if (key != null && value != null) { + this.requests.put(key, value); + } + return (A) this; } public A addToRequests(Map map) { - if(this.requests == null && map != null) { this.requests = new LinkedHashMap(); } - if(map != null) { this.requests.putAll(map);} return (A)this; + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); + } + if (map != null) { + this.requests.putAll(map); + } + return (A) this; } public A removeFromRequests(String key) { - if(this.requests == null) { return (A) this; } - if(key != null && this.requests != null) {this.requests.remove(key);} return (A)this; + if (this.requests == null) { + return (A) this; + } + if (key != null && this.requests != null) { + this.requests.remove(key); + } + return (A) this; } public A removeFromRequests(Map map) { - if(this.requests == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.requests != null){this.requests.remove(key);}}} return (A)this; + if (this.requests == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.requests != null) { + this.requests.remove(key); + } + } + } + return (A) this; } public Map getRequests() { @@ -105,24 +155,41 @@ public boolean hasRequests() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeResourceRequirementsFluent that = (V1VolumeResourceRequirementsFluent) o; - if (!java.util.Objects.equals(limits, that.limits)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!(Objects.equals(limits, that.limits))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(limits, requests, super.hashCode()); + return Objects.hash(limits, requests); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (limits != null && !limits.isEmpty()) { sb.append("limits:"); sb.append(limits + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + if (!(limits == null) && !(limits.isEmpty())) { + sb.append("limits:"); + sb.append(limits); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } sb.append("}"); return sb.toString(); } 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 946ed5ef6d..a636ff12ff 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VsphereVirtualDiskVolumeSourceBuilder extends V1VsphereVirtualDiskVolumeSourceFluent implements VisitableBuilder{ public V1VsphereVirtualDiskVolumeSourceBuilder() { this(new V1VsphereVirtualDiskVolumeSource()); 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 29b1915140..7689091914 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1VsphereVirtualDiskVolumeSourceFluent> extends BaseFluent{ +public class V1VsphereVirtualDiskVolumeSourceFluent> extends BaseFluent{ public V1VsphereVirtualDiskVolumeSourceFluent() { } @@ -22,13 +24,13 @@ public V1VsphereVirtualDiskVolumeSourceFluent(V1VsphereVirtualDiskVolumeSource i private String volumePath; protected void copyInstance(V1VsphereVirtualDiskVolumeSource instance) { - instance = (instance != null ? instance : new V1VsphereVirtualDiskVolumeSource()); + instance = instance != null ? instance : new V1VsphereVirtualDiskVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withStoragePolicyID(instance.getStoragePolicyID()); - this.withStoragePolicyName(instance.getStoragePolicyName()); - this.withVolumePath(instance.getVolumePath()); - } + this.withFsType(instance.getFsType()); + this.withStoragePolicyID(instance.getStoragePolicyID()); + this.withStoragePolicyName(instance.getStoragePolicyName()); + this.withVolumePath(instance.getVolumePath()); + } } public String getFsType() { @@ -84,28 +86,57 @@ public boolean hasVolumePath() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VsphereVirtualDiskVolumeSourceFluent that = (V1VsphereVirtualDiskVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(storagePolicyID, that.storagePolicyID)) return false; - if (!java.util.Objects.equals(storagePolicyName, that.storagePolicyName)) return false; - if (!java.util.Objects.equals(volumePath, that.volumePath)) return false; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(storagePolicyID, that.storagePolicyID))) { + return false; + } + if (!(Objects.equals(storagePolicyName, that.storagePolicyName))) { + return false; + } + if (!(Objects.equals(volumePath, that.volumePath))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(fsType, storagePolicyID, storagePolicyName, volumePath, super.hashCode()); + return Objects.hash(fsType, storagePolicyID, storagePolicyName, volumePath); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (storagePolicyID != null) { sb.append("storagePolicyID:"); sb.append(storagePolicyID + ","); } - if (storagePolicyName != null) { sb.append("storagePolicyName:"); sb.append(storagePolicyName + ","); } - if (volumePath != null) { sb.append("volumePath:"); sb.append(volumePath); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(storagePolicyID == null)) { + sb.append("storagePolicyID:"); + sb.append(storagePolicyID); + sb.append(","); + } + if (!(storagePolicyName == null)) { + sb.append("storagePolicyName:"); + sb.append(storagePolicyName); + sb.append(","); + } + if (!(volumePath == null)) { + sb.append("volumePath:"); + sb.append(volumePath); + } sb.append("}"); return sb.toString(); } 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 efdc4056e4..31111651d1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1WatchEventBuilder extends V1WatchEventFluent implements VisitableBuilder{ public V1WatchEventBuilder() { this(new V1WatchEvent()); 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 c25ce17a29..9acf3e8e81 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1WatchEventFluent> extends BaseFluent{ +public class V1WatchEventFluent> extends BaseFluent{ public V1WatchEventFluent() { } @@ -20,11 +22,11 @@ public V1WatchEventFluent(V1WatchEvent instance) { private String type; protected void copyInstance(V1WatchEvent instance) { - instance = (instance != null ? instance : new V1WatchEvent()); + instance = instance != null ? instance : new V1WatchEvent(); if (instance != null) { - this.withObject(instance.getObject()); - this.withType(instance.getType()); - } + this.withObject(instance.getObject()); + this.withType(instance.getType()); + } } public Object getObject() { @@ -54,24 +56,41 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1WatchEventFluent that = (V1WatchEventFluent) o; - if (!java.util.Objects.equals(_object, that._object)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(_object, that._object))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(_object, type, super.hashCode()); + return Objects.hash(_object, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(_object == null)) { + sb.append("_object:"); + sb.append(_object); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 6638d1360e..d7d1bb6502 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1WebhookConversionBuilder extends V1WebhookConversionFluent implements VisitableBuilder{ public V1WebhookConversionBuilder() { this(new V1WebhookConversion()); 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 3734a0eef9..6cafa46e69 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1WebhookConversionFluent> extends BaseFluent{ +public class V1WebhookConversionFluent> extends BaseFluent{ public V1WebhookConversionFluent() { } @@ -25,11 +28,11 @@ public V1WebhookConversionFluent(V1WebhookConversion instance) { private List conversionReviewVersions; protected void copyInstance(V1WebhookConversion instance) { - instance = (instance != null ? instance : new V1WebhookConversion()); + instance = instance != null ? instance : new V1WebhookConversion(); if (instance != null) { - this.withClientConfig(instance.getClientConfig()); - this.withConversionReviewVersions(instance.getConversionReviewVersions()); - } + this.withClientConfig(instance.getClientConfig()); + this.withConversionReviewVersions(instance.getConversionReviewVersions()); + } } public ApiextensionsV1WebhookClientConfig buildClientConfig() { @@ -61,46 +64,71 @@ public ClientConfigNested withNewClientConfigLike(ApiextensionsV1WebhookClien } public ClientConfigNested editClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(null)); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); } public ClientConfigNested editOrNewClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(new ApiextensionsV1WebhookClientConfigBuilder().build())); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new ApiextensionsV1WebhookClientConfigBuilder().build())); } public ClientConfigNested editOrNewClientConfigLike(ApiextensionsV1WebhookClientConfig item) { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(item)); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); } public A addToConversionReviewVersions(int index,String item) { - if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } this.conversionReviewVersions.add(index, item); - return (A)this; + return (A) this; } public A setToConversionReviewVersions(int index,String item) { - if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} - this.conversionReviewVersions.set(index, item); return (A)this; + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + this.conversionReviewVersions.set(index, item); + return (A) this; } - public A addToConversionReviewVersions(java.lang.String... items) { - if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} - for (String item : items) {this.conversionReviewVersions.add(item);} return (A)this; + public A addToConversionReviewVersions(String... items) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.conversionReviewVersions.add(item); + } + return (A) this; } public A addAllToConversionReviewVersions(Collection items) { - if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} - for (String item : items) {this.conversionReviewVersions.add(item);} return (A)this; + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.conversionReviewVersions.add(item); + } + return (A) this; } - public A removeFromConversionReviewVersions(java.lang.String... items) { - if (this.conversionReviewVersions == null) return (A)this; - for (String item : items) { this.conversionReviewVersions.remove(item);} return (A)this; + public A removeFromConversionReviewVersions(String... items) { + if (this.conversionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.conversionReviewVersions.remove(item); + } + return (A) this; } public A removeAllFromConversionReviewVersions(Collection items) { - if (this.conversionReviewVersions == null) return (A)this; - for (String item : items) { this.conversionReviewVersions.remove(item);} return (A)this; + if (this.conversionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.conversionReviewVersions.remove(item); + } + return (A) this; } public List getConversionReviewVersions() { @@ -149,7 +177,7 @@ public A withConversionReviewVersions(List conversionReviewVersions) { return (A) this; } - public A withConversionReviewVersions(java.lang.String... conversionReviewVersions) { + public A withConversionReviewVersions(String... conversionReviewVersions) { if (this.conversionReviewVersions != null) { this.conversionReviewVersions.clear(); _visitables.remove("conversionReviewVersions"); @@ -163,28 +191,45 @@ public A withConversionReviewVersions(java.lang.String... conversionReviewVersio } public boolean hasConversionReviewVersions() { - return this.conversionReviewVersions != null && !this.conversionReviewVersions.isEmpty(); + return this.conversionReviewVersions != null && !(this.conversionReviewVersions.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1WebhookConversionFluent that = (V1WebhookConversionFluent) o; - if (!java.util.Objects.equals(clientConfig, that.clientConfig)) return false; - if (!java.util.Objects.equals(conversionReviewVersions, that.conversionReviewVersions)) return false; + if (!(Objects.equals(clientConfig, that.clientConfig))) { + return false; + } + if (!(Objects.equals(conversionReviewVersions, that.conversionReviewVersions))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(clientConfig, conversionReviewVersions, super.hashCode()); + return Objects.hash(clientConfig, conversionReviewVersions); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (clientConfig != null) { sb.append("clientConfig:"); sb.append(clientConfig + ","); } - if (conversionReviewVersions != null && !conversionReviewVersions.isEmpty()) { sb.append("conversionReviewVersions:"); sb.append(conversionReviewVersions); } + if (!(clientConfig == null)) { + sb.append("clientConfig:"); + sb.append(clientConfig); + sb.append(","); + } + if (!(conversionReviewVersions == null) && !(conversionReviewVersions.isEmpty())) { + sb.append("conversionReviewVersions:"); + sb.append(conversionReviewVersions); + } sb.append("}"); return sb.toString(); } 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 9eb52fd0f2..54386e14bf 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1WeightedPodAffinityTermBuilder extends V1WeightedPodAffinityTermFluent implements VisitableBuilder{ public V1WeightedPodAffinityTermBuilder() { this(new V1WeightedPodAffinityTerm()); 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 706e21287b..cf41a96a9f 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 @@ -1,17 +1,20 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.lang.Integer; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1WeightedPodAffinityTermFluent> extends BaseFluent{ +public class V1WeightedPodAffinityTermFluent> extends BaseFluent{ public V1WeightedPodAffinityTermFluent() { } @@ -22,11 +25,11 @@ public V1WeightedPodAffinityTermFluent(V1WeightedPodAffinityTerm instance) { private Integer weight; protected void copyInstance(V1WeightedPodAffinityTerm instance) { - instance = (instance != null ? instance : new V1WeightedPodAffinityTerm()); + instance = instance != null ? instance : new V1WeightedPodAffinityTerm(); if (instance != null) { - this.withPodAffinityTerm(instance.getPodAffinityTerm()); - this.withWeight(instance.getWeight()); - } + this.withPodAffinityTerm(instance.getPodAffinityTerm()); + this.withWeight(instance.getWeight()); + } } public V1PodAffinityTerm buildPodAffinityTerm() { @@ -58,15 +61,15 @@ public PodAffinityTermNested withNewPodAffinityTermLike(V1PodAffinityTerm ite } public PodAffinityTermNested editPodAffinityTerm() { - return withNewPodAffinityTermLike(java.util.Optional.ofNullable(buildPodAffinityTerm()).orElse(null)); + return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(null)); } public PodAffinityTermNested editOrNewPodAffinityTerm() { - return withNewPodAffinityTermLike(java.util.Optional.ofNullable(buildPodAffinityTerm()).orElse(new V1PodAffinityTermBuilder().build())); + return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(new V1PodAffinityTermBuilder().build())); } public PodAffinityTermNested editOrNewPodAffinityTermLike(V1PodAffinityTerm item) { - return withNewPodAffinityTermLike(java.util.Optional.ofNullable(buildPodAffinityTerm()).orElse(item)); + return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(item)); } public Integer getWeight() { @@ -83,24 +86,41 @@ public boolean hasWeight() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1WeightedPodAffinityTermFluent that = (V1WeightedPodAffinityTermFluent) o; - if (!java.util.Objects.equals(podAffinityTerm, that.podAffinityTerm)) return false; - if (!java.util.Objects.equals(weight, that.weight)) return false; + if (!(Objects.equals(podAffinityTerm, that.podAffinityTerm))) { + return false; + } + if (!(Objects.equals(weight, that.weight))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(podAffinityTerm, weight, super.hashCode()); + return Objects.hash(podAffinityTerm, weight); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (podAffinityTerm != null) { sb.append("podAffinityTerm:"); sb.append(podAffinityTerm + ","); } - if (weight != null) { sb.append("weight:"); sb.append(weight); } + if (!(podAffinityTerm == null)) { + sb.append("podAffinityTerm:"); + sb.append(podAffinityTerm); + sb.append(","); + } + if (!(weight == null)) { + sb.append("weight:"); + sb.append(weight); + } sb.append("}"); return sb.toString(); } 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 003e7430ba..46fabdaf4d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1WindowsSecurityContextOptionsBuilder extends V1WindowsSecurityContextOptionsFluent implements VisitableBuilder{ public V1WindowsSecurityContextOptionsBuilder() { this(new V1WindowsSecurityContextOptions()); 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 6828106fe7..c1023affea 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1WindowsSecurityContextOptionsFluent> extends BaseFluent{ +public class V1WindowsSecurityContextOptionsFluent> extends BaseFluent{ public V1WindowsSecurityContextOptionsFluent() { } @@ -23,13 +25,13 @@ public V1WindowsSecurityContextOptionsFluent(V1WindowsSecurityContextOptions ins private String runAsUserName; protected void copyInstance(V1WindowsSecurityContextOptions instance) { - instance = (instance != null ? instance : new V1WindowsSecurityContextOptions()); + instance = instance != null ? instance : new V1WindowsSecurityContextOptions(); if (instance != null) { - this.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); - this.withGmsaCredentialSpecName(instance.getGmsaCredentialSpecName()); - this.withHostProcess(instance.getHostProcess()); - this.withRunAsUserName(instance.getRunAsUserName()); - } + this.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); + this.withGmsaCredentialSpecName(instance.getGmsaCredentialSpecName()); + this.withHostProcess(instance.getHostProcess()); + this.withRunAsUserName(instance.getRunAsUserName()); + } } public String getGmsaCredentialSpec() { @@ -85,28 +87,57 @@ public boolean hasRunAsUserName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1WindowsSecurityContextOptionsFluent that = (V1WindowsSecurityContextOptionsFluent) o; - if (!java.util.Objects.equals(gmsaCredentialSpec, that.gmsaCredentialSpec)) return false; - if (!java.util.Objects.equals(gmsaCredentialSpecName, that.gmsaCredentialSpecName)) return false; - if (!java.util.Objects.equals(hostProcess, that.hostProcess)) return false; - if (!java.util.Objects.equals(runAsUserName, that.runAsUserName)) return false; + if (!(Objects.equals(gmsaCredentialSpec, that.gmsaCredentialSpec))) { + return false; + } + if (!(Objects.equals(gmsaCredentialSpecName, that.gmsaCredentialSpecName))) { + return false; + } + if (!(Objects.equals(hostProcess, that.hostProcess))) { + return false; + } + if (!(Objects.equals(runAsUserName, that.runAsUserName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(gmsaCredentialSpec, gmsaCredentialSpecName, hostProcess, runAsUserName, super.hashCode()); + return Objects.hash(gmsaCredentialSpec, gmsaCredentialSpecName, hostProcess, runAsUserName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (gmsaCredentialSpec != null) { sb.append("gmsaCredentialSpec:"); sb.append(gmsaCredentialSpec + ","); } - if (gmsaCredentialSpecName != null) { sb.append("gmsaCredentialSpecName:"); sb.append(gmsaCredentialSpecName + ","); } - if (hostProcess != null) { sb.append("hostProcess:"); sb.append(hostProcess + ","); } - if (runAsUserName != null) { sb.append("runAsUserName:"); sb.append(runAsUserName); } + if (!(gmsaCredentialSpec == null)) { + sb.append("gmsaCredentialSpec:"); + sb.append(gmsaCredentialSpec); + sb.append(","); + } + if (!(gmsaCredentialSpecName == null)) { + sb.append("gmsaCredentialSpecName:"); + sb.append(gmsaCredentialSpecName); + sb.append(","); + } + if (!(hostProcess == null)) { + sb.append("hostProcess:"); + sb.append(hostProcess); + sb.append(","); + } + if (!(runAsUserName == null)) { + sb.append("runAsUserName:"); + sb.append(runAsUserName); + } sb.append("}"); return sb.toString(); } 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 4e647ce8bd..1fd832cf84 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ApplyConfigurationBuilder extends V1alpha1ApplyConfigurationFluent implements VisitableBuilder{ public V1alpha1ApplyConfigurationBuilder() { this(new V1alpha1ApplyConfiguration()); 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 3bbf15b857..b90fdfb1d2 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ApplyConfigurationFluent> extends BaseFluent{ +public class V1alpha1ApplyConfigurationFluent> extends BaseFluent{ public V1alpha1ApplyConfigurationFluent() { } @@ -19,10 +21,10 @@ public V1alpha1ApplyConfigurationFluent(V1alpha1ApplyConfiguration instance) { private String expression; protected void copyInstance(V1alpha1ApplyConfiguration instance) { - instance = (instance != null ? instance : new V1alpha1ApplyConfiguration()); + instance = instance != null ? instance : new V1alpha1ApplyConfiguration(); if (instance != null) { - this.withExpression(instance.getExpression()); - } + this.withExpression(instance.getExpression()); + } } public String getExpression() { @@ -39,22 +41,33 @@ public boolean hasExpression() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1ApplyConfigurationFluent that = (V1alpha1ApplyConfigurationFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, super.hashCode()); + return Objects.hash(expression); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java index fb59a9957f..d00857e67f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ClusterTrustBundleBuilder extends V1alpha1ClusterTrustBundleFluent implements VisitableBuilder{ public V1alpha1ClusterTrustBundleBuilder() { this(new V1alpha1ClusterTrustBundle()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java index 6f1db345a4..445c660ff5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ClusterTrustBundleFluent> extends BaseFluent{ +public class V1alpha1ClusterTrustBundleFluent> extends BaseFluent{ public V1alpha1ClusterTrustBundleFluent() { } @@ -23,13 +26,13 @@ public V1alpha1ClusterTrustBundleFluent(V1alpha1ClusterTrustBundle instance) { private V1alpha1ClusterTrustBundleSpecBuilder spec; protected void copyInstance(V1alpha1ClusterTrustBundle instance) { - instance = (instance != null ? instance : new V1alpha1ClusterTrustBundle()); + instance = instance != null ? instance : new V1alpha1ClusterTrustBundle(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1alpha1ClusterTrustBundleSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1alpha1ClusterTrustBundleSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1ClusterTrustBundleSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1ClusterTrustBundleSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1alpha1ClusterTrustBundleSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1ClusterTrustBundleFluent that = (V1alpha1ClusterTrustBundleFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java index f9c8e08d34..8508f20b8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ClusterTrustBundleListBuilder extends V1alpha1ClusterTrustBundleListFluent implements VisitableBuilder{ public V1alpha1ClusterTrustBundleListBuilder() { this(new V1alpha1ClusterTrustBundleList()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java index afe4ace160..db1fccb47e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ClusterTrustBundleListFluent> extends BaseFluent{ +public class V1alpha1ClusterTrustBundleListFluent> extends BaseFluent{ public V1alpha1ClusterTrustBundleListFluent() { } @@ -29,13 +32,13 @@ public V1alpha1ClusterTrustBundleListFluent(V1alpha1ClusterTrustBundleList insta private V1ListMetaBuilder metadata; protected void copyInstance(V1alpha1ClusterTrustBundleList instance) { - instance = (instance != null ? instance : new V1alpha1ClusterTrustBundleList()); + instance = instance != null ? instance : new V1alpha1ClusterTrustBundleList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1alpha1ClusterTrustBundle item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1alpha1ClusterTrustBundle item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1alpha1ClusterTrustBundle item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1alpha1ClusterTrustBundle item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ClusterTrustBundle item : items) {V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1alpha1ClusterTrustBundle... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ClusterTrustBundle item : items) {V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle... items) { - if (this.items == null) return (A)this; - for (V1alpha1ClusterTrustBundle item : items) {V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1alpha1ClusterTrustBundle... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1ClusterTrustBundle item : items) {V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1alpha1ClusterTrustBundleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1ClusterTrustBundleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle... items) { + public A withItems(V1alpha1ClusterTrustBundle... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundl } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1alpha1ClusterTrustBundle item) } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1ClusterTrustBundleListFluent that = (V1alpha1ClusterTrustBundleListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1alpha1ClusterTrustBundleFluent implements VisitableBuilder{ public V1alpha1ClusterTrustBundleSpecBuilder() { this(new V1alpha1ClusterTrustBundleSpec()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java index 82ad5ac4fd..a856719c24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ClusterTrustBundleSpecFluent> extends BaseFluent{ +public class V1alpha1ClusterTrustBundleSpecFluent> extends BaseFluent{ public V1alpha1ClusterTrustBundleSpecFluent() { } @@ -20,11 +22,11 @@ public V1alpha1ClusterTrustBundleSpecFluent(V1alpha1ClusterTrustBundleSpec insta private String trustBundle; protected void copyInstance(V1alpha1ClusterTrustBundleSpec instance) { - instance = (instance != null ? instance : new V1alpha1ClusterTrustBundleSpec()); + instance = instance != null ? instance : new V1alpha1ClusterTrustBundleSpec(); if (instance != null) { - this.withSignerName(instance.getSignerName()); - this.withTrustBundle(instance.getTrustBundle()); - } + this.withSignerName(instance.getSignerName()); + this.withTrustBundle(instance.getTrustBundle()); + } } public String getSignerName() { @@ -54,24 +56,41 @@ public boolean hasTrustBundle() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1ClusterTrustBundleSpecFluent that = (V1alpha1ClusterTrustBundleSpecFluent) o; - if (!java.util.Objects.equals(signerName, that.signerName)) return false; - if (!java.util.Objects.equals(trustBundle, that.trustBundle)) return false; + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(trustBundle, that.trustBundle))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(signerName, trustBundle, super.hashCode()); + return Objects.hash(signerName, trustBundle); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (signerName != null) { sb.append("signerName:"); sb.append(signerName + ","); } - if (trustBundle != null) { sb.append("trustBundle:"); sb.append(trustBundle); } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + sb.append(","); + } + if (!(trustBundle == null)) { + sb.append("trustBundle:"); + sb.append(trustBundle); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java index fe63812c20..eeb1c72b63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1GroupVersionResourceBuilder extends V1alpha1GroupVersionResourceFluent implements VisitableBuilder{ public V1alpha1GroupVersionResourceBuilder() { this(new V1alpha1GroupVersionResource()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java index 125bf9643c..d92ea2a9cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1GroupVersionResourceFluent> extends BaseFluent{ +public class V1alpha1GroupVersionResourceFluent> extends BaseFluent{ public V1alpha1GroupVersionResourceFluent() { } @@ -21,12 +23,12 @@ public V1alpha1GroupVersionResourceFluent(V1alpha1GroupVersionResource instance) private String version; protected void copyInstance(V1alpha1GroupVersionResource instance) { - instance = (instance != null ? instance : new V1alpha1GroupVersionResource()); + instance = instance != null ? instance : new V1alpha1GroupVersionResource(); if (instance != null) { - this.withGroup(instance.getGroup()); - this.withResource(instance.getResource()); - this.withVersion(instance.getVersion()); - } + this.withGroup(instance.getGroup()); + this.withResource(instance.getResource()); + this.withVersion(instance.getVersion()); + } } public String getGroup() { @@ -69,26 +71,49 @@ public boolean hasVersion() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1GroupVersionResourceFluent that = (V1alpha1GroupVersionResourceFluent) o; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(group, resource, version, super.hashCode()); + return Objects.hash(group, resource, version); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } sb.append("}"); return sb.toString(); } 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 f8a5992a31..9c45f30b2a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1JSONPatchBuilder extends V1alpha1JSONPatchFluent implements VisitableBuilder{ public V1alpha1JSONPatchBuilder() { this(new V1alpha1JSONPatch()); 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 076e987f92..0b063d178d 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1JSONPatchFluent> extends BaseFluent{ +public class V1alpha1JSONPatchFluent> extends BaseFluent{ public V1alpha1JSONPatchFluent() { } @@ -19,10 +21,10 @@ public V1alpha1JSONPatchFluent(V1alpha1JSONPatch instance) { private String expression; protected void copyInstance(V1alpha1JSONPatch instance) { - instance = (instance != null ? instance : new V1alpha1JSONPatch()); + instance = instance != null ? instance : new V1alpha1JSONPatch(); if (instance != null) { - this.withExpression(instance.getExpression()); - } + this.withExpression(instance.getExpression()); + } } public String getExpression() { @@ -39,22 +41,33 @@ public boolean hasExpression() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1JSONPatchFluent that = (V1alpha1JSONPatchFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, super.hashCode()); + return Objects.hash(expression); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } sb.append("}"); return sb.toString(); } 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 77a5b39c19..00dafe9187 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MatchConditionBuilder extends V1alpha1MatchConditionFluent implements VisitableBuilder{ public V1alpha1MatchConditionBuilder() { this(new V1alpha1MatchCondition()); 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 c04b3816cc..77440a9a15 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MatchConditionFluent> extends BaseFluent{ +public class V1alpha1MatchConditionFluent> extends BaseFluent{ public V1alpha1MatchConditionFluent() { } @@ -20,11 +22,11 @@ public V1alpha1MatchConditionFluent(V1alpha1MatchCondition instance) { private String name; protected void copyInstance(V1alpha1MatchCondition instance) { - instance = (instance != null ? instance : new V1alpha1MatchCondition()); + instance = instance != null ? instance : new V1alpha1MatchCondition(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } } public String getExpression() { @@ -54,24 +56,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1MatchConditionFluent that = (V1alpha1MatchConditionFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, name, super.hashCode()); + return Objects.hash(expression, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + 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(); } 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 05139e28e2..572d6d3650 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MatchResourcesBuilder extends V1alpha1MatchResourcesFluent implements VisitableBuilder{ public V1alpha1MatchResourcesBuilder() { this(new V1alpha1MatchResources()); 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 e2346a5fe9..1cbda26a63 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MatchResourcesFluent> extends BaseFluent{ +public class V1alpha1MatchResourcesFluent> extends BaseFluent{ public V1alpha1MatchResourcesFluent() { } @@ -30,18 +33,20 @@ public V1alpha1MatchResourcesFluent(V1alpha1MatchResources instance) { private ArrayList resourceRules; protected void copyInstance(V1alpha1MatchResources instance) { - instance = (instance != null ? instance : new V1alpha1MatchResources()); + instance = instance != null ? instance : new V1alpha1MatchResources(); if (instance != null) { - this.withExcludeResourceRules(instance.getExcludeResourceRules()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withResourceRules(instance.getResourceRules()); - } + this.withExcludeResourceRules(instance.getExcludeResourceRules()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withResourceRules(instance.getResourceRules()); + } } public A addToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); @@ -50,11 +55,13 @@ public A addToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations ite _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); @@ -63,41 +70,71 @@ public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations ite _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToExcludeResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + public A addToExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; } public A addAllToExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; } - public A removeFromExcludeResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + public A removeFromExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } public A removeAllFromExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromExcludeResourceRules(Predicate predicate) { - if (excludeResourceRules == null) return (A) this; - final Iterator each = excludeResourceRules.iterator(); - final List visitables = _visitables.get("excludeResourceRules"); + if (excludeResourceRules == null) { + return (A) this; + } + Iterator each = excludeResourceRules.iterator(); + List visitables = _visitables.get("excludeResourceRules"); while (each.hasNext()) { - V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildExcludeResourceRules() { @@ -149,7 +186,7 @@ public A withExcludeResourceRules(List excludeR return (A) this; } - public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... excludeResourceRules) { + public A withExcludeResourceRules(V1alpha1NamedRuleWithOperations... excludeResourceRules) { if (this.excludeResourceRules != null) { this.excludeResourceRules.clear(); _visitables.remove("excludeResourceRules"); @@ -163,7 +200,7 @@ public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1alpha1Na } public boolean hasExcludeResourceRules() { - return this.excludeResourceRules != null && !this.excludeResourceRules.isEmpty(); + return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); } public ExcludeResourceRulesNested addNewExcludeResourceRule() { @@ -179,28 +216,39 @@ public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1a } public ExcludeResourceRulesNested editExcludeResourceRule(int index) { - if (excludeResourceRules.size() <= index) throw new RuntimeException("Can't edit excludeResourceRules. Index exceeds size."); - return setNewExcludeResourceRuleLike(index, buildExcludeResourceRule(index)); + if (index <= excludeResourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } public ExcludeResourceRulesNested editFirstExcludeResourceRule() { - if (excludeResourceRules.size() == 0) throw new RuntimeException("Can't edit first excludeResourceRules. The list is empty."); - return setNewExcludeResourceRuleLike(0, buildExcludeResourceRule(0)); + if (excludeResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(0, this.buildExcludeResourceRule(0)); } public ExcludeResourceRulesNested editLastExcludeResourceRule() { int index = excludeResourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last excludeResourceRules. The list is empty."); - return setNewExcludeResourceRuleLike(index, buildExcludeResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i withNewNamespaceSelectorLike(V1LabelSelector i } public NamespaceSelectorNested editNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(null)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } public V1LabelSelector buildObjectSelector() { @@ -285,19 +333,21 @@ public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { } public ObjectSelectorNested editObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(null)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } public ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(item)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } public A addToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -306,11 +356,13 @@ public A addToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { _visitables.get("resourceRules").add(builder); resourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -319,41 +371,71 @@ public A setToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { _visitables.get("resourceRules").add(builder); resourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public A addToResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... items) { - if (this.resourceRules == null) return (A)this; - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public A removeFromResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + if (this.resourceRules == null) { + return (A) this; + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromResourceRules(Predicate predicate) { - if (resourceRules == null) return (A) this; - final Iterator each = resourceRules.iterator(); - final List visitables = _visitables.get("resourceRules"); + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); while (each.hasNext()) { - V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResourceRules() { @@ -405,7 +487,7 @@ public A withResourceRules(List resourceRules) return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... resourceRules) { + public A withResourceRules(V1alpha1NamedRuleWithOperations... resourceRules) { if (this.resourceRules != null) { this.resourceRules.clear(); _visitables.remove("resourceRules"); @@ -419,7 +501,7 @@ public A withResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRule } public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } public ResourceRulesNested addNewResourceRule() { @@ -435,55 +517,101 @@ public ResourceRulesNested setNewResourceRuleLike(int index,V1alpha1NamedRule } public ResourceRulesNested editResourceRule(int index) { - if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index <= resourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); - return setNewResourceRuleLike(0, buildResourceRule(0)); + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); } public ResourceRulesNested editLastResourceRule() { int index = resourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1alpha1NamedRuleWithOperatio int index; public N and() { - return (N) V1alpha1MatchResourcesFluent.this.setToExcludeResourceRules(index,builder.build()); + return (N) V1alpha1MatchResourcesFluent.this.setToExcludeResourceRules(index, builder.build()); } public N endExcludeResourceRule() { @@ -546,7 +674,7 @@ public class ResourceRulesNested extends V1alpha1NamedRuleWithOperationsFluen int index; public N and() { - return (N) V1alpha1MatchResourcesFluent.this.setToResourceRules(index,builder.build()); + return (N) V1alpha1MatchResourcesFluent.this.setToResourceRules(index, builder.build()); } public N endResourceRule() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java index 408d3bb89c..5bb338525d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MigrationConditionBuilder extends V1alpha1MigrationConditionFluent implements VisitableBuilder{ public V1alpha1MigrationConditionBuilder() { this(new V1alpha1MigrationCondition()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java index cd557f599d..719d813778 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MigrationConditionFluent> extends BaseFluent{ +public class V1alpha1MigrationConditionFluent> extends BaseFluent{ public V1alpha1MigrationConditionFluent() { } @@ -24,14 +26,14 @@ public V1alpha1MigrationConditionFluent(V1alpha1MigrationCondition instance) { private String type; protected void copyInstance(V1alpha1MigrationCondition instance) { - instance = (instance != null ? instance : new V1alpha1MigrationCondition()); + instance = instance != null ? instance : new V1alpha1MigrationCondition(); if (instance != null) { - this.withLastUpdateTime(instance.getLastUpdateTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastUpdateTime(instance.getLastUpdateTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastUpdateTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1MigrationConditionFluent that = (V1alpha1MigrationConditionFluent) o; - if (!java.util.Objects.equals(lastUpdateTime, that.lastUpdateTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(lastUpdateTime, that.lastUpdateTime))) { + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastUpdateTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastUpdateTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastUpdateTime != null) { sb.append("lastUpdateTime:"); sb.append(lastUpdateTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(lastUpdateTime == null)) { + sb.append("lastUpdateTime:"); + sb.append(lastUpdateTime); + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 a760da766c..232699bab9 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyBindingBuilder extends V1alpha1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ public V1alpha1MutatingAdmissionPolicyBindingBuilder() { this(new V1alpha1MutatingAdmissionPolicyBinding()); 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 e061e75d7d..477e1ee43b 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ +public class V1alpha1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ public V1alpha1MutatingAdmissionPolicyBindingFluent() { } @@ -23,13 +26,13 @@ public V1alpha1MutatingAdmissionPolicyBindingFluent(V1alpha1MutatingAdmissionPol private V1alpha1MutatingAdmissionPolicyBindingSpecBuilder spec; protected void copyInstance(V1alpha1MutatingAdmissionPolicyBinding instance) { - instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBinding()); + instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBinding(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1alpha1MutatingAdmissionPolicyBindingSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpec } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1MutatingAdmissionPolicyBindingFluent that = (V1alpha1MutatingAdmissionPolicyBindingFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 55e03c6217..300bcf2082 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyBindingListBuilder extends V1alpha1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ public V1alpha1MutatingAdmissionPolicyBindingListBuilder() { this(new V1alpha1MutatingAdmissionPolicyBindingList()); 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 4ba5c901fe..9a652d59ad 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ +public class V1alpha1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ public V1alpha1MutatingAdmissionPolicyBindingListFluent() { } @@ -29,13 +32,13 @@ public V1alpha1MutatingAdmissionPolicyBindingListFluent(V1alpha1MutatingAdmissio private V1ListMetaBuilder metadata; protected void copyInstance(V1alpha1MutatingAdmissionPolicyBindingList instance) { - instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBindingList()); + instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBindingList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBinding... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1MutatingAdmissionPolicyBinding item : items) {V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1alpha1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1MutatingAdmissionPolicyBinding item : items) {V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBinding... items) { - if (this.items == null) return (A)this; - for (V1alpha1MutatingAdmissionPolicyBinding item : items) {V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1alpha1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1MutatingAdmissionPolicyBinding item : items) {V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1alpha1MutatingAdmissionPolicyBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBinding... items) { + public A withItems(V1alpha1MutatingAdmissionPolicyBinding... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmission } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicyBi } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1MutatingAdmissionPolicyBindingListFluent that = (V1alpha1MutatingAdmissionPolicyBindingListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1alpha1MutatingAdmissionPolicyBindingFluent int index; public N and() { - return (N) V1alpha1MutatingAdmissionPolicyBindingListFluent.this.setToItems(index,builder.build()); + return (N) V1alpha1MutatingAdmissionPolicyBindingListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 544f6ff6a7..81eed44b62 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyBindingSpecBuilder extends V1alpha1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder() { this(new V1alpha1MutatingAdmissionPolicyBindingSpec()); 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 801d8cc1d8..f3c28bd052 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ +public class V1alpha1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ public V1alpha1MutatingAdmissionPolicyBindingSpecFluent() { } @@ -22,12 +25,12 @@ public V1alpha1MutatingAdmissionPolicyBindingSpecFluent(V1alpha1MutatingAdmissio private String policyName; protected void copyInstance(V1alpha1MutatingAdmissionPolicyBindingSpec instance) { - instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBindingSpec()); + instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBindingSpec(); if (instance != null) { - this.withMatchResources(instance.getMatchResources()); - this.withParamRef(instance.getParamRef()); - this.withPolicyName(instance.getPolicyName()); - } + this.withMatchResources(instance.getMatchResources()); + this.withParamRef(instance.getParamRef()); + this.withPolicyName(instance.getPolicyName()); + } } public V1alpha1MatchResources buildMatchResources() { @@ -59,15 +62,15 @@ public MatchResourcesNested withNewMatchResourcesLike(V1alpha1MatchResources } public MatchResourcesNested editMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(null)); + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(null)); } public MatchResourcesNested editOrNewMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(new V1alpha1MatchResourcesBuilder().build())); + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(new V1alpha1MatchResourcesBuilder().build())); } public MatchResourcesNested editOrNewMatchResourcesLike(V1alpha1MatchResources item) { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(item)); + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); } public V1alpha1ParamRef buildParamRef() { @@ -99,15 +102,15 @@ public ParamRefNested withNewParamRefLike(V1alpha1ParamRef item) { } public ParamRefNested editParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(null)); + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); } public ParamRefNested editOrNewParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(new V1alpha1ParamRefBuilder().build())); + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1alpha1ParamRefBuilder().build())); } public ParamRefNested editOrNewParamRefLike(V1alpha1ParamRef item) { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(item)); + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); } public String getPolicyName() { @@ -124,26 +127,49 @@ public boolean hasPolicyName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1MutatingAdmissionPolicyBindingSpecFluent that = (V1alpha1MutatingAdmissionPolicyBindingSpecFluent) o; - if (!java.util.Objects.equals(matchResources, that.matchResources)) return false; - if (!java.util.Objects.equals(paramRef, that.paramRef)) return false; - if (!java.util.Objects.equals(policyName, that.policyName)) return false; + if (!(Objects.equals(matchResources, that.matchResources))) { + return false; + } + if (!(Objects.equals(paramRef, that.paramRef))) { + return false; + } + if (!(Objects.equals(policyName, that.policyName))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(matchResources, paramRef, policyName, super.hashCode()); + return Objects.hash(matchResources, paramRef, policyName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (matchResources != null) { sb.append("matchResources:"); sb.append(matchResources + ","); } - if (paramRef != null) { sb.append("paramRef:"); sb.append(paramRef + ","); } - if (policyName != null) { sb.append("policyName:"); sb.append(policyName); } + if (!(matchResources == null)) { + sb.append("matchResources:"); + sb.append(matchResources); + sb.append(","); + } + if (!(paramRef == null)) { + sb.append("paramRef:"); + sb.append(paramRef); + sb.append(","); + } + if (!(policyName == null)) { + sb.append("policyName:"); + sb.append(policyName); + } sb.append("}"); return sb.toString(); } 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 44cbf39a7b..7c55d1c091 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyBuilder extends V1alpha1MutatingAdmissionPolicyFluent implements VisitableBuilder{ public V1alpha1MutatingAdmissionPolicyBuilder() { this(new V1alpha1MutatingAdmissionPolicy()); 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 29782bbf5b..0e0b03bd85 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyFluent> extends BaseFluent{ +public class V1alpha1MutatingAdmissionPolicyFluent> extends BaseFluent{ public V1alpha1MutatingAdmissionPolicyFluent() { } @@ -23,13 +26,13 @@ public V1alpha1MutatingAdmissionPolicyFluent(V1alpha1MutatingAdmissionPolicy ins private V1alpha1MutatingAdmissionPolicySpecBuilder spec; protected void copyInstance(V1alpha1MutatingAdmissionPolicy instance) { - instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicy()); + instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicy(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1alpha1MutatingAdmissionPolicySpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicySpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicySpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1MutatingAdmissionPolicyFluent that = (V1alpha1MutatingAdmissionPolicyFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 85cd198287..45078d10ed 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyListBuilder extends V1alpha1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ public V1alpha1MutatingAdmissionPolicyListBuilder() { this(new V1alpha1MutatingAdmissionPolicyList()); 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 7fe0e85595..58f8972142 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicyListFluent> extends BaseFluent{ +public class V1alpha1MutatingAdmissionPolicyListFluent> extends BaseFluent{ public V1alpha1MutatingAdmissionPolicyListFluent() { } @@ -29,13 +32,13 @@ public V1alpha1MutatingAdmissionPolicyListFluent(V1alpha1MutatingAdmissionPolicy private V1ListMetaBuilder metadata; protected void copyInstance(V1alpha1MutatingAdmissionPolicyList instance) { - instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicyList()); + instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1alpha1MutatingAdmissionPolicy item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1alpha1MutatingAdmissionPolicy item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1alpha1MutatingAdmissionPolicy item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1alpha1MutatingAdmissionPolicy item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicy... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1MutatingAdmissionPolicy item : items) {V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1alpha1MutatingAdmissionPolicy... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1MutatingAdmissionPolicy item : items) { + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1MutatingAdmissionPolicy item : items) {V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1MutatingAdmissionPolicy item : items) { + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicy... items) { - if (this.items == null) return (A)this; - for (V1alpha1MutatingAdmissionPolicy item : items) {V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1alpha1MutatingAdmissionPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1MutatingAdmissionPolicy item : items) { + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1MutatingAdmissionPolicy item : items) {V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1alpha1MutatingAdmissionPolicy item : items) { + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1alpha1MutatingAdmissionPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1MutatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicy... items) { + public A withItems(V1alpha1MutatingAdmissionPolicy... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha1MutatingAdmission } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicy i } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1MutatingAdmissionPolicyListFluent that = (V1alpha1MutatingAdmissionPolicyListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1alpha1MutatingAdmissionPolicyFluent implements VisitableBuilder{ public V1alpha1MutatingAdmissionPolicySpecBuilder() { this(new V1alpha1MutatingAdmissionPolicySpec()); 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 7851caedfd..19f9827ecd 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ +public class V1alpha1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ public V1alpha1MutatingAdmissionPolicySpecFluent() { } @@ -32,16 +35,16 @@ public V1alpha1MutatingAdmissionPolicySpecFluent(V1alpha1MutatingAdmissionPolicy private ArrayList variables; protected void copyInstance(V1alpha1MutatingAdmissionPolicySpec instance) { - instance = (instance != null ? instance : new V1alpha1MutatingAdmissionPolicySpec()); + instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicySpec(); if (instance != null) { - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchConstraints(instance.getMatchConstraints()); - this.withMutations(instance.getMutations()); - this.withParamKind(instance.getParamKind()); - this.withReinvocationPolicy(instance.getReinvocationPolicy()); - this.withVariables(instance.getVariables()); - } + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchConstraints(instance.getMatchConstraints()); + this.withMutations(instance.getMutations()); + this.withParamKind(instance.getParamKind()); + this.withReinvocationPolicy(instance.getReinvocationPolicy()); + this.withVariables(instance.getVariables()); + } } public String getFailurePolicy() { @@ -58,7 +61,9 @@ public boolean hasFailurePolicy() { } public A addToMatchConditions(int index,V1alpha1MatchCondition item) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); @@ -67,11 +72,13 @@ public A addToMatchConditions(int index,V1alpha1MatchCondition item) { _visitables.get("matchConditions").add(builder); matchConditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToMatchConditions(int index,V1alpha1MatchCondition item) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); if (index < 0 || index >= matchConditions.size()) { _visitables.get("matchConditions").add(builder); @@ -80,41 +87,71 @@ public A setToMatchConditions(int index,V1alpha1MatchCondition item) { _visitables.get("matchConditions").add(builder); matchConditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCondition... items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + public A addToMatchConditions(V1alpha1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1alpha1MatchCondition item : items) { + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1alpha1MatchCondition item : items) { + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } - public A removeFromMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCondition... items) { - if (this.matchConditions == null) return (A)this; - for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + public A removeFromMatchConditions(V1alpha1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1alpha1MatchCondition item : items) { + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) return (A)this; - for (V1alpha1MatchCondition item : items) {V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; + if (this.matchConditions == null) { + return (A) this; + } + for (V1alpha1MatchCondition item : items) { + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) return (A) this; - final Iterator each = matchConditions.iterator(); - final List visitables = _visitables.get("matchConditions"); + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); while (each.hasNext()) { - V1alpha1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMatchConditions() { @@ -166,7 +203,7 @@ public A withMatchConditions(List matchConditions) { return (A) this; } - public A withMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCondition... matchConditions) { + public A withMatchConditions(V1alpha1MatchCondition... matchConditions) { if (this.matchConditions != null) { this.matchConditions.clear(); _visitables.remove("matchConditions"); @@ -180,7 +217,7 @@ public A withMatchConditions(io.kubernetes.client.openapi.models.V1alpha1MatchCo } public boolean hasMatchConditions() { - return this.matchConditions != null && !this.matchConditions.isEmpty(); + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } public MatchConditionsNested addNewMatchCondition() { @@ -196,28 +233,39 @@ public MatchConditionsNested setNewMatchConditionLike(int index,V1alpha1Match } public MatchConditionsNested editMatchCondition(int index) { - if (matchConditions.size() <= index) throw new RuntimeException("Can't edit matchConditions. Index exceeds size."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); + if (index <= matchConditions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) throw new RuntimeException("Can't edit first matchConditions. The list is empty."); - return setNewMatchConditionLike(0, buildMatchCondition(0)); + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); } public MatchConditionsNested editLastMatchCondition() { int index = matchConditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchConditions. The list is empty."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { int index = -1; - for (int i=0;i withNewMatchConstraintsLike(V1alpha1MatchResour } public MatchConstraintsNested editMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(null)); + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); } public MatchConstraintsNested editOrNewMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(new V1alpha1MatchResourcesBuilder().build())); + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1alpha1MatchResourcesBuilder().build())); } public MatchConstraintsNested editOrNewMatchConstraintsLike(V1alpha1MatchResources item) { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(item)); + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); } public A addToMutations(int index,V1alpha1Mutation item) { - if (this.mutations == null) {this.mutations = new ArrayList();} + if (this.mutations == null) { + this.mutations = new ArrayList(); + } V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); if (index < 0 || index >= mutations.size()) { _visitables.get("mutations").add(builder); @@ -270,11 +320,13 @@ public A addToMutations(int index,V1alpha1Mutation item) { _visitables.get("mutations").add(builder); mutations.add(index, builder); } - return (A)this; + return (A) this; } public A setToMutations(int index,V1alpha1Mutation item) { - if (this.mutations == null) {this.mutations = new ArrayList();} + if (this.mutations == null) { + this.mutations = new ArrayList(); + } V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); if (index < 0 || index >= mutations.size()) { _visitables.get("mutations").add(builder); @@ -283,41 +335,71 @@ public A setToMutations(int index,V1alpha1Mutation item) { _visitables.get("mutations").add(builder); mutations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMutations(io.kubernetes.client.openapi.models.V1alpha1Mutation... items) { - if (this.mutations == null) {this.mutations = new ArrayList();} - for (V1alpha1Mutation item : items) {V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item);_visitables.get("mutations").add(builder);this.mutations.add(builder);} return (A)this; + public A addToMutations(V1alpha1Mutation... items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1alpha1Mutation item : items) { + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; } public A addAllToMutations(Collection items) { - if (this.mutations == null) {this.mutations = new ArrayList();} - for (V1alpha1Mutation item : items) {V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item);_visitables.get("mutations").add(builder);this.mutations.add(builder);} return (A)this; + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1alpha1Mutation item : items) { + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; } - public A removeFromMutations(io.kubernetes.client.openapi.models.V1alpha1Mutation... items) { - if (this.mutations == null) return (A)this; - for (V1alpha1Mutation item : items) {V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item);_visitables.get("mutations").remove(builder); this.mutations.remove(builder);} return (A)this; + public A removeFromMutations(V1alpha1Mutation... items) { + if (this.mutations == null) { + return (A) this; + } + for (V1alpha1Mutation item : items) { + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; } public A removeAllFromMutations(Collection items) { - if (this.mutations == null) return (A)this; - for (V1alpha1Mutation item : items) {V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item);_visitables.get("mutations").remove(builder); this.mutations.remove(builder);} return (A)this; + if (this.mutations == null) { + return (A) this; + } + for (V1alpha1Mutation item : items) { + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; } public A removeMatchingFromMutations(Predicate predicate) { - if (mutations == null) return (A) this; - final Iterator each = mutations.iterator(); - final List visitables = _visitables.get("mutations"); + if (mutations == null) { + return (A) this; + } + Iterator each = mutations.iterator(); + List visitables = _visitables.get("mutations"); while (each.hasNext()) { - V1alpha1MutationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1MutationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMutations() { @@ -369,7 +451,7 @@ public A withMutations(List mutations) { return (A) this; } - public A withMutations(io.kubernetes.client.openapi.models.V1alpha1Mutation... mutations) { + public A withMutations(V1alpha1Mutation... mutations) { if (this.mutations != null) { this.mutations.clear(); _visitables.remove("mutations"); @@ -383,7 +465,7 @@ public A withMutations(io.kubernetes.client.openapi.models.V1alpha1Mutation... m } public boolean hasMutations() { - return this.mutations != null && !this.mutations.isEmpty(); + return this.mutations != null && !(this.mutations.isEmpty()); } public MutationsNested addNewMutation() { @@ -399,28 +481,39 @@ public MutationsNested setNewMutationLike(int index,V1alpha1Mutation item) { } public MutationsNested editMutation(int index) { - if (mutations.size() <= index) throw new RuntimeException("Can't edit mutations. Index exceeds size."); - return setNewMutationLike(index, buildMutation(index)); + if (index <= mutations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); } public MutationsNested editFirstMutation() { - if (mutations.size() == 0) throw new RuntimeException("Can't edit first mutations. The list is empty."); - return setNewMutationLike(0, buildMutation(0)); + if (mutations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(0, this.buildMutation(0)); } public MutationsNested editLastMutation() { int index = mutations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last mutations. The list is empty."); - return setNewMutationLike(index, buildMutation(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); } public MutationsNested editMatchingMutation(Predicate predicate) { int index = -1; - for (int i=0;i withNewParamKindLike(V1alpha1ParamKind item) { } public ParamKindNested editParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(null)); + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); } public ParamKindNested editOrNewParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(new V1alpha1ParamKindBuilder().build())); + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1alpha1ParamKindBuilder().build())); } public ParamKindNested editOrNewParamKindLike(V1alpha1ParamKind item) { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(item)); + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); } public String getReinvocationPolicy() { @@ -477,7 +570,9 @@ public boolean hasReinvocationPolicy() { } public A addToVariables(int index,V1alpha1Variable item) { - if (this.variables == null) {this.variables = new ArrayList();} + if (this.variables == null) { + this.variables = new ArrayList(); + } V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); @@ -486,11 +581,13 @@ public A addToVariables(int index,V1alpha1Variable item) { _visitables.get("variables").add(builder); variables.add(index, builder); } - return (A)this; + return (A) this; } public A setToVariables(int index,V1alpha1Variable item) { - if (this.variables == null) {this.variables = new ArrayList();} + if (this.variables == null) { + this.variables = new ArrayList(); + } V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); if (index < 0 || index >= variables.size()) { _visitables.get("variables").add(builder); @@ -499,41 +596,71 @@ public A setToVariables(int index,V1alpha1Variable item) { _visitables.get("variables").add(builder); variables.set(index, builder); } - return (A)this; + return (A) this; } - public A addToVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... items) { - if (this.variables == null) {this.variables = new ArrayList();} - for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; + public A addToVariables(V1alpha1Variable... items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1alpha1Variable item : items) { + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; } public A addAllToVariables(Collection items) { - if (this.variables == null) {this.variables = new ArrayList();} - for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1alpha1Variable item : items) { + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; } - public A removeFromVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... items) { - if (this.variables == null) return (A)this; - for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; + public A removeFromVariables(V1alpha1Variable... items) { + if (this.variables == null) { + return (A) this; + } + for (V1alpha1Variable item : items) { + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; } public A removeAllFromVariables(Collection items) { - if (this.variables == null) return (A)this; - for (V1alpha1Variable item : items) {V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; + if (this.variables == null) { + return (A) this; + } + for (V1alpha1Variable item : items) { + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; } public A removeMatchingFromVariables(Predicate predicate) { - if (variables == null) return (A) this; - final Iterator each = variables.iterator(); - final List visitables = _visitables.get("variables"); + if (variables == null) { + return (A) this; + } + Iterator each = variables.iterator(); + List visitables = _visitables.get("variables"); while (each.hasNext()) { - V1alpha1VariableBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildVariables() { @@ -585,7 +712,7 @@ public A withVariables(List variables) { return (A) this; } - public A withVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... variables) { + public A withVariables(V1alpha1Variable... variables) { if (this.variables != null) { this.variables.clear(); _visitables.remove("variables"); @@ -599,7 +726,7 @@ public A withVariables(io.kubernetes.client.openapi.models.V1alpha1Variable... v } public boolean hasVariables() { - return this.variables != null && !this.variables.isEmpty(); + return this.variables != null && !(this.variables.isEmpty()); } public VariablesNested addNewVariable() { @@ -615,59 +742,117 @@ public VariablesNested setNewVariableLike(int index,V1alpha1Variable item) { } public VariablesNested editVariable(int index) { - if (variables.size() <= index) throw new RuntimeException("Can't edit variables. Index exceeds size."); - return setNewVariableLike(index, buildVariable(index)); + if (index <= variables.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); } public VariablesNested editFirstVariable() { - if (variables.size() == 0) throw new RuntimeException("Can't edit first variables. The list is empty."); - return setNewVariableLike(0, buildVariable(0)); + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(0, this.buildVariable(0)); } public VariablesNested editLastVariable() { int index = variables.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last variables. The list is empty."); - return setNewVariableLike(index, buildVariable(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); } public VariablesNested editMatchingVariable(Predicate predicate) { int index = -1; - for (int i=0;i extends V1alpha1MatchConditionFluent extends V1alpha1MutationFluent extends V1alpha1VariableFluent implements VisitableBuilder{ public V1alpha1MutationBuilder() { this(new V1alpha1Mutation()); 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 521b9b33b0..56692b7f0c 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MutationFluent> extends BaseFluent{ +public class V1alpha1MutationFluent> extends BaseFluent{ public V1alpha1MutationFluent() { } @@ -22,12 +25,12 @@ public V1alpha1MutationFluent(V1alpha1Mutation instance) { private String patchType; protected void copyInstance(V1alpha1Mutation instance) { - instance = (instance != null ? instance : new V1alpha1Mutation()); + instance = instance != null ? instance : new V1alpha1Mutation(); if (instance != null) { - this.withApplyConfiguration(instance.getApplyConfiguration()); - this.withJsonPatch(instance.getJsonPatch()); - this.withPatchType(instance.getPatchType()); - } + this.withApplyConfiguration(instance.getApplyConfiguration()); + this.withJsonPatch(instance.getJsonPatch()); + this.withPatchType(instance.getPatchType()); + } } public V1alpha1ApplyConfiguration buildApplyConfiguration() { @@ -59,15 +62,15 @@ public ApplyConfigurationNested withNewApplyConfigurationLike(V1alpha1ApplyCo } public ApplyConfigurationNested editApplyConfiguration() { - return withNewApplyConfigurationLike(java.util.Optional.ofNullable(buildApplyConfiguration()).orElse(null)); + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(null)); } public ApplyConfigurationNested editOrNewApplyConfiguration() { - return withNewApplyConfigurationLike(java.util.Optional.ofNullable(buildApplyConfiguration()).orElse(new V1alpha1ApplyConfigurationBuilder().build())); + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(new V1alpha1ApplyConfigurationBuilder().build())); } public ApplyConfigurationNested editOrNewApplyConfigurationLike(V1alpha1ApplyConfiguration item) { - return withNewApplyConfigurationLike(java.util.Optional.ofNullable(buildApplyConfiguration()).orElse(item)); + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(item)); } public V1alpha1JSONPatch buildJsonPatch() { @@ -99,15 +102,15 @@ public JsonPatchNested withNewJsonPatchLike(V1alpha1JSONPatch item) { } public JsonPatchNested editJsonPatch() { - return withNewJsonPatchLike(java.util.Optional.ofNullable(buildJsonPatch()).orElse(null)); + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(null)); } public JsonPatchNested editOrNewJsonPatch() { - return withNewJsonPatchLike(java.util.Optional.ofNullable(buildJsonPatch()).orElse(new V1alpha1JSONPatchBuilder().build())); + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(new V1alpha1JSONPatchBuilder().build())); } public JsonPatchNested editOrNewJsonPatchLike(V1alpha1JSONPatch item) { - return withNewJsonPatchLike(java.util.Optional.ofNullable(buildJsonPatch()).orElse(item)); + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(item)); } public String getPatchType() { @@ -124,26 +127,49 @@ public boolean hasPatchType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1MutationFluent that = (V1alpha1MutationFluent) o; - if (!java.util.Objects.equals(applyConfiguration, that.applyConfiguration)) return false; - if (!java.util.Objects.equals(jsonPatch, that.jsonPatch)) return false; - if (!java.util.Objects.equals(patchType, that.patchType)) return false; + if (!(Objects.equals(applyConfiguration, that.applyConfiguration))) { + return false; + } + if (!(Objects.equals(jsonPatch, that.jsonPatch))) { + return false; + } + if (!(Objects.equals(patchType, that.patchType))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(applyConfiguration, jsonPatch, patchType, super.hashCode()); + return Objects.hash(applyConfiguration, jsonPatch, patchType); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (applyConfiguration != null) { sb.append("applyConfiguration:"); sb.append(applyConfiguration + ","); } - if (jsonPatch != null) { sb.append("jsonPatch:"); sb.append(jsonPatch + ","); } - if (patchType != null) { sb.append("patchType:"); sb.append(patchType); } + if (!(applyConfiguration == null)) { + sb.append("applyConfiguration:"); + sb.append(applyConfiguration); + sb.append(","); + } + if (!(jsonPatch == null)) { + sb.append("jsonPatch:"); + sb.append(jsonPatch); + sb.append(","); + } + if (!(patchType == null)) { + sb.append("patchType:"); + sb.append(patchType); + } sb.append("}"); return sb.toString(); } 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 4fb7e907de..bac5534f89 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1NamedRuleWithOperationsBuilder extends V1alpha1NamedRuleWithOperationsFluent implements VisitableBuilder{ public V1alpha1NamedRuleWithOperationsBuilder() { this(new V1alpha1NamedRuleWithOperations()); 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 7e8fe0fd1d..c5b041c1bf 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1NamedRuleWithOperationsFluent> extends BaseFluent{ +public class V1alpha1NamedRuleWithOperationsFluent> extends BaseFluent{ public V1alpha1NamedRuleWithOperationsFluent() { } @@ -28,46 +30,71 @@ public V1alpha1NamedRuleWithOperationsFluent(V1alpha1NamedRuleWithOperations ins private String scope; protected void copyInstance(V1alpha1NamedRuleWithOperations instance) { - instance = (instance != null ? instance : new V1alpha1NamedRuleWithOperations()); + instance = instance != null ? instance : new V1alpha1NamedRuleWithOperations(); if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withApiVersions(instance.getApiVersions()); - this.withOperations(instance.getOperations()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withScope(instance.getScope()); - } + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); + } } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + return (A) this; } public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.set(index, item); return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } - public A removeFromApiGroups(java.lang.String... items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public List getApiGroups() { @@ -116,7 +143,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -130,38 +157,63 @@ public A withApiGroups(java.lang.String... apiGroups) { } public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } public A addToApiVersions(int index,String item) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } this.apiVersions.add(index, item); - return (A)this; + return (A) this; } public A setToApiVersions(int index,String item) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - this.apiVersions.set(index, item); return (A)this; + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(index, item); + return (A) this; } - public A addToApiVersions(java.lang.String... items) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - for (String item : items) {this.apiVersions.add(item);} return (A)this; + public A addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); + } + return (A) this; } public A addAllToApiVersions(Collection items) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - for (String item : items) {this.apiVersions.add(item);} return (A)this; + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); + } + return (A) this; } - public A removeFromApiVersions(java.lang.String... items) { - if (this.apiVersions == null) return (A)this; - for (String item : items) { this.apiVersions.remove(item);} return (A)this; + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } public A removeAllFromApiVersions(Collection items) { - if (this.apiVersions == null) return (A)this; - for (String item : items) { this.apiVersions.remove(item);} return (A)this; + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } public List getApiVersions() { @@ -210,7 +262,7 @@ public A withApiVersions(List apiVersions) { return (A) this; } - public A withApiVersions(java.lang.String... apiVersions) { + public A withApiVersions(String... apiVersions) { if (this.apiVersions != null) { this.apiVersions.clear(); _visitables.remove("apiVersions"); @@ -224,38 +276,63 @@ public A withApiVersions(java.lang.String... apiVersions) { } public boolean hasApiVersions() { - return this.apiVersions != null && !this.apiVersions.isEmpty(); + return this.apiVersions != null && !(this.apiVersions.isEmpty()); } public A addToOperations(int index,String item) { - if (this.operations == null) {this.operations = new ArrayList();} + if (this.operations == null) { + this.operations = new ArrayList(); + } this.operations.add(index, item); - return (A)this; + return (A) this; } public A setToOperations(int index,String item) { - if (this.operations == null) {this.operations = new ArrayList();} - this.operations.set(index, item); return (A)this; + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.set(index, item); + return (A) this; } - public A addToOperations(java.lang.String... items) { - if (this.operations == null) {this.operations = new ArrayList();} - for (String item : items) {this.operations.add(item);} return (A)this; + public A addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } public A addAllToOperations(Collection items) { - if (this.operations == null) {this.operations = new ArrayList();} - for (String item : items) {this.operations.add(item);} return (A)this; + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } - public A removeFromOperations(java.lang.String... items) { - if (this.operations == null) return (A)this; - for (String item : items) { this.operations.remove(item);} return (A)this; + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } public A removeAllFromOperations(Collection items) { - if (this.operations == null) return (A)this; - for (String item : items) { this.operations.remove(item);} return (A)this; + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } public List getOperations() { @@ -304,7 +381,7 @@ public A withOperations(List operations) { return (A) this; } - public A withOperations(java.lang.String... operations) { + public A withOperations(String... operations) { if (this.operations != null) { this.operations.clear(); _visitables.remove("operations"); @@ -318,38 +395,63 @@ public A withOperations(java.lang.String... operations) { } public boolean hasOperations() { - return this.operations != null && !this.operations.isEmpty(); + return this.operations != null && !(this.operations.isEmpty()); } public A addToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } this.resourceNames.add(index, item); - return (A)this; + return (A) this; } public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - this.resourceNames.set(index, item); return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(index, item); + return (A) this; } - public A addToResourceNames(java.lang.String... items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } - public A removeFromResourceNames(java.lang.String... items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public List getResourceNames() { @@ -398,7 +500,7 @@ public A withResourceNames(List resourceNames) { return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { + public A withResourceNames(String... resourceNames) { if (this.resourceNames != null) { this.resourceNames.clear(); _visitables.remove("resourceNames"); @@ -412,38 +514,63 @@ public A withResourceNames(java.lang.String... resourceNames) { } public boolean hasResourceNames() { - return this.resourceNames != null && !this.resourceNames.isEmpty(); + return this.resourceNames != null && !(this.resourceNames.isEmpty()); } public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } this.resources.add(index, item); - return (A)this; + return (A) this; } public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public A removeFromResources(java.lang.String... items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public List getResources() { @@ -492,7 +619,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -506,7 +633,7 @@ public A withResources(java.lang.String... resources) { } public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + return this.resources != null && !(this.resources.isEmpty()); } public String getScope() { @@ -523,32 +650,73 @@ public boolean hasScope() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1NamedRuleWithOperationsFluent that = (V1alpha1NamedRuleWithOperationsFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(apiVersions, that.apiVersions)) return false; - if (!java.util.Objects.equals(operations, that.operations)) return false; - if (!java.util.Objects.equals(resourceNames, that.resourceNames)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(scope, that.scope)) return false; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope, super.hashCode()); + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } - if (apiVersions != null && !apiVersions.isEmpty()) { sb.append("apiVersions:"); sb.append(apiVersions + ","); } - if (operations != null && !operations.isEmpty()) { sb.append("operations:"); sb.append(operations + ","); } - if (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } - if (scope != null) { sb.append("scope:"); sb.append(scope); } + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(apiVersions == null) && !(apiVersions.isEmpty())) { + sb.append("apiVersions:"); + sb.append(apiVersions); + sb.append(","); + } + if (!(operations == null) && !(operations.isEmpty())) { + sb.append("operations:"); + sb.append(operations); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } sb.append("}"); return sb.toString(); } 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 9afbf58e4e..d16c9e9e65 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ParamKindBuilder extends V1alpha1ParamKindFluent implements VisitableBuilder{ public V1alpha1ParamKindBuilder() { this(new V1alpha1ParamKind()); 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 cbc9a83cde..db2085e0b5 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ParamKindFluent> extends BaseFluent{ +public class V1alpha1ParamKindFluent> extends BaseFluent{ public V1alpha1ParamKindFluent() { } @@ -20,11 +22,11 @@ public V1alpha1ParamKindFluent(V1alpha1ParamKind instance) { private String kind; protected void copyInstance(V1alpha1ParamKind instance) { - instance = (instance != null ? instance : new V1alpha1ParamKind()); + instance = instance != null ? instance : new V1alpha1ParamKind(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + } } public String getApiVersion() { @@ -54,24 +56,41 @@ public boolean hasKind() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1ParamKindFluent that = (V1alpha1ParamKindFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, super.hashCode()); + return Objects.hash(apiVersion, kind); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + 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/V1alpha1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java index 6b2e4b3df5..5072a3167d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ParamRefBuilder extends V1alpha1ParamRefFluent implements VisitableBuilder{ public V1alpha1ParamRefBuilder() { this(new V1alpha1ParamRef()); 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 682ef2e813..185e3d1619 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ParamRefFluent> extends BaseFluent{ +public class V1alpha1ParamRefFluent> extends BaseFluent{ public V1alpha1ParamRefFluent() { } @@ -23,13 +26,13 @@ public V1alpha1ParamRefFluent(V1alpha1ParamRef instance) { private V1LabelSelectorBuilder selector; protected void copyInstance(V1alpha1ParamRef instance) { - instance = (instance != null ? instance : new V1alpha1ParamRef()); + instance = instance != null ? instance : new V1alpha1ParamRef(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); - this.withSelector(instance.getSelector()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); + this.withSelector(instance.getSelector()); + } } public String getName() { @@ -100,40 +103,69 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1ParamRefFluent that = (V1alpha1ParamRefFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, namespace, parameterNotFoundAction, selector, super.hashCode()); + return Objects.hash(name, namespace, parameterNotFoundAction, selector); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (parameterNotFoundAction != null) { sb.append("parameterNotFoundAction:"); sb.append(parameterNotFoundAction + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(parameterNotFoundAction == null)) { + sb.append("parameterNotFoundAction:"); + sb.append(parameterNotFoundAction); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestBuilder.java new file mode 100644 index 0000000000..b6b4d0cd79 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1PodCertificateRequestBuilder extends V1alpha1PodCertificateRequestFluent implements VisitableBuilder{ + public V1alpha1PodCertificateRequestBuilder() { + this(new V1alpha1PodCertificateRequest()); + } + + public V1alpha1PodCertificateRequestBuilder(V1alpha1PodCertificateRequestFluent fluent) { + this(fluent, new V1alpha1PodCertificateRequest()); + } + + public V1alpha1PodCertificateRequestBuilder(V1alpha1PodCertificateRequestFluent fluent,V1alpha1PodCertificateRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1PodCertificateRequestBuilder(V1alpha1PodCertificateRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1PodCertificateRequestFluent fluent; + + public V1alpha1PodCertificateRequest build() { + V1alpha1PodCertificateRequest buildable = new V1alpha1PodCertificateRequest(); + 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/V1alpha1PodCertificateRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestFluent.java new file mode 100644 index 0000000000..7b1a6acb3b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestFluent.java @@ -0,0 +1,298 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1PodCertificateRequestFluent> extends BaseFluent{ + public V1alpha1PodCertificateRequestFluent() { + } + + public V1alpha1PodCertificateRequestFluent(V1alpha1PodCertificateRequest instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1PodCertificateRequestSpecBuilder spec; + private V1alpha1PodCertificateRequestStatusBuilder status; + + protected void copyInstance(V1alpha1PodCertificateRequest instance) { + instance = instance != null ? instance : new V1alpha1PodCertificateRequest(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return 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 V1alpha1PodCertificateRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha1PodCertificateRequestSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1PodCertificateRequestSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1PodCertificateRequestSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1PodCertificateRequestSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha1PodCertificateRequestSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public V1alpha1PodCertificateRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + public A withStatus(V1alpha1PodCertificateRequestStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha1PodCertificateRequestStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + + public boolean hasStatus() { + return this.status != null; + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1alpha1PodCertificateRequestStatus item) { + return new StatusNested(item); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1PodCertificateRequestStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1alpha1PodCertificateRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).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; + } + V1alpha1PodCertificateRequestFluent that = (V1alpha1PodCertificateRequestFluent) 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 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha1PodCertificateRequestFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1alpha1PodCertificateRequestSpecFluent> implements Nested{ + SpecNested(V1alpha1PodCertificateRequestSpec item) { + this.builder = new V1alpha1PodCertificateRequestSpecBuilder(this, item); + } + V1alpha1PodCertificateRequestSpecBuilder builder; + + public N and() { + return (N) V1alpha1PodCertificateRequestFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + public class StatusNested extends V1alpha1PodCertificateRequestStatusFluent> implements Nested{ + StatusNested(V1alpha1PodCertificateRequestStatus item) { + this.builder = new V1alpha1PodCertificateRequestStatusBuilder(this, item); + } + V1alpha1PodCertificateRequestStatusBuilder builder; + + public N and() { + return (N) V1alpha1PodCertificateRequestFluent.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/V1alpha1PodCertificateRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListBuilder.java new file mode 100644 index 0000000000..aeaa911eff --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1PodCertificateRequestListBuilder extends V1alpha1PodCertificateRequestListFluent implements VisitableBuilder{ + public V1alpha1PodCertificateRequestListBuilder() { + this(new V1alpha1PodCertificateRequestList()); + } + + public V1alpha1PodCertificateRequestListBuilder(V1alpha1PodCertificateRequestListFluent fluent) { + this(fluent, new V1alpha1PodCertificateRequestList()); + } + + public V1alpha1PodCertificateRequestListBuilder(V1alpha1PodCertificateRequestListFluent fluent,V1alpha1PodCertificateRequestList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1PodCertificateRequestListBuilder(V1alpha1PodCertificateRequestList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1PodCertificateRequestListFluent fluent; + + public V1alpha1PodCertificateRequestList build() { + V1alpha1PodCertificateRequestList buildable = new V1alpha1PodCertificateRequestList(); + 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/V1alpha1PodCertificateRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListFluent.java new file mode 100644 index 0000000000..06a25ab817 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListFluent.java @@ -0,0 +1,408 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1PodCertificateRequestListFluent> extends BaseFluent{ + public V1alpha1PodCertificateRequestListFluent() { + } + + public V1alpha1PodCertificateRequestListFluent(V1alpha1PodCertificateRequestList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1alpha1PodCertificateRequestList instance) { + instance = instance != null ? instance : new V1alpha1PodCertificateRequestList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1alpha1PodCertificateRequest item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A) this; + } + + public A setToItems(int index,V1alpha1PodCertificateRequest item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public A addToItems(V1alpha1PodCertificateRequest... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1PodCertificateRequest item : items) { + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1PodCertificateRequest item : items) { + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1PodCertificateRequest... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1PodCertificateRequest item : items) { + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1PodCertificateRequest item : items) { + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(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 = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1PodCertificateRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha1PodCertificateRequest buildItem(int index) { + return this.items.get(index).build(); + } + + public V1alpha1PodCertificateRequest buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1PodCertificateRequest buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha1PodCertificateRequest buildMatchingItem(Predicate predicate) { + for (V1alpha1PodCertificateRequestBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1PodCertificateRequestBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1PodCertificateRequest item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1PodCertificateRequest... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1PodCertificateRequest item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1PodCertificateRequest item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1alpha1PodCertificateRequest item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + 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 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 String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + 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; + } + V1alpha1PodCertificateRequestListFluent that = (V1alpha1PodCertificateRequestListFluent) 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 int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 class ItemsNested extends V1alpha1PodCertificateRequestFluent> implements Nested{ + ItemsNested(int index,V1alpha1PodCertificateRequest item) { + this.index = index; + this.builder = new V1alpha1PodCertificateRequestBuilder(this, item); + } + V1alpha1PodCertificateRequestBuilder builder; + int index; + + public N and() { + return (N) V1alpha1PodCertificateRequestListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha1PodCertificateRequestListFluent.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/V1alpha1PodCertificateRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecBuilder.java new file mode 100644 index 0000000000..80ad69b1cd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecBuilder.java @@ -0,0 +1,41 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1PodCertificateRequestSpecBuilder extends V1alpha1PodCertificateRequestSpecFluent implements VisitableBuilder{ + public V1alpha1PodCertificateRequestSpecBuilder() { + this(new V1alpha1PodCertificateRequestSpec()); + } + + public V1alpha1PodCertificateRequestSpecBuilder(V1alpha1PodCertificateRequestSpecFluent fluent) { + this(fluent, new V1alpha1PodCertificateRequestSpec()); + } + + public V1alpha1PodCertificateRequestSpecBuilder(V1alpha1PodCertificateRequestSpecFluent fluent,V1alpha1PodCertificateRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1PodCertificateRequestSpecBuilder(V1alpha1PodCertificateRequestSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1PodCertificateRequestSpecFluent fluent; + + public V1alpha1PodCertificateRequestSpec build() { + V1alpha1PodCertificateRequestSpec buildable = new V1alpha1PodCertificateRequestSpec(); + buildable.setMaxExpirationSeconds(fluent.getMaxExpirationSeconds()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeUID(fluent.getNodeUID()); + buildable.setPkixPublicKey(fluent.getPkixPublicKey()); + buildable.setPodName(fluent.getPodName()); + buildable.setPodUID(fluent.getPodUID()); + buildable.setProofOfPossession(fluent.getProofOfPossession()); + buildable.setServiceAccountName(fluent.getServiceAccountName()); + buildable.setServiceAccountUID(fluent.getServiceAccountUID()); + buildable.setSignerName(fluent.getSignerName()); + return buildable; + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecFluent.java new file mode 100644 index 0000000000..62ec63bdd4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecFluent.java @@ -0,0 +1,434 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.lang.String; +import java.lang.Integer; +import java.lang.Byte; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1PodCertificateRequestSpecFluent> extends BaseFluent{ + public V1alpha1PodCertificateRequestSpecFluent() { + } + + public V1alpha1PodCertificateRequestSpecFluent(V1alpha1PodCertificateRequestSpec instance) { + this.copyInstance(instance); + } + private Integer maxExpirationSeconds; + private String nodeName; + private String nodeUID; + private List pkixPublicKey; + private String podName; + private String podUID; + private List proofOfPossession; + private String serviceAccountName; + private String serviceAccountUID; + private String signerName; + + protected void copyInstance(V1alpha1PodCertificateRequestSpec instance) { + instance = instance != null ? instance : new V1alpha1PodCertificateRequestSpec(); + if (instance != null) { + this.withMaxExpirationSeconds(instance.getMaxExpirationSeconds()); + this.withNodeName(instance.getNodeName()); + this.withNodeUID(instance.getNodeUID()); + this.withPkixPublicKey(instance.getPkixPublicKey()); + this.withPodName(instance.getPodName()); + this.withPodUID(instance.getPodUID()); + this.withProofOfPossession(instance.getProofOfPossession()); + this.withServiceAccountName(instance.getServiceAccountName()); + this.withServiceAccountUID(instance.getServiceAccountUID()); + this.withSignerName(instance.getSignerName()); + } + } + + public Integer getMaxExpirationSeconds() { + return this.maxExpirationSeconds; + } + + public A withMaxExpirationSeconds(Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + return (A) this; + } + + public boolean hasMaxExpirationSeconds() { + return this.maxExpirationSeconds != null; + } + + public String getNodeName() { + return this.nodeName; + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public String getNodeUID() { + return this.nodeUID; + } + + public A withNodeUID(String nodeUID) { + this.nodeUID = nodeUID; + return (A) this; + } + + public boolean hasNodeUID() { + return this.nodeUID != null; + } + + public A withPkixPublicKey(byte... pkixPublicKey) { + if (this.pkixPublicKey != null) { + this.pkixPublicKey.clear(); + _visitables.remove("pkixPublicKey"); + } + if (pkixPublicKey != null) { + for (byte item : pkixPublicKey) { + this.addToPkixPublicKey(item); + } + } + return (A) this; + } + + public byte[] getPkixPublicKey() { + int size = pkixPublicKey != null ? pkixPublicKey.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : pkixPublicKey) { + result[index++] = item; + } + return result; + } + + public A addToPkixPublicKey(int index,Byte item) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + this.pkixPublicKey.add(index, item); + return (A) this; + } + + public A setToPkixPublicKey(int index,Byte item) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + this.pkixPublicKey.set(index, item); + return (A) this; + } + + public A addToPkixPublicKey(Byte... items) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + for (Byte item : items) { + this.pkixPublicKey.add(item); + } + return (A) this; + } + + public A addAllToPkixPublicKey(Collection items) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + for (Byte item : items) { + this.pkixPublicKey.add(item); + } + return (A) this; + } + + public A removeFromPkixPublicKey(Byte... items) { + if (this.pkixPublicKey == null) { + return (A) this; + } + for (Byte item : items) { + this.pkixPublicKey.remove(item); + } + return (A) this; + } + + public A removeAllFromPkixPublicKey(Collection items) { + if (this.pkixPublicKey == null) { + return (A) this; + } + for (Byte item : items) { + this.pkixPublicKey.remove(item); + } + return (A) this; + } + + public boolean hasPkixPublicKey() { + return this.pkixPublicKey != null && !(this.pkixPublicKey.isEmpty()); + } + + public String getPodName() { + return this.podName; + } + + public A withPodName(String podName) { + this.podName = podName; + return (A) this; + } + + public boolean hasPodName() { + return this.podName != null; + } + + public String getPodUID() { + return this.podUID; + } + + public A withPodUID(String podUID) { + this.podUID = podUID; + return (A) this; + } + + public boolean hasPodUID() { + return this.podUID != null; + } + + public A withProofOfPossession(byte... proofOfPossession) { + if (this.proofOfPossession != null) { + this.proofOfPossession.clear(); + _visitables.remove("proofOfPossession"); + } + if (proofOfPossession != null) { + for (byte item : proofOfPossession) { + this.addToProofOfPossession(item); + } + } + return (A) this; + } + + public byte[] getProofOfPossession() { + int size = proofOfPossession != null ? proofOfPossession.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : proofOfPossession) { + result[index++] = item; + } + return result; + } + + public A addToProofOfPossession(int index,Byte item) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + this.proofOfPossession.add(index, item); + return (A) this; + } + + public A setToProofOfPossession(int index,Byte item) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + this.proofOfPossession.set(index, item); + return (A) this; + } + + public A addToProofOfPossession(Byte... items) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + for (Byte item : items) { + this.proofOfPossession.add(item); + } + return (A) this; + } + + public A addAllToProofOfPossession(Collection items) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + for (Byte item : items) { + this.proofOfPossession.add(item); + } + return (A) this; + } + + public A removeFromProofOfPossession(Byte... items) { + if (this.proofOfPossession == null) { + return (A) this; + } + for (Byte item : items) { + this.proofOfPossession.remove(item); + } + return (A) this; + } + + public A removeAllFromProofOfPossession(Collection items) { + if (this.proofOfPossession == null) { + return (A) this; + } + for (Byte item : items) { + this.proofOfPossession.remove(item); + } + return (A) this; + } + + public boolean hasProofOfPossession() { + return this.proofOfPossession != null && !(this.proofOfPossession.isEmpty()); + } + + public String getServiceAccountName() { + return this.serviceAccountName; + } + + public A withServiceAccountName(String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + return (A) this; + } + + public boolean hasServiceAccountName() { + return this.serviceAccountName != null; + } + + public String getServiceAccountUID() { + return this.serviceAccountUID; + } + + public A withServiceAccountUID(String serviceAccountUID) { + this.serviceAccountUID = serviceAccountUID; + return (A) this; + } + + public boolean hasServiceAccountUID() { + return this.serviceAccountUID != null; + } + + public String getSignerName() { + return this.signerName; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1PodCertificateRequestSpecFluent that = (V1alpha1PodCertificateRequestSpecFluent) 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(pkixPublicKey, that.pkixPublicKey))) { + return false; + } + if (!(Objects.equals(podName, that.podName))) { + return false; + } + if (!(Objects.equals(podUID, that.podUID))) { + return false; + } + if (!(Objects.equals(proofOfPossession, that.proofOfPossession))) { + 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; + } + return true; + } + + public int hashCode() { + return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, pkixPublicKey, podName, podUID, proofOfPossession, serviceAccountName, serviceAccountUID, signerName); + } + + 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 (!(pkixPublicKey == null) && !(pkixPublicKey.isEmpty())) { + sb.append("pkixPublicKey:"); + sb.append(pkixPublicKey); + 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 (!(proofOfPossession == null) && !(proofOfPossession.isEmpty())) { + sb.append("proofOfPossession:"); + sb.append(proofOfPossession); + 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("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusBuilder.java new file mode 100644 index 0000000000..39668a7078 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1PodCertificateRequestStatusBuilder extends V1alpha1PodCertificateRequestStatusFluent implements VisitableBuilder{ + public V1alpha1PodCertificateRequestStatusBuilder() { + this(new V1alpha1PodCertificateRequestStatus()); + } + + public V1alpha1PodCertificateRequestStatusBuilder(V1alpha1PodCertificateRequestStatusFluent fluent) { + this(fluent, new V1alpha1PodCertificateRequestStatus()); + } + + public V1alpha1PodCertificateRequestStatusBuilder(V1alpha1PodCertificateRequestStatusFluent fluent,V1alpha1PodCertificateRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1PodCertificateRequestStatusBuilder(V1alpha1PodCertificateRequestStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1alpha1PodCertificateRequestStatusFluent fluent; + + public V1alpha1PodCertificateRequestStatus build() { + V1alpha1PodCertificateRequestStatus buildable = new V1alpha1PodCertificateRequestStatus(); + 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/V1alpha1PodCertificateRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusFluent.java new file mode 100644 index 0000000000..2dc94e78f8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusFluent.java @@ -0,0 +1,388 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1PodCertificateRequestStatusFluent> extends BaseFluent{ + public V1alpha1PodCertificateRequestStatusFluent() { + } + + public V1alpha1PodCertificateRequestStatusFluent(V1alpha1PodCertificateRequestStatus instance) { + this.copyInstance(instance); + } + private OffsetDateTime beginRefreshAt; + private String certificateChain; + private ArrayList conditions; + private OffsetDateTime notAfter; + private OffsetDateTime notBefore; + + protected void copyInstance(V1alpha1PodCertificateRequestStatus instance) { + instance = instance != null ? instance : new V1alpha1PodCertificateRequestStatus(); + if (instance != null) { + this.withBeginRefreshAt(instance.getBeginRefreshAt()); + this.withCertificateChain(instance.getCertificateChain()); + this.withConditions(instance.getConditions()); + this.withNotAfter(instance.getNotAfter()); + this.withNotBefore(instance.getNotBefore()); + } + } + + public OffsetDateTime getBeginRefreshAt() { + return this.beginRefreshAt; + } + + public A withBeginRefreshAt(OffsetDateTime beginRefreshAt) { + this.beginRefreshAt = beginRefreshAt; + return (A) this; + } + + public boolean hasBeginRefreshAt() { + return this.beginRefreshAt != null; + } + + public String getCertificateChain() { + return this.certificateChain; + } + + public A withCertificateChain(String certificateChain) { + this.certificateChain = certificateChain; + return (A) this; + } + + public boolean hasCertificateChain() { + return this.certificateChain != null; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A) this; + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ConditionsNested editCondition(int index) { + if (index <= conditions.size()) { + 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 OffsetDateTime getNotAfter() { + return this.notAfter; + } + + public A withNotAfter(OffsetDateTime notAfter) { + this.notAfter = notAfter; + return (A) this; + } + + public boolean hasNotAfter() { + return this.notAfter != null; + } + + public OffsetDateTime getNotBefore() { + return this.notBefore; + } + + public A withNotBefore(OffsetDateTime notBefore) { + this.notBefore = notBefore; + return (A) this; + } + + public boolean hasNotBefore() { + return this.notBefore != 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; + } + V1alpha1PodCertificateRequestStatusFluent that = (V1alpha1PodCertificateRequestStatusFluent) 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 int hashCode() { + return Objects.hash(beginRefreshAt, certificateChain, conditions, notAfter, notBefore); + } + + 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 class ConditionsNested extends V1ConditionFluent> implements Nested{ + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + V1ConditionBuilder builder; + int index; + + public N and() { + return (N) V1alpha1PodCertificateRequestStatusFluent.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/V1alpha1ServerStorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java index 5bf9747028..d50cd43115 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ServerStorageVersionBuilder extends V1alpha1ServerStorageVersionFluent implements VisitableBuilder{ public V1alpha1ServerStorageVersionBuilder() { this(new V1alpha1ServerStorageVersion()); 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 73fcec1729..2df638cfef 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ServerStorageVersionFluent> extends BaseFluent{ +public class V1alpha1ServerStorageVersionFluent> extends BaseFluent{ public V1alpha1ServerStorageVersionFluent() { } @@ -26,13 +28,13 @@ public V1alpha1ServerStorageVersionFluent(V1alpha1ServerStorageVersion instance) private List servedVersions; protected void copyInstance(V1alpha1ServerStorageVersion instance) { - instance = (instance != null ? instance : new V1alpha1ServerStorageVersion()); + instance = instance != null ? instance : new V1alpha1ServerStorageVersion(); if (instance != null) { - this.withApiServerID(instance.getApiServerID()); - this.withDecodableVersions(instance.getDecodableVersions()); - this.withEncodingVersion(instance.getEncodingVersion()); - this.withServedVersions(instance.getServedVersions()); - } + this.withApiServerID(instance.getApiServerID()); + this.withDecodableVersions(instance.getDecodableVersions()); + this.withEncodingVersion(instance.getEncodingVersion()); + this.withServedVersions(instance.getServedVersions()); + } } public String getApiServerID() { @@ -49,34 +51,59 @@ public boolean hasApiServerID() { } public A addToDecodableVersions(int index,String item) { - if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} + if (this.decodableVersions == null) { + this.decodableVersions = new ArrayList(); + } this.decodableVersions.add(index, item); - return (A)this; + return (A) this; } public A setToDecodableVersions(int index,String item) { - if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} - this.decodableVersions.set(index, item); return (A)this; + if (this.decodableVersions == null) { + this.decodableVersions = new ArrayList(); + } + this.decodableVersions.set(index, item); + return (A) this; } - public A addToDecodableVersions(java.lang.String... items) { - if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} - for (String item : items) {this.decodableVersions.add(item);} return (A)this; + public A addToDecodableVersions(String... items) { + if (this.decodableVersions == null) { + this.decodableVersions = new ArrayList(); + } + for (String item : items) { + this.decodableVersions.add(item); + } + return (A) this; } public A addAllToDecodableVersions(Collection items) { - if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} - for (String item : items) {this.decodableVersions.add(item);} return (A)this; + if (this.decodableVersions == null) { + this.decodableVersions = new ArrayList(); + } + for (String item : items) { + this.decodableVersions.add(item); + } + return (A) this; } - public A removeFromDecodableVersions(java.lang.String... items) { - if (this.decodableVersions == null) return (A)this; - for (String item : items) { this.decodableVersions.remove(item);} return (A)this; + public A removeFromDecodableVersions(String... items) { + if (this.decodableVersions == null) { + return (A) this; + } + for (String item : items) { + this.decodableVersions.remove(item); + } + return (A) this; } public A removeAllFromDecodableVersions(Collection items) { - if (this.decodableVersions == null) return (A)this; - for (String item : items) { this.decodableVersions.remove(item);} return (A)this; + if (this.decodableVersions == null) { + return (A) this; + } + for (String item : items) { + this.decodableVersions.remove(item); + } + return (A) this; } public List getDecodableVersions() { @@ -125,7 +152,7 @@ public A withDecodableVersions(List decodableVersions) { return (A) this; } - public A withDecodableVersions(java.lang.String... decodableVersions) { + public A withDecodableVersions(String... decodableVersions) { if (this.decodableVersions != null) { this.decodableVersions.clear(); _visitables.remove("decodableVersions"); @@ -139,7 +166,7 @@ public A withDecodableVersions(java.lang.String... decodableVersions) { } public boolean hasDecodableVersions() { - return this.decodableVersions != null && !this.decodableVersions.isEmpty(); + return this.decodableVersions != null && !(this.decodableVersions.isEmpty()); } public String getEncodingVersion() { @@ -156,34 +183,59 @@ public boolean hasEncodingVersion() { } public A addToServedVersions(int index,String item) { - if (this.servedVersions == null) {this.servedVersions = new ArrayList();} + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } this.servedVersions.add(index, item); - return (A)this; + return (A) this; } public A setToServedVersions(int index,String item) { - if (this.servedVersions == null) {this.servedVersions = new ArrayList();} - this.servedVersions.set(index, item); return (A)this; + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } + this.servedVersions.set(index, item); + return (A) this; } - public A addToServedVersions(java.lang.String... items) { - if (this.servedVersions == null) {this.servedVersions = new ArrayList();} - for (String item : items) {this.servedVersions.add(item);} return (A)this; + public A addToServedVersions(String... items) { + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } + for (String item : items) { + this.servedVersions.add(item); + } + return (A) this; } public A addAllToServedVersions(Collection items) { - if (this.servedVersions == null) {this.servedVersions = new ArrayList();} - for (String item : items) {this.servedVersions.add(item);} return (A)this; + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } + for (String item : items) { + this.servedVersions.add(item); + } + return (A) this; } - public A removeFromServedVersions(java.lang.String... items) { - if (this.servedVersions == null) return (A)this; - for (String item : items) { this.servedVersions.remove(item);} return (A)this; + public A removeFromServedVersions(String... items) { + if (this.servedVersions == null) { + return (A) this; + } + for (String item : items) { + this.servedVersions.remove(item); + } + return (A) this; } public A removeAllFromServedVersions(Collection items) { - if (this.servedVersions == null) return (A)this; - for (String item : items) { this.servedVersions.remove(item);} return (A)this; + if (this.servedVersions == null) { + return (A) this; + } + for (String item : items) { + this.servedVersions.remove(item); + } + return (A) this; } public List getServedVersions() { @@ -232,7 +284,7 @@ public A withServedVersions(List servedVersions) { return (A) this; } - public A withServedVersions(java.lang.String... servedVersions) { + public A withServedVersions(String... servedVersions) { if (this.servedVersions != null) { this.servedVersions.clear(); _visitables.remove("servedVersions"); @@ -246,32 +298,61 @@ public A withServedVersions(java.lang.String... servedVersions) { } public boolean hasServedVersions() { - return this.servedVersions != null && !this.servedVersions.isEmpty(); + return this.servedVersions != null && !(this.servedVersions.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1ServerStorageVersionFluent that = (V1alpha1ServerStorageVersionFluent) o; - if (!java.util.Objects.equals(apiServerID, that.apiServerID)) return false; - if (!java.util.Objects.equals(decodableVersions, that.decodableVersions)) return false; - if (!java.util.Objects.equals(encodingVersion, that.encodingVersion)) return false; - if (!java.util.Objects.equals(servedVersions, that.servedVersions)) return false; + if (!(Objects.equals(apiServerID, that.apiServerID))) { + return false; + } + if (!(Objects.equals(decodableVersions, that.decodableVersions))) { + return false; + } + if (!(Objects.equals(encodingVersion, that.encodingVersion))) { + return false; + } + if (!(Objects.equals(servedVersions, that.servedVersions))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiServerID, decodableVersions, encodingVersion, servedVersions, super.hashCode()); + return Objects.hash(apiServerID, decodableVersions, encodingVersion, servedVersions); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiServerID != null) { sb.append("apiServerID:"); sb.append(apiServerID + ","); } - if (decodableVersions != null && !decodableVersions.isEmpty()) { sb.append("decodableVersions:"); sb.append(decodableVersions + ","); } - if (encodingVersion != null) { sb.append("encodingVersion:"); sb.append(encodingVersion + ","); } - if (servedVersions != null && !servedVersions.isEmpty()) { sb.append("servedVersions:"); sb.append(servedVersions); } + if (!(apiServerID == null)) { + sb.append("apiServerID:"); + sb.append(apiServerID); + sb.append(","); + } + if (!(decodableVersions == null) && !(decodableVersions.isEmpty())) { + sb.append("decodableVersions:"); + sb.append(decodableVersions); + sb.append(","); + } + if (!(encodingVersion == null)) { + sb.append("encodingVersion:"); + sb.append(encodingVersion); + sb.append(","); + } + if (!(servedVersions == null) && !(servedVersions.isEmpty())) { + sb.append("servedVersions:"); + sb.append(servedVersions); + } sb.append("}"); return sb.toString(); } 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 6eab0ecbec..04fb3ffbd1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionBuilder extends V1alpha1StorageVersionFluent implements VisitableBuilder{ public V1alpha1StorageVersionBuilder() { this(new V1alpha1StorageVersion()); 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 0cfa69d91e..bb647e76c0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionConditionBuilder extends V1alpha1StorageVersionConditionFluent implements VisitableBuilder{ public V1alpha1StorageVersionConditionBuilder() { this(new V1alpha1StorageVersionCondition()); 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 bb0e3c2880..8918926356 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 @@ -1,9 +1,11 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionConditionFluent> extends BaseFluent{ +public class V1alpha1StorageVersionConditionFluent> extends BaseFluent{ public V1alpha1StorageVersionConditionFluent() { } @@ -26,15 +28,15 @@ public V1alpha1StorageVersionConditionFluent(V1alpha1StorageVersionCondition ins private String type; protected void copyInstance(V1alpha1StorageVersionCondition instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionCondition()); + instance = instance != null ? instance : new V1alpha1StorageVersionCondition(); 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()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -116,32 +118,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1StorageVersionConditionFluent that = (V1alpha1StorageVersionConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + 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); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 1a1ec6f5ea..803d52434d 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionFluent> extends BaseFluent{ +public class V1alpha1StorageVersionFluent> extends BaseFluent{ public V1alpha1StorageVersionFluent() { } @@ -24,14 +27,14 @@ public V1alpha1StorageVersionFluent(V1alpha1StorageVersion instance) { private V1alpha1StorageVersionStatusBuilder status; protected void copyInstance(V1alpha1StorageVersion instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersion()); + instance = instance != null ? instance : new V1alpha1StorageVersion(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public Object getSpec() { @@ -142,42 +145,77 @@ public StatusNested withNewStatusLike(V1alpha1StorageVersionStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1alpha1StorageVersionStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1StorageVersionStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1alpha1StorageVersionStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1StorageVersionFluent that = (V1alpha1StorageVersionFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 cb22fcb241..457e9dfbf3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionListBuilder extends V1alpha1StorageVersionListFluent implements VisitableBuilder{ public V1alpha1StorageVersionListBuilder() { this(new V1alpha1StorageVersionList()); 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 f3d8057a55..1cee6bdf65 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionListFluent> extends BaseFluent{ +public class V1alpha1StorageVersionListFluent> extends BaseFluent{ public V1alpha1StorageVersionListFluent() { } @@ -29,13 +32,13 @@ public V1alpha1StorageVersionListFluent(V1alpha1StorageVersionList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1alpha1StorageVersionList instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionList()); + instance = instance != null ? instance : new V1alpha1StorageVersionList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1alpha1StorageVersion item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1alpha1StorageVersion item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1alpha1StorageVersion item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1alpha1StorageVersion item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1alpha1StorageVersion... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { - if (this.items == null) return (A)this; - for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1alpha1StorageVersion... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1alpha1StorageVersionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1StorageVersionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { + public A withItems(V1alpha1StorageVersion... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1alpha1StorageVersion item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1StorageVersionListFluent that = (V1alpha1StorageVersionListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1alpha1StorageVersionFluent> int index; public N and() { - return (N) V1alpha1StorageVersionListFluent.this.setToItems(index,builder.build()); + return (N) V1alpha1StorageVersionListFluent.this.setToItems(index, builder.build()); } public N endItem() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java index 0ed34cde79..26c0cc4378 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionMigrationBuilder extends V1alpha1StorageVersionMigrationFluent implements VisitableBuilder{ public V1alpha1StorageVersionMigrationBuilder() { this(new V1alpha1StorageVersionMigration()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java index 196024de18..5d1d57cd22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionMigrationFluent> extends BaseFluent{ +public class V1alpha1StorageVersionMigrationFluent> extends BaseFluent{ public V1alpha1StorageVersionMigrationFluent() { } @@ -24,14 +27,14 @@ public V1alpha1StorageVersionMigrationFluent(V1alpha1StorageVersionMigration ins private V1alpha1StorageVersionMigrationStatusBuilder status; protected void copyInstance(V1alpha1StorageVersionMigration instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionMigration()); + instance = instance != null ? instance : new V1alpha1StorageVersionMigration(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1alpha1StorageVersionMigrationSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1alpha1StorageVersionMigrationSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha1StorageVersionMigrationSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1StorageVersionMigrationSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1alpha1StorageVersionMigrationSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1alpha1StorageVersionMigrationStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1alpha1StorageVersionMigrationStatus i } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1alpha1StorageVersionMigrationStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1StorageVersionMigrationStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1alpha1StorageVersionMigrationStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1StorageVersionMigrationFluent that = (V1alpha1StorageVersionMigrationFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java index af864cecf0..cd49a8f5c9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionMigrationListBuilder extends V1alpha1StorageVersionMigrationListFluent implements VisitableBuilder{ public V1alpha1StorageVersionMigrationListBuilder() { this(new V1alpha1StorageVersionMigrationList()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java index 818513a4b1..98a7c18d38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionMigrationListFluent> extends BaseFluent{ +public class V1alpha1StorageVersionMigrationListFluent> extends BaseFluent{ public V1alpha1StorageVersionMigrationListFluent() { } @@ -29,13 +32,13 @@ public V1alpha1StorageVersionMigrationListFluent(V1alpha1StorageVersionMigration private V1ListMetaBuilder metadata; protected void copyInstance(V1alpha1StorageVersionMigrationList instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionMigrationList()); + instance = instance != null ? instance : new V1alpha1StorageVersionMigrationList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1alpha1StorageVersionMigration item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1alpha1StorageVersionMigration item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1alpha1StorageVersionMigration item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1alpha1StorageVersionMigration item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigration... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1StorageVersionMigration item : items) {V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1alpha1StorageVersionMigration... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1StorageVersionMigration item : items) { + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1StorageVersionMigration item : items) {V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1StorageVersionMigration item : items) { + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigration... items) { - if (this.items == null) return (A)this; - for (V1alpha1StorageVersionMigration item : items) {V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1alpha1StorageVersionMigration... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersionMigration item : items) { + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1StorageVersionMigration item : items) {V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersionMigration item : items) { + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1alpha1StorageVersionMigrationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1StorageVersionMigrationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigration... items) { + public A withItems(V1alpha1StorageVersionMigration... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersionMig } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1alpha1StorageVersionMigration i } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1StorageVersionMigrationListFluent that = (V1alpha1StorageVersionMigrationListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1alpha1StorageVersionMigrationFluent implements VisitableBuilder{ public V1alpha1StorageVersionMigrationSpecBuilder() { this(new V1alpha1StorageVersionMigrationSpec()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java index 0f2def270c..8c1b2e9a10 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionMigrationSpecFluent> extends BaseFluent{ +public class V1alpha1StorageVersionMigrationSpecFluent> extends BaseFluent{ public V1alpha1StorageVersionMigrationSpecFluent() { } @@ -21,11 +24,11 @@ public V1alpha1StorageVersionMigrationSpecFluent(V1alpha1StorageVersionMigration private V1alpha1GroupVersionResourceBuilder resource; protected void copyInstance(V1alpha1StorageVersionMigrationSpec instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionMigrationSpec()); + instance = instance != null ? instance : new V1alpha1StorageVersionMigrationSpec(); if (instance != null) { - this.withContinueToken(instance.getContinueToken()); - this.withResource(instance.getResource()); - } + this.withContinueToken(instance.getContinueToken()); + this.withResource(instance.getResource()); + } } public String getContinueToken() { @@ -70,36 +73,53 @@ public ResourceNested withNewResourceLike(V1alpha1GroupVersionResource item) } public ResourceNested editResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(null)); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); } public ResourceNested editOrNewResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(new V1alpha1GroupVersionResourceBuilder().build())); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V1alpha1GroupVersionResourceBuilder().build())); } public ResourceNested editOrNewResourceLike(V1alpha1GroupVersionResource item) { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(item)); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1StorageVersionMigrationSpecFluent that = (V1alpha1StorageVersionMigrationSpecFluent) o; - if (!java.util.Objects.equals(continueToken, that.continueToken)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; + if (!(Objects.equals(continueToken, that.continueToken))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(continueToken, resource, super.hashCode()); + return Objects.hash(continueToken, resource); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (continueToken != null) { sb.append("continueToken:"); sb.append(continueToken + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource); } + if (!(continueToken == null)) { + sb.append("continueToken:"); + sb.append(continueToken); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java index 83a57589e2..82041b8ef8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionMigrationStatusBuilder extends V1alpha1StorageVersionMigrationStatusFluent implements VisitableBuilder{ public V1alpha1StorageVersionMigrationStatusBuilder() { this(new V1alpha1StorageVersionMigrationStatus()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java index f3da90555f..71c112a813 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionMigrationStatusFluent> extends BaseFluent{ +public class V1alpha1StorageVersionMigrationStatusFluent> extends BaseFluent{ public V1alpha1StorageVersionMigrationStatusFluent() { } @@ -27,15 +29,17 @@ public V1alpha1StorageVersionMigrationStatusFluent(V1alpha1StorageVersionMigrati private String resourceVersion; protected void copyInstance(V1alpha1StorageVersionMigrationStatus instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionMigrationStatus()); + instance = instance != null ? instance : new V1alpha1StorageVersionMigrationStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - this.withResourceVersion(instance.getResourceVersion()); - } + this.withConditions(instance.getConditions()); + this.withResourceVersion(instance.getResourceVersion()); + } } public A addToConditions(int index,V1alpha1MigrationCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -44,11 +48,13 @@ public A addToConditions(int index,V1alpha1MigrationCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1alpha1MigrationCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -57,41 +63,71 @@ public A setToConditions(int index,V1alpha1MigrationCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1alpha1MigrationCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1alpha1MigrationCondition item : items) {V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1alpha1MigrationCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1alpha1MigrationCondition item : items) { + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1alpha1MigrationCondition item : items) {V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1alpha1MigrationCondition item : items) { + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1alpha1MigrationCondition... items) { - if (this.conditions == null) return (A)this; - for (V1alpha1MigrationCondition item : items) {V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1alpha1MigrationCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1alpha1MigrationCondition item : items) { + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1alpha1MigrationCondition item : items) {V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1alpha1MigrationCondition item : items) { + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1alpha1MigrationConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1MigrationConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -143,7 +179,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1alpha1MigrationCondition... conditions) { + public A withConditions(V1alpha1MigrationCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -157,7 +193,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1alpha1MigrationCon } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -173,28 +209,39 @@ public ConditionsNested setNewConditionLike(int index,V1alpha1MigrationCondit } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1alpha1MigrationConditionFluent implements VisitableBuilder{ public V1alpha1StorageVersionStatusBuilder() { this(new V1alpha1StorageVersionStatus()); 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 4a27543bac..2f48b6ec20 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionStatusFluent> extends BaseFluent{ +public class V1alpha1StorageVersionStatusFluent> extends BaseFluent{ public V1alpha1StorageVersionStatusFluent() { } @@ -28,12 +30,12 @@ public V1alpha1StorageVersionStatusFluent(V1alpha1StorageVersionStatus instance) private ArrayList storageVersions; protected void copyInstance(V1alpha1StorageVersionStatus instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionStatus()); + instance = instance != null ? instance : new V1alpha1StorageVersionStatus(); if (instance != null) { - this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); - this.withConditions(instance.getConditions()); - this.withStorageVersions(instance.getStorageVersions()); - } + this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); + this.withConditions(instance.getConditions()); + this.withStorageVersions(instance.getStorageVersions()); + } } public String getCommonEncodingVersion() { @@ -50,7 +52,9 @@ public boolean hasCommonEncodingVersion() { } public A addToConditions(int index,V1alpha1StorageVersionCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -59,11 +63,13 @@ public A addToConditions(int index,V1alpha1StorageVersionCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1alpha1StorageVersionCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -72,41 +78,71 @@ public A setToConditions(int index,V1alpha1StorageVersionCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1alpha1StorageVersionCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items) { - if (this.conditions == null) return (A)this; - for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V1alpha1StorageVersionCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1alpha1StorageVersionConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1StorageVersionConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -158,7 +194,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... conditions) { + public A withConditions(V1alpha1StorageVersionCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -172,7 +208,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -188,32 +224,45 @@ public ConditionsNested setNewConditionLike(int index,V1alpha1StorageVersionC } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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();} + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); + } V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); if (index < 0 || index >= storageVersions.size()) { _visitables.get("storageVersions").add(builder); @@ -222,11 +271,13 @@ public A addToStorageVersions(int index,V1alpha1ServerStorageVersion item) { _visitables.get("storageVersions").add(builder); storageVersions.add(index, builder); } - return (A)this; + return (A) this; } public A setToStorageVersions(int index,V1alpha1ServerStorageVersion item) { - if (this.storageVersions == null) {this.storageVersions = new ArrayList();} + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); + } V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); if (index < 0 || index >= storageVersions.size()) { _visitables.get("storageVersions").add(builder); @@ -235,41 +286,71 @@ public A setToStorageVersions(int index,V1alpha1ServerStorageVersion item) { _visitables.get("storageVersions").add(builder); storageVersions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { - if (this.storageVersions == null) {this.storageVersions = new ArrayList();} - for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").add(builder);this.storageVersions.add(builder);} return (A)this; + public A addToStorageVersions(V1alpha1ServerStorageVersion... items) { + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); + } + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").add(builder); + this.storageVersions.add(builder); + } + return (A) this; } public A addAllToStorageVersions(Collection items) { - if (this.storageVersions == null) {this.storageVersions = new ArrayList();} - for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").add(builder);this.storageVersions.add(builder);} return (A)this; + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); + } + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").add(builder); + this.storageVersions.add(builder); + } + return (A) this; } - public A removeFromStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { - if (this.storageVersions == null) return (A)this; - for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").remove(builder); this.storageVersions.remove(builder);} return (A)this; + public A removeFromStorageVersions(V1alpha1ServerStorageVersion... items) { + if (this.storageVersions == null) { + return (A) this; + } + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").remove(builder); + this.storageVersions.remove(builder); + } + return (A) this; } public A removeAllFromStorageVersions(Collection items) { - if (this.storageVersions == null) return (A)this; - for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").remove(builder); this.storageVersions.remove(builder);} return (A)this; + if (this.storageVersions == null) { + return (A) this; + } + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").remove(builder); + this.storageVersions.remove(builder); + } + return (A) this; } public A removeMatchingFromStorageVersions(Predicate predicate) { - if (storageVersions == null) return (A) this; - final Iterator each = storageVersions.iterator(); - final List visitables = _visitables.get("storageVersions"); + if (storageVersions == null) { + return (A) this; + } + Iterator each = storageVersions.iterator(); + List visitables = _visitables.get("storageVersions"); while (each.hasNext()) { - V1alpha1ServerStorageVersionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1ServerStorageVersionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildStorageVersions() { @@ -321,7 +402,7 @@ public A withStorageVersions(List storageVersions) return (A) this; } - public A withStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... storageVersions) { + public A withStorageVersions(V1alpha1ServerStorageVersion... storageVersions) { if (this.storageVersions != null) { this.storageVersions.clear(); _visitables.remove("storageVersions"); @@ -335,7 +416,7 @@ public A withStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerS } public boolean hasStorageVersions() { - return this.storageVersions != null && !this.storageVersions.isEmpty(); + return this.storageVersions != null && !(this.storageVersions.isEmpty()); } public StorageVersionsNested addNewStorageVersion() { @@ -351,51 +432,85 @@ public StorageVersionsNested setNewStorageVersionLike(int index,V1alpha1Serve } public StorageVersionsNested editStorageVersion(int index) { - if (storageVersions.size() <= index) throw new RuntimeException("Can't edit storageVersions. Index exceeds size."); - return setNewStorageVersionLike(index, buildStorageVersion(index)); + if (index <= storageVersions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "storageVersions")); + } + return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); } public StorageVersionsNested editFirstStorageVersion() { - if (storageVersions.size() == 0) throw new RuntimeException("Can't edit first storageVersions. The list is empty."); - return setNewStorageVersionLike(0, buildStorageVersion(0)); + if (storageVersions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "storageVersions")); + } + return this.setNewStorageVersionLike(0, this.buildStorageVersion(0)); } public StorageVersionsNested editLastStorageVersion() { int index = storageVersions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last storageVersions. The list is empty."); - return setNewStorageVersionLike(index, buildStorageVersion(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "storageVersions")); + } + return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); } public StorageVersionsNested editMatchingStorageVersion(Predicate predicate) { int index = -1; - for (int i=0;i extends V1alpha1StorageVersionConditionFluent extends V1alpha1ServerStorageVersionFluent int index; public N and() { - return (N) V1alpha1StorageVersionStatusFluent.this.setToStorageVersions(index,builder.build()); + return (N) V1alpha1StorageVersionStatusFluent.this.setToStorageVersions(index, builder.build()); } public N endStorageVersion() { 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 1b7adc925d..825a91b75b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1VariableBuilder extends V1alpha1VariableFluent implements VisitableBuilder{ public V1alpha1VariableBuilder() { this(new V1alpha1Variable()); 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 b869589a3f..914074f32e 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1VariableFluent> extends BaseFluent{ +public class V1alpha1VariableFluent> extends BaseFluent{ public V1alpha1VariableFluent() { } @@ -20,11 +22,11 @@ public V1alpha1VariableFluent(V1alpha1Variable instance) { private String name; protected void copyInstance(V1alpha1Variable instance) { - instance = (instance != null ? instance : new V1alpha1Variable()); + instance = instance != null ? instance : new V1alpha1Variable(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } } public String getExpression() { @@ -54,24 +56,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1VariableFluent that = (V1alpha1VariableFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, name, super.hashCode()); + return Objects.hash(expression, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + 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(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java index 821957ff6b..b3617fbaa0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1VolumeAttributesClassBuilder extends V1alpha1VolumeAttributesClassFluent implements VisitableBuilder{ public V1alpha1VolumeAttributesClassBuilder() { this(new V1alpha1VolumeAttributesClass()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java index 1bc795b869..23d2c67163 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java @@ -1,10 +1,13 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.util.Map; @@ -12,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1VolumeAttributesClassFluent> extends BaseFluent{ +public class V1alpha1VolumeAttributesClassFluent> extends BaseFluent{ public V1alpha1VolumeAttributesClassFluent() { } @@ -26,14 +29,14 @@ public V1alpha1VolumeAttributesClassFluent(V1alpha1VolumeAttributesClass instanc private Map parameters; protected void copyInstance(V1alpha1VolumeAttributesClass instance) { - instance = (instance != null ? instance : new V1alpha1VolumeAttributesClass()); + instance = instance != null ? instance : new V1alpha1VolumeAttributesClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDriverName(instance.getDriverName()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withParameters(instance.getParameters()); - } + this.withApiVersion(instance.getApiVersion()); + this.withDriverName(instance.getDriverName()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withParameters(instance.getParameters()); + } } public String getApiVersion() { @@ -104,35 +107,59 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } 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; + 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 A addToParameters(Map map) { - if(this.parameters == null && map != null) { this.parameters = new LinkedHashMap(); } - if(map != null) { this.parameters.putAll(map);} return (A)this; + if (this.parameters == null && map != null) { + this.parameters = new LinkedHashMap(); + } + if (map != null) { + this.parameters.putAll(map); + } + return (A) this; } 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; + 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; + 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 Map getParameters() { @@ -153,30 +180,65 @@ public boolean hasParameters() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1VolumeAttributesClassFluent that = (V1alpha1VolumeAttributesClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(driverName, that.driverName)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, driverName, kind, metadata, parameters, super.hashCode()); + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (driverName != null) { sb.append("driverName:"); sb.append(driverName + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (parameters != null && !parameters.isEmpty()) { sb.append("parameters:"); sb.append(parameters); } + 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(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java index 69afc7976d..3f5d9ed501 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1VolumeAttributesClassListBuilder extends V1alpha1VolumeAttributesClassListFluent implements VisitableBuilder{ public V1alpha1VolumeAttributesClassListBuilder() { this(new V1alpha1VolumeAttributesClassList()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java index 61d7367754..2af3a169ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1VolumeAttributesClassListFluent> extends BaseFluent{ +public class V1alpha1VolumeAttributesClassListFluent> extends BaseFluent{ public V1alpha1VolumeAttributesClassListFluent() { } @@ -29,13 +32,13 @@ public V1alpha1VolumeAttributesClassListFluent(V1alpha1VolumeAttributesClassList private V1ListMetaBuilder metadata; protected void copyInstance(V1alpha1VolumeAttributesClassList instance) { - instance = (instance != null ? instance : new V1alpha1VolumeAttributesClassList()); + instance = instance != null ? instance : new V1alpha1VolumeAttributesClassList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1alpha1VolumeAttributesClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1alpha1VolumeAttributesClass item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1alpha1VolumeAttributesClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1alpha1VolumeAttributesClass item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1VolumeAttributesClass item : items) {V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1alpha1VolumeAttributesClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1VolumeAttributesClass item : items) { + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1VolumeAttributesClass item : items) {V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1VolumeAttributesClass item : items) { + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClass... items) { - if (this.items == null) return (A)this; - for (V1alpha1VolumeAttributesClass item : items) {V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1alpha1VolumeAttributesClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1VolumeAttributesClass item : items) { + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1VolumeAttributesClass item : items) {V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1alpha1VolumeAttributesClass item : items) { + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1alpha1VolumeAttributesClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1VolumeAttributesClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClass... items) { + public A withItems(V1alpha1VolumeAttributesClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesC } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1alpha1VolumeAttributesClass ite } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha1VolumeAttributesClassListFluent that = (V1alpha1VolumeAttributesClassListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1alpha1VolumeAttributesClassFluent implements VisitableBuilder{ public V1alpha2LeaseCandidateBuilder() { this(new V1alpha2LeaseCandidate()); 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 9486f7e638..8caf1e42a7 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha2LeaseCandidateFluent> extends BaseFluent{ +public class V1alpha2LeaseCandidateFluent> extends BaseFluent{ public V1alpha2LeaseCandidateFluent() { } @@ -23,13 +26,13 @@ public V1alpha2LeaseCandidateFluent(V1alpha2LeaseCandidate instance) { private V1alpha2LeaseCandidateSpecBuilder spec; protected void copyInstance(V1alpha2LeaseCandidate instance) { - instance = (instance != null ? instance : new V1alpha2LeaseCandidate()); + instance = instance != null ? instance : new V1alpha2LeaseCandidate(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1alpha2LeaseCandidateSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1alpha2LeaseCandidateSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha2LeaseCandidateSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha2LeaseCandidateSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1alpha2LeaseCandidateSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha2LeaseCandidateFluent that = (V1alpha2LeaseCandidateFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 dc1c8e213c..2910bdaf5a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha2LeaseCandidateListBuilder extends V1alpha2LeaseCandidateListFluent implements VisitableBuilder{ public V1alpha2LeaseCandidateListBuilder() { this(new V1alpha2LeaseCandidateList()); 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 246b1f61a6..269cc629cd 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha2LeaseCandidateListFluent> extends BaseFluent{ +public class V1alpha2LeaseCandidateListFluent> extends BaseFluent{ public V1alpha2LeaseCandidateListFluent() { } @@ -29,13 +32,13 @@ public V1alpha2LeaseCandidateListFluent(V1alpha2LeaseCandidateList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1alpha2LeaseCandidateList instance) { - instance = (instance != null ? instance : new V1alpha2LeaseCandidateList()); + instance = instance != null ? instance : new V1alpha2LeaseCandidateList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1alpha2LeaseCandidate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1alpha2LeaseCandidate item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1alpha2LeaseCandidate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1alpha2LeaseCandidate item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2LeaseCandidate item : items) {V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1alpha2LeaseCandidate... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha2LeaseCandidate item : items) { + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2LeaseCandidate item : items) {V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha2LeaseCandidate item : items) { + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate... items) { - if (this.items == null) return (A)this; - for (V1alpha2LeaseCandidate item : items) {V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1alpha2LeaseCandidate... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha2LeaseCandidate item : items) { + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha2LeaseCandidate item : items) {V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1alpha2LeaseCandidate item : items) { + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1alpha2LeaseCandidateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha2LeaseCandidateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate... items) { + public A withItems(V1alpha2LeaseCandidate... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate... } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1alpha2LeaseCandidate item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha2LeaseCandidateListFluent that = (V1alpha2LeaseCandidateListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1alpha2LeaseCandidateFluent> int index; public N and() { - return (N) V1alpha2LeaseCandidateListFluent.this.setToItems(index,builder.build()); + return (N) V1alpha2LeaseCandidateListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 394857042b..a9fbe51052 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha2LeaseCandidateSpecBuilder extends V1alpha2LeaseCandidateSpecFluent implements VisitableBuilder{ public V1alpha2LeaseCandidateSpecBuilder() { this(new V1alpha2LeaseCandidateSpec()); 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 4160dbbef7..10e2cdb6ff 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha2LeaseCandidateSpecFluent> extends BaseFluent{ +public class V1alpha2LeaseCandidateSpecFluent> extends BaseFluent{ public V1alpha2LeaseCandidateSpecFluent() { } @@ -25,15 +27,15 @@ public V1alpha2LeaseCandidateSpecFluent(V1alpha2LeaseCandidateSpec instance) { private String strategy; protected void copyInstance(V1alpha2LeaseCandidateSpec instance) { - instance = (instance != null ? instance : new V1alpha2LeaseCandidateSpec()); + instance = instance != null ? instance : new V1alpha2LeaseCandidateSpec(); if (instance != null) { - this.withBinaryVersion(instance.getBinaryVersion()); - this.withEmulationVersion(instance.getEmulationVersion()); - this.withLeaseName(instance.getLeaseName()); - this.withPingTime(instance.getPingTime()); - this.withRenewTime(instance.getRenewTime()); - this.withStrategy(instance.getStrategy()); - } + this.withBinaryVersion(instance.getBinaryVersion()); + this.withEmulationVersion(instance.getEmulationVersion()); + this.withLeaseName(instance.getLeaseName()); + this.withPingTime(instance.getPingTime()); + this.withRenewTime(instance.getRenewTime()); + this.withStrategy(instance.getStrategy()); + } } public String getBinaryVersion() { @@ -115,32 +117,73 @@ public boolean hasStrategy() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha2LeaseCandidateSpecFluent that = (V1alpha2LeaseCandidateSpecFluent) o; - if (!java.util.Objects.equals(binaryVersion, that.binaryVersion)) return false; - if (!java.util.Objects.equals(emulationVersion, that.emulationVersion)) return false; - if (!java.util.Objects.equals(leaseName, that.leaseName)) return false; - if (!java.util.Objects.equals(pingTime, that.pingTime)) return false; - if (!java.util.Objects.equals(renewTime, that.renewTime)) return false; - if (!java.util.Objects.equals(strategy, that.strategy)) return false; + if (!(Objects.equals(binaryVersion, that.binaryVersion))) { + return false; + } + if (!(Objects.equals(emulationVersion, that.emulationVersion))) { + return false; + } + if (!(Objects.equals(leaseName, that.leaseName))) { + return false; + } + if (!(Objects.equals(pingTime, that.pingTime))) { + return false; + } + if (!(Objects.equals(renewTime, that.renewTime))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy, super.hashCode()); + return Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (binaryVersion != null) { sb.append("binaryVersion:"); sb.append(binaryVersion + ","); } - if (emulationVersion != null) { sb.append("emulationVersion:"); sb.append(emulationVersion + ","); } - if (leaseName != null) { sb.append("leaseName:"); sb.append(leaseName + ","); } - if (pingTime != null) { sb.append("pingTime:"); sb.append(pingTime + ","); } - if (renewTime != null) { sb.append("renewTime:"); sb.append(renewTime + ","); } - if (strategy != null) { sb.append("strategy:"); sb.append(strategy); } + if (!(binaryVersion == null)) { + sb.append("binaryVersion:"); + sb.append(binaryVersion); + sb.append(","); + } + if (!(emulationVersion == null)) { + sb.append("emulationVersion:"); + sb.append(emulationVersion); + sb.append(","); + } + if (!(leaseName == null)) { + sb.append("leaseName:"); + sb.append(leaseName); + sb.append(","); + } + if (!(pingTime == null)) { + sb.append("pingTime:"); + sb.append(pingTime); + sb.append(","); + } + if (!(renewTime == null)) { + sb.append("renewTime:"); + sb.append(renewTime); + sb.append(","); + } + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusBuilder.java deleted file mode 100644 index 799d7a8023..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3AllocatedDeviceStatusBuilder extends V1alpha3AllocatedDeviceStatusFluent implements VisitableBuilder{ - public V1alpha3AllocatedDeviceStatusBuilder() { - this(new V1alpha3AllocatedDeviceStatus()); - } - - public V1alpha3AllocatedDeviceStatusBuilder(V1alpha3AllocatedDeviceStatusFluent fluent) { - this(fluent, new V1alpha3AllocatedDeviceStatus()); - } - - public V1alpha3AllocatedDeviceStatusBuilder(V1alpha3AllocatedDeviceStatusFluent fluent,V1alpha3AllocatedDeviceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3AllocatedDeviceStatusBuilder(V1alpha3AllocatedDeviceStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3AllocatedDeviceStatusFluent fluent; - - public V1alpha3AllocatedDeviceStatus build() { - V1alpha3AllocatedDeviceStatus buildable = new V1alpha3AllocatedDeviceStatus(); - buildable.setConditions(fluent.buildConditions()); - buildable.setData(fluent.getData()); - buildable.setDevice(fluent.getDevice()); - buildable.setDriver(fluent.getDriver()); - buildable.setNetworkData(fluent.buildNetworkData()); - buildable.setPool(fluent.getPool()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java deleted file mode 100644 index 6d1280febb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatusFluent.java +++ /dev/null @@ -1,365 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3AllocatedDeviceStatusFluent> extends BaseFluent{ - public V1alpha3AllocatedDeviceStatusFluent() { - } - - public V1alpha3AllocatedDeviceStatusFluent(V1alpha3AllocatedDeviceStatus instance) { - this.copyInstance(instance); - } - private ArrayList conditions; - private Object data; - private String device; - private String driver; - private V1alpha3NetworkDeviceDataBuilder networkData; - private String pool; - - protected void copyInstance(V1alpha3AllocatedDeviceStatus instance) { - instance = (instance != null ? instance : new V1alpha3AllocatedDeviceStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withData(instance.getData()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withNetworkData(instance.getNetworkData()); - this.withPool(instance.getPool()); - } - } - - public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); - } - return (A)this; - } - - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; - } - - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1Condition buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public V1Condition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public V1Condition buildMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); - } - - public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i withNewNetworkData() { - return new NetworkDataNested(null); - } - - public NetworkDataNested withNewNetworkDataLike(V1alpha3NetworkDeviceData item) { - return new NetworkDataNested(item); - } - - public NetworkDataNested editNetworkData() { - return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(null)); - } - - public NetworkDataNested editOrNewNetworkData() { - return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(new V1alpha3NetworkDeviceDataBuilder().build())); - } - - public NetworkDataNested editOrNewNetworkDataLike(V1alpha3NetworkDeviceData item) { - return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(item)); - } - - public String getPool() { - return this.pool; - } - - public A withPool(String pool) { - this.pool = pool; - return (A) this; - } - - public boolean hasPool() { - return this.pool != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3AllocatedDeviceStatusFluent that = (V1alpha3AllocatedDeviceStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(device, that.device)) return false; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(networkData, that.networkData)) return false; - if (!java.util.Objects.equals(pool, that.pool)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(conditions, data, device, driver, networkData, pool, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (data != null) { sb.append("data:"); sb.append(data + ","); } - if (device != null) { sb.append("device:"); sb.append(device + ","); } - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (networkData != null) { sb.append("networkData:"); sb.append(networkData + ","); } - if (pool != null) { sb.append("pool:"); sb.append(pool); } - sb.append("}"); - return sb.toString(); - } - public class ConditionsNested extends V1ConditionFluent> implements Nested{ - ConditionsNested(int index,V1Condition item) { - this.index = index; - this.builder = new V1ConditionBuilder(this, item); - } - V1ConditionBuilder builder; - int index; - - public N and() { - return (N) V1alpha3AllocatedDeviceStatusFluent.this.setToConditions(index,builder.build()); - } - - public N endCondition() { - return and(); - } - - - } - public class NetworkDataNested extends V1alpha3NetworkDeviceDataFluent> implements Nested{ - NetworkDataNested(V1alpha3NetworkDeviceData item) { - this.builder = new V1alpha3NetworkDeviceDataBuilder(this, item); - } - V1alpha3NetworkDeviceDataBuilder builder; - - public N and() { - return (N) V1alpha3AllocatedDeviceStatusFluent.this.withNetworkData(builder.build()); - } - - public N endNetworkData() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultBuilder.java deleted file mode 100644 index db989c6b63..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3AllocationResultBuilder extends V1alpha3AllocationResultFluent implements VisitableBuilder{ - public V1alpha3AllocationResultBuilder() { - this(new V1alpha3AllocationResult()); - } - - public V1alpha3AllocationResultBuilder(V1alpha3AllocationResultFluent fluent) { - this(fluent, new V1alpha3AllocationResult()); - } - - public V1alpha3AllocationResultBuilder(V1alpha3AllocationResultFluent fluent,V1alpha3AllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3AllocationResultBuilder(V1alpha3AllocationResult instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3AllocationResultFluent fluent; - - public V1alpha3AllocationResult build() { - V1alpha3AllocationResult buildable = new V1alpha3AllocationResult(); - buildable.setDevices(fluent.buildDevices()); - buildable.setNodeSelector(fluent.buildNodeSelector()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultFluent.java deleted file mode 100644 index 27b40c8dcd..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResultFluent.java +++ /dev/null @@ -1,166 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3AllocationResultFluent> extends BaseFluent{ - public V1alpha3AllocationResultFluent() { - } - - public V1alpha3AllocationResultFluent(V1alpha3AllocationResult instance) { - this.copyInstance(instance); - } - private V1alpha3DeviceAllocationResultBuilder devices; - private V1NodeSelectorBuilder nodeSelector; - - protected void copyInstance(V1alpha3AllocationResult instance) { - instance = (instance != null ? instance : new V1alpha3AllocationResult()); - if (instance != null) { - this.withDevices(instance.getDevices()); - this.withNodeSelector(instance.getNodeSelector()); - } - } - - public V1alpha3DeviceAllocationResult buildDevices() { - return this.devices != null ? this.devices.build() : null; - } - - public A withDevices(V1alpha3DeviceAllocationResult devices) { - this._visitables.remove("devices"); - if (devices != null) { - this.devices = new V1alpha3DeviceAllocationResultBuilder(devices); - this._visitables.get("devices").add(this.devices); - } else { - this.devices = null; - this._visitables.get("devices").remove(this.devices); - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null; - } - - public DevicesNested withNewDevices() { - return new DevicesNested(null); - } - - public DevicesNested withNewDevicesLike(V1alpha3DeviceAllocationResult item) { - return new DevicesNested(item); - } - - public DevicesNested editDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); - } - - public DevicesNested editOrNewDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1alpha3DeviceAllocationResultBuilder().build())); - } - - public DevicesNested editOrNewDevicesLike(V1alpha3DeviceAllocationResult item) { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); - } - - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; - } - - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; - } - - public boolean hasNodeSelector() { - return this.nodeSelector != null; - } - - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); - } - - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); - } - - public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); - } - - public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); - } - - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3AllocationResultFluent that = (V1alpha3AllocationResultFluent) o; - if (!java.util.Objects.equals(devices, that.devices)) return false; - if (!java.util.Objects.equals(nodeSelector, that.nodeSelector)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(devices, nodeSelector, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (devices != null) { sb.append("devices:"); sb.append(devices + ","); } - if (nodeSelector != null) { sb.append("nodeSelector:"); sb.append(nodeSelector); } - sb.append("}"); - return sb.toString(); - } - public class DevicesNested extends V1alpha3DeviceAllocationResultFluent> implements Nested{ - DevicesNested(V1alpha3DeviceAllocationResult item) { - this.builder = new V1alpha3DeviceAllocationResultBuilder(this, item); - } - V1alpha3DeviceAllocationResultBuilder builder; - - public N and() { - return (N) V1alpha3AllocationResultFluent.this.withDevices(builder.build()); - } - - public N endDevices() { - return and(); - } - - - } - public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ - NodeSelectorNested(V1NodeSelector item) { - this.builder = new V1NodeSelectorBuilder(this, item); - } - V1NodeSelectorBuilder builder; - - public N and() { - return (N) V1alpha3AllocationResultFluent.this.withNodeSelector(builder.build()); - } - - public N endNodeSelector() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java deleted file mode 100644 index 0d09544d37..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3BasicDeviceBuilder extends V1alpha3BasicDeviceFluent implements VisitableBuilder{ - public V1alpha3BasicDeviceBuilder() { - this(new V1alpha3BasicDevice()); - } - - public V1alpha3BasicDeviceBuilder(V1alpha3BasicDeviceFluent fluent) { - this(fluent, new V1alpha3BasicDevice()); - } - - public V1alpha3BasicDeviceBuilder(V1alpha3BasicDeviceFluent fluent,V1alpha3BasicDevice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3BasicDeviceBuilder(V1alpha3BasicDevice instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3BasicDeviceFluent fluent; - - public V1alpha3BasicDevice build() { - V1alpha3BasicDevice buildable = new V1alpha3BasicDevice(); - buildable.setAllNodes(fluent.getAllNodes()); - buildable.setAttributes(fluent.getAttributes()); - buildable.setCapacity(fluent.getCapacity()); - buildable.setConsumesCounters(fluent.buildConsumesCounters()); - buildable.setNodeName(fluent.getNodeName()); - buildable.setNodeSelector(fluent.buildNodeSelector()); - buildable.setTaints(fluent.buildTaints()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java deleted file mode 100644 index 7c30addc94..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDeviceFluent.java +++ /dev/null @@ -1,606 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.lang.Boolean; -import io.kubernetes.client.custom.Quantity; -import java.util.Collection; -import java.lang.Object; -import java.util.Map; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3BasicDeviceFluent> extends BaseFluent{ - public V1alpha3BasicDeviceFluent() { - } - - public V1alpha3BasicDeviceFluent(V1alpha3BasicDevice instance) { - this.copyInstance(instance); - } - private Boolean allNodes; - private Map attributes; - private Map capacity; - private ArrayList consumesCounters; - private String nodeName; - private V1NodeSelectorBuilder nodeSelector; - private ArrayList taints; - - protected void copyInstance(V1alpha3BasicDevice instance) { - instance = (instance != null ? instance : new V1alpha3BasicDevice()); - if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withAttributes(instance.getAttributes()); - this.withCapacity(instance.getCapacity()); - this.withConsumesCounters(instance.getConsumesCounters()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withTaints(instance.getTaints()); - } - } - - public Boolean getAllNodes() { - return this.allNodes; - } - - public A withAllNodes(Boolean allNodes) { - this.allNodes = allNodes; - return (A) this; - } - - public boolean hasAllNodes() { - return this.allNodes != null; - } - - public A addToAttributes(String key,V1alpha3DeviceAttribute value) { - if(this.attributes == null && key != null && value != null) { this.attributes = new LinkedHashMap(); } - if(key != null && value != null) {this.attributes.put(key, value);} return (A)this; - } - - public A addToAttributes(Map map) { - if(this.attributes == null && map != null) { this.attributes = new LinkedHashMap(); } - if(map != null) { this.attributes.putAll(map);} return (A)this; - } - - public A removeFromAttributes(String key) { - if(this.attributes == null) { return (A) this; } - if(key != null && this.attributes != null) {this.attributes.remove(key);} return (A)this; - } - - public A removeFromAttributes(Map map) { - if(this.attributes == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.attributes != null){this.attributes.remove(key);}}} return (A)this; - } - - public Map getAttributes() { - return this.attributes; - } - - public A withAttributes(Map attributes) { - if (attributes == null) { - this.attributes = null; - } else { - this.attributes = new LinkedHashMap(attributes); - } - return (A) this; - } - - public boolean hasAttributes() { - return this.attributes != null; - } - - public A addToCapacity(String key,Quantity value) { - if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } - if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; - } - - public A addToCapacity(Map map) { - if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } - if(map != null) { this.capacity.putAll(map);} return (A)this; - } - - public A removeFromCapacity(String key) { - if(this.capacity == null) { return (A) this; } - if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; - } - - public A removeFromCapacity(Map map) { - if(this.capacity == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; - } - - public Map getCapacity() { - return this.capacity; - } - - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); - } - return (A) this; - } - - public boolean hasCapacity() { - return this.capacity != null; - } - - public A addToConsumesCounters(int index,V1alpha3DeviceCounterConsumption item) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} - V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); - } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(index, builder); - } - return (A)this; - } - - public A setToConsumesCounters(int index,V1alpha3DeviceCounterConsumption item) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} - V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); - } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.set(index, builder); - } - return (A)this; - } - - public A addToConsumesCounters(io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption... items) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} - for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; - } - - public A addAllToConsumesCounters(Collection items) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} - for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; - } - - public A removeFromConsumesCounters(io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption... items) { - if (this.consumesCounters == null) return (A)this; - for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; - } - - public A removeAllFromConsumesCounters(Collection items) { - if (this.consumesCounters == null) return (A)this; - for (V1alpha3DeviceCounterConsumption item : items) {V1alpha3DeviceCounterConsumptionBuilder builder = new V1alpha3DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; - } - - public A removeMatchingFromConsumesCounters(Predicate predicate) { - if (consumesCounters == null) return (A) this; - final Iterator each = consumesCounters.iterator(); - final List visitables = _visitables.get("consumesCounters"); - while (each.hasNext()) { - V1alpha3DeviceCounterConsumptionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConsumesCounters() { - return this.consumesCounters != null ? build(consumesCounters) : null; - } - - public V1alpha3DeviceCounterConsumption buildConsumesCounter(int index) { - return this.consumesCounters.get(index).build(); - } - - public V1alpha3DeviceCounterConsumption buildFirstConsumesCounter() { - return this.consumesCounters.get(0).build(); - } - - public V1alpha3DeviceCounterConsumption buildLastConsumesCounter() { - return this.consumesCounters.get(consumesCounters.size() - 1).build(); - } - - public V1alpha3DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { - for (V1alpha3DeviceCounterConsumptionBuilder item : consumesCounters) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingConsumesCounter(Predicate predicate) { - for (V1alpha3DeviceCounterConsumptionBuilder item : consumesCounters) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConsumesCounters(List consumesCounters) { - if (this.consumesCounters != null) { - this._visitables.get("consumesCounters").clear(); - } - if (consumesCounters != null) { - this.consumesCounters = new ArrayList(); - for (V1alpha3DeviceCounterConsumption item : consumesCounters) { - this.addToConsumesCounters(item); - } - } else { - this.consumesCounters = null; - } - return (A) this; - } - - public A withConsumesCounters(io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption... consumesCounters) { - if (this.consumesCounters != null) { - this.consumesCounters.clear(); - _visitables.remove("consumesCounters"); - } - if (consumesCounters != null) { - for (V1alpha3DeviceCounterConsumption item : consumesCounters) { - this.addToConsumesCounters(item); - } - } - return (A) this; - } - - public boolean hasConsumesCounters() { - return this.consumesCounters != null && !this.consumesCounters.isEmpty(); - } - - public ConsumesCountersNested addNewConsumesCounter() { - return new ConsumesCountersNested(-1, null); - } - - public ConsumesCountersNested addNewConsumesCounterLike(V1alpha3DeviceCounterConsumption item) { - return new ConsumesCountersNested(-1, item); - } - - public ConsumesCountersNested setNewConsumesCounterLike(int index,V1alpha3DeviceCounterConsumption item) { - return new ConsumesCountersNested(index, item); - } - - public ConsumesCountersNested editConsumesCounter(int index) { - if (consumesCounters.size() <= index) throw new RuntimeException("Can't edit consumesCounters. Index exceeds size."); - return setNewConsumesCounterLike(index, buildConsumesCounter(index)); - } - - public ConsumesCountersNested editFirstConsumesCounter() { - if (consumesCounters.size() == 0) throw new RuntimeException("Can't edit first consumesCounters. The list is empty."); - return setNewConsumesCounterLike(0, buildConsumesCounter(0)); - } - - public ConsumesCountersNested editLastConsumesCounter() { - int index = consumesCounters.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last consumesCounters. The list is empty."); - return setNewConsumesCounterLike(index, buildConsumesCounter(index)); - } - - public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { - int index = -1; - for (int i=0;i withNewNodeSelector() { - return new NodeSelectorNested(null); - } - - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); - } - - public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); - } - - public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); - } - - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); - } - - public A addToTaints(int index,V1alpha3DeviceTaint item) { - if (this.taints == null) {this.taints = new ArrayList();} - V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.add(index, builder); - } - return (A)this; - } - - public A setToTaints(int index,V1alpha3DeviceTaint item) { - if (this.taints == null) {this.taints = new ArrayList();} - V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.set(index, builder); - } - return (A)this; - } - - public A addToTaints(io.kubernetes.client.openapi.models.V1alpha3DeviceTaint... items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; - } - - public A addAllToTaints(Collection items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; - } - - public A removeFromTaints(io.kubernetes.client.openapi.models.V1alpha3DeviceTaint... items) { - if (this.taints == null) return (A)this; - for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; - } - - public A removeAllFromTaints(Collection items) { - if (this.taints == null) return (A)this; - for (V1alpha3DeviceTaint item : items) {V1alpha3DeviceTaintBuilder builder = new V1alpha3DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; - } - - public A removeMatchingFromTaints(Predicate predicate) { - if (taints == null) return (A) this; - final Iterator each = taints.iterator(); - final List visitables = _visitables.get("taints"); - while (each.hasNext()) { - V1alpha3DeviceTaintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildTaints() { - return this.taints != null ? build(taints) : null; - } - - public V1alpha3DeviceTaint buildTaint(int index) { - return this.taints.get(index).build(); - } - - public V1alpha3DeviceTaint buildFirstTaint() { - return this.taints.get(0).build(); - } - - public V1alpha3DeviceTaint buildLastTaint() { - return this.taints.get(taints.size() - 1).build(); - } - - public V1alpha3DeviceTaint buildMatchingTaint(Predicate predicate) { - for (V1alpha3DeviceTaintBuilder item : taints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingTaint(Predicate predicate) { - for (V1alpha3DeviceTaintBuilder item : taints) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTaints(List taints) { - if (this.taints != null) { - this._visitables.get("taints").clear(); - } - if (taints != null) { - this.taints = new ArrayList(); - for (V1alpha3DeviceTaint item : taints) { - this.addToTaints(item); - } - } else { - this.taints = null; - } - return (A) this; - } - - public A withTaints(io.kubernetes.client.openapi.models.V1alpha3DeviceTaint... taints) { - if (this.taints != null) { - this.taints.clear(); - _visitables.remove("taints"); - } - if (taints != null) { - for (V1alpha3DeviceTaint item : taints) { - this.addToTaints(item); - } - } - return (A) this; - } - - public boolean hasTaints() { - return this.taints != null && !this.taints.isEmpty(); - } - - public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); - } - - public TaintsNested addNewTaintLike(V1alpha3DeviceTaint item) { - return new TaintsNested(-1, item); - } - - public TaintsNested setNewTaintLike(int index,V1alpha3DeviceTaint item) { - return new TaintsNested(index, item); - } - - public TaintsNested editTaint(int index) { - if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); - return setNewTaintLike(index, buildTaint(index)); - } - - public TaintsNested editFirstTaint() { - if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); - return setNewTaintLike(0, buildTaint(0)); - } - - public TaintsNested editLastTaint() { - int index = taints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); - return setNewTaintLike(index, buildTaint(index)); - } - - public TaintsNested editMatchingTaint(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha3DeviceCounterConsumptionFluent> implements Nested{ - ConsumesCountersNested(int index,V1alpha3DeviceCounterConsumption item) { - this.index = index; - this.builder = new V1alpha3DeviceCounterConsumptionBuilder(this, item); - } - V1alpha3DeviceCounterConsumptionBuilder builder; - int index; - - public N and() { - return (N) V1alpha3BasicDeviceFluent.this.setToConsumesCounters(index,builder.build()); - } - - public N endConsumesCounter() { - return and(); - } - - - } - public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ - NodeSelectorNested(V1NodeSelector item) { - this.builder = new V1NodeSelectorBuilder(this, item); - } - V1NodeSelectorBuilder builder; - - public N and() { - return (N) V1alpha3BasicDeviceFluent.this.withNodeSelector(builder.build()); - } - - public N endNodeSelector() { - return and(); - } - - - } - public class TaintsNested extends V1alpha3DeviceTaintFluent> implements Nested{ - TaintsNested(int index,V1alpha3DeviceTaint item) { - this.index = index; - this.builder = new V1alpha3DeviceTaintBuilder(this, item); - } - V1alpha3DeviceTaintBuilder builder; - int index; - - public N and() { - return (N) V1alpha3BasicDeviceFluent.this.setToTaints(index,builder.build()); - } - - public N endTaint() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java index 22381573f4..b1315f31cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha3CELDeviceSelectorBuilder extends V1alpha3CELDeviceSelectorFluent implements VisitableBuilder{ public V1alpha3CELDeviceSelectorBuilder() { this(new V1alpha3CELDeviceSelector()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java index ddfb8766a6..3c4cf6b918 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3CELDeviceSelectorFluent> extends BaseFluent{ +public class V1alpha3CELDeviceSelectorFluent> extends BaseFluent{ public V1alpha3CELDeviceSelectorFluent() { } @@ -19,10 +21,10 @@ public V1alpha3CELDeviceSelectorFluent(V1alpha3CELDeviceSelector instance) { private String expression; protected void copyInstance(V1alpha3CELDeviceSelector instance) { - instance = (instance != null ? instance : new V1alpha3CELDeviceSelector()); + instance = instance != null ? instance : new V1alpha3CELDeviceSelector(); if (instance != null) { - this.withExpression(instance.getExpression()); - } + this.withExpression(instance.getExpression()); + } } public String getExpression() { @@ -39,22 +41,33 @@ public boolean hasExpression() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha3CELDeviceSelectorFluent that = (V1alpha3CELDeviceSelectorFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, super.hashCode()); + return Objects.hash(expression); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterBuilder.java deleted file mode 100644 index 12e4c2d767..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3CounterBuilder extends V1alpha3CounterFluent implements VisitableBuilder{ - public V1alpha3CounterBuilder() { - this(new V1alpha3Counter()); - } - - public V1alpha3CounterBuilder(V1alpha3CounterFluent fluent) { - this(fluent, new V1alpha3Counter()); - } - - public V1alpha3CounterBuilder(V1alpha3CounterFluent fluent,V1alpha3Counter instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3CounterBuilder(V1alpha3Counter instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3CounterFluent fluent; - - public V1alpha3Counter build() { - V1alpha3Counter buildable = new V1alpha3Counter(); - buildable.setValue(fluent.getValue()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterFluent.java deleted file mode 100644 index 8d6017922a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterFluent.java +++ /dev/null @@ -1,68 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.custom.Quantity; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3CounterFluent> extends BaseFluent{ - public V1alpha3CounterFluent() { - } - - public V1alpha3CounterFluent(V1alpha3Counter instance) { - this.copyInstance(instance); - } - private Quantity value; - - protected void copyInstance(V1alpha3Counter instance) { - instance = (instance != null ? instance : new V1alpha3Counter()); - if (instance != null) { - this.withValue(instance.getValue()); - } - } - - public Quantity getValue() { - return this.value; - } - - public A withValue(Quantity value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public A withNewValue(String value) { - return (A)withValue(new Quantity(value)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3CounterFluent that = (V1alpha3CounterFluent) o; - if (!java.util.Objects.equals(value, that.value)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(value, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (value != null) { sb.append("value:"); sb.append(value); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetBuilder.java deleted file mode 100644 index 1b9a8817f8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3CounterSetBuilder extends V1alpha3CounterSetFluent implements VisitableBuilder{ - public V1alpha3CounterSetBuilder() { - this(new V1alpha3CounterSet()); - } - - public V1alpha3CounterSetBuilder(V1alpha3CounterSetFluent fluent) { - this(fluent, new V1alpha3CounterSet()); - } - - public V1alpha3CounterSetBuilder(V1alpha3CounterSetFluent fluent,V1alpha3CounterSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3CounterSetBuilder(V1alpha3CounterSet instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3CounterSetFluent fluent; - - public V1alpha3CounterSet build() { - V1alpha3CounterSet buildable = new V1alpha3CounterSet(); - buildable.setCounters(fluent.getCounters()); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetFluent.java deleted file mode 100644 index ea99fb0907..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSetFluent.java +++ /dev/null @@ -1,106 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; -import java.util.Map; -import java.util.LinkedHashMap; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3CounterSetFluent> extends BaseFluent{ - public V1alpha3CounterSetFluent() { - } - - public V1alpha3CounterSetFluent(V1alpha3CounterSet instance) { - this.copyInstance(instance); - } - private Map counters; - private String name; - - protected void copyInstance(V1alpha3CounterSet instance) { - instance = (instance != null ? instance : new V1alpha3CounterSet()); - if (instance != null) { - this.withCounters(instance.getCounters()); - this.withName(instance.getName()); - } - } - - public A addToCounters(String key,V1alpha3Counter value) { - if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } - if(key != null && value != null) {this.counters.put(key, value);} return (A)this; - } - - public A addToCounters(Map map) { - if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } - if(map != null) { this.counters.putAll(map);} return (A)this; - } - - public A removeFromCounters(String key) { - if(this.counters == null) { return (A) this; } - if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; - } - - public A removeFromCounters(Map map) { - if(this.counters == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; - } - - public Map getCounters() { - return this.counters; - } - - public A withCounters(Map counters) { - if (counters == null) { - this.counters = null; - } else { - this.counters = new LinkedHashMap(counters); - } - return (A) this; - } - - public boolean hasCounters() { - return this.counters != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3CounterSetFluent that = (V1alpha3CounterSetFluent) o; - if (!java.util.Objects.equals(counters, that.counters)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(counters, name, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationBuilder.java deleted file mode 100644 index c6b6b6347c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceAllocationConfigurationBuilder extends V1alpha3DeviceAllocationConfigurationFluent implements VisitableBuilder{ - public V1alpha3DeviceAllocationConfigurationBuilder() { - this(new V1alpha3DeviceAllocationConfiguration()); - } - - public V1alpha3DeviceAllocationConfigurationBuilder(V1alpha3DeviceAllocationConfigurationFluent fluent) { - this(fluent, new V1alpha3DeviceAllocationConfiguration()); - } - - public V1alpha3DeviceAllocationConfigurationBuilder(V1alpha3DeviceAllocationConfigurationFluent fluent,V1alpha3DeviceAllocationConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceAllocationConfigurationBuilder(V1alpha3DeviceAllocationConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceAllocationConfigurationFluent fluent; - - public V1alpha3DeviceAllocationConfiguration build() { - V1alpha3DeviceAllocationConfiguration buildable = new V1alpha3DeviceAllocationConfiguration(); - buildable.setOpaque(fluent.buildOpaque()); - buildable.setRequests(fluent.getRequests()); - buildable.setSource(fluent.getSource()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationFluent.java deleted file mode 100644 index c97fe0eb64..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfigurationFluent.java +++ /dev/null @@ -1,225 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceAllocationConfigurationFluent> extends BaseFluent{ - public V1alpha3DeviceAllocationConfigurationFluent() { - } - - public V1alpha3DeviceAllocationConfigurationFluent(V1alpha3DeviceAllocationConfiguration instance) { - this.copyInstance(instance); - } - private V1alpha3OpaqueDeviceConfigurationBuilder opaque; - private List requests; - private String source; - - protected void copyInstance(V1alpha3DeviceAllocationConfiguration instance) { - instance = (instance != null ? instance : new V1alpha3DeviceAllocationConfiguration()); - if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - this.withSource(instance.getSource()); - } - } - - public V1alpha3OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1alpha3OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); - } - return (A) this; - } - - public boolean hasOpaque() { - return this.opaque != null; - } - - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); - } - - public OpaqueNested withNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); - } - - public OpaqueNested editOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); - } - - public OpaqueNested editOrNewOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1alpha3OpaqueDeviceConfigurationBuilder().build())); - } - - public OpaqueNested editOrNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); - } - - public A addToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.add(index, item); - return (A)this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.set(index, item); return (A)this; - } - - public A addToRequests(java.lang.String... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; - } - - public A removeFromRequests(java.lang.String... items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; - } - - public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; - } - - public List getRequests() { - return this.requests; - } - - public String getRequest(int index) { - return this.requests.get(index); - } - - public String getFirstRequest() { - return this.requests.get(0); - } - - public String getLastRequest() { - return this.requests.get(requests.size() - 1); - } - - public String getMatchingRequest(Predicate predicate) { - for (String item : requests) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingRequest(Predicate predicate) { - for (String item : requests) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(java.lang.String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } - } - return (A) this; - } - - public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); - } - - public String getSource() { - return this.source; - } - - public A withSource(String source) { - this.source = source; - return (A) this; - } - - public boolean hasSource() { - return this.source != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceAllocationConfigurationFluent that = (V1alpha3DeviceAllocationConfigurationFluent) o; - if (!java.util.Objects.equals(opaque, that.opaque)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; - if (!java.util.Objects.equals(source, that.source)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(opaque, requests, source, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests + ","); } - if (source != null) { sb.append("source:"); sb.append(source); } - sb.append("}"); - return sb.toString(); - } - public class OpaqueNested extends V1alpha3OpaqueDeviceConfigurationFluent> implements Nested{ - OpaqueNested(V1alpha3OpaqueDeviceConfiguration item) { - this.builder = new V1alpha3OpaqueDeviceConfigurationBuilder(this, item); - } - V1alpha3OpaqueDeviceConfigurationBuilder builder; - - public N and() { - return (N) V1alpha3DeviceAllocationConfigurationFluent.this.withOpaque(builder.build()); - } - - public N endOpaque() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultBuilder.java deleted file mode 100644 index e1dfd5231b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceAllocationResultBuilder extends V1alpha3DeviceAllocationResultFluent implements VisitableBuilder{ - public V1alpha3DeviceAllocationResultBuilder() { - this(new V1alpha3DeviceAllocationResult()); - } - - public V1alpha3DeviceAllocationResultBuilder(V1alpha3DeviceAllocationResultFluent fluent) { - this(fluent, new V1alpha3DeviceAllocationResult()); - } - - public V1alpha3DeviceAllocationResultBuilder(V1alpha3DeviceAllocationResultFluent fluent,V1alpha3DeviceAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceAllocationResultBuilder(V1alpha3DeviceAllocationResult instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceAllocationResultFluent fluent; - - public V1alpha3DeviceAllocationResult build() { - V1alpha3DeviceAllocationResult buildable = new V1alpha3DeviceAllocationResult(); - buildable.setConfig(fluent.buildConfig()); - buildable.setResults(fluent.buildResults()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java deleted file mode 100644 index 8c55c1475a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResultFluent.java +++ /dev/null @@ -1,422 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceAllocationResultFluent> extends BaseFluent{ - public V1alpha3DeviceAllocationResultFluent() { - } - - public V1alpha3DeviceAllocationResultFluent(V1alpha3DeviceAllocationResult instance) { - this.copyInstance(instance); - } - private ArrayList config; - private ArrayList results; - - protected void copyInstance(V1alpha3DeviceAllocationResult instance) { - instance = (instance != null ? instance : new V1alpha3DeviceAllocationResult()); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withResults(instance.getResults()); - } - } - - public A addToConfig(int index,V1alpha3DeviceAllocationConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} - V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.add(index, builder); - } - return (A)this; - } - - public A setToConfig(int index,V1alpha3DeviceAllocationConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} - V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); - } - return (A)this; - } - - public A addToConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration... items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1alpha3DeviceAllocationConfiguration item : items) {V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; - } - - public A addAllToConfig(Collection items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1alpha3DeviceAllocationConfiguration item : items) {V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; - } - - public A removeFromConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration... items) { - if (this.config == null) return (A)this; - for (V1alpha3DeviceAllocationConfiguration item : items) {V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; - } - - public A removeAllFromConfig(Collection items) { - if (this.config == null) return (A)this; - for (V1alpha3DeviceAllocationConfiguration item : items) {V1alpha3DeviceAllocationConfigurationBuilder builder = new V1alpha3DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; - } - - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) return (A) this; - final Iterator each = config.iterator(); - final List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1alpha3DeviceAllocationConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConfig() { - return this.config != null ? build(config) : null; - } - - public V1alpha3DeviceAllocationConfiguration buildConfig(int index) { - return this.config.get(index).build(); - } - - public V1alpha3DeviceAllocationConfiguration buildFirstConfig() { - return this.config.get(0).build(); - } - - public V1alpha3DeviceAllocationConfiguration buildLastConfig() { - return this.config.get(config.size() - 1).build(); - } - - public V1alpha3DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { - for (V1alpha3DeviceAllocationConfigurationBuilder item : config) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingConfig(Predicate predicate) { - for (V1alpha3DeviceAllocationConfigurationBuilder item : config) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1alpha3DeviceAllocationConfiguration item : config) { - this.addToConfig(item); - } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1alpha3DeviceAllocationConfiguration item : config) { - this.addToConfig(item); - } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !this.config.isEmpty(); - } - - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); - } - - public ConfigNested addNewConfigLike(V1alpha3DeviceAllocationConfiguration item) { - return new ConfigNested(-1, item); - } - - public ConfigNested setNewConfigLike(int index,V1alpha3DeviceAllocationConfiguration item) { - return new ConfigNested(index, item); - } - - public ConfigNested editConfig(int index) { - if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); - return setNewConfigLike(index, buildConfig(index)); - } - - public ConfigNested editFirstConfig() { - if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); - return setNewConfigLike(0, buildConfig(0)); - } - - public ConfigNested editLastConfig() { - int index = config.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); - return setNewConfigLike(index, buildConfig(index)); - } - - public ConfigNested editMatchingConfig(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); - } else { - _visitables.get("results").add(builder); - results.add(index, builder); - } - return (A)this; - } - - public A setToResults(int index,V1alpha3DeviceRequestAllocationResult item) { - if (this.results == null) {this.results = new ArrayList();} - V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); - } else { - _visitables.get("results").add(builder); - results.set(index, builder); - } - return (A)this; - } - - public A addToResults(io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult... items) { - if (this.results == null) {this.results = new ArrayList();} - for (V1alpha3DeviceRequestAllocationResult item : items) {V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; - } - - public A addAllToResults(Collection items) { - if (this.results == null) {this.results = new ArrayList();} - for (V1alpha3DeviceRequestAllocationResult item : items) {V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; - } - - public A removeFromResults(io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult... items) { - if (this.results == null) return (A)this; - for (V1alpha3DeviceRequestAllocationResult item : items) {V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; - } - - public A removeAllFromResults(Collection items) { - if (this.results == null) return (A)this; - for (V1alpha3DeviceRequestAllocationResult item : items) {V1alpha3DeviceRequestAllocationResultBuilder builder = new V1alpha3DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; - } - - public A removeMatchingFromResults(Predicate predicate) { - if (results == null) return (A) this; - final Iterator each = results.iterator(); - final List visitables = _visitables.get("results"); - while (each.hasNext()) { - V1alpha3DeviceRequestAllocationResultBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildResults() { - return this.results != null ? build(results) : null; - } - - public V1alpha3DeviceRequestAllocationResult buildResult(int index) { - return this.results.get(index).build(); - } - - public V1alpha3DeviceRequestAllocationResult buildFirstResult() { - return this.results.get(0).build(); - } - - public V1alpha3DeviceRequestAllocationResult buildLastResult() { - return this.results.get(results.size() - 1).build(); - } - - public V1alpha3DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { - for (V1alpha3DeviceRequestAllocationResultBuilder item : results) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingResult(Predicate predicate) { - for (V1alpha3DeviceRequestAllocationResultBuilder item : results) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResults(List results) { - if (this.results != null) { - this._visitables.get("results").clear(); - } - if (results != null) { - this.results = new ArrayList(); - for (V1alpha3DeviceRequestAllocationResult item : results) { - this.addToResults(item); - } - } else { - this.results = null; - } - return (A) this; - } - - public A withResults(io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult... results) { - if (this.results != null) { - this.results.clear(); - _visitables.remove("results"); - } - if (results != null) { - for (V1alpha3DeviceRequestAllocationResult item : results) { - this.addToResults(item); - } - } - return (A) this; - } - - public boolean hasResults() { - return this.results != null && !this.results.isEmpty(); - } - - public ResultsNested addNewResult() { - return new ResultsNested(-1, null); - } - - public ResultsNested addNewResultLike(V1alpha3DeviceRequestAllocationResult item) { - return new ResultsNested(-1, item); - } - - public ResultsNested setNewResultLike(int index,V1alpha3DeviceRequestAllocationResult item) { - return new ResultsNested(index, item); - } - - public ResultsNested editResult(int index) { - if (results.size() <= index) throw new RuntimeException("Can't edit results. Index exceeds size."); - return setNewResultLike(index, buildResult(index)); - } - - public ResultsNested editFirstResult() { - if (results.size() == 0) throw new RuntimeException("Can't edit first results. The list is empty."); - return setNewResultLike(0, buildResult(0)); - } - - public ResultsNested editLastResult() { - int index = results.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last results. The list is empty."); - return setNewResultLike(index, buildResult(index)); - } - - public ResultsNested editMatchingResult(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha3DeviceAllocationConfigurationFluent> implements Nested{ - ConfigNested(int index,V1alpha3DeviceAllocationConfiguration item) { - this.index = index; - this.builder = new V1alpha3DeviceAllocationConfigurationBuilder(this, item); - } - V1alpha3DeviceAllocationConfigurationBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceAllocationResultFluent.this.setToConfig(index,builder.build()); - } - - public N endConfig() { - return and(); - } - - - } - public class ResultsNested extends V1alpha3DeviceRequestAllocationResultFluent> implements Nested{ - ResultsNested(int index,V1alpha3DeviceRequestAllocationResult item) { - this.index = index; - this.builder = new V1alpha3DeviceRequestAllocationResultBuilder(this, item); - } - V1alpha3DeviceRequestAllocationResultBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceAllocationResultFluent.this.setToResults(index,builder.build()); - } - - public N endResult() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeBuilder.java deleted file mode 100644 index 2e7d3a7dcb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceAttributeBuilder extends V1alpha3DeviceAttributeFluent implements VisitableBuilder{ - public V1alpha3DeviceAttributeBuilder() { - this(new V1alpha3DeviceAttribute()); - } - - public V1alpha3DeviceAttributeBuilder(V1alpha3DeviceAttributeFluent fluent) { - this(fluent, new V1alpha3DeviceAttribute()); - } - - public V1alpha3DeviceAttributeBuilder(V1alpha3DeviceAttributeFluent fluent,V1alpha3DeviceAttribute instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceAttributeBuilder(V1alpha3DeviceAttribute instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceAttributeFluent fluent; - - public V1alpha3DeviceAttribute build() { - V1alpha3DeviceAttribute buildable = new V1alpha3DeviceAttribute(); - buildable.setBool(fluent.getBool()); - buildable.setInt(fluent.getInt()); - buildable.setString(fluent.getString()); - buildable.setVersion(fluent.getVersion()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeFluent.java deleted file mode 100644 index a987bc9fc3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttributeFluent.java +++ /dev/null @@ -1,120 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.lang.Object; -import java.lang.String; -import java.lang.Boolean; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceAttributeFluent> extends BaseFluent{ - public V1alpha3DeviceAttributeFluent() { - } - - public V1alpha3DeviceAttributeFluent(V1alpha3DeviceAttribute instance) { - this.copyInstance(instance); - } - private Boolean bool; - private Long _int; - private String string; - private String version; - - protected void copyInstance(V1alpha3DeviceAttribute instance) { - instance = (instance != null ? instance : new V1alpha3DeviceAttribute()); - if (instance != null) { - this.withBool(instance.getBool()); - this.withInt(instance.getInt()); - this.withString(instance.getString()); - this.withVersion(instance.getVersion()); - } - } - - public Boolean getBool() { - return this.bool; - } - - public A withBool(Boolean bool) { - this.bool = bool; - return (A) this; - } - - public boolean hasBool() { - return this.bool != null; - } - - public Long getInt() { - return this._int; - } - - public A withInt(Long _int) { - this._int = _int; - return (A) this; - } - - public boolean hasInt() { - return this._int != null; - } - - public String getString() { - return this.string; - } - - public A withString(String string) { - this.string = string; - return (A) this; - } - - public boolean hasString() { - return this.string != null; - } - - public String getVersion() { - return this.version; - } - - public A withVersion(String version) { - this.version = version; - return (A) this; - } - - public boolean hasVersion() { - return this.version != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceAttributeFluent that = (V1alpha3DeviceAttributeFluent) o; - if (!java.util.Objects.equals(bool, that.bool)) return false; - if (!java.util.Objects.equals(_int, that._int)) return false; - if (!java.util.Objects.equals(string, that.string)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(bool, _int, string, version, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (bool != null) { sb.append("bool:"); sb.append(bool + ","); } - if (_int != null) { sb.append("_int:"); sb.append(_int + ","); } - if (string != null) { sb.append("string:"); sb.append(string + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } - sb.append("}"); - return sb.toString(); - } - - public A withBool() { - return withBool(true); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceBuilder.java deleted file mode 100644 index ba127ea551..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceBuilder extends V1alpha3DeviceFluent implements VisitableBuilder{ - public V1alpha3DeviceBuilder() { - this(new V1alpha3Device()); - } - - public V1alpha3DeviceBuilder(V1alpha3DeviceFluent fluent) { - this(fluent, new V1alpha3Device()); - } - - public V1alpha3DeviceBuilder(V1alpha3DeviceFluent fluent,V1alpha3Device instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceBuilder(V1alpha3Device instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceFluent fluent; - - public V1alpha3Device build() { - V1alpha3Device buildable = new V1alpha3Device(); - buildable.setBasic(fluent.buildBasic()); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimBuilder.java deleted file mode 100644 index ed57e95f33..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceClaimBuilder extends V1alpha3DeviceClaimFluent implements VisitableBuilder{ - public V1alpha3DeviceClaimBuilder() { - this(new V1alpha3DeviceClaim()); - } - - public V1alpha3DeviceClaimBuilder(V1alpha3DeviceClaimFluent fluent) { - this(fluent, new V1alpha3DeviceClaim()); - } - - public V1alpha3DeviceClaimBuilder(V1alpha3DeviceClaimFluent fluent,V1alpha3DeviceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceClaimBuilder(V1alpha3DeviceClaim instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceClaimFluent fluent; - - public V1alpha3DeviceClaim build() { - V1alpha3DeviceClaim buildable = new V1alpha3DeviceClaim(); - buildable.setConfig(fluent.buildConfig()); - buildable.setConstraints(fluent.buildConstraints()); - buildable.setRequests(fluent.buildRequests()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationBuilder.java deleted file mode 100644 index b325f00396..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceClaimConfigurationBuilder extends V1alpha3DeviceClaimConfigurationFluent implements VisitableBuilder{ - public V1alpha3DeviceClaimConfigurationBuilder() { - this(new V1alpha3DeviceClaimConfiguration()); - } - - public V1alpha3DeviceClaimConfigurationBuilder(V1alpha3DeviceClaimConfigurationFluent fluent) { - this(fluent, new V1alpha3DeviceClaimConfiguration()); - } - - public V1alpha3DeviceClaimConfigurationBuilder(V1alpha3DeviceClaimConfigurationFluent fluent,V1alpha3DeviceClaimConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceClaimConfigurationBuilder(V1alpha3DeviceClaimConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceClaimConfigurationFluent fluent; - - public V1alpha3DeviceClaimConfiguration build() { - V1alpha3DeviceClaimConfiguration buildable = new V1alpha3DeviceClaimConfiguration(); - buildable.setOpaque(fluent.buildOpaque()); - buildable.setRequests(fluent.getRequests()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationFluent.java deleted file mode 100644 index 38e369a818..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfigurationFluent.java +++ /dev/null @@ -1,208 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceClaimConfigurationFluent> extends BaseFluent{ - public V1alpha3DeviceClaimConfigurationFluent() { - } - - public V1alpha3DeviceClaimConfigurationFluent(V1alpha3DeviceClaimConfiguration instance) { - this.copyInstance(instance); - } - private V1alpha3OpaqueDeviceConfigurationBuilder opaque; - private List requests; - - protected void copyInstance(V1alpha3DeviceClaimConfiguration instance) { - instance = (instance != null ? instance : new V1alpha3DeviceClaimConfiguration()); - if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - } - } - - public V1alpha3OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1alpha3OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); - } - return (A) this; - } - - public boolean hasOpaque() { - return this.opaque != null; - } - - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); - } - - public OpaqueNested withNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); - } - - public OpaqueNested editOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); - } - - public OpaqueNested editOrNewOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1alpha3OpaqueDeviceConfigurationBuilder().build())); - } - - public OpaqueNested editOrNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); - } - - public A addToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.add(index, item); - return (A)this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.set(index, item); return (A)this; - } - - public A addToRequests(java.lang.String... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; - } - - public A removeFromRequests(java.lang.String... items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; - } - - public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; - } - - public List getRequests() { - return this.requests; - } - - public String getRequest(int index) { - return this.requests.get(index); - } - - public String getFirstRequest() { - return this.requests.get(0); - } - - public String getLastRequest() { - return this.requests.get(requests.size() - 1); - } - - public String getMatchingRequest(Predicate predicate) { - for (String item : requests) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingRequest(Predicate predicate) { - for (String item : requests) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(java.lang.String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } - } - return (A) this; - } - - public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceClaimConfigurationFluent that = (V1alpha3DeviceClaimConfigurationFluent) o; - if (!java.util.Objects.equals(opaque, that.opaque)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(opaque, requests, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } - sb.append("}"); - return sb.toString(); - } - public class OpaqueNested extends V1alpha3OpaqueDeviceConfigurationFluent> implements Nested{ - OpaqueNested(V1alpha3OpaqueDeviceConfiguration item) { - this.builder = new V1alpha3OpaqueDeviceConfigurationBuilder(this, item); - } - V1alpha3OpaqueDeviceConfigurationBuilder builder; - - public N and() { - return (N) V1alpha3DeviceClaimConfigurationFluent.this.withOpaque(builder.build()); - } - - public N endOpaque() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java deleted file mode 100644 index 5528312976..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimFluent.java +++ /dev/null @@ -1,607 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceClaimFluent> extends BaseFluent{ - public V1alpha3DeviceClaimFluent() { - } - - public V1alpha3DeviceClaimFluent(V1alpha3DeviceClaim instance) { - this.copyInstance(instance); - } - private ArrayList config; - private ArrayList constraints; - private ArrayList requests; - - protected void copyInstance(V1alpha3DeviceClaim instance) { - instance = (instance != null ? instance : new V1alpha3DeviceClaim()); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withConstraints(instance.getConstraints()); - this.withRequests(instance.getRequests()); - } - } - - public A addToConfig(int index,V1alpha3DeviceClaimConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} - V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.add(index, builder); - } - return (A)this; - } - - public A setToConfig(int index,V1alpha3DeviceClaimConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} - V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); - } - return (A)this; - } - - public A addToConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClaimConfiguration... items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1alpha3DeviceClaimConfiguration item : items) {V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; - } - - public A addAllToConfig(Collection items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1alpha3DeviceClaimConfiguration item : items) {V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; - } - - public A removeFromConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClaimConfiguration... items) { - if (this.config == null) return (A)this; - for (V1alpha3DeviceClaimConfiguration item : items) {V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; - } - - public A removeAllFromConfig(Collection items) { - if (this.config == null) return (A)this; - for (V1alpha3DeviceClaimConfiguration item : items) {V1alpha3DeviceClaimConfigurationBuilder builder = new V1alpha3DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; - } - - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) return (A) this; - final Iterator each = config.iterator(); - final List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1alpha3DeviceClaimConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConfig() { - return this.config != null ? build(config) : null; - } - - public V1alpha3DeviceClaimConfiguration buildConfig(int index) { - return this.config.get(index).build(); - } - - public V1alpha3DeviceClaimConfiguration buildFirstConfig() { - return this.config.get(0).build(); - } - - public V1alpha3DeviceClaimConfiguration buildLastConfig() { - return this.config.get(config.size() - 1).build(); - } - - public V1alpha3DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { - for (V1alpha3DeviceClaimConfigurationBuilder item : config) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingConfig(Predicate predicate) { - for (V1alpha3DeviceClaimConfigurationBuilder item : config) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1alpha3DeviceClaimConfiguration item : config) { - this.addToConfig(item); - } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClaimConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1alpha3DeviceClaimConfiguration item : config) { - this.addToConfig(item); - } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !this.config.isEmpty(); - } - - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); - } - - public ConfigNested addNewConfigLike(V1alpha3DeviceClaimConfiguration item) { - return new ConfigNested(-1, item); - } - - public ConfigNested setNewConfigLike(int index,V1alpha3DeviceClaimConfiguration item) { - return new ConfigNested(index, item); - } - - public ConfigNested editConfig(int index) { - if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); - return setNewConfigLike(index, buildConfig(index)); - } - - public ConfigNested editFirstConfig() { - if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); - return setNewConfigLike(0, buildConfig(0)); - } - - public ConfigNested editLastConfig() { - int index = config.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); - return setNewConfigLike(index, buildConfig(index)); - } - - public ConfigNested editMatchingConfig(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); - } else { - _visitables.get("constraints").add(builder); - constraints.add(index, builder); - } - return (A)this; - } - - public A setToConstraints(int index,V1alpha3DeviceConstraint item) { - if (this.constraints == null) {this.constraints = new ArrayList();} - V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); - } else { - _visitables.get("constraints").add(builder); - constraints.set(index, builder); - } - return (A)this; - } - - public A addToConstraints(io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint... items) { - if (this.constraints == null) {this.constraints = new ArrayList();} - for (V1alpha3DeviceConstraint item : items) {V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; - } - - public A addAllToConstraints(Collection items) { - if (this.constraints == null) {this.constraints = new ArrayList();} - for (V1alpha3DeviceConstraint item : items) {V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; - } - - public A removeFromConstraints(io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint... items) { - if (this.constraints == null) return (A)this; - for (V1alpha3DeviceConstraint item : items) {V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; - } - - public A removeAllFromConstraints(Collection items) { - if (this.constraints == null) return (A)this; - for (V1alpha3DeviceConstraint item : items) {V1alpha3DeviceConstraintBuilder builder = new V1alpha3DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; - } - - public A removeMatchingFromConstraints(Predicate predicate) { - if (constraints == null) return (A) this; - final Iterator each = constraints.iterator(); - final List visitables = _visitables.get("constraints"); - while (each.hasNext()) { - V1alpha3DeviceConstraintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConstraints() { - return this.constraints != null ? build(constraints) : null; - } - - public V1alpha3DeviceConstraint buildConstraint(int index) { - return this.constraints.get(index).build(); - } - - public V1alpha3DeviceConstraint buildFirstConstraint() { - return this.constraints.get(0).build(); - } - - public V1alpha3DeviceConstraint buildLastConstraint() { - return this.constraints.get(constraints.size() - 1).build(); - } - - public V1alpha3DeviceConstraint buildMatchingConstraint(Predicate predicate) { - for (V1alpha3DeviceConstraintBuilder item : constraints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingConstraint(Predicate predicate) { - for (V1alpha3DeviceConstraintBuilder item : constraints) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConstraints(List constraints) { - if (this.constraints != null) { - this._visitables.get("constraints").clear(); - } - if (constraints != null) { - this.constraints = new ArrayList(); - for (V1alpha3DeviceConstraint item : constraints) { - this.addToConstraints(item); - } - } else { - this.constraints = null; - } - return (A) this; - } - - public A withConstraints(io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint... constraints) { - if (this.constraints != null) { - this.constraints.clear(); - _visitables.remove("constraints"); - } - if (constraints != null) { - for (V1alpha3DeviceConstraint item : constraints) { - this.addToConstraints(item); - } - } - return (A) this; - } - - public boolean hasConstraints() { - return this.constraints != null && !this.constraints.isEmpty(); - } - - public ConstraintsNested addNewConstraint() { - return new ConstraintsNested(-1, null); - } - - public ConstraintsNested addNewConstraintLike(V1alpha3DeviceConstraint item) { - return new ConstraintsNested(-1, item); - } - - public ConstraintsNested setNewConstraintLike(int index,V1alpha3DeviceConstraint item) { - return new ConstraintsNested(index, item); - } - - public ConstraintsNested editConstraint(int index) { - if (constraints.size() <= index) throw new RuntimeException("Can't edit constraints. Index exceeds size."); - return setNewConstraintLike(index, buildConstraint(index)); - } - - public ConstraintsNested editFirstConstraint() { - if (constraints.size() == 0) throw new RuntimeException("Can't edit first constraints. The list is empty."); - return setNewConstraintLike(0, buildConstraint(0)); - } - - public ConstraintsNested editLastConstraint() { - int index = constraints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last constraints. The list is empty."); - return setNewConstraintLike(index, buildConstraint(index)); - } - - public ConstraintsNested editMatchingConstraint(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); - } else { - _visitables.get("requests").add(builder); - requests.add(index, builder); - } - return (A)this; - } - - public A setToRequests(int index,V1alpha3DeviceRequest item) { - if (this.requests == null) {this.requests = new ArrayList();} - V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); - } else { - _visitables.get("requests").add(builder); - requests.set(index, builder); - } - return (A)this; - } - - public A addToRequests(io.kubernetes.client.openapi.models.V1alpha3DeviceRequest... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (V1alpha3DeviceRequest item : items) {V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (V1alpha3DeviceRequest item : items) {V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; - } - - public A removeFromRequests(io.kubernetes.client.openapi.models.V1alpha3DeviceRequest... items) { - if (this.requests == null) return (A)this; - for (V1alpha3DeviceRequest item : items) {V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; - } - - public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (V1alpha3DeviceRequest item : items) {V1alpha3DeviceRequestBuilder builder = new V1alpha3DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; - } - - public A removeMatchingFromRequests(Predicate predicate) { - if (requests == null) return (A) this; - final Iterator each = requests.iterator(); - final List visitables = _visitables.get("requests"); - while (each.hasNext()) { - V1alpha3DeviceRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildRequests() { - return this.requests != null ? build(requests) : null; - } - - public V1alpha3DeviceRequest buildRequest(int index) { - return this.requests.get(index).build(); - } - - public V1alpha3DeviceRequest buildFirstRequest() { - return this.requests.get(0).build(); - } - - public V1alpha3DeviceRequest buildLastRequest() { - return this.requests.get(requests.size() - 1).build(); - } - - public V1alpha3DeviceRequest buildMatchingRequest(Predicate predicate) { - for (V1alpha3DeviceRequestBuilder item : requests) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingRequest(Predicate predicate) { - for (V1alpha3DeviceRequestBuilder item : requests) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRequests(List requests) { - if (this.requests != null) { - this._visitables.get("requests").clear(); - } - if (requests != null) { - this.requests = new ArrayList(); - for (V1alpha3DeviceRequest item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(io.kubernetes.client.openapi.models.V1alpha3DeviceRequest... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (V1alpha3DeviceRequest item : requests) { - this.addToRequests(item); - } - } - return (A) this; - } - - public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); - } - - public RequestsNested addNewRequest() { - return new RequestsNested(-1, null); - } - - public RequestsNested addNewRequestLike(V1alpha3DeviceRequest item) { - return new RequestsNested(-1, item); - } - - public RequestsNested setNewRequestLike(int index,V1alpha3DeviceRequest item) { - return new RequestsNested(index, item); - } - - public RequestsNested editRequest(int index) { - if (requests.size() <= index) throw new RuntimeException("Can't edit requests. Index exceeds size."); - return setNewRequestLike(index, buildRequest(index)); - } - - public RequestsNested editFirstRequest() { - if (requests.size() == 0) throw new RuntimeException("Can't edit first requests. The list is empty."); - return setNewRequestLike(0, buildRequest(0)); - } - - public RequestsNested editLastRequest() { - int index = requests.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last requests. The list is empty."); - return setNewRequestLike(index, buildRequest(index)); - } - - public RequestsNested editMatchingRequest(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha3DeviceClaimConfigurationFluent> implements Nested{ - ConfigNested(int index,V1alpha3DeviceClaimConfiguration item) { - this.index = index; - this.builder = new V1alpha3DeviceClaimConfigurationBuilder(this, item); - } - V1alpha3DeviceClaimConfigurationBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceClaimFluent.this.setToConfig(index,builder.build()); - } - - public N endConfig() { - return and(); - } - - - } - public class ConstraintsNested extends V1alpha3DeviceConstraintFluent> implements Nested{ - ConstraintsNested(int index,V1alpha3DeviceConstraint item) { - this.index = index; - this.builder = new V1alpha3DeviceConstraintBuilder(this, item); - } - V1alpha3DeviceConstraintBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceClaimFluent.this.setToConstraints(index,builder.build()); - } - - public N endConstraint() { - return and(); - } - - - } - public class RequestsNested extends V1alpha3DeviceRequestFluent> implements Nested{ - RequestsNested(int index,V1alpha3DeviceRequest item) { - this.index = index; - this.builder = new V1alpha3DeviceRequestBuilder(this, item); - } - V1alpha3DeviceRequestBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceClaimFluent.this.setToRequests(index,builder.build()); - } - - public N endRequest() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassBuilder.java deleted file mode 100644 index 6dc9a93800..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceClassBuilder extends V1alpha3DeviceClassFluent implements VisitableBuilder{ - public V1alpha3DeviceClassBuilder() { - this(new V1alpha3DeviceClass()); - } - - public V1alpha3DeviceClassBuilder(V1alpha3DeviceClassFluent fluent) { - this(fluent, new V1alpha3DeviceClass()); - } - - public V1alpha3DeviceClassBuilder(V1alpha3DeviceClassFluent fluent,V1alpha3DeviceClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceClassBuilder(V1alpha3DeviceClass instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceClassFluent fluent; - - public V1alpha3DeviceClass build() { - V1alpha3DeviceClass buildable = new V1alpha3DeviceClass(); - 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/V1alpha3DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationBuilder.java deleted file mode 100644 index cab653ff39..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceClassConfigurationBuilder extends V1alpha3DeviceClassConfigurationFluent implements VisitableBuilder{ - public V1alpha3DeviceClassConfigurationBuilder() { - this(new V1alpha3DeviceClassConfiguration()); - } - - public V1alpha3DeviceClassConfigurationBuilder(V1alpha3DeviceClassConfigurationFluent fluent) { - this(fluent, new V1alpha3DeviceClassConfiguration()); - } - - public V1alpha3DeviceClassConfigurationBuilder(V1alpha3DeviceClassConfigurationFluent fluent,V1alpha3DeviceClassConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceClassConfigurationBuilder(V1alpha3DeviceClassConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceClassConfigurationFluent fluent; - - public V1alpha3DeviceClassConfiguration build() { - V1alpha3DeviceClassConfiguration buildable = new V1alpha3DeviceClassConfiguration(); - buildable.setOpaque(fluent.buildOpaque()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationFluent.java deleted file mode 100644 index 2838a53d9e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfigurationFluent.java +++ /dev/null @@ -1,106 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceClassConfigurationFluent> extends BaseFluent{ - public V1alpha3DeviceClassConfigurationFluent() { - } - - public V1alpha3DeviceClassConfigurationFluent(V1alpha3DeviceClassConfiguration instance) { - this.copyInstance(instance); - } - private V1alpha3OpaqueDeviceConfigurationBuilder opaque; - - protected void copyInstance(V1alpha3DeviceClassConfiguration instance) { - instance = (instance != null ? instance : new V1alpha3DeviceClassConfiguration()); - if (instance != null) { - this.withOpaque(instance.getOpaque()); - } - } - - public V1alpha3OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1alpha3OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); - } - return (A) this; - } - - public boolean hasOpaque() { - return this.opaque != null; - } - - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); - } - - public OpaqueNested withNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); - } - - public OpaqueNested editOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); - } - - public OpaqueNested editOrNewOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1alpha3OpaqueDeviceConfigurationBuilder().build())); - } - - public OpaqueNested editOrNewOpaqueLike(V1alpha3OpaqueDeviceConfiguration item) { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceClassConfigurationFluent that = (V1alpha3DeviceClassConfigurationFluent) o; - if (!java.util.Objects.equals(opaque, that.opaque)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(opaque, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (opaque != null) { sb.append("opaque:"); sb.append(opaque); } - sb.append("}"); - return sb.toString(); - } - public class OpaqueNested extends V1alpha3OpaqueDeviceConfigurationFluent> implements Nested{ - OpaqueNested(V1alpha3OpaqueDeviceConfiguration item) { - this.builder = new V1alpha3OpaqueDeviceConfigurationBuilder(this, item); - } - V1alpha3OpaqueDeviceConfigurationBuilder builder; - - public N and() { - return (N) V1alpha3DeviceClassConfigurationFluent.this.withOpaque(builder.build()); - } - - public N endOpaque() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListBuilder.java deleted file mode 100644 index 5d0f1daede..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceClassListBuilder extends V1alpha3DeviceClassListFluent implements VisitableBuilder{ - public V1alpha3DeviceClassListBuilder() { - this(new V1alpha3DeviceClassList()); - } - - public V1alpha3DeviceClassListBuilder(V1alpha3DeviceClassListFluent fluent) { - this(fluent, new V1alpha3DeviceClassList()); - } - - public V1alpha3DeviceClassListBuilder(V1alpha3DeviceClassListFluent fluent,V1alpha3DeviceClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceClassListBuilder(V1alpha3DeviceClassList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceClassListFluent fluent; - - public V1alpha3DeviceClassList build() { - V1alpha3DeviceClassList buildable = new V1alpha3DeviceClassList(); - 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/V1alpha3DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListFluent.java deleted file mode 100644 index d494464dcc..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassListFluent.java +++ /dev/null @@ -1,331 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceClassListFluent> extends BaseFluent{ - public V1alpha3DeviceClassListFluent() { - } - - public V1alpha3DeviceClassListFluent(V1alpha3DeviceClassList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha3DeviceClassList instance) { - instance = (instance != null ? instance : new V1alpha3DeviceClassList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha3DeviceClass item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.add(index, builder); - } - return (A)this; - } - - public A setToItems(int index,V1alpha3DeviceClass item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha3DeviceClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3DeviceClass item : items) {V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3DeviceClass item : items) {V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3DeviceClass... items) { - if (this.items == null) return (A)this; - for (V1alpha3DeviceClass item : items) {V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha3DeviceClass item : items) {V1alpha3DeviceClassBuilder builder = new V1alpha3DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha3DeviceClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha3DeviceClass buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha3DeviceClass buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha3DeviceClass buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha3DeviceClass buildMatchingItem(Predicate predicate) { - for (V1alpha3DeviceClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha3DeviceClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha3DeviceClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha3DeviceClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha3DeviceClass item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha3DeviceClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha3DeviceClass item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceClassListFluent that = (V1alpha3DeviceClassListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha3DeviceClassFluent> implements Nested{ - ItemsNested(int index,V1alpha3DeviceClass item) { - this.index = index; - this.builder = new V1alpha3DeviceClassBuilder(this, item); - } - V1alpha3DeviceClassBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceClassListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha3DeviceClassListFluent.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/V1alpha3DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecBuilder.java deleted file mode 100644 index ed3cef54a1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceClassSpecBuilder extends V1alpha3DeviceClassSpecFluent implements VisitableBuilder{ - public V1alpha3DeviceClassSpecBuilder() { - this(new V1alpha3DeviceClassSpec()); - } - - public V1alpha3DeviceClassSpecBuilder(V1alpha3DeviceClassSpecFluent fluent) { - this(fluent, new V1alpha3DeviceClassSpec()); - } - - public V1alpha3DeviceClassSpecBuilder(V1alpha3DeviceClassSpecFluent fluent,V1alpha3DeviceClassSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceClassSpecBuilder(V1alpha3DeviceClassSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceClassSpecFluent fluent; - - public V1alpha3DeviceClassSpec build() { - V1alpha3DeviceClassSpec buildable = new V1alpha3DeviceClassSpec(); - buildable.setConfig(fluent.buildConfig()); - buildable.setSelectors(fluent.buildSelectors()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java deleted file mode 100644 index ebea229ad0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpecFluent.java +++ /dev/null @@ -1,422 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceClassSpecFluent> extends BaseFluent{ - public V1alpha3DeviceClassSpecFluent() { - } - - public V1alpha3DeviceClassSpecFluent(V1alpha3DeviceClassSpec instance) { - this.copyInstance(instance); - } - private ArrayList config; - private ArrayList selectors; - - protected void copyInstance(V1alpha3DeviceClassSpec instance) { - instance = (instance != null ? instance : new V1alpha3DeviceClassSpec()); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withSelectors(instance.getSelectors()); - } - } - - public A addToConfig(int index,V1alpha3DeviceClassConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} - V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.add(index, builder); - } - return (A)this; - } - - public A setToConfig(int index,V1alpha3DeviceClassConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} - V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); - } - return (A)this; - } - - public A addToConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClassConfiguration... items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1alpha3DeviceClassConfiguration item : items) {V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; - } - - public A addAllToConfig(Collection items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1alpha3DeviceClassConfiguration item : items) {V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; - } - - public A removeFromConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClassConfiguration... items) { - if (this.config == null) return (A)this; - for (V1alpha3DeviceClassConfiguration item : items) {V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; - } - - public A removeAllFromConfig(Collection items) { - if (this.config == null) return (A)this; - for (V1alpha3DeviceClassConfiguration item : items) {V1alpha3DeviceClassConfigurationBuilder builder = new V1alpha3DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; - } - - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) return (A) this; - final Iterator each = config.iterator(); - final List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1alpha3DeviceClassConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConfig() { - return this.config != null ? build(config) : null; - } - - public V1alpha3DeviceClassConfiguration buildConfig(int index) { - return this.config.get(index).build(); - } - - public V1alpha3DeviceClassConfiguration buildFirstConfig() { - return this.config.get(0).build(); - } - - public V1alpha3DeviceClassConfiguration buildLastConfig() { - return this.config.get(config.size() - 1).build(); - } - - public V1alpha3DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { - for (V1alpha3DeviceClassConfigurationBuilder item : config) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingConfig(Predicate predicate) { - for (V1alpha3DeviceClassConfigurationBuilder item : config) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1alpha3DeviceClassConfiguration item : config) { - this.addToConfig(item); - } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(io.kubernetes.client.openapi.models.V1alpha3DeviceClassConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1alpha3DeviceClassConfiguration item : config) { - this.addToConfig(item); - } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !this.config.isEmpty(); - } - - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); - } - - public ConfigNested addNewConfigLike(V1alpha3DeviceClassConfiguration item) { - return new ConfigNested(-1, item); - } - - public ConfigNested setNewConfigLike(int index,V1alpha3DeviceClassConfiguration item) { - return new ConfigNested(index, item); - } - - public ConfigNested editConfig(int index) { - if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); - return setNewConfigLike(index, buildConfig(index)); - } - - public ConfigNested editFirstConfig() { - if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); - return setNewConfigLike(0, buildConfig(0)); - } - - public ConfigNested editLastConfig() { - int index = config.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); - return setNewConfigLike(index, buildConfig(index)); - } - - public ConfigNested editMatchingConfig(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); - } - return (A)this; - } - - public A setToSelectors(int index,V1alpha3DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); - } - return (A)this; - } - - public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; - } - - public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; - } - - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; - } - - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; - } - - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1alpha3DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; - } - - public V1alpha3DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); - } - - public V1alpha3DeviceSelector buildFirstSelector() { - return this.selectors.get(0).build(); - } - - public V1alpha3DeviceSelector buildLastSelector() { - return this.selectors.get(selectors.size() - 1).build(); - } - - public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1alpha3DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSelector(Predicate predicate) { - for (V1alpha3DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1alpha3DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; - } - - public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1alpha3DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; - } - - public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); - } - - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); - } - - public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { - return new SelectorsNested(-1, item); - } - - public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { - return new SelectorsNested(index, item); - } - - public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); - } - - public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); - } - - public SelectorsNested editLastSelector() { - int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); - } - - public SelectorsNested editMatchingSelector(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha3DeviceClassConfigurationFluent> implements Nested{ - ConfigNested(int index,V1alpha3DeviceClassConfiguration item) { - this.index = index; - this.builder = new V1alpha3DeviceClassConfigurationBuilder(this, item); - } - V1alpha3DeviceClassConfigurationBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceClassSpecFluent.this.setToConfig(index,builder.build()); - } - - public N endConfig() { - return and(); - } - - - } - public class SelectorsNested extends V1alpha3DeviceSelectorFluent> implements Nested{ - SelectorsNested(int index,V1alpha3DeviceSelector item) { - this.index = index; - this.builder = new V1alpha3DeviceSelectorBuilder(this, item); - } - V1alpha3DeviceSelectorBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceClassSpecFluent.this.setToSelectors(index,builder.build()); - } - - public N endSelector() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintBuilder.java deleted file mode 100644 index 024dd388c6..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceConstraintBuilder extends V1alpha3DeviceConstraintFluent implements VisitableBuilder{ - public V1alpha3DeviceConstraintBuilder() { - this(new V1alpha3DeviceConstraint()); - } - - public V1alpha3DeviceConstraintBuilder(V1alpha3DeviceConstraintFluent fluent) { - this(fluent, new V1alpha3DeviceConstraint()); - } - - public V1alpha3DeviceConstraintBuilder(V1alpha3DeviceConstraintFluent fluent,V1alpha3DeviceConstraint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceConstraintBuilder(V1alpha3DeviceConstraint instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceConstraintFluent fluent; - - public V1alpha3DeviceConstraint build() { - V1alpha3DeviceConstraint buildable = new V1alpha3DeviceConstraint(); - buildable.setMatchAttribute(fluent.getMatchAttribute()); - buildable.setRequests(fluent.getRequests()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintFluent.java deleted file mode 100644 index 757c0daa2b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraintFluent.java +++ /dev/null @@ -1,165 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.ArrayList; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.String; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceConstraintFluent> extends BaseFluent{ - public V1alpha3DeviceConstraintFluent() { - } - - public V1alpha3DeviceConstraintFluent(V1alpha3DeviceConstraint instance) { - this.copyInstance(instance); - } - private String matchAttribute; - private List requests; - - protected void copyInstance(V1alpha3DeviceConstraint instance) { - instance = (instance != null ? instance : new V1alpha3DeviceConstraint()); - if (instance != null) { - this.withMatchAttribute(instance.getMatchAttribute()); - this.withRequests(instance.getRequests()); - } - } - - public String getMatchAttribute() { - return this.matchAttribute; - } - - public A withMatchAttribute(String matchAttribute) { - this.matchAttribute = matchAttribute; - return (A) this; - } - - public boolean hasMatchAttribute() { - return this.matchAttribute != null; - } - - public A addToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.add(index, item); - return (A)this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.set(index, item); return (A)this; - } - - public A addToRequests(java.lang.String... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; - } - - public A removeFromRequests(java.lang.String... items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; - } - - public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; - } - - public List getRequests() { - return this.requests; - } - - public String getRequest(int index) { - return this.requests.get(index); - } - - public String getFirstRequest() { - return this.requests.get(0); - } - - public String getLastRequest() { - return this.requests.get(requests.size() - 1); - } - - public String getMatchingRequest(Predicate predicate) { - for (String item : requests) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingRequest(Predicate predicate) { - for (String item : requests) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(java.lang.String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } - } - return (A) this; - } - - public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceConstraintFluent that = (V1alpha3DeviceConstraintFluent) o; - if (!java.util.Objects.equals(matchAttribute, that.matchAttribute)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(matchAttribute, requests, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (matchAttribute != null) { sb.append("matchAttribute:"); sb.append(matchAttribute + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionBuilder.java deleted file mode 100644 index 57ab98557e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceCounterConsumptionBuilder extends V1alpha3DeviceCounterConsumptionFluent implements VisitableBuilder{ - public V1alpha3DeviceCounterConsumptionBuilder() { - this(new V1alpha3DeviceCounterConsumption()); - } - - public V1alpha3DeviceCounterConsumptionBuilder(V1alpha3DeviceCounterConsumptionFluent fluent) { - this(fluent, new V1alpha3DeviceCounterConsumption()); - } - - public V1alpha3DeviceCounterConsumptionBuilder(V1alpha3DeviceCounterConsumptionFluent fluent,V1alpha3DeviceCounterConsumption instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceCounterConsumptionBuilder(V1alpha3DeviceCounterConsumption instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceCounterConsumptionFluent fluent; - - public V1alpha3DeviceCounterConsumption build() { - V1alpha3DeviceCounterConsumption buildable = new V1alpha3DeviceCounterConsumption(); - buildable.setCounterSet(fluent.getCounterSet()); - buildable.setCounters(fluent.getCounters()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionFluent.java deleted file mode 100644 index 5ace375bca..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumptionFluent.java +++ /dev/null @@ -1,106 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; -import java.util.Map; -import java.util.LinkedHashMap; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceCounterConsumptionFluent> extends BaseFluent{ - public V1alpha3DeviceCounterConsumptionFluent() { - } - - public V1alpha3DeviceCounterConsumptionFluent(V1alpha3DeviceCounterConsumption instance) { - this.copyInstance(instance); - } - private String counterSet; - private Map counters; - - protected void copyInstance(V1alpha3DeviceCounterConsumption instance) { - instance = (instance != null ? instance : new V1alpha3DeviceCounterConsumption()); - if (instance != null) { - this.withCounterSet(instance.getCounterSet()); - this.withCounters(instance.getCounters()); - } - } - - public String getCounterSet() { - return this.counterSet; - } - - public A withCounterSet(String counterSet) { - this.counterSet = counterSet; - return (A) this; - } - - public boolean hasCounterSet() { - return this.counterSet != null; - } - - public A addToCounters(String key,V1alpha3Counter value) { - if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } - if(key != null && value != null) {this.counters.put(key, value);} return (A)this; - } - - public A addToCounters(Map map) { - if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } - if(map != null) { this.counters.putAll(map);} return (A)this; - } - - public A removeFromCounters(String key) { - if(this.counters == null) { return (A) this; } - if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; - } - - public A removeFromCounters(Map map) { - if(this.counters == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; - } - - public Map getCounters() { - return this.counters; - } - - public A withCounters(Map counters) { - if (counters == null) { - this.counters = null; - } else { - this.counters = new LinkedHashMap(counters); - } - return (A) this; - } - - public boolean hasCounters() { - return this.counters != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceCounterConsumptionFluent that = (V1alpha3DeviceCounterConsumptionFluent) o; - if (!java.util.Objects.equals(counterSet, that.counterSet)) return false; - if (!java.util.Objects.equals(counters, that.counters)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(counterSet, counters, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (counterSet != null) { sb.append("counterSet:"); sb.append(counterSet + ","); } - if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceFluent.java deleted file mode 100644 index b55a9dcd48..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceFluent.java +++ /dev/null @@ -1,123 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceFluent> extends BaseFluent{ - public V1alpha3DeviceFluent() { - } - - public V1alpha3DeviceFluent(V1alpha3Device instance) { - this.copyInstance(instance); - } - private V1alpha3BasicDeviceBuilder basic; - private String name; - - protected void copyInstance(V1alpha3Device instance) { - instance = (instance != null ? instance : new V1alpha3Device()); - if (instance != null) { - this.withBasic(instance.getBasic()); - this.withName(instance.getName()); - } - } - - public V1alpha3BasicDevice buildBasic() { - return this.basic != null ? this.basic.build() : null; - } - - public A withBasic(V1alpha3BasicDevice basic) { - this._visitables.remove("basic"); - if (basic != null) { - this.basic = new V1alpha3BasicDeviceBuilder(basic); - this._visitables.get("basic").add(this.basic); - } else { - this.basic = null; - this._visitables.get("basic").remove(this.basic); - } - return (A) this; - } - - public boolean hasBasic() { - return this.basic != null; - } - - public BasicNested withNewBasic() { - return new BasicNested(null); - } - - public BasicNested withNewBasicLike(V1alpha3BasicDevice item) { - return new BasicNested(item); - } - - public BasicNested editBasic() { - return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(null)); - } - - public BasicNested editOrNewBasic() { - return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(new V1alpha3BasicDeviceBuilder().build())); - } - - public BasicNested editOrNewBasicLike(V1alpha3BasicDevice item) { - return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(item)); - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceFluent that = (V1alpha3DeviceFluent) o; - if (!java.util.Objects.equals(basic, that.basic)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(basic, name, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (basic != null) { sb.append("basic:"); sb.append(basic + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - public class BasicNested extends V1alpha3BasicDeviceFluent> implements Nested{ - BasicNested(V1alpha3BasicDevice item) { - this.builder = new V1alpha3BasicDeviceBuilder(this, item); - } - V1alpha3BasicDeviceBuilder builder; - - public N and() { - return (N) V1alpha3DeviceFluent.this.withBasic(builder.build()); - } - - public N endBasic() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java deleted file mode 100644 index 7670c796e9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceRequestAllocationResultBuilder extends V1alpha3DeviceRequestAllocationResultFluent implements VisitableBuilder{ - public V1alpha3DeviceRequestAllocationResultBuilder() { - this(new V1alpha3DeviceRequestAllocationResult()); - } - - public V1alpha3DeviceRequestAllocationResultBuilder(V1alpha3DeviceRequestAllocationResultFluent fluent) { - this(fluent, new V1alpha3DeviceRequestAllocationResult()); - } - - public V1alpha3DeviceRequestAllocationResultBuilder(V1alpha3DeviceRequestAllocationResultFluent fluent,V1alpha3DeviceRequestAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceRequestAllocationResultBuilder(V1alpha3DeviceRequestAllocationResult instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceRequestAllocationResultFluent fluent; - - public V1alpha3DeviceRequestAllocationResult build() { - V1alpha3DeviceRequestAllocationResult buildable = new V1alpha3DeviceRequestAllocationResult(); - buildable.setAdminAccess(fluent.getAdminAccess()); - buildable.setDevice(fluent.getDevice()); - buildable.setDriver(fluent.getDriver()); - buildable.setPool(fluent.getPool()); - buildable.setRequest(fluent.getRequest()); - buildable.setTolerations(fluent.buildTolerations()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java deleted file mode 100644 index 6f840b6cc1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResultFluent.java +++ /dev/null @@ -1,327 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; -import java.lang.Boolean; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceRequestAllocationResultFluent> extends BaseFluent{ - public V1alpha3DeviceRequestAllocationResultFluent() { - } - - public V1alpha3DeviceRequestAllocationResultFluent(V1alpha3DeviceRequestAllocationResult instance) { - this.copyInstance(instance); - } - private Boolean adminAccess; - private String device; - private String driver; - private String pool; - private String request; - private ArrayList tolerations; - - protected void copyInstance(V1alpha3DeviceRequestAllocationResult instance) { - instance = (instance != null ? instance : new V1alpha3DeviceRequestAllocationResult()); - if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withPool(instance.getPool()); - this.withRequest(instance.getRequest()); - this.withTolerations(instance.getTolerations()); - } - } - - public Boolean getAdminAccess() { - return this.adminAccess; - } - - public A withAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; - return (A) this; - } - - public boolean hasAdminAccess() { - return this.adminAccess != null; - } - - public String getDevice() { - return this.device; - } - - public A withDevice(String device) { - this.device = device; - return (A) this; - } - - public boolean hasDevice() { - return this.device != null; - } - - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public String getPool() { - return this.pool; - } - - public A withPool(String pool) { - this.pool = pool; - return (A) this; - } - - public boolean hasPool() { - return this.pool != null; - } - - public String getRequest() { - return this.request; - } - - public A withRequest(String request) { - this.request = request; - return (A) this; - } - - public boolean hasRequest() { - return this.request != null; - } - - public A addToTolerations(int index,V1alpha3DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); - } - return (A)this; - } - - public A setToTolerations(int index,V1alpha3DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A)this; - } - - public A addToTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; - } - - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; - } - - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { - if (this.tolerations == null) return (A)this; - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; - } - - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; - } - - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1alpha3DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; - } - - public V1alpha3DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); - } - - public V1alpha3DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); - } - - public V1alpha3DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); - } - - public V1alpha3DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1alpha3DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingToleration(Predicate predicate) { - for (V1alpha3DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); - } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1alpha3DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; - } - return (A) this; - } - - public A withTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); - } - if (tolerations != null) { - for (V1alpha3DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } - return (A) this; - } - - public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); - } - - public TolerationsNested addNewTolerationLike(V1alpha3DeviceToleration item) { - return new TolerationsNested(-1, item); - } - - public TolerationsNested setNewTolerationLike(int index,V1alpha3DeviceToleration item) { - return new TolerationsNested(index, item); - } - - public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); - } - - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha3DeviceTolerationFluent> implements Nested{ - TolerationsNested(int index,V1alpha3DeviceToleration item) { - this.index = index; - this.builder = new V1alpha3DeviceTolerationBuilder(this, item); - } - V1alpha3DeviceTolerationBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceRequestAllocationResultFluent.this.setToTolerations(index,builder.build()); - } - - public N endToleration() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java deleted file mode 100644 index b749a9ef23..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceRequestBuilder extends V1alpha3DeviceRequestFluent implements VisitableBuilder{ - public V1alpha3DeviceRequestBuilder() { - this(new V1alpha3DeviceRequest()); - } - - public V1alpha3DeviceRequestBuilder(V1alpha3DeviceRequestFluent fluent) { - this(fluent, new V1alpha3DeviceRequest()); - } - - public V1alpha3DeviceRequestBuilder(V1alpha3DeviceRequestFluent fluent,V1alpha3DeviceRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceRequestBuilder(V1alpha3DeviceRequest instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceRequestFluent fluent; - - public V1alpha3DeviceRequest build() { - V1alpha3DeviceRequest buildable = new V1alpha3DeviceRequest(); - buildable.setAdminAccess(fluent.getAdminAccess()); - buildable.setAllocationMode(fluent.getAllocationMode()); - buildable.setCount(fluent.getCount()); - buildable.setDeviceClassName(fluent.getDeviceClassName()); - buildable.setFirstAvailable(fluent.buildFirstAvailable()); - buildable.setName(fluent.getName()); - buildable.setSelectors(fluent.buildSelectors()); - buildable.setTolerations(fluent.buildTolerations()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java deleted file mode 100644 index bbd09bd300..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestFluent.java +++ /dev/null @@ -1,698 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.lang.Boolean; -import java.lang.Long; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceRequestFluent> extends BaseFluent{ - public V1alpha3DeviceRequestFluent() { - } - - public V1alpha3DeviceRequestFluent(V1alpha3DeviceRequest instance) { - this.copyInstance(instance); - } - private Boolean adminAccess; - private String allocationMode; - private Long count; - private String deviceClassName; - private ArrayList firstAvailable; - private String name; - private ArrayList selectors; - private ArrayList tolerations; - - protected void copyInstance(V1alpha3DeviceRequest instance) { - instance = (instance != null ? instance : new V1alpha3DeviceRequest()); - if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withAllocationMode(instance.getAllocationMode()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withFirstAvailable(instance.getFirstAvailable()); - this.withName(instance.getName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } - } - - public Boolean getAdminAccess() { - return this.adminAccess; - } - - public A withAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; - return (A) this; - } - - public boolean hasAdminAccess() { - return this.adminAccess != null; - } - - public String getAllocationMode() { - return this.allocationMode; - } - - public A withAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - return (A) this; - } - - public boolean hasAllocationMode() { - return this.allocationMode != null; - } - - public Long getCount() { - return this.count; - } - - public A withCount(Long count) { - this.count = count; - return (A) this; - } - - public boolean hasCount() { - return this.count != null; - } - - public String getDeviceClassName() { - return this.deviceClassName; - } - - public A withDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; - return (A) this; - } - - public boolean hasDeviceClassName() { - return this.deviceClassName != null; - } - - public A addToFirstAvailable(int index,V1alpha3DeviceSubRequest item) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} - V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); - } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(index, builder); - } - return (A)this; - } - - public A setToFirstAvailable(int index,V1alpha3DeviceSubRequest item) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} - V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); - } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.set(index, builder); - } - return (A)this; - } - - public A addToFirstAvailable(io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest... items) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} - for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; - } - - public A addAllToFirstAvailable(Collection items) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} - for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; - } - - public A removeFromFirstAvailable(io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest... items) { - if (this.firstAvailable == null) return (A)this; - for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; - } - - public A removeAllFromFirstAvailable(Collection items) { - if (this.firstAvailable == null) return (A)this; - for (V1alpha3DeviceSubRequest item : items) {V1alpha3DeviceSubRequestBuilder builder = new V1alpha3DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; - } - - public A removeMatchingFromFirstAvailable(Predicate predicate) { - if (firstAvailable == null) return (A) this; - final Iterator each = firstAvailable.iterator(); - final List visitables = _visitables.get("firstAvailable"); - while (each.hasNext()) { - V1alpha3DeviceSubRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildFirstAvailable() { - return this.firstAvailable != null ? build(firstAvailable) : null; - } - - public V1alpha3DeviceSubRequest buildFirstAvailable(int index) { - return this.firstAvailable.get(index).build(); - } - - public V1alpha3DeviceSubRequest buildFirstFirstAvailable() { - return this.firstAvailable.get(0).build(); - } - - public V1alpha3DeviceSubRequest buildLastFirstAvailable() { - return this.firstAvailable.get(firstAvailable.size() - 1).build(); - } - - public V1alpha3DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { - for (V1alpha3DeviceSubRequestBuilder item : firstAvailable) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingFirstAvailable(Predicate predicate) { - for (V1alpha3DeviceSubRequestBuilder item : firstAvailable) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withFirstAvailable(List firstAvailable) { - if (this.firstAvailable != null) { - this._visitables.get("firstAvailable").clear(); - } - if (firstAvailable != null) { - this.firstAvailable = new ArrayList(); - for (V1alpha3DeviceSubRequest item : firstAvailable) { - this.addToFirstAvailable(item); - } - } else { - this.firstAvailable = null; - } - return (A) this; - } - - public A withFirstAvailable(io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest... firstAvailable) { - if (this.firstAvailable != null) { - this.firstAvailable.clear(); - _visitables.remove("firstAvailable"); - } - if (firstAvailable != null) { - for (V1alpha3DeviceSubRequest item : firstAvailable) { - this.addToFirstAvailable(item); - } - } - return (A) this; - } - - public boolean hasFirstAvailable() { - return this.firstAvailable != null && !this.firstAvailable.isEmpty(); - } - - public FirstAvailableNested addNewFirstAvailable() { - return new FirstAvailableNested(-1, null); - } - - public FirstAvailableNested addNewFirstAvailableLike(V1alpha3DeviceSubRequest item) { - return new FirstAvailableNested(-1, item); - } - - public FirstAvailableNested setNewFirstAvailableLike(int index,V1alpha3DeviceSubRequest item) { - return new FirstAvailableNested(index, item); - } - - public FirstAvailableNested editFirstAvailable(int index) { - if (firstAvailable.size() <= index) throw new RuntimeException("Can't edit firstAvailable. Index exceeds size."); - return setNewFirstAvailableLike(index, buildFirstAvailable(index)); - } - - public FirstAvailableNested editFirstFirstAvailable() { - if (firstAvailable.size() == 0) throw new RuntimeException("Can't edit first firstAvailable. The list is empty."); - return setNewFirstAvailableLike(0, buildFirstAvailable(0)); - } - - public FirstAvailableNested editLastFirstAvailable() { - int index = firstAvailable.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last firstAvailable. The list is empty."); - return setNewFirstAvailableLike(index, buildFirstAvailable(index)); - } - - public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); - } - return (A)this; - } - - public A setToSelectors(int index,V1alpha3DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); - } - return (A)this; - } - - public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; - } - - public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; - } - - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; - } - - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; - } - - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1alpha3DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; - } - - public V1alpha3DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); - } - - public V1alpha3DeviceSelector buildFirstSelector() { - return this.selectors.get(0).build(); - } - - public V1alpha3DeviceSelector buildLastSelector() { - return this.selectors.get(selectors.size() - 1).build(); - } - - public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1alpha3DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSelector(Predicate predicate) { - for (V1alpha3DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1alpha3DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; - } - - public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1alpha3DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; - } - - public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); - } - - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); - } - - public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { - return new SelectorsNested(-1, item); - } - - public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { - return new SelectorsNested(index, item); - } - - public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); - } - - public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); - } - - public SelectorsNested editLastSelector() { - int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); - } - - public SelectorsNested editMatchingSelector(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); - } - return (A)this; - } - - public A setToTolerations(int index,V1alpha3DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A)this; - } - - public A addToTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; - } - - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; - } - - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { - if (this.tolerations == null) return (A)this; - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; - } - - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; - } - - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1alpha3DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; - } - - public V1alpha3DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); - } - - public V1alpha3DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); - } - - public V1alpha3DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); - } - - public V1alpha3DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1alpha3DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingToleration(Predicate predicate) { - for (V1alpha3DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); - } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1alpha3DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; - } - return (A) this; - } - - public A withTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); - } - if (tolerations != null) { - for (V1alpha3DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } - return (A) this; - } - - public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); - } - - public TolerationsNested addNewTolerationLike(V1alpha3DeviceToleration item) { - return new TolerationsNested(-1, item); - } - - public TolerationsNested setNewTolerationLike(int index,V1alpha3DeviceToleration item) { - return new TolerationsNested(index, item); - } - - public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); - } - - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha3DeviceSubRequestFluent> implements Nested{ - FirstAvailableNested(int index,V1alpha3DeviceSubRequest item) { - this.index = index; - this.builder = new V1alpha3DeviceSubRequestBuilder(this, item); - } - V1alpha3DeviceSubRequestBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceRequestFluent.this.setToFirstAvailable(index,builder.build()); - } - - public N endFirstAvailable() { - return and(); - } - - - } - public class SelectorsNested extends V1alpha3DeviceSelectorFluent> implements Nested{ - SelectorsNested(int index,V1alpha3DeviceSelector item) { - this.index = index; - this.builder = new V1alpha3DeviceSelectorBuilder(this, item); - } - V1alpha3DeviceSelectorBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceRequestFluent.this.setToSelectors(index,builder.build()); - } - - public N endSelector() { - return and(); - } - - - } - public class TolerationsNested extends V1alpha3DeviceTolerationFluent> implements Nested{ - TolerationsNested(int index,V1alpha3DeviceToleration item) { - this.index = index; - this.builder = new V1alpha3DeviceTolerationBuilder(this, item); - } - V1alpha3DeviceTolerationBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceRequestFluent.this.setToTolerations(index,builder.build()); - } - - public N endToleration() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java index 8a9f207653..9769e4a9b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha3DeviceSelectorBuilder extends V1alpha3DeviceSelectorFluent implements VisitableBuilder{ public V1alpha3DeviceSelectorBuilder() { this(new V1alpha3DeviceSelector()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java index 55606f8066..908851fc9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3DeviceSelectorFluent> extends BaseFluent{ +public class V1alpha3DeviceSelectorFluent> extends BaseFluent{ public V1alpha3DeviceSelectorFluent() { } @@ -20,10 +23,10 @@ public V1alpha3DeviceSelectorFluent(V1alpha3DeviceSelector instance) { private V1alpha3CELDeviceSelectorBuilder cel; protected void copyInstance(V1alpha3DeviceSelector instance) { - instance = (instance != null ? instance : new V1alpha3DeviceSelector()); + instance = instance != null ? instance : new V1alpha3DeviceSelector(); if (instance != null) { - this.withCel(instance.getCel()); - } + this.withCel(instance.getCel()); + } } public V1alpha3CELDeviceSelector buildCel() { @@ -55,34 +58,45 @@ public CelNested withNewCelLike(V1alpha3CELDeviceSelector item) { } public CelNested editCel() { - return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(null)); + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); } public CelNested editOrNewCel() { - return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(new V1alpha3CELDeviceSelectorBuilder().build())); + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(new V1alpha3CELDeviceSelectorBuilder().build())); } public CelNested editOrNewCelLike(V1alpha3CELDeviceSelector item) { - return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(item)); + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha3DeviceSelectorFluent that = (V1alpha3DeviceSelectorFluent) o; - if (!java.util.Objects.equals(cel, that.cel)) return false; + if (!(Objects.equals(cel, that.cel))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(cel, super.hashCode()); + return Objects.hash(cel); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (cel != null) { sb.append("cel:"); sb.append(cel); } + if (!(cel == null)) { + sb.append("cel:"); + sb.append(cel); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestBuilder.java deleted file mode 100644 index 882dbcf57b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3DeviceSubRequestBuilder extends V1alpha3DeviceSubRequestFluent implements VisitableBuilder{ - public V1alpha3DeviceSubRequestBuilder() { - this(new V1alpha3DeviceSubRequest()); - } - - public V1alpha3DeviceSubRequestBuilder(V1alpha3DeviceSubRequestFluent fluent) { - this(fluent, new V1alpha3DeviceSubRequest()); - } - - public V1alpha3DeviceSubRequestBuilder(V1alpha3DeviceSubRequestFluent fluent,V1alpha3DeviceSubRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceSubRequestBuilder(V1alpha3DeviceSubRequest instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceSubRequestFluent fluent; - - public V1alpha3DeviceSubRequest build() { - V1alpha3DeviceSubRequest buildable = new V1alpha3DeviceSubRequest(); - buildable.setAllocationMode(fluent.getAllocationMode()); - buildable.setCount(fluent.getCount()); - buildable.setDeviceClassName(fluent.getDeviceClassName()); - buildable.setName(fluent.getName()); - buildable.setSelectors(fluent.buildSelectors()); - buildable.setTolerations(fluent.buildTolerations()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestFluent.java deleted file mode 100644 index 48bfebc6ca..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequestFluent.java +++ /dev/null @@ -1,491 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceSubRequestFluent> extends BaseFluent{ - public V1alpha3DeviceSubRequestFluent() { - } - - public V1alpha3DeviceSubRequestFluent(V1alpha3DeviceSubRequest instance) { - this.copyInstance(instance); - } - private String allocationMode; - private Long count; - private String deviceClassName; - private String name; - private ArrayList selectors; - private ArrayList tolerations; - - protected void copyInstance(V1alpha3DeviceSubRequest instance) { - instance = (instance != null ? instance : new V1alpha3DeviceSubRequest()); - if (instance != null) { - this.withAllocationMode(instance.getAllocationMode()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withName(instance.getName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } - } - - public String getAllocationMode() { - return this.allocationMode; - } - - public A withAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - return (A) this; - } - - public boolean hasAllocationMode() { - return this.allocationMode != null; - } - - public Long getCount() { - return this.count; - } - - public A withCount(Long count) { - this.count = count; - return (A) this; - } - - public boolean hasCount() { - return this.count != null; - } - - public String getDeviceClassName() { - return this.deviceClassName; - } - - public A withDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; - return (A) this; - } - - public boolean hasDeviceClassName() { - return this.deviceClassName != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public A addToSelectors(int index,V1alpha3DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); - } - return (A)this; - } - - public A setToSelectors(int index,V1alpha3DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); - } - return (A)this; - } - - public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; - } - - public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; - } - - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; - } - - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; - } - - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1alpha3DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; - } - - public V1alpha3DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); - } - - public V1alpha3DeviceSelector buildFirstSelector() { - return this.selectors.get(0).build(); - } - - public V1alpha3DeviceSelector buildLastSelector() { - return this.selectors.get(selectors.size() - 1).build(); - } - - public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1alpha3DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSelector(Predicate predicate) { - for (V1alpha3DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1alpha3DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; - } - - public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1alpha3DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; - } - - public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); - } - - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); - } - - public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { - return new SelectorsNested(-1, item); - } - - public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { - return new SelectorsNested(index, item); - } - - public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); - } - - public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); - } - - public SelectorsNested editLastSelector() { - int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); - } - - public SelectorsNested editMatchingSelector(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); - } - return (A)this; - } - - public A setToTolerations(int index,V1alpha3DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A)this; - } - - public A addToTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; - } - - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; - } - - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... items) { - if (this.tolerations == null) return (A)this; - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; - } - - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1alpha3DeviceToleration item : items) {V1alpha3DeviceTolerationBuilder builder = new V1alpha3DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; - } - - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1alpha3DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; - } - - public V1alpha3DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); - } - - public V1alpha3DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); - } - - public V1alpha3DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); - } - - public V1alpha3DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1alpha3DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingToleration(Predicate predicate) { - for (V1alpha3DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); - } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1alpha3DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; - } - return (A) this; - } - - public A withTolerations(io.kubernetes.client.openapi.models.V1alpha3DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); - } - if (tolerations != null) { - for (V1alpha3DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } - return (A) this; - } - - public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); - } - - public TolerationsNested addNewTolerationLike(V1alpha3DeviceToleration item) { - return new TolerationsNested(-1, item); - } - - public TolerationsNested setNewTolerationLike(int index,V1alpha3DeviceToleration item) { - return new TolerationsNested(index, item); - } - - public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); - } - - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha3DeviceSelectorFluent> implements Nested{ - SelectorsNested(int index,V1alpha3DeviceSelector item) { - this.index = index; - this.builder = new V1alpha3DeviceSelectorBuilder(this, item); - } - V1alpha3DeviceSelectorBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceSubRequestFluent.this.setToSelectors(index,builder.build()); - } - - public N endSelector() { - return and(); - } - - - } - public class TolerationsNested extends V1alpha3DeviceTolerationFluent> implements Nested{ - TolerationsNested(int index,V1alpha3DeviceToleration item) { - this.index = index; - this.builder = new V1alpha3DeviceTolerationBuilder(this, item); - } - V1alpha3DeviceTolerationBuilder builder; - int index; - - public N and() { - return (N) V1alpha3DeviceSubRequestFluent.this.setToTolerations(index,builder.build()); - } - - public N endToleration() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java index 8209adcf58..cd474e9a23 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha3DeviceTaintBuilder extends V1alpha3DeviceTaintFluent implements VisitableBuilder{ public V1alpha3DeviceTaintBuilder() { this(new V1alpha3DeviceTaint()); 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 31c35c1458..29ec644352 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintFluent> extends BaseFluent{ +public class V1alpha3DeviceTaintFluent> extends BaseFluent{ public V1alpha3DeviceTaintFluent() { } @@ -23,13 +25,13 @@ public V1alpha3DeviceTaintFluent(V1alpha3DeviceTaint instance) { private String value; protected void copyInstance(V1alpha3DeviceTaint instance) { - instance = (instance != null ? instance : new V1alpha3DeviceTaint()); + instance = instance != null ? instance : new V1alpha3DeviceTaint(); if (instance != null) { - this.withEffect(instance.getEffect()); - this.withKey(instance.getKey()); - this.withTimeAdded(instance.getTimeAdded()); - this.withValue(instance.getValue()); - } + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } } public String getEffect() { @@ -85,28 +87,57 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha3DeviceTaintFluent that = (V1alpha3DeviceTaintFluent) o; - if (!java.util.Objects.equals(effect, that.effect)) return false; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + return Objects.hash(effect, key, timeAdded, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 539155d567..70ff0e2248 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha3DeviceTaintRuleBuilder extends V1alpha3DeviceTaintRuleFluent implements VisitableBuilder{ public V1alpha3DeviceTaintRuleBuilder() { this(new V1alpha3DeviceTaintRule()); 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 42d71734d6..ced5193a19 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintRuleFluent> extends BaseFluent{ +public class V1alpha3DeviceTaintRuleFluent> extends BaseFluent{ public V1alpha3DeviceTaintRuleFluent() { } @@ -23,13 +26,13 @@ public V1alpha3DeviceTaintRuleFluent(V1alpha3DeviceTaintRule instance) { private V1alpha3DeviceTaintRuleSpecBuilder spec; protected void copyInstance(V1alpha3DeviceTaintRule instance) { - instance = (instance != null ? instance : new V1alpha3DeviceTaintRule()); + instance = instance != null ? instance : new V1alpha3DeviceTaintRule(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1alpha3DeviceTaintRuleSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1alpha3DeviceTaintRuleSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha3DeviceTaintRuleSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha3DeviceTaintRuleFluent that = (V1alpha3DeviceTaintRuleFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 6d64365e75..be059ed3ba 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha3DeviceTaintRuleListBuilder extends V1alpha3DeviceTaintRuleListFluent implements VisitableBuilder{ public V1alpha3DeviceTaintRuleListBuilder() { this(new V1alpha3DeviceTaintRuleList()); 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 3b18272e47..b0faa9685d 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintRuleListFluent> extends BaseFluent{ +public class V1alpha3DeviceTaintRuleListFluent> extends BaseFluent{ public V1alpha3DeviceTaintRuleListFluent() { } @@ -29,13 +32,13 @@ public V1alpha3DeviceTaintRuleListFluent(V1alpha3DeviceTaintRuleList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1alpha3DeviceTaintRuleList instance) { - instance = (instance != null ? instance : new V1alpha3DeviceTaintRuleList()); + instance = instance != null ? instance : new V1alpha3DeviceTaintRuleList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1alpha3DeviceTaintRule item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1alpha3DeviceTaintRule item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1alpha3DeviceTaintRule item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1alpha3DeviceTaintRule item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1alpha3DeviceTaintRule... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha3DeviceTaintRule item : items) { + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha3DeviceTaintRule item : items) { + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule... items) { - if (this.items == null) return (A)this; - for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1alpha3DeviceTaintRule... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha3DeviceTaintRule item : items) { + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha3DeviceTaintRule item : items) {V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1alpha3DeviceTaintRule item : items) { + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1alpha3DeviceTaintRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha3DeviceTaintRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule... items) { + public A withItems(V1alpha3DeviceTaintRule... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule.. } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1alpha3DeviceTaintRule item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha3DeviceTaintRuleListFluent that = (V1alpha3DeviceTaintRuleListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1alpha3DeviceTaintRuleFluent int index; public N and() { - return (N) V1alpha3DeviceTaintRuleListFluent.this.setToItems(index,builder.build()); + return (N) V1alpha3DeviceTaintRuleListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 b4c91f1584..2e461b2c30 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha3DeviceTaintRuleSpecBuilder extends V1alpha3DeviceTaintRuleSpecFluent implements VisitableBuilder{ public V1alpha3DeviceTaintRuleSpecBuilder() { this(new V1alpha3DeviceTaintRuleSpec()); 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 e1442bfe7c..65b890bf18 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintRuleSpecFluent> extends BaseFluent{ +public class V1alpha3DeviceTaintRuleSpecFluent> extends BaseFluent{ public V1alpha3DeviceTaintRuleSpecFluent() { } @@ -21,11 +24,11 @@ public V1alpha3DeviceTaintRuleSpecFluent(V1alpha3DeviceTaintRuleSpec instance) { private V1alpha3DeviceTaintBuilder taint; protected void copyInstance(V1alpha3DeviceTaintRuleSpec instance) { - instance = (instance != null ? instance : new V1alpha3DeviceTaintRuleSpec()); + instance = instance != null ? instance : new V1alpha3DeviceTaintRuleSpec(); if (instance != null) { - this.withDeviceSelector(instance.getDeviceSelector()); - this.withTaint(instance.getTaint()); - } + this.withDeviceSelector(instance.getDeviceSelector()); + this.withTaint(instance.getTaint()); + } } public V1alpha3DeviceTaintSelector buildDeviceSelector() { @@ -57,15 +60,15 @@ public DeviceSelectorNested withNewDeviceSelectorLike(V1alpha3DeviceTaintSele } public DeviceSelectorNested editDeviceSelector() { - return withNewDeviceSelectorLike(java.util.Optional.ofNullable(buildDeviceSelector()).orElse(null)); + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(null)); } public DeviceSelectorNested editOrNewDeviceSelector() { - return withNewDeviceSelectorLike(java.util.Optional.ofNullable(buildDeviceSelector()).orElse(new V1alpha3DeviceTaintSelectorBuilder().build())); + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(new V1alpha3DeviceTaintSelectorBuilder().build())); } public DeviceSelectorNested editOrNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { - return withNewDeviceSelectorLike(java.util.Optional.ofNullable(buildDeviceSelector()).orElse(item)); + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(item)); } public V1alpha3DeviceTaint buildTaint() { @@ -97,36 +100,53 @@ public TaintNested withNewTaintLike(V1alpha3DeviceTaint item) { } public TaintNested editTaint() { - return withNewTaintLike(java.util.Optional.ofNullable(buildTaint()).orElse(null)); + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(null)); } public TaintNested editOrNewTaint() { - return withNewTaintLike(java.util.Optional.ofNullable(buildTaint()).orElse(new V1alpha3DeviceTaintBuilder().build())); + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(new V1alpha3DeviceTaintBuilder().build())); } public TaintNested editOrNewTaintLike(V1alpha3DeviceTaint item) { - return withNewTaintLike(java.util.Optional.ofNullable(buildTaint()).orElse(item)); + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1alpha3DeviceTaintRuleSpecFluent that = (V1alpha3DeviceTaintRuleSpecFluent) o; - if (!java.util.Objects.equals(deviceSelector, that.deviceSelector)) return false; - if (!java.util.Objects.equals(taint, that.taint)) return false; + if (!(Objects.equals(deviceSelector, that.deviceSelector))) { + return false; + } + if (!(Objects.equals(taint, that.taint))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(deviceSelector, taint, super.hashCode()); + return Objects.hash(deviceSelector, taint); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (deviceSelector != null) { sb.append("deviceSelector:"); sb.append(deviceSelector + ","); } - if (taint != null) { sb.append("taint:"); sb.append(taint); } + 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(); } 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 e6c5728ce9..e456814dac 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha3DeviceTaintSelectorBuilder extends V1alpha3DeviceTaintSelectorFluent implements VisitableBuilder{ public V1alpha3DeviceTaintSelectorBuilder() { this(new V1alpha3DeviceTaintSelector()); 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 bf0c6708bc..34d849a027 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 @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha3DeviceTaintSelectorFluent> extends BaseFluent{ +public class V1alpha3DeviceTaintSelectorFluent> extends BaseFluent{ public V1alpha3DeviceTaintSelectorFluent() { } @@ -30,14 +32,14 @@ public V1alpha3DeviceTaintSelectorFluent(V1alpha3DeviceTaintSelector instance) { private ArrayList selectors; protected void copyInstance(V1alpha3DeviceTaintSelector instance) { - instance = (instance != null ? instance : new V1alpha3DeviceTaintSelector()); + instance = instance != null ? instance : new V1alpha3DeviceTaintSelector(); if (instance != null) { - this.withDevice(instance.getDevice()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withDriver(instance.getDriver()); - this.withPool(instance.getPool()); - this.withSelectors(instance.getSelectors()); - } + this.withDevice(instance.getDevice()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withSelectors(instance.getSelectors()); + } } public String getDevice() { @@ -93,7 +95,9 @@ public boolean hasPool() { } public A addToSelectors(int index,V1alpha3DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -102,11 +106,13 @@ public A addToSelectors(int index,V1alpha3DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.add(index, builder); } - return (A)this; + return (A) this; } public A setToSelectors(int index,V1alpha3DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -115,41 +121,71 @@ public A setToSelectors(int index,V1alpha3DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + public A addToSelectors(V1alpha3DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1alpha3DeviceSelector item : items) { + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1alpha3DeviceSelector item : items) { + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + public A removeFromSelectors(V1alpha3DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1alpha3DeviceSelector item : items) { + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1alpha3DeviceSelector item : items) {V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + if (this.selectors == null) { + return (A) this; + } + for (V1alpha3DeviceSelector item : items) { + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); while (each.hasNext()) { - V1alpha3DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha3DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSelectors() { @@ -201,7 +237,7 @@ public A withSelectors(List selectors) { return (A) this; } - public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelector... selectors) { + public A withSelectors(V1alpha3DeviceSelector... selectors) { if (this.selectors != null) { this.selectors.clear(); _visitables.remove("selectors"); @@ -215,7 +251,7 @@ public A withSelectors(io.kubernetes.client.openapi.models.V1alpha3DeviceSelecto } public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); + return this.selectors != null && !(this.selectors.isEmpty()); } public SelectorsNested addNewSelector() { @@ -231,55 +267,101 @@ public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector it } public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); } public SelectorsNested editLastSelector() { int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; - for (int i=0;i extends V1alpha3DeviceSelectorFluent implements VisitableBuilder{ - public V1alpha3DeviceTolerationBuilder() { - this(new V1alpha3DeviceToleration()); - } - - public V1alpha3DeviceTolerationBuilder(V1alpha3DeviceTolerationFluent fluent) { - this(fluent, new V1alpha3DeviceToleration()); - } - - public V1alpha3DeviceTolerationBuilder(V1alpha3DeviceTolerationFluent fluent,V1alpha3DeviceToleration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3DeviceTolerationBuilder(V1alpha3DeviceToleration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3DeviceTolerationFluent fluent; - - public V1alpha3DeviceToleration build() { - V1alpha3DeviceToleration buildable = new V1alpha3DeviceToleration(); - buildable.setEffect(fluent.getEffect()); - buildable.setKey(fluent.getKey()); - buildable.setOperator(fluent.getOperator()); - buildable.setTolerationSeconds(fluent.getTolerationSeconds()); - buildable.setValue(fluent.getValue()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationFluent.java deleted file mode 100644 index fbff68b239..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTolerationFluent.java +++ /dev/null @@ -1,132 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3DeviceTolerationFluent> extends BaseFluent{ - public V1alpha3DeviceTolerationFluent() { - } - - public V1alpha3DeviceTolerationFluent(V1alpha3DeviceToleration instance) { - this.copyInstance(instance); - } - private String effect; - private String key; - private String operator; - private Long tolerationSeconds; - private String value; - - protected void copyInstance(V1alpha3DeviceToleration instance) { - instance = (instance != null ? instance : new V1alpha3DeviceToleration()); - if (instance != null) { - this.withEffect(instance.getEffect()); - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withTolerationSeconds(instance.getTolerationSeconds()); - this.withValue(instance.getValue()); - } - } - - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; - } - - public boolean hasOperator() { - return this.operator != null; - } - - public Long getTolerationSeconds() { - return this.tolerationSeconds; - } - - public A withTolerationSeconds(Long tolerationSeconds) { - this.tolerationSeconds = tolerationSeconds; - return (A) this; - } - - public boolean hasTolerationSeconds() { - return this.tolerationSeconds != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3DeviceTolerationFluent that = (V1alpha3DeviceTolerationFluent) o; - if (!java.util.Objects.equals(effect, that.effect)) return false; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataBuilder.java deleted file mode 100644 index 3210acb3f3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceDataBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3NetworkDeviceDataBuilder extends V1alpha3NetworkDeviceDataFluent implements VisitableBuilder{ - public V1alpha3NetworkDeviceDataBuilder() { - this(new V1alpha3NetworkDeviceData()); - } - - public V1alpha3NetworkDeviceDataBuilder(V1alpha3NetworkDeviceDataFluent fluent) { - this(fluent, new V1alpha3NetworkDeviceData()); - } - - public V1alpha3NetworkDeviceDataBuilder(V1alpha3NetworkDeviceDataFluent fluent,V1alpha3NetworkDeviceData instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3NetworkDeviceDataBuilder(V1alpha3NetworkDeviceData instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3NetworkDeviceDataFluent fluent; - - public V1alpha3NetworkDeviceData build() { - V1alpha3NetworkDeviceData buildable = new V1alpha3NetworkDeviceData(); - buildable.setHardwareAddress(fluent.getHardwareAddress()); - buildable.setInterfaceName(fluent.getInterfaceName()); - buildable.setIps(fluent.getIps()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationBuilder.java deleted file mode 100644 index 545b2e22c8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3OpaqueDeviceConfigurationBuilder extends V1alpha3OpaqueDeviceConfigurationFluent implements VisitableBuilder{ - public V1alpha3OpaqueDeviceConfigurationBuilder() { - this(new V1alpha3OpaqueDeviceConfiguration()); - } - - public V1alpha3OpaqueDeviceConfigurationBuilder(V1alpha3OpaqueDeviceConfigurationFluent fluent) { - this(fluent, new V1alpha3OpaqueDeviceConfiguration()); - } - - public V1alpha3OpaqueDeviceConfigurationBuilder(V1alpha3OpaqueDeviceConfigurationFluent fluent,V1alpha3OpaqueDeviceConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3OpaqueDeviceConfigurationBuilder(V1alpha3OpaqueDeviceConfiguration instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3OpaqueDeviceConfigurationFluent fluent; - - public V1alpha3OpaqueDeviceConfiguration build() { - V1alpha3OpaqueDeviceConfiguration buildable = new V1alpha3OpaqueDeviceConfiguration(); - buildable.setDriver(fluent.getDriver()); - buildable.setParameters(fluent.getParameters()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationFluent.java deleted file mode 100644 index 53bc377f95..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfigurationFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3OpaqueDeviceConfigurationFluent> extends BaseFluent{ - public V1alpha3OpaqueDeviceConfigurationFluent() { - } - - public V1alpha3OpaqueDeviceConfigurationFluent(V1alpha3OpaqueDeviceConfiguration instance) { - this.copyInstance(instance); - } - private String driver; - private Object parameters; - - protected void copyInstance(V1alpha3OpaqueDeviceConfiguration instance) { - instance = (instance != null ? instance : new V1alpha3OpaqueDeviceConfiguration()); - if (instance != null) { - this.withDriver(instance.getDriver()); - this.withParameters(instance.getParameters()); - } - } - - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public Object getParameters() { - return this.parameters; - } - - public A withParameters(Object parameters) { - this.parameters = parameters; - return (A) this; - } - - public boolean hasParameters() { - return this.parameters != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3OpaqueDeviceConfigurationFluent that = (V1alpha3OpaqueDeviceConfigurationFluent) o; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(driver, parameters, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimBuilder.java deleted file mode 100644 index 9ea9866f59..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceClaimBuilder extends V1alpha3ResourceClaimFluent implements VisitableBuilder{ - public V1alpha3ResourceClaimBuilder() { - this(new V1alpha3ResourceClaim()); - } - - public V1alpha3ResourceClaimBuilder(V1alpha3ResourceClaimFluent fluent) { - this(fluent, new V1alpha3ResourceClaim()); - } - - public V1alpha3ResourceClaimBuilder(V1alpha3ResourceClaimFluent fluent,V1alpha3ResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceClaimBuilder(V1alpha3ResourceClaim instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceClaimFluent fluent; - - public V1alpha3ResourceClaim build() { - V1alpha3ResourceClaim buildable = new V1alpha3ResourceClaim(); - 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/V1alpha3ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceBuilder.java deleted file mode 100644 index 7a954fc9d1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceClaimConsumerReferenceBuilder extends V1alpha3ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ - public V1alpha3ResourceClaimConsumerReferenceBuilder() { - this(new V1alpha3ResourceClaimConsumerReference()); - } - - public V1alpha3ResourceClaimConsumerReferenceBuilder(V1alpha3ResourceClaimConsumerReferenceFluent fluent) { - this(fluent, new V1alpha3ResourceClaimConsumerReference()); - } - - public V1alpha3ResourceClaimConsumerReferenceBuilder(V1alpha3ResourceClaimConsumerReferenceFluent fluent,V1alpha3ResourceClaimConsumerReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceClaimConsumerReferenceBuilder(V1alpha3ResourceClaimConsumerReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceClaimConsumerReferenceFluent fluent; - - public V1alpha3ResourceClaimConsumerReference build() { - V1alpha3ResourceClaimConsumerReference buildable = new V1alpha3ResourceClaimConsumerReference(); - buildable.setApiGroup(fluent.getApiGroup()); - buildable.setName(fluent.getName()); - buildable.setResource(fluent.getResource()); - buildable.setUid(fluent.getUid()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceFluent.java deleted file mode 100644 index 81d08fd4aa..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReferenceFluent.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourceClaimConsumerReferenceFluent> extends BaseFluent{ - public V1alpha3ResourceClaimConsumerReferenceFluent() { - } - - public V1alpha3ResourceClaimConsumerReferenceFluent(V1alpha3ResourceClaimConsumerReference instance) { - this.copyInstance(instance); - } - private String apiGroup; - private String name; - private String resource; - private String uid; - - protected void copyInstance(V1alpha3ResourceClaimConsumerReference instance) { - instance = (instance != null ? instance : new V1alpha3ResourceClaimConsumerReference()); - if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withName(instance.getName()); - this.withResource(instance.getResource()); - this.withUid(instance.getUid()); - } - } - - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - - public boolean hasUid() { - return this.uid != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourceClaimConsumerReferenceFluent that = (V1alpha3ResourceClaimConsumerReferenceFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiGroup, name, resource, uid, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListBuilder.java deleted file mode 100644 index 699d4e4ccc..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceClaimListBuilder extends V1alpha3ResourceClaimListFluent implements VisitableBuilder{ - public V1alpha3ResourceClaimListBuilder() { - this(new V1alpha3ResourceClaimList()); - } - - public V1alpha3ResourceClaimListBuilder(V1alpha3ResourceClaimListFluent fluent) { - this(fluent, new V1alpha3ResourceClaimList()); - } - - public V1alpha3ResourceClaimListBuilder(V1alpha3ResourceClaimListFluent fluent,V1alpha3ResourceClaimList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceClaimListBuilder(V1alpha3ResourceClaimList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceClaimListFluent fluent; - - public V1alpha3ResourceClaimList build() { - V1alpha3ResourceClaimList buildable = new V1alpha3ResourceClaimList(); - 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/V1alpha3ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListFluent.java deleted file mode 100644 index b75f81a97f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimListFluent.java +++ /dev/null @@ -1,331 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourceClaimListFluent> extends BaseFluent{ - public V1alpha3ResourceClaimListFluent() { - } - - public V1alpha3ResourceClaimListFluent(V1alpha3ResourceClaimList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha3ResourceClaimList instance) { - instance = (instance != null ? instance : new V1alpha3ResourceClaimList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha3ResourceClaim item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.add(index, builder); - } - return (A)this; - } - - public A setToItems(int index,V1alpha3ResourceClaim item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaim... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3ResourceClaim item : items) {V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3ResourceClaim item : items) {V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaim... items) { - if (this.items == null) return (A)this; - for (V1alpha3ResourceClaim item : items) {V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha3ResourceClaim item : items) {V1alpha3ResourceClaimBuilder builder = new V1alpha3ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha3ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha3ResourceClaim buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha3ResourceClaim buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha3ResourceClaim buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha3ResourceClaim buildMatchingItem(Predicate predicate) { - for (V1alpha3ResourceClaimBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha3ResourceClaimBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha3ResourceClaim item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaim... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha3ResourceClaim item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha3ResourceClaim item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha3ResourceClaim item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourceClaimListFluent that = (V1alpha3ResourceClaimListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha3ResourceClaimFluent> implements Nested{ - ItemsNested(int index,V1alpha3ResourceClaim item) { - this.index = index; - this.builder = new V1alpha3ResourceClaimBuilder(this, item); - } - V1alpha3ResourceClaimBuilder builder; - int index; - - public N and() { - return (N) V1alpha3ResourceClaimListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha3ResourceClaimListFluent.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/V1alpha3ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecBuilder.java deleted file mode 100644 index 5360631672..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceClaimSpecBuilder extends V1alpha3ResourceClaimSpecFluent implements VisitableBuilder{ - public V1alpha3ResourceClaimSpecBuilder() { - this(new V1alpha3ResourceClaimSpec()); - } - - public V1alpha3ResourceClaimSpecBuilder(V1alpha3ResourceClaimSpecFluent fluent) { - this(fluent, new V1alpha3ResourceClaimSpec()); - } - - public V1alpha3ResourceClaimSpecBuilder(V1alpha3ResourceClaimSpecFluent fluent,V1alpha3ResourceClaimSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceClaimSpecBuilder(V1alpha3ResourceClaimSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceClaimSpecFluent fluent; - - public V1alpha3ResourceClaimSpec build() { - V1alpha3ResourceClaimSpec buildable = new V1alpha3ResourceClaimSpec(); - buildable.setDevices(fluent.buildDevices()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecFluent.java deleted file mode 100644 index 984b43a114..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpecFluent.java +++ /dev/null @@ -1,106 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourceClaimSpecFluent> extends BaseFluent{ - public V1alpha3ResourceClaimSpecFluent() { - } - - public V1alpha3ResourceClaimSpecFluent(V1alpha3ResourceClaimSpec instance) { - this.copyInstance(instance); - } - private V1alpha3DeviceClaimBuilder devices; - - protected void copyInstance(V1alpha3ResourceClaimSpec instance) { - instance = (instance != null ? instance : new V1alpha3ResourceClaimSpec()); - if (instance != null) { - this.withDevices(instance.getDevices()); - } - } - - public V1alpha3DeviceClaim buildDevices() { - return this.devices != null ? this.devices.build() : null; - } - - public A withDevices(V1alpha3DeviceClaim devices) { - this._visitables.remove("devices"); - if (devices != null) { - this.devices = new V1alpha3DeviceClaimBuilder(devices); - this._visitables.get("devices").add(this.devices); - } else { - this.devices = null; - this._visitables.get("devices").remove(this.devices); - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null; - } - - public DevicesNested withNewDevices() { - return new DevicesNested(null); - } - - public DevicesNested withNewDevicesLike(V1alpha3DeviceClaim item) { - return new DevicesNested(item); - } - - public DevicesNested editDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); - } - - public DevicesNested editOrNewDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1alpha3DeviceClaimBuilder().build())); - } - - public DevicesNested editOrNewDevicesLike(V1alpha3DeviceClaim item) { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourceClaimSpecFluent that = (V1alpha3ResourceClaimSpecFluent) o; - if (!java.util.Objects.equals(devices, that.devices)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(devices, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (devices != null) { sb.append("devices:"); sb.append(devices); } - sb.append("}"); - return sb.toString(); - } - public class DevicesNested extends V1alpha3DeviceClaimFluent> implements Nested{ - DevicesNested(V1alpha3DeviceClaim item) { - this.builder = new V1alpha3DeviceClaimBuilder(this, item); - } - V1alpha3DeviceClaimBuilder builder; - - public N and() { - return (N) V1alpha3ResourceClaimSpecFluent.this.withDevices(builder.build()); - } - - public N endDevices() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusBuilder.java deleted file mode 100644 index 22be517055..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceClaimStatusBuilder extends V1alpha3ResourceClaimStatusFluent implements VisitableBuilder{ - public V1alpha3ResourceClaimStatusBuilder() { - this(new V1alpha3ResourceClaimStatus()); - } - - public V1alpha3ResourceClaimStatusBuilder(V1alpha3ResourceClaimStatusFluent fluent) { - this(fluent, new V1alpha3ResourceClaimStatus()); - } - - public V1alpha3ResourceClaimStatusBuilder(V1alpha3ResourceClaimStatusFluent fluent,V1alpha3ResourceClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceClaimStatusBuilder(V1alpha3ResourceClaimStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceClaimStatusFluent fluent; - - public V1alpha3ResourceClaimStatus build() { - V1alpha3ResourceClaimStatus buildable = new V1alpha3ResourceClaimStatus(); - buildable.setAllocation(fluent.buildAllocation()); - buildable.setDevices(fluent.buildDevices()); - buildable.setReservedFor(fluent.buildReservedFor()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java deleted file mode 100644 index efa2caae5a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatusFluent.java +++ /dev/null @@ -1,482 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourceClaimStatusFluent> extends BaseFluent{ - public V1alpha3ResourceClaimStatusFluent() { - } - - public V1alpha3ResourceClaimStatusFluent(V1alpha3ResourceClaimStatus instance) { - this.copyInstance(instance); - } - private V1alpha3AllocationResultBuilder allocation; - private ArrayList devices; - private ArrayList reservedFor; - - protected void copyInstance(V1alpha3ResourceClaimStatus instance) { - instance = (instance != null ? instance : new V1alpha3ResourceClaimStatus()); - if (instance != null) { - this.withAllocation(instance.getAllocation()); - this.withDevices(instance.getDevices()); - this.withReservedFor(instance.getReservedFor()); - } - } - - public V1alpha3AllocationResult buildAllocation() { - return this.allocation != null ? this.allocation.build() : null; - } - - public A withAllocation(V1alpha3AllocationResult allocation) { - this._visitables.remove("allocation"); - if (allocation != null) { - this.allocation = new V1alpha3AllocationResultBuilder(allocation); - this._visitables.get("allocation").add(this.allocation); - } else { - this.allocation = null; - this._visitables.get("allocation").remove(this.allocation); - } - return (A) this; - } - - public boolean hasAllocation() { - return this.allocation != null; - } - - public AllocationNested withNewAllocation() { - return new AllocationNested(null); - } - - public AllocationNested withNewAllocationLike(V1alpha3AllocationResult item) { - return new AllocationNested(item); - } - - public AllocationNested editAllocation() { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(null)); - } - - public AllocationNested editOrNewAllocation() { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(new V1alpha3AllocationResultBuilder().build())); - } - - public AllocationNested editOrNewAllocationLike(V1alpha3AllocationResult item) { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(item)); - } - - public A addToDevices(int index,V1alpha3AllocatedDeviceStatus item) { - if (this.devices == null) {this.devices = new ArrayList();} - V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { - _visitables.get("devices").add(builder); - devices.add(index, builder); - } - return (A)this; - } - - public A setToDevices(int index,V1alpha3AllocatedDeviceStatus item) { - if (this.devices == null) {this.devices = new ArrayList();} - V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); - } - return (A)this; - } - - public A addToDevices(io.kubernetes.client.openapi.models.V1alpha3AllocatedDeviceStatus... items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1alpha3AllocatedDeviceStatus item : items) {V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; - } - - public A addAllToDevices(Collection items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1alpha3AllocatedDeviceStatus item : items) {V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; - } - - public A removeFromDevices(io.kubernetes.client.openapi.models.V1alpha3AllocatedDeviceStatus... items) { - if (this.devices == null) return (A)this; - for (V1alpha3AllocatedDeviceStatus item : items) {V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; - } - - public A removeAllFromDevices(Collection items) { - if (this.devices == null) return (A)this; - for (V1alpha3AllocatedDeviceStatus item : items) {V1alpha3AllocatedDeviceStatusBuilder builder = new V1alpha3AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; - } - - public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) return (A) this; - final Iterator each = devices.iterator(); - final List visitables = _visitables.get("devices"); - while (each.hasNext()) { - V1alpha3AllocatedDeviceStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildDevices() { - return this.devices != null ? build(devices) : null; - } - - public V1alpha3AllocatedDeviceStatus buildDevice(int index) { - return this.devices.get(index).build(); - } - - public V1alpha3AllocatedDeviceStatus buildFirstDevice() { - return this.devices.get(0).build(); - } - - public V1alpha3AllocatedDeviceStatus buildLastDevice() { - return this.devices.get(devices.size() - 1).build(); - } - - public V1alpha3AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { - for (V1alpha3AllocatedDeviceStatusBuilder item : devices) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingDevice(Predicate predicate) { - for (V1alpha3AllocatedDeviceStatusBuilder item : devices) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withDevices(List devices) { - if (this.devices != null) { - this._visitables.get("devices").clear(); - } - if (devices != null) { - this.devices = new ArrayList(); - for (V1alpha3AllocatedDeviceStatus item : devices) { - this.addToDevices(item); - } - } else { - this.devices = null; - } - return (A) this; - } - - public A withDevices(io.kubernetes.client.openapi.models.V1alpha3AllocatedDeviceStatus... devices) { - if (this.devices != null) { - this.devices.clear(); - _visitables.remove("devices"); - } - if (devices != null) { - for (V1alpha3AllocatedDeviceStatus item : devices) { - this.addToDevices(item); - } - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null && !this.devices.isEmpty(); - } - - public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); - } - - public DevicesNested addNewDeviceLike(V1alpha3AllocatedDeviceStatus item) { - return new DevicesNested(-1, item); - } - - public DevicesNested setNewDeviceLike(int index,V1alpha3AllocatedDeviceStatus item) { - return new DevicesNested(index, item); - } - - public DevicesNested editDevice(int index) { - if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); - return setNewDeviceLike(index, buildDevice(index)); - } - - public DevicesNested editFirstDevice() { - if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); - return setNewDeviceLike(0, buildDevice(0)); - } - - public DevicesNested editLastDevice() { - int index = devices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); - return setNewDeviceLike(index, buildDevice(index)); - } - - public DevicesNested editMatchingDevice(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); - } else { - _visitables.get("reservedFor").add(builder); - reservedFor.add(index, builder); - } - return (A)this; - } - - public A setToReservedFor(int index,V1alpha3ResourceClaimConsumerReference item) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); - } else { - _visitables.get("reservedFor").add(builder); - reservedFor.set(index, builder); - } - return (A)this; - } - - public A addToReservedFor(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimConsumerReference... items) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - for (V1alpha3ResourceClaimConsumerReference item : items) {V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; - } - - public A addAllToReservedFor(Collection items) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - for (V1alpha3ResourceClaimConsumerReference item : items) {V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; - } - - public A removeFromReservedFor(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimConsumerReference... items) { - if (this.reservedFor == null) return (A)this; - for (V1alpha3ResourceClaimConsumerReference item : items) {V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; - } - - public A removeAllFromReservedFor(Collection items) { - if (this.reservedFor == null) return (A)this; - for (V1alpha3ResourceClaimConsumerReference item : items) {V1alpha3ResourceClaimConsumerReferenceBuilder builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; - } - - public A removeMatchingFromReservedFor(Predicate predicate) { - if (reservedFor == null) return (A) this; - final Iterator each = reservedFor.iterator(); - final List visitables = _visitables.get("reservedFor"); - while (each.hasNext()) { - V1alpha3ResourceClaimConsumerReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildReservedFor() { - return this.reservedFor != null ? build(reservedFor) : null; - } - - public V1alpha3ResourceClaimConsumerReference buildReservedFor(int index) { - return this.reservedFor.get(index).build(); - } - - public V1alpha3ResourceClaimConsumerReference buildFirstReservedFor() { - return this.reservedFor.get(0).build(); - } - - public V1alpha3ResourceClaimConsumerReference buildLastReservedFor() { - return this.reservedFor.get(reservedFor.size() - 1).build(); - } - - public V1alpha3ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { - for (V1alpha3ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingReservedFor(Predicate predicate) { - for (V1alpha3ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withReservedFor(List reservedFor) { - if (this.reservedFor != null) { - this._visitables.get("reservedFor").clear(); - } - if (reservedFor != null) { - this.reservedFor = new ArrayList(); - for (V1alpha3ResourceClaimConsumerReference item : reservedFor) { - this.addToReservedFor(item); - } - } else { - this.reservedFor = null; - } - return (A) this; - } - - public A withReservedFor(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimConsumerReference... reservedFor) { - if (this.reservedFor != null) { - this.reservedFor.clear(); - _visitables.remove("reservedFor"); - } - if (reservedFor != null) { - for (V1alpha3ResourceClaimConsumerReference item : reservedFor) { - this.addToReservedFor(item); - } - } - return (A) this; - } - - public boolean hasReservedFor() { - return this.reservedFor != null && !this.reservedFor.isEmpty(); - } - - public ReservedForNested addNewReservedFor() { - return new ReservedForNested(-1, null); - } - - public ReservedForNested addNewReservedForLike(V1alpha3ResourceClaimConsumerReference item) { - return new ReservedForNested(-1, item); - } - - public ReservedForNested setNewReservedForLike(int index,V1alpha3ResourceClaimConsumerReference item) { - return new ReservedForNested(index, item); - } - - public ReservedForNested editReservedFor(int index) { - if (reservedFor.size() <= index) throw new RuntimeException("Can't edit reservedFor. Index exceeds size."); - return setNewReservedForLike(index, buildReservedFor(index)); - } - - public ReservedForNested editFirstReservedFor() { - if (reservedFor.size() == 0) throw new RuntimeException("Can't edit first reservedFor. The list is empty."); - return setNewReservedForLike(0, buildReservedFor(0)); - } - - public ReservedForNested editLastReservedFor() { - int index = reservedFor.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last reservedFor. The list is empty."); - return setNewReservedForLike(index, buildReservedFor(index)); - } - - public ReservedForNested editMatchingReservedFor(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha3AllocationResultFluent> implements Nested{ - AllocationNested(V1alpha3AllocationResult item) { - this.builder = new V1alpha3AllocationResultBuilder(this, item); - } - V1alpha3AllocationResultBuilder builder; - - public N and() { - return (N) V1alpha3ResourceClaimStatusFluent.this.withAllocation(builder.build()); - } - - public N endAllocation() { - return and(); - } - - - } - public class DevicesNested extends V1alpha3AllocatedDeviceStatusFluent> implements Nested{ - DevicesNested(int index,V1alpha3AllocatedDeviceStatus item) { - this.index = index; - this.builder = new V1alpha3AllocatedDeviceStatusBuilder(this, item); - } - V1alpha3AllocatedDeviceStatusBuilder builder; - int index; - - public N and() { - return (N) V1alpha3ResourceClaimStatusFluent.this.setToDevices(index,builder.build()); - } - - public N endDevice() { - return and(); - } - - - } - public class ReservedForNested extends V1alpha3ResourceClaimConsumerReferenceFluent> implements Nested{ - ReservedForNested(int index,V1alpha3ResourceClaimConsumerReference item) { - this.index = index; - this.builder = new V1alpha3ResourceClaimConsumerReferenceBuilder(this, item); - } - V1alpha3ResourceClaimConsumerReferenceBuilder builder; - int index; - - public N and() { - return (N) V1alpha3ResourceClaimStatusFluent.this.setToReservedFor(index,builder.build()); - } - - public N endReservedFor() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateBuilder.java deleted file mode 100644 index a496a22528..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceClaimTemplateBuilder extends V1alpha3ResourceClaimTemplateFluent implements VisitableBuilder{ - public V1alpha3ResourceClaimTemplateBuilder() { - this(new V1alpha3ResourceClaimTemplate()); - } - - public V1alpha3ResourceClaimTemplateBuilder(V1alpha3ResourceClaimTemplateFluent fluent) { - this(fluent, new V1alpha3ResourceClaimTemplate()); - } - - public V1alpha3ResourceClaimTemplateBuilder(V1alpha3ResourceClaimTemplateFluent fluent,V1alpha3ResourceClaimTemplate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceClaimTemplateBuilder(V1alpha3ResourceClaimTemplate instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceClaimTemplateFluent fluent; - - public V1alpha3ResourceClaimTemplate build() { - V1alpha3ResourceClaimTemplate buildable = new V1alpha3ResourceClaimTemplate(); - 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/V1alpha3ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListBuilder.java deleted file mode 100644 index 3192505254..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceClaimTemplateListBuilder extends V1alpha3ResourceClaimTemplateListFluent implements VisitableBuilder{ - public V1alpha3ResourceClaimTemplateListBuilder() { - this(new V1alpha3ResourceClaimTemplateList()); - } - - public V1alpha3ResourceClaimTemplateListBuilder(V1alpha3ResourceClaimTemplateListFluent fluent) { - this(fluent, new V1alpha3ResourceClaimTemplateList()); - } - - public V1alpha3ResourceClaimTemplateListBuilder(V1alpha3ResourceClaimTemplateListFluent fluent,V1alpha3ResourceClaimTemplateList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceClaimTemplateListBuilder(V1alpha3ResourceClaimTemplateList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceClaimTemplateListFluent fluent; - - public V1alpha3ResourceClaimTemplateList build() { - V1alpha3ResourceClaimTemplateList buildable = new V1alpha3ResourceClaimTemplateList(); - 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/V1alpha3ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListFluent.java deleted file mode 100644 index c7b6189ea2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateListFluent.java +++ /dev/null @@ -1,331 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourceClaimTemplateListFluent> extends BaseFluent{ - public V1alpha3ResourceClaimTemplateListFluent() { - } - - public V1alpha3ResourceClaimTemplateListFluent(V1alpha3ResourceClaimTemplateList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha3ResourceClaimTemplateList instance) { - instance = (instance != null ? instance : new V1alpha3ResourceClaimTemplateList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha3ResourceClaimTemplate item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.add(index, builder); - } - return (A)this; - } - - public A setToItems(int index,V1alpha3ResourceClaimTemplate item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3ResourceClaimTemplate item : items) {V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3ResourceClaimTemplate item : items) {V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate... items) { - if (this.items == null) return (A)this; - for (V1alpha3ResourceClaimTemplate item : items) {V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha3ResourceClaimTemplate item : items) {V1alpha3ResourceClaimTemplateBuilder builder = new V1alpha3ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha3ResourceClaimTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha3ResourceClaimTemplate buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha3ResourceClaimTemplate buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha3ResourceClaimTemplate buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha3ResourceClaimTemplate buildMatchingItem(Predicate predicate) { - for (V1alpha3ResourceClaimTemplateBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha3ResourceClaimTemplateBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha3ResourceClaimTemplate item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha3ResourceClaimTemplate item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha3ResourceClaimTemplate item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha3ResourceClaimTemplate item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourceClaimTemplateListFluent that = (V1alpha3ResourceClaimTemplateListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha3ResourceClaimTemplateFluent> implements Nested{ - ItemsNested(int index,V1alpha3ResourceClaimTemplate item) { - this.index = index; - this.builder = new V1alpha3ResourceClaimTemplateBuilder(this, item); - } - V1alpha3ResourceClaimTemplateBuilder builder; - int index; - - public N and() { - return (N) V1alpha3ResourceClaimTemplateListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha3ResourceClaimTemplateListFluent.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/V1alpha3ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecBuilder.java deleted file mode 100644 index 630c836979..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpecBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceClaimTemplateSpecBuilder extends V1alpha3ResourceClaimTemplateSpecFluent implements VisitableBuilder{ - public V1alpha3ResourceClaimTemplateSpecBuilder() { - this(new V1alpha3ResourceClaimTemplateSpec()); - } - - public V1alpha3ResourceClaimTemplateSpecBuilder(V1alpha3ResourceClaimTemplateSpecFluent fluent) { - this(fluent, new V1alpha3ResourceClaimTemplateSpec()); - } - - public V1alpha3ResourceClaimTemplateSpecBuilder(V1alpha3ResourceClaimTemplateSpecFluent fluent,V1alpha3ResourceClaimTemplateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceClaimTemplateSpecBuilder(V1alpha3ResourceClaimTemplateSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceClaimTemplateSpecFluent fluent; - - public V1alpha3ResourceClaimTemplateSpec build() { - V1alpha3ResourceClaimTemplateSpec buildable = new V1alpha3ResourceClaimTemplateSpec(); - 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/V1alpha3ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolBuilder.java deleted file mode 100644 index 64e9c10993..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourcePoolBuilder extends V1alpha3ResourcePoolFluent implements VisitableBuilder{ - public V1alpha3ResourcePoolBuilder() { - this(new V1alpha3ResourcePool()); - } - - public V1alpha3ResourcePoolBuilder(V1alpha3ResourcePoolFluent fluent) { - this(fluent, new V1alpha3ResourcePool()); - } - - public V1alpha3ResourcePoolBuilder(V1alpha3ResourcePoolFluent fluent,V1alpha3ResourcePool instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourcePoolBuilder(V1alpha3ResourcePool instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourcePoolFluent fluent; - - public V1alpha3ResourcePool build() { - V1alpha3ResourcePool buildable = new V1alpha3ResourcePool(); - buildable.setGeneration(fluent.getGeneration()); - buildable.setName(fluent.getName()); - buildable.setResourceSliceCount(fluent.getResourceSliceCount()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolFluent.java deleted file mode 100644 index b0c3470829..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolFluent.java +++ /dev/null @@ -1,98 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourcePoolFluent> extends BaseFluent{ - public V1alpha3ResourcePoolFluent() { - } - - public V1alpha3ResourcePoolFluent(V1alpha3ResourcePool instance) { - this.copyInstance(instance); - } - private Long generation; - private String name; - private Long resourceSliceCount; - - protected void copyInstance(V1alpha3ResourcePool instance) { - instance = (instance != null ? instance : new V1alpha3ResourcePool()); - if (instance != null) { - this.withGeneration(instance.getGeneration()); - this.withName(instance.getName()); - this.withResourceSliceCount(instance.getResourceSliceCount()); - } - } - - public Long getGeneration() { - return this.generation; - } - - public A withGeneration(Long generation) { - this.generation = generation; - return (A) this; - } - - public boolean hasGeneration() { - return this.generation != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Long getResourceSliceCount() { - return this.resourceSliceCount; - } - - public A withResourceSliceCount(Long resourceSliceCount) { - this.resourceSliceCount = resourceSliceCount; - return (A) this; - } - - public boolean hasResourceSliceCount() { - return this.resourceSliceCount != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourcePoolFluent that = (V1alpha3ResourcePoolFluent) o; - if (!java.util.Objects.equals(generation, that.generation)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resourceSliceCount, that.resourceSliceCount)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(generation, name, resourceSliceCount, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (generation != null) { sb.append("generation:"); sb.append(generation + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (resourceSliceCount != null) { sb.append("resourceSliceCount:"); sb.append(resourceSliceCount); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceBuilder.java deleted file mode 100644 index 4b25b5908d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceSliceBuilder extends V1alpha3ResourceSliceFluent implements VisitableBuilder{ - public V1alpha3ResourceSliceBuilder() { - this(new V1alpha3ResourceSlice()); - } - - public V1alpha3ResourceSliceBuilder(V1alpha3ResourceSliceFluent fluent) { - this(fluent, new V1alpha3ResourceSlice()); - } - - public V1alpha3ResourceSliceBuilder(V1alpha3ResourceSliceFluent fluent,V1alpha3ResourceSlice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceSliceBuilder(V1alpha3ResourceSlice instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceSliceFluent fluent; - - public V1alpha3ResourceSlice build() { - V1alpha3ResourceSlice buildable = new V1alpha3ResourceSlice(); - 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/V1alpha3ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListBuilder.java deleted file mode 100644 index 53aff3011f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceSliceListBuilder extends V1alpha3ResourceSliceListFluent implements VisitableBuilder{ - public V1alpha3ResourceSliceListBuilder() { - this(new V1alpha3ResourceSliceList()); - } - - public V1alpha3ResourceSliceListBuilder(V1alpha3ResourceSliceListFluent fluent) { - this(fluent, new V1alpha3ResourceSliceList()); - } - - public V1alpha3ResourceSliceListBuilder(V1alpha3ResourceSliceListFluent fluent,V1alpha3ResourceSliceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceSliceListBuilder(V1alpha3ResourceSliceList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceSliceListFluent fluent; - - public V1alpha3ResourceSliceList build() { - V1alpha3ResourceSliceList buildable = new V1alpha3ResourceSliceList(); - 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/V1alpha3ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListFluent.java deleted file mode 100644 index e63bc25e6b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceListFluent.java +++ /dev/null @@ -1,331 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourceSliceListFluent> extends BaseFluent{ - public V1alpha3ResourceSliceListFluent() { - } - - public V1alpha3ResourceSliceListFluent(V1alpha3ResourceSliceList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha3ResourceSliceList instance) { - instance = (instance != null ? instance : new V1alpha3ResourceSliceList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1alpha3ResourceSlice item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.add(index, builder); - } - return (A)this; - } - - public A setToItems(int index,V1alpha3ResourceSlice item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1alpha3ResourceSlice... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3ResourceSlice item : items) {V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha3ResourceSlice item : items) {V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha3ResourceSlice... items) { - if (this.items == null) return (A)this; - for (V1alpha3ResourceSlice item : items) {V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha3ResourceSlice item : items) {V1alpha3ResourceSliceBuilder builder = new V1alpha3ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha3ResourceSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1alpha3ResourceSlice buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha3ResourceSlice buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha3ResourceSlice buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha3ResourceSlice buildMatchingItem(Predicate predicate) { - for (V1alpha3ResourceSliceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha3ResourceSliceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha3ResourceSlice item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha3ResourceSlice... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha3ResourceSlice item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha3ResourceSlice item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha3ResourceSlice item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha3ResourceSliceListFluent that = (V1alpha3ResourceSliceListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1alpha3ResourceSliceFluent> implements Nested{ - ItemsNested(int index,V1alpha3ResourceSlice item) { - this.index = index; - this.builder = new V1alpha3ResourceSliceBuilder(this, item); - } - V1alpha3ResourceSliceBuilder builder; - int index; - - public N and() { - return (N) V1alpha3ResourceSliceListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1alpha3ResourceSliceListFluent.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/V1alpha3ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecBuilder.java deleted file mode 100644 index c325d7e04e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha3ResourceSliceSpecBuilder extends V1alpha3ResourceSliceSpecFluent implements VisitableBuilder{ - public V1alpha3ResourceSliceSpecBuilder() { - this(new V1alpha3ResourceSliceSpec()); - } - - public V1alpha3ResourceSliceSpecBuilder(V1alpha3ResourceSliceSpecFluent fluent) { - this(fluent, new V1alpha3ResourceSliceSpec()); - } - - public V1alpha3ResourceSliceSpecBuilder(V1alpha3ResourceSliceSpecFluent fluent,V1alpha3ResourceSliceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha3ResourceSliceSpecBuilder(V1alpha3ResourceSliceSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha3ResourceSliceSpecFluent fluent; - - public V1alpha3ResourceSliceSpec build() { - V1alpha3ResourceSliceSpec buildable = new V1alpha3ResourceSliceSpec(); - buildable.setAllNodes(fluent.getAllNodes()); - buildable.setDevices(fluent.buildDevices()); - buildable.setDriver(fluent.getDriver()); - buildable.setNodeName(fluent.getNodeName()); - buildable.setNodeSelector(fluent.buildNodeSelector()); - buildable.setPerDeviceNodeSelection(fluent.getPerDeviceNodeSelection()); - buildable.setPool(fluent.buildPool()); - buildable.setSharedCounters(fluent.buildSharedCounters()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java deleted file mode 100644 index f10bb6987b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpecFluent.java +++ /dev/null @@ -1,619 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.lang.Boolean; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha3ResourceSliceSpecFluent> extends BaseFluent{ - public V1alpha3ResourceSliceSpecFluent() { - } - - public V1alpha3ResourceSliceSpecFluent(V1alpha3ResourceSliceSpec instance) { - this.copyInstance(instance); - } - private Boolean allNodes; - private ArrayList devices; - private String driver; - private String nodeName; - private V1NodeSelectorBuilder nodeSelector; - private Boolean perDeviceNodeSelection; - private V1alpha3ResourcePoolBuilder pool; - private ArrayList sharedCounters; - - protected void copyInstance(V1alpha3ResourceSliceSpec instance) { - instance = (instance != null ? instance : new V1alpha3ResourceSliceSpec()); - if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withDevices(instance.getDevices()); - this.withDriver(instance.getDriver()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); - this.withPool(instance.getPool()); - this.withSharedCounters(instance.getSharedCounters()); - } - } - - public Boolean getAllNodes() { - return this.allNodes; - } - - public A withAllNodes(Boolean allNodes) { - this.allNodes = allNodes; - return (A) this; - } - - public boolean hasAllNodes() { - return this.allNodes != null; - } - - public A addToDevices(int index,V1alpha3Device item) { - if (this.devices == null) {this.devices = new ArrayList();} - V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { - _visitables.get("devices").add(builder); - devices.add(index, builder); - } - return (A)this; - } - - public A setToDevices(int index,V1alpha3Device item) { - if (this.devices == null) {this.devices = new ArrayList();} - V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); - } - return (A)this; - } - - public A addToDevices(io.kubernetes.client.openapi.models.V1alpha3Device... items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1alpha3Device item : items) {V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; - } - - public A addAllToDevices(Collection items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1alpha3Device item : items) {V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; - } - - public A removeFromDevices(io.kubernetes.client.openapi.models.V1alpha3Device... items) { - if (this.devices == null) return (A)this; - for (V1alpha3Device item : items) {V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; - } - - public A removeAllFromDevices(Collection items) { - if (this.devices == null) return (A)this; - for (V1alpha3Device item : items) {V1alpha3DeviceBuilder builder = new V1alpha3DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; - } - - public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) return (A) this; - final Iterator each = devices.iterator(); - final List visitables = _visitables.get("devices"); - while (each.hasNext()) { - V1alpha3DeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildDevices() { - return this.devices != null ? build(devices) : null; - } - - public V1alpha3Device buildDevice(int index) { - return this.devices.get(index).build(); - } - - public V1alpha3Device buildFirstDevice() { - return this.devices.get(0).build(); - } - - public V1alpha3Device buildLastDevice() { - return this.devices.get(devices.size() - 1).build(); - } - - public V1alpha3Device buildMatchingDevice(Predicate predicate) { - for (V1alpha3DeviceBuilder item : devices) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingDevice(Predicate predicate) { - for (V1alpha3DeviceBuilder item : devices) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withDevices(List devices) { - if (this.devices != null) { - this._visitables.get("devices").clear(); - } - if (devices != null) { - this.devices = new ArrayList(); - for (V1alpha3Device item : devices) { - this.addToDevices(item); - } - } else { - this.devices = null; - } - return (A) this; - } - - public A withDevices(io.kubernetes.client.openapi.models.V1alpha3Device... devices) { - if (this.devices != null) { - this.devices.clear(); - _visitables.remove("devices"); - } - if (devices != null) { - for (V1alpha3Device item : devices) { - this.addToDevices(item); - } - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null && !this.devices.isEmpty(); - } - - public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); - } - - public DevicesNested addNewDeviceLike(V1alpha3Device item) { - return new DevicesNested(-1, item); - } - - public DevicesNested setNewDeviceLike(int index,V1alpha3Device item) { - return new DevicesNested(index, item); - } - - public DevicesNested editDevice(int index) { - if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); - return setNewDeviceLike(index, buildDevice(index)); - } - - public DevicesNested editFirstDevice() { - if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); - return setNewDeviceLike(0, buildDevice(0)); - } - - public DevicesNested editLastDevice() { - int index = devices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); - return setNewDeviceLike(index, buildDevice(index)); - } - - public DevicesNested editMatchingDevice(Predicate predicate) { - int index = -1; - for (int i=0;i withNewNodeSelector() { - return new NodeSelectorNested(null); - } - - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); - } - - public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); - } - - public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); - } - - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); - } - - public Boolean getPerDeviceNodeSelection() { - return this.perDeviceNodeSelection; - } - - public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { - this.perDeviceNodeSelection = perDeviceNodeSelection; - return (A) this; - } - - public boolean hasPerDeviceNodeSelection() { - return this.perDeviceNodeSelection != null; - } - - public V1alpha3ResourcePool buildPool() { - return this.pool != null ? this.pool.build() : null; - } - - public A withPool(V1alpha3ResourcePool pool) { - this._visitables.remove("pool"); - if (pool != null) { - this.pool = new V1alpha3ResourcePoolBuilder(pool); - this._visitables.get("pool").add(this.pool); - } else { - this.pool = null; - this._visitables.get("pool").remove(this.pool); - } - return (A) this; - } - - public boolean hasPool() { - return this.pool != null; - } - - public PoolNested withNewPool() { - return new PoolNested(null); - } - - public PoolNested withNewPoolLike(V1alpha3ResourcePool item) { - return new PoolNested(item); - } - - public PoolNested editPool() { - return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(null)); - } - - public PoolNested editOrNewPool() { - return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(new V1alpha3ResourcePoolBuilder().build())); - } - - public PoolNested editOrNewPoolLike(V1alpha3ResourcePool item) { - return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(item)); - } - - public A addToSharedCounters(int index,V1alpha3CounterSet item) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} - V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); - } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(index, builder); - } - return (A)this; - } - - public A setToSharedCounters(int index,V1alpha3CounterSet item) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} - V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); - } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.set(index, builder); - } - return (A)this; - } - - public A addToSharedCounters(io.kubernetes.client.openapi.models.V1alpha3CounterSet... items) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} - for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; - } - - public A addAllToSharedCounters(Collection items) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} - for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; - } - - public A removeFromSharedCounters(io.kubernetes.client.openapi.models.V1alpha3CounterSet... items) { - if (this.sharedCounters == null) return (A)this; - for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; - } - - public A removeAllFromSharedCounters(Collection items) { - if (this.sharedCounters == null) return (A)this; - for (V1alpha3CounterSet item : items) {V1alpha3CounterSetBuilder builder = new V1alpha3CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; - } - - public A removeMatchingFromSharedCounters(Predicate predicate) { - if (sharedCounters == null) return (A) this; - final Iterator each = sharedCounters.iterator(); - final List visitables = _visitables.get("sharedCounters"); - while (each.hasNext()) { - V1alpha3CounterSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildSharedCounters() { - return this.sharedCounters != null ? build(sharedCounters) : null; - } - - public V1alpha3CounterSet buildSharedCounter(int index) { - return this.sharedCounters.get(index).build(); - } - - public V1alpha3CounterSet buildFirstSharedCounter() { - return this.sharedCounters.get(0).build(); - } - - public V1alpha3CounterSet buildLastSharedCounter() { - return this.sharedCounters.get(sharedCounters.size() - 1).build(); - } - - public V1alpha3CounterSet buildMatchingSharedCounter(Predicate predicate) { - for (V1alpha3CounterSetBuilder item : sharedCounters) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSharedCounter(Predicate predicate) { - for (V1alpha3CounterSetBuilder item : sharedCounters) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSharedCounters(List sharedCounters) { - if (this.sharedCounters != null) { - this._visitables.get("sharedCounters").clear(); - } - if (sharedCounters != null) { - this.sharedCounters = new ArrayList(); - for (V1alpha3CounterSet item : sharedCounters) { - this.addToSharedCounters(item); - } - } else { - this.sharedCounters = null; - } - return (A) this; - } - - public A withSharedCounters(io.kubernetes.client.openapi.models.V1alpha3CounterSet... sharedCounters) { - if (this.sharedCounters != null) { - this.sharedCounters.clear(); - _visitables.remove("sharedCounters"); - } - if (sharedCounters != null) { - for (V1alpha3CounterSet item : sharedCounters) { - this.addToSharedCounters(item); - } - } - return (A) this; - } - - public boolean hasSharedCounters() { - return this.sharedCounters != null && !this.sharedCounters.isEmpty(); - } - - public SharedCountersNested addNewSharedCounter() { - return new SharedCountersNested(-1, null); - } - - public SharedCountersNested addNewSharedCounterLike(V1alpha3CounterSet item) { - return new SharedCountersNested(-1, item); - } - - public SharedCountersNested setNewSharedCounterLike(int index,V1alpha3CounterSet item) { - return new SharedCountersNested(index, item); - } - - public SharedCountersNested editSharedCounter(int index) { - if (sharedCounters.size() <= index) throw new RuntimeException("Can't edit sharedCounters. Index exceeds size."); - return setNewSharedCounterLike(index, buildSharedCounter(index)); - } - - public SharedCountersNested editFirstSharedCounter() { - if (sharedCounters.size() == 0) throw new RuntimeException("Can't edit first sharedCounters. The list is empty."); - return setNewSharedCounterLike(0, buildSharedCounter(0)); - } - - public SharedCountersNested editLastSharedCounter() { - int index = sharedCounters.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last sharedCounters. The list is empty."); - return setNewSharedCounterLike(index, buildSharedCounter(index)); - } - - public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha3DeviceFluent> implements Nested{ - DevicesNested(int index,V1alpha3Device item) { - this.index = index; - this.builder = new V1alpha3DeviceBuilder(this, item); - } - V1alpha3DeviceBuilder builder; - int index; - - public N and() { - return (N) V1alpha3ResourceSliceSpecFluent.this.setToDevices(index,builder.build()); - } - - public N endDevice() { - return and(); - } - - - } - public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ - NodeSelectorNested(V1NodeSelector item) { - this.builder = new V1NodeSelectorBuilder(this, item); - } - V1NodeSelectorBuilder builder; - - public N and() { - return (N) V1alpha3ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); - } - - public N endNodeSelector() { - return and(); - } - - - } - public class PoolNested extends V1alpha3ResourcePoolFluent> implements Nested{ - PoolNested(V1alpha3ResourcePool item) { - this.builder = new V1alpha3ResourcePoolBuilder(this, item); - } - V1alpha3ResourcePoolBuilder builder; - - public N and() { - return (N) V1alpha3ResourceSliceSpecFluent.this.withPool(builder.build()); - } - - public N endPool() { - return and(); - } - - - } - public class SharedCountersNested extends V1alpha3CounterSetFluent> implements Nested{ - SharedCountersNested(int index,V1alpha3CounterSet item) { - this.index = index; - this.builder = new V1alpha3CounterSetBuilder(this, item); - } - V1alpha3CounterSetBuilder builder; - int index; - - public N and() { - return (N) V1alpha3ResourceSliceSpecFluent.this.setToSharedCounters(index,builder.build()); - } - - public N endSharedCounter() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java index 45dbb21b4e..f8d6066f22 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1AllocatedDeviceStatusBuilder extends V1beta1AllocatedDeviceStatusFluent implements VisitableBuilder{ public V1beta1AllocatedDeviceStatusBuilder() { this(new V1beta1AllocatedDeviceStatus()); @@ -29,6 +30,7 @@ public V1beta1AllocatedDeviceStatus build() { buildable.setDriver(fluent.getDriver()); buildable.setNetworkData(fluent.buildNetworkData()); buildable.setPool(fluent.getPool()); + buildable.setShareID(fluent.getShareID()); return buildable; } 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 b9fd37913f..83f1fb0651 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1AllocatedDeviceStatusFluent> extends BaseFluent{ +public class V1beta1AllocatedDeviceStatusFluent> extends BaseFluent{ public V1beta1AllocatedDeviceStatusFluent() { } @@ -29,21 +32,25 @@ public V1beta1AllocatedDeviceStatusFluent(V1beta1AllocatedDeviceStatus instance) private String driver; private V1beta1NetworkDeviceDataBuilder networkData; private String pool; + private String shareID; protected void copyInstance(V1beta1AllocatedDeviceStatus instance) { - instance = (instance != null ? instance : new V1beta1AllocatedDeviceStatus()); + instance = instance != null ? instance : new V1beta1AllocatedDeviceStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - this.withData(instance.getData()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withNetworkData(instance.getNetworkData()); - this.withPool(instance.getPool()); - } + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + this.withShareID(instance.getShareID()); + } } public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -52,11 +59,13 @@ public A addToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -65,41 +74,71 @@ public A setToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A 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 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; + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -151,7 +190,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + public A withConditions(V1Condition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -165,7 +204,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -181,28 +220,39 @@ public ConditionsNested setNewConditionLike(int index,V1Condition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 withNewNetworkDataLike(V1beta1NetworkDeviceData item } public NetworkDataNested editNetworkData() { - return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(null)); + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); } public NetworkDataNested editOrNewNetworkData() { - return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(new V1beta1NetworkDeviceDataBuilder().build())); + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1beta1NetworkDeviceDataBuilder().build())); } public NetworkDataNested editOrNewNetworkDataLike(V1beta1NetworkDeviceData item) { - return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(item)); + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); } public String getPool() { @@ -297,33 +347,95 @@ public boolean hasPool() { return this.pool != null; } + public String getShareID() { + return this.shareID; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public boolean hasShareID() { + return this.shareID != null; + } + public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1AllocatedDeviceStatusFluent that = (V1beta1AllocatedDeviceStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(device, that.device)) return false; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(networkData, that.networkData)) return false; - if (!java.util.Objects.equals(pool, that.pool)) return false; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(networkData, that.networkData))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(conditions, data, device, driver, networkData, pool, super.hashCode()); + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (data != null) { sb.append("data:"); sb.append(data + ","); } - if (device != null) { sb.append("device:"); sb.append(device + ","); } - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (networkData != null) { sb.append("networkData:"); sb.append(networkData + ","); } - if (pool != null) { sb.append("pool:"); sb.append(pool); } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(data == null)) { + sb.append("data:"); + sb.append(data); + 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 (!(networkData == null)) { + sb.append("networkData:"); + sb.append(networkData); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + } sb.append("}"); return sb.toString(); } @@ -336,7 +448,7 @@ public class ConditionsNested extends V1ConditionFluent> int index; public N and() { - return (N) V1beta1AllocatedDeviceStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1beta1AllocatedDeviceStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 5d2123000a..8ef3fdfb40 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1AllocationResultBuilder extends V1beta1AllocationResultFluent implements VisitableBuilder{ public V1beta1AllocationResultBuilder() { this(new V1beta1AllocationResult()); @@ -23,6 +24,7 @@ public V1beta1AllocationResultBuilder(V1beta1AllocationResult instance) { public V1beta1AllocationResult build() { V1beta1AllocationResult buildable = new V1beta1AllocationResult(); + buildable.setAllocationTimestamp(fluent.getAllocationTimestamp()); buildable.setDevices(fluent.buildDevices()); buildable.setNodeSelector(fluent.buildNodeSelector()); return buildable; 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 ef04eb202c..f42125d613 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 @@ -1,31 +1,50 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; +import java.time.OffsetDateTime; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1AllocationResultFluent> extends BaseFluent{ +public class V1beta1AllocationResultFluent> extends BaseFluent{ public V1beta1AllocationResultFluent() { } public V1beta1AllocationResultFluent(V1beta1AllocationResult instance) { this.copyInstance(instance); } + private OffsetDateTime allocationTimestamp; private V1beta1DeviceAllocationResultBuilder devices; private V1NodeSelectorBuilder nodeSelector; protected void copyInstance(V1beta1AllocationResult instance) { - instance = (instance != null ? instance : new V1beta1AllocationResult()); + instance = instance != null ? instance : new V1beta1AllocationResult(); if (instance != null) { - this.withDevices(instance.getDevices()); - this.withNodeSelector(instance.getNodeSelector()); - } + this.withAllocationTimestamp(instance.getAllocationTimestamp()); + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public OffsetDateTime getAllocationTimestamp() { + return this.allocationTimestamp; + } + + public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return (A) this; + } + + public boolean hasAllocationTimestamp() { + return this.allocationTimestamp != null; } public V1beta1DeviceAllocationResult buildDevices() { @@ -57,15 +76,15 @@ public DevicesNested withNewDevicesLike(V1beta1DeviceAllocationResult item) { } public DevicesNested editDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } public DevicesNested editOrNewDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta1DeviceAllocationResultBuilder().build())); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta1DeviceAllocationResultBuilder().build())); } public DevicesNested editOrNewDevicesLike(V1beta1DeviceAllocationResult item) { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); } public V1NodeSelector buildNodeSelector() { @@ -97,36 +116,61 @@ public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { } public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1AllocationResultFluent that = (V1beta1AllocationResultFluent) o; - if (!java.util.Objects.equals(devices, that.devices)) return false; - if (!java.util.Objects.equals(nodeSelector, that.nodeSelector)) return false; + if (!(Objects.equals(allocationTimestamp, that.allocationTimestamp))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(devices, nodeSelector, super.hashCode()); + return Objects.hash(allocationTimestamp, devices, nodeSelector); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devices != null) { sb.append("devices:"); sb.append(devices + ","); } - if (nodeSelector != null) { sb.append("nodeSelector:"); sb.append(nodeSelector); } + if (!(allocationTimestamp == null)) { + sb.append("allocationTimestamp:"); + sb.append(allocationTimestamp); + sb.append(","); + } + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..777be33f91 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ApplyConfigurationBuilder extends V1beta1ApplyConfigurationFluent implements VisitableBuilder{ + public V1beta1ApplyConfigurationBuilder() { + this(new V1beta1ApplyConfiguration()); + } + + public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfigurationFluent fluent) { + this(fluent, new V1beta1ApplyConfiguration()); + } + + public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfigurationFluent fluent,V1beta1ApplyConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1ApplyConfigurationFluent fluent; + + public V1beta1ApplyConfiguration build() { + V1beta1ApplyConfiguration buildable = new V1beta1ApplyConfiguration(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..23d48b786b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java @@ -0,0 +1,76 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ApplyConfigurationFluent> extends BaseFluent{ + public V1beta1ApplyConfigurationFluent() { + } + + public V1beta1ApplyConfigurationFluent(V1beta1ApplyConfiguration instance) { + this.copyInstance(instance); + } + private String expression; + + protected void copyInstance(V1beta1ApplyConfiguration instance) { + instance = instance != null ? instance : new V1beta1ApplyConfiguration(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ApplyConfigurationFluent that = (V1beta1ApplyConfigurationFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationBuilder.java deleted file mode 100644 index 163138b010..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1AuditAnnotationBuilder extends V1beta1AuditAnnotationFluent implements VisitableBuilder{ - public V1beta1AuditAnnotationBuilder() { - this(new V1beta1AuditAnnotation()); - } - - public V1beta1AuditAnnotationBuilder(V1beta1AuditAnnotationFluent fluent) { - this(fluent, new V1beta1AuditAnnotation()); - } - - public V1beta1AuditAnnotationBuilder(V1beta1AuditAnnotationFluent fluent,V1beta1AuditAnnotation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1AuditAnnotationBuilder(V1beta1AuditAnnotation instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1AuditAnnotationFluent fluent; - - public V1beta1AuditAnnotation build() { - V1beta1AuditAnnotation buildable = new V1beta1AuditAnnotation(); - buildable.setKey(fluent.getKey()); - buildable.setValueExpression(fluent.getValueExpression()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationFluent.java deleted file mode 100644 index 9753edff26..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1AuditAnnotationFluent> extends BaseFluent{ - public V1beta1AuditAnnotationFluent() { - } - - public V1beta1AuditAnnotationFluent(V1beta1AuditAnnotation instance) { - this.copyInstance(instance); - } - private String key; - private String valueExpression; - - protected void copyInstance(V1beta1AuditAnnotation instance) { - instance = (instance != null ? instance : new V1beta1AuditAnnotation()); - if (instance != null) { - this.withKey(instance.getKey()); - this.withValueExpression(instance.getValueExpression()); - } - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getValueExpression() { - return this.valueExpression; - } - - public A withValueExpression(String valueExpression) { - this.valueExpression = valueExpression; - return (A) this; - } - - public boolean hasValueExpression() { - return this.valueExpression != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1AuditAnnotationFluent that = (V1beta1AuditAnnotationFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(valueExpression, that.valueExpression)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(key, valueExpression, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (valueExpression != null) { sb.append("valueExpression:"); sb.append(valueExpression); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file 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 00997a4d0b..595116ad0a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1BasicDeviceBuilder extends V1beta1BasicDeviceFluent implements VisitableBuilder{ public V1beta1BasicDeviceBuilder() { this(new V1beta1BasicDevice()); @@ -24,7 +25,11 @@ public V1beta1BasicDeviceBuilder(V1beta1BasicDevice instance) { public V1beta1BasicDevice build() { V1beta1BasicDevice buildable = new V1beta1BasicDevice(); buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAllowMultipleAllocations(fluent.getAllowMultipleAllocations()); buildable.setAttributes(fluent.getAttributes()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setBindsToNode(fluent.getBindsToNode()); buildable.setCapacity(fluent.getCapacity()); buildable.setConsumesCounters(fluent.buildConsumesCounters()); buildable.setNodeName(fluent.getNodeName()); 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 8a25f698e7..0bb4392b21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; @@ -19,7 +22,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1BasicDeviceFluent> extends BaseFluent{ +public class V1beta1BasicDeviceFluent> extends BaseFluent{ public V1beta1BasicDeviceFluent() { } @@ -27,7 +30,11 @@ public V1beta1BasicDeviceFluent(V1beta1BasicDevice instance) { this.copyInstance(instance); } private Boolean allNodes; + private Boolean allowMultipleAllocations; private Map attributes; + private List bindingConditions; + private List bindingFailureConditions; + private Boolean bindsToNode; private Map capacity; private ArrayList consumesCounters; private String nodeName; @@ -35,16 +42,20 @@ public V1beta1BasicDeviceFluent(V1beta1BasicDevice instance) { private ArrayList taints; protected void copyInstance(V1beta1BasicDevice instance) { - instance = (instance != null ? instance : new V1beta1BasicDevice()); + instance = instance != null ? instance : new V1beta1BasicDevice(); if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withAttributes(instance.getAttributes()); - this.withCapacity(instance.getCapacity()); - this.withConsumesCounters(instance.getConsumesCounters()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withTaints(instance.getTaints()); - } + this.withAllNodes(instance.getAllNodes()); + this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); + this.withAttributes(instance.getAttributes()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withBindsToNode(instance.getBindsToNode()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); + } } public Boolean getAllNodes() { @@ -60,24 +71,61 @@ public boolean hasAllNodes() { return this.allNodes != null; } + public Boolean getAllowMultipleAllocations() { + return this.allowMultipleAllocations; + } + + public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return (A) this; + } + + public boolean hasAllowMultipleAllocations() { + return this.allowMultipleAllocations != null; + } + public A addToAttributes(String key,V1beta1DeviceAttribute value) { - if(this.attributes == null && key != null && value != null) { this.attributes = new LinkedHashMap(); } - if(key != null && value != null) {this.attributes.put(key, value);} return (A)this; + if (this.attributes == null && key != null && value != null) { + this.attributes = new LinkedHashMap(); + } + if (key != null && value != null) { + this.attributes.put(key, value); + } + return (A) this; } public A addToAttributes(Map map) { - if(this.attributes == null && map != null) { this.attributes = new LinkedHashMap(); } - if(map != null) { this.attributes.putAll(map);} return (A)this; + if (this.attributes == null && map != null) { + this.attributes = new LinkedHashMap(); + } + if (map != null) { + this.attributes.putAll(map); + } + return (A) this; } public A removeFromAttributes(String key) { - if(this.attributes == null) { return (A) this; } - if(key != null && this.attributes != null) {this.attributes.remove(key);} return (A)this; + if (this.attributes == null) { + return (A) this; + } + if (key != null && this.attributes != null) { + this.attributes.remove(key); + } + return (A) this; } public A removeFromAttributes(Map map) { - if(this.attributes == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.attributes != null){this.attributes.remove(key);}}} return (A)this; + if (this.attributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attributes != null) { + this.attributes.remove(key); + } + } + } + return (A) this; } public Map getAttributes() { @@ -97,24 +145,299 @@ public boolean hasAttributes() { return this.attributes != null; } + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public Boolean getBindsToNode() { + return this.bindsToNode; + } + + public A withBindsToNode(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return (A) this; + } + + public boolean hasBindsToNode() { + return this.bindsToNode != null; + } + public A addToCapacity(String key,V1beta1DeviceCapacity value) { - if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } - if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.capacity.put(key, value); + } + return (A) this; } public A addToCapacity(Map map) { - if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } - if(map != null) { this.capacity.putAll(map);} return (A)this; + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); + } + return (A) this; } public A removeFromCapacity(String key) { - if(this.capacity == null) { return (A) this; } - if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (key != null && this.capacity != null) { + this.capacity.remove(key); + } + return (A) this; } public A removeFromCapacity(Map map) { - if(this.capacity == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } + } + } + return (A) this; } public Map getCapacity() { @@ -135,7 +458,9 @@ public boolean hasCapacity() { } public A addToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= consumesCounters.size()) { _visitables.get("consumesCounters").add(builder); @@ -144,11 +469,13 @@ public A addToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { _visitables.get("consumesCounters").add(builder); consumesCounters.add(index, builder); } - return (A)this; + return (A) this; } public A setToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= consumesCounters.size()) { _visitables.get("consumesCounters").add(builder); @@ -157,41 +484,71 @@ public A setToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { _visitables.get("consumesCounters").add(builder); consumesCounters.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption... items) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} - for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + public A addToConsumesCounters(V1beta1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1beta1DeviceCounterConsumption item : items) { + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } + return (A) this; } public A addAllToConsumesCounters(Collection items) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} - for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1beta1DeviceCounterConsumption item : items) { + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } + return (A) this; } - public A removeFromConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption... items) { - if (this.consumesCounters == null) return (A)this; - for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + public A removeFromConsumesCounters(V1beta1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + return (A) this; + } + for (V1beta1DeviceCounterConsumption item : items) { + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); + } + return (A) this; } public A removeAllFromConsumesCounters(Collection items) { - if (this.consumesCounters == null) return (A)this; - for (V1beta1DeviceCounterConsumption item : items) {V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + if (this.consumesCounters == null) { + return (A) this; + } + for (V1beta1DeviceCounterConsumption item : items) { + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); + } + return (A) this; } public A removeMatchingFromConsumesCounters(Predicate predicate) { - if (consumesCounters == null) return (A) this; - final Iterator each = consumesCounters.iterator(); - final List visitables = _visitables.get("consumesCounters"); + if (consumesCounters == null) { + return (A) this; + } + Iterator each = consumesCounters.iterator(); + List visitables = _visitables.get("consumesCounters"); while (each.hasNext()) { - V1beta1DeviceCounterConsumptionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConsumesCounters() { @@ -243,7 +600,7 @@ public A withConsumesCounters(List consumesCoun return (A) this; } - public A withConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption... consumesCounters) { + public A withConsumesCounters(V1beta1DeviceCounterConsumption... consumesCounters) { if (this.consumesCounters != null) { this.consumesCounters.clear(); _visitables.remove("consumesCounters"); @@ -257,7 +614,7 @@ public A withConsumesCounters(io.kubernetes.client.openapi.models.V1beta1DeviceC } public boolean hasConsumesCounters() { - return this.consumesCounters != null && !this.consumesCounters.isEmpty(); + return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); } public ConsumesCountersNested addNewConsumesCounter() { @@ -273,28 +630,39 @@ public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta1Devi } public ConsumesCountersNested editConsumesCounter(int index) { - if (consumesCounters.size() <= index) throw new RuntimeException("Can't edit consumesCounters. Index exceeds size."); - return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + if (index <= consumesCounters.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } public ConsumesCountersNested editFirstConsumesCounter() { - if (consumesCounters.size() == 0) throw new RuntimeException("Can't edit first consumesCounters. The list is empty."); - return setNewConsumesCounterLike(0, buildConsumesCounter(0)); + if (consumesCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); } public ConsumesCountersNested editLastConsumesCounter() { int index = consumesCounters.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last consumesCounters. The list is empty."); - return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { int index = -1; - for (int i=0;i withNewNodeSelectorLike(V1NodeSelector item) { } public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } public A addToTaints(int index,V1beta1DeviceTaint item) { - if (this.taints == null) {this.taints = new ArrayList();} + if (this.taints == null) { + this.taints = new ArrayList(); + } V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); @@ -360,11 +730,13 @@ public A addToTaints(int index,V1beta1DeviceTaint item) { _visitables.get("taints").add(builder); taints.add(index, builder); } - return (A)this; + return (A) this; } public A setToTaints(int index,V1beta1DeviceTaint item) { - if (this.taints == null) {this.taints = new ArrayList();} + if (this.taints == null) { + this.taints = new ArrayList(); + } V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); @@ -373,41 +745,71 @@ public A setToTaints(int index,V1beta1DeviceTaint item) { _visitables.get("taints").add(builder); taints.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + public A addToTaints(V1beta1DeviceTaint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1beta1DeviceTaint item : items) { + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } public A addAllToTaints(Collection items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1beta1DeviceTaint item : items) { + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } - public A removeFromTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... items) { - if (this.taints == null) return (A)this; - for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + public A removeFromTaints(V1beta1DeviceTaint... items) { + if (this.taints == null) { + return (A) this; + } + for (V1beta1DeviceTaint item : items) { + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } public A removeAllFromTaints(Collection items) { - if (this.taints == null) return (A)this; - for (V1beta1DeviceTaint item : items) {V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + if (this.taints == null) { + return (A) this; + } + for (V1beta1DeviceTaint item : items) { + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } public A removeMatchingFromTaints(Predicate predicate) { - if (taints == null) return (A) this; - final Iterator each = taints.iterator(); - final List visitables = _visitables.get("taints"); + if (taints == null) { + return (A) this; + } + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); while (each.hasNext()) { - V1beta1DeviceTaintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTaints() { @@ -459,7 +861,7 @@ public A withTaints(List taints) { return (A) this; } - public A withTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... taints) { + public A withTaints(V1beta1DeviceTaint... taints) { if (this.taints != null) { this.taints.clear(); _visitables.remove("taints"); @@ -473,7 +875,7 @@ public A withTaints(io.kubernetes.client.openapi.models.V1beta1DeviceTaint... ta } public boolean hasTaints() { - return this.taints != null && !this.taints.isEmpty(); + return this.taints != null && !(this.taints.isEmpty()); } public TaintsNested addNewTaint() { @@ -489,59 +891,149 @@ public TaintsNested setNewTaintLike(int index,V1beta1DeviceTaint item) { } public TaintsNested editTaint(int index) { - if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); - return setNewTaintLike(index, buildTaint(index)); + if (index <= taints.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } public TaintsNested editFirstTaint() { - if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); - return setNewTaintLike(0, buildTaint(0)); + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(0, this.buildTaint(0)); } public TaintsNested editLastTaint() { int index = taints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); - return setNewTaintLike(index, buildTaint(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } public TaintsNested editMatchingTaint(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1DeviceCounterConsumptionFluent> implements Nested{ ConsumesCountersNested(int index,V1beta1DeviceCounterConsumption item) { this.index = index; @@ -558,7 +1058,7 @@ public class ConsumesCountersNested extends V1beta1DeviceCounterConsumptionFl int index; public N and() { - return (N) V1beta1BasicDeviceFluent.this.setToConsumesCounters(index,builder.build()); + return (N) V1beta1BasicDeviceFluent.this.setToConsumesCounters(index, builder.build()); } public N endConsumesCounter() { @@ -592,7 +1092,7 @@ public class TaintsNested extends V1beta1DeviceTaintFluent> i int index; public N and() { - return (N) V1beta1BasicDeviceFluent.this.setToTaints(index,builder.build()); + return (N) V1beta1BasicDeviceFluent.this.setToTaints(index, builder.build()); } public N endTaint() { 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 0f617c98d1..285f2a242d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1CELDeviceSelectorBuilder extends V1beta1CELDeviceSelectorFluent implements VisitableBuilder{ public V1beta1CELDeviceSelectorBuilder() { this(new V1beta1CELDeviceSelector()); 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 11eb4d1534..ee581416f5 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1CELDeviceSelectorFluent> extends BaseFluent{ +public class V1beta1CELDeviceSelectorFluent> extends BaseFluent{ public V1beta1CELDeviceSelectorFluent() { } @@ -19,10 +21,10 @@ public V1beta1CELDeviceSelectorFluent(V1beta1CELDeviceSelector instance) { private String expression; protected void copyInstance(V1beta1CELDeviceSelector instance) { - instance = (instance != null ? instance : new V1beta1CELDeviceSelector()); + instance = instance != null ? instance : new V1beta1CELDeviceSelector(); if (instance != null) { - this.withExpression(instance.getExpression()); - } + this.withExpression(instance.getExpression()); + } } public String getExpression() { @@ -39,22 +41,33 @@ public boolean hasExpression() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1CELDeviceSelectorFluent that = (V1beta1CELDeviceSelectorFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, super.hashCode()); + return Objects.hash(expression); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..9f5dabd182 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1CapacityRequestPolicyBuilder extends V1beta1CapacityRequestPolicyFluent implements VisitableBuilder{ + public V1beta1CapacityRequestPolicyBuilder() { + this(new V1beta1CapacityRequestPolicy()); + } + + public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicyFluent fluent) { + this(fluent, new V1beta1CapacityRequestPolicy()); + } + + public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicyFluent fluent,V1beta1CapacityRequestPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1CapacityRequestPolicyFluent fluent; + + public V1beta1CapacityRequestPolicy build() { + V1beta1CapacityRequestPolicy buildable = new V1beta1CapacityRequestPolicy(); + buildable.setDefault(fluent.getDefault()); + buildable.setValidRange(fluent.buildValidRange()); + buildable.setValidValues(fluent.getValidValues()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..b1068beb59 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java @@ -0,0 +1,285 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CapacityRequestPolicyFluent> extends BaseFluent{ + public V1beta1CapacityRequestPolicyFluent() { + } + + public V1beta1CapacityRequestPolicyFluent(V1beta1CapacityRequestPolicy instance) { + this.copyInstance(instance); + } + private Quantity _default; + private V1beta1CapacityRequestPolicyRangeBuilder validRange; + private List validValues; + + protected void copyInstance(V1beta1CapacityRequestPolicy instance) { + instance = instance != null ? instance : new V1beta1CapacityRequestPolicy(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withValidRange(instance.getValidRange()); + this.withValidValues(instance.getValidValues()); + } + } + + public Quantity getDefault() { + return this._default; + } + + public A withDefault(Quantity _default) { + this._default = _default; + return (A) this; + } + + public boolean hasDefault() { + return this._default != null; + } + + public A withNewDefault(String value) { + return (A) this.withDefault(new Quantity(value)); + } + + public V1beta1CapacityRequestPolicyRange buildValidRange() { + return this.validRange != null ? this.validRange.build() : null; + } + + public A withValidRange(V1beta1CapacityRequestPolicyRange validRange) { + this._visitables.remove("validRange"); + if (validRange != null) { + this.validRange = new V1beta1CapacityRequestPolicyRangeBuilder(validRange); + this._visitables.get("validRange").add(this.validRange); + } else { + this.validRange = null; + this._visitables.get("validRange").remove(this.validRange); + } + return (A) this; + } + + public boolean hasValidRange() { + return this.validRange != null; + } + + public ValidRangeNested withNewValidRange() { + return new ValidRangeNested(null); + } + + public ValidRangeNested withNewValidRangeLike(V1beta1CapacityRequestPolicyRange item) { + return new ValidRangeNested(item); + } + + public ValidRangeNested editValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); + } + + public ValidRangeNested editOrNewValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(new V1beta1CapacityRequestPolicyRangeBuilder().build())); + } + + public ValidRangeNested editOrNewValidRangeLike(V1beta1CapacityRequestPolicyRange item) { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(item)); + } + + public A addToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.add(index, item); + return (A) this; + } + + public A setToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.set(index, item); + return (A) this; + } + + public A addToValidValues(Quantity... items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A addAllToValidValues(Collection items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A removeFromValidValues(Quantity... items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public A removeAllFromValidValues(Collection items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public List getValidValues() { + return this.validValues; + } + + public Quantity getValidValue(int index) { + return this.validValues.get(index); + } + + public Quantity getFirstValidValue() { + return this.validValues.get(0); + } + + public Quantity getLastValidValue() { + return this.validValues.get(validValues.size() - 1); + } + + public Quantity getMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withValidValues(List validValues) { + if (validValues != null) { + this.validValues = new ArrayList(); + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } else { + this.validValues = null; + } + return (A) this; + } + + public A withValidValues(Quantity... validValues) { + if (this.validValues != null) { + this.validValues.clear(); + _visitables.remove("validValues"); + } + if (validValues != null) { + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } + return (A) this; + } + + public boolean hasValidValues() { + return this.validValues != null && !(this.validValues.isEmpty()); + } + + public A addNewValidValue(String value) { + return (A) this.addToValidValues(new Quantity(value)); + } + + 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; + } + V1beta1CapacityRequestPolicyFluent that = (V1beta1CapacityRequestPolicyFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(validRange, that.validRange))) { + return false; + } + if (!(Objects.equals(validValues, that.validValues))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(_default, validRange, validValues); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(_default == null)) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(validRange == null)) { + sb.append("validRange:"); + sb.append(validRange); + sb.append(","); + } + if (!(validValues == null) && !(validValues.isEmpty())) { + sb.append("validValues:"); + sb.append(validValues); + } + sb.append("}"); + return sb.toString(); + } + public class ValidRangeNested extends V1beta1CapacityRequestPolicyRangeFluent> implements Nested{ + ValidRangeNested(V1beta1CapacityRequestPolicyRange item) { + this.builder = new V1beta1CapacityRequestPolicyRangeBuilder(this, item); + } + V1beta1CapacityRequestPolicyRangeBuilder builder; + + public N and() { + return (N) V1beta1CapacityRequestPolicyFluent.this.withValidRange(builder.build()); + } + + public N endValidRange() { + return and(); + } + + + } + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..8ea681b2c8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1CapacityRequestPolicyRangeBuilder extends V1beta1CapacityRequestPolicyRangeFluent implements VisitableBuilder{ + public V1beta1CapacityRequestPolicyRangeBuilder() { + this(new V1beta1CapacityRequestPolicyRange()); + } + + public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRangeFluent fluent) { + this(fluent, new V1beta1CapacityRequestPolicyRange()); + } + + public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRangeFluent fluent,V1beta1CapacityRequestPolicyRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRange instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1CapacityRequestPolicyRangeFluent fluent; + + public V1beta1CapacityRequestPolicyRange build() { + V1beta1CapacityRequestPolicyRange buildable = new V1beta1CapacityRequestPolicyRange(); + buildable.setMax(fluent.getMax()); + buildable.setMin(fluent.getMin()); + buildable.setStep(fluent.getStep()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..4969de604a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java @@ -0,0 +1,135 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CapacityRequestPolicyRangeFluent> extends BaseFluent{ + public V1beta1CapacityRequestPolicyRangeFluent() { + } + + public V1beta1CapacityRequestPolicyRangeFluent(V1beta1CapacityRequestPolicyRange instance) { + this.copyInstance(instance); + } + private Quantity max; + private Quantity min; + private Quantity step; + + protected void copyInstance(V1beta1CapacityRequestPolicyRange instance) { + instance = instance != null ? instance : new V1beta1CapacityRequestPolicyRange(); + if (instance != null) { + this.withMax(instance.getMax()); + this.withMin(instance.getMin()); + this.withStep(instance.getStep()); + } + } + + public Quantity getMax() { + return this.max; + } + + public A withMax(Quantity max) { + this.max = max; + return (A) this; + } + + public boolean hasMax() { + return this.max != null; + } + + public A withNewMax(String value) { + return (A) this.withMax(new Quantity(value)); + } + + public Quantity getMin() { + return this.min; + } + + public A withMin(Quantity min) { + this.min = min; + return (A) this; + } + + public boolean hasMin() { + return this.min != null; + } + + public A withNewMin(String value) { + return (A) this.withMin(new Quantity(value)); + } + + public Quantity getStep() { + return this.step; + } + + public A withStep(Quantity step) { + this.step = step; + return (A) this; + } + + public boolean hasStep() { + return this.step != null; + } + + public A withNewStep(String value) { + return (A) this.withStep(new Quantity(value)); + } + + 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; + } + V1beta1CapacityRequestPolicyRangeFluent that = (V1beta1CapacityRequestPolicyRangeFluent) o; + if (!(Objects.equals(max, that.max))) { + return false; + } + if (!(Objects.equals(min, that.min))) { + return false; + } + if (!(Objects.equals(step, that.step))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(max, min, step); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(max == null)) { + sb.append("max:"); + sb.append(max); + sb.append(","); + } + if (!(min == null)) { + sb.append("min:"); + sb.append(min); + sb.append(","); + } + if (!(step == null)) { + sb.append("step:"); + sb.append(step); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..b3fa53aee0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1CapacityRequirementsBuilder extends V1beta1CapacityRequirementsFluent implements VisitableBuilder{ + public V1beta1CapacityRequirementsBuilder() { + this(new V1beta1CapacityRequirements()); + } + + public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirementsFluent fluent) { + this(fluent, new V1beta1CapacityRequirements()); + } + + public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirementsFluent fluent,V1beta1CapacityRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirements instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1CapacityRequirementsFluent fluent; + + public V1beta1CapacityRequirements build() { + V1beta1CapacityRequirements buildable = new V1beta1CapacityRequirements(); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..4c645d204e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java @@ -0,0 +1,127 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CapacityRequirementsFluent> extends BaseFluent{ + public V1beta1CapacityRequirementsFluent() { + } + + public V1beta1CapacityRequirementsFluent(V1beta1CapacityRequirements instance) { + this.copyInstance(instance); + } + private Map requests; + + protected void copyInstance(V1beta1CapacityRequirements instance) { + instance = instance != null ? instance : new V1beta1CapacityRequirements(); + if (instance != null) { + this.withRequests(instance.getRequests()); + } + } + + public A addToRequests(String key,Quantity value) { + if (this.requests == null && key != null && value != null) { + this.requests = new LinkedHashMap(); + } + if (key != null && value != null) { + this.requests.put(key, value); + } + return (A) this; + } + + public A addToRequests(Map map) { + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); + } + if (map != null) { + this.requests.putAll(map); + } + return (A) this; + } + + public A removeFromRequests(String key) { + if (this.requests == null) { + return (A) this; + } + if (key != null && this.requests != null) { + this.requests.remove(key); + } + return (A) this; + } + + public A removeFromRequests(Map map) { + if (this.requests == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.requests != null) { + this.requests.remove(key); + } + } + } + return (A) this; + } + + public Map getRequests() { + return this.requests; + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != 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; + } + V1beta1CapacityRequirementsFluent that = (V1beta1CapacityRequirementsFluent) o; + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(requests); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java index 2113a6cbca..91fa411a74 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ClusterTrustBundleBuilder extends V1beta1ClusterTrustBundleFluent implements VisitableBuilder{ public V1beta1ClusterTrustBundleBuilder() { this(new V1beta1ClusterTrustBundle()); 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 7d95d8d06f..adbaa4444e 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ClusterTrustBundleFluent> extends BaseFluent{ +public class V1beta1ClusterTrustBundleFluent> extends BaseFluent{ public V1beta1ClusterTrustBundleFluent() { } @@ -23,13 +26,13 @@ public V1beta1ClusterTrustBundleFluent(V1beta1ClusterTrustBundle instance) { private V1beta1ClusterTrustBundleSpecBuilder spec; protected void copyInstance(V1beta1ClusterTrustBundle instance) { - instance = (instance != null ? instance : new V1beta1ClusterTrustBundle()); + instance = instance != null ? instance : new V1beta1ClusterTrustBundle(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta1ClusterTrustBundleSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1beta1ClusterTrustBundleSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ClusterTrustBundleSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ClusterTrustBundleSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta1ClusterTrustBundleSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ClusterTrustBundleFluent that = (V1beta1ClusterTrustBundleFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 25e2ea5149..58b67b4d35 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ClusterTrustBundleListBuilder extends V1beta1ClusterTrustBundleListFluent implements VisitableBuilder{ public V1beta1ClusterTrustBundleListBuilder() { this(new V1beta1ClusterTrustBundleList()); 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 719c4c77a5..9f93f86b5d 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ClusterTrustBundleListFluent> extends BaseFluent{ +public class V1beta1ClusterTrustBundleListFluent> extends BaseFluent{ public V1beta1ClusterTrustBundleListFluent() { } @@ -29,13 +32,13 @@ public V1beta1ClusterTrustBundleListFluent(V1beta1ClusterTrustBundleList instanc private V1ListMetaBuilder metadata; protected void copyInstance(V1beta1ClusterTrustBundleList instance) { - instance = (instance != null ? instance : new V1beta1ClusterTrustBundleList()); + instance = instance != null ? instance : new V1beta1ClusterTrustBundleList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta1ClusterTrustBundle item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta1ClusterTrustBundle item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta1ClusterTrustBundle item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta1ClusterTrustBundle item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta1ClusterTrustBundle... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ClusterTrustBundle item : items) { + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ClusterTrustBundle item : items) { + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle... items) { - if (this.items == null) return (A)this; - for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta1ClusterTrustBundle... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ClusterTrustBundle item : items) { + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1ClusterTrustBundle item : items) {V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta1ClusterTrustBundle item : items) { + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta1ClusterTrustBundleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1ClusterTrustBundleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle... items) { + public A withItems(V1beta1ClusterTrustBundle... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta1ClusterTrustBundle item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ClusterTrustBundleListFluent that = (V1beta1ClusterTrustBundleListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta1ClusterTrustBundleFluent implements VisitableBuilder{ public V1beta1ClusterTrustBundleSpecBuilder() { this(new V1beta1ClusterTrustBundleSpec()); 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 77a1e99e7b..e7c8a9b42d 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ClusterTrustBundleSpecFluent> extends BaseFluent{ +public class V1beta1ClusterTrustBundleSpecFluent> extends BaseFluent{ public V1beta1ClusterTrustBundleSpecFluent() { } @@ -20,11 +22,11 @@ public V1beta1ClusterTrustBundleSpecFluent(V1beta1ClusterTrustBundleSpec instanc private String trustBundle; protected void copyInstance(V1beta1ClusterTrustBundleSpec instance) { - instance = (instance != null ? instance : new V1beta1ClusterTrustBundleSpec()); + instance = instance != null ? instance : new V1beta1ClusterTrustBundleSpec(); if (instance != null) { - this.withSignerName(instance.getSignerName()); - this.withTrustBundle(instance.getTrustBundle()); - } + this.withSignerName(instance.getSignerName()); + this.withTrustBundle(instance.getTrustBundle()); + } } public String getSignerName() { @@ -54,24 +56,41 @@ public boolean hasTrustBundle() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ClusterTrustBundleSpecFluent that = (V1beta1ClusterTrustBundleSpecFluent) o; - if (!java.util.Objects.equals(signerName, that.signerName)) return false; - if (!java.util.Objects.equals(trustBundle, that.trustBundle)) return false; + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(trustBundle, that.trustBundle))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(signerName, trustBundle, super.hashCode()); + return Objects.hash(signerName, trustBundle); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (signerName != null) { sb.append("signerName:"); sb.append(signerName + ","); } - if (trustBundle != null) { sb.append("trustBundle:"); sb.append(trustBundle); } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + sb.append(","); + } + if (!(trustBundle == null)) { + sb.append("trustBundle:"); + sb.append(trustBundle); + } sb.append("}"); return sb.toString(); } 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 a4333cf6b6..833262636e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1CounterBuilder extends V1beta1CounterFluent implements VisitableBuilder{ public V1beta1CounterBuilder() { this(new V1beta1Counter()); 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 39f29cb75a..61cdb3371f 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1CounterFluent> extends BaseFluent{ +public class V1beta1CounterFluent> extends BaseFluent{ public V1beta1CounterFluent() { } @@ -20,10 +22,10 @@ public V1beta1CounterFluent(V1beta1Counter instance) { private Quantity value; protected void copyInstance(V1beta1Counter instance) { - instance = (instance != null ? instance : new V1beta1Counter()); + instance = instance != null ? instance : new V1beta1Counter(); if (instance != null) { - this.withValue(instance.getValue()); - } + this.withValue(instance.getValue()); + } } public Quantity getValue() { @@ -40,26 +42,37 @@ public boolean hasValue() { } public A withNewValue(String value) { - return (A)withValue(new Quantity(value)); + return (A) this.withValue(new Quantity(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1CounterFluent that = (V1beta1CounterFluent) o; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(value, super.hashCode()); + return Objects.hash(value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 30c93bae4e..0999e7f278 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1CounterSetBuilder extends V1beta1CounterSetFluent implements VisitableBuilder{ public V1beta1CounterSetBuilder() { this(new V1beta1CounterSet()); 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 33f4147a51..dc45221969 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1CounterSetFluent> extends BaseFluent{ +public class V1beta1CounterSetFluent> extends BaseFluent{ public V1beta1CounterSetFluent() { } @@ -22,31 +24,55 @@ public V1beta1CounterSetFluent(V1beta1CounterSet instance) { private String name; protected void copyInstance(V1beta1CounterSet instance) { - instance = (instance != null ? instance : new V1beta1CounterSet()); + instance = instance != null ? instance : new V1beta1CounterSet(); if (instance != null) { - this.withCounters(instance.getCounters()); - this.withName(instance.getName()); - } + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } } public A addToCounters(String key,V1beta1Counter value) { - if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } - if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.counters.put(key, value); + } + return (A) this; } public A addToCounters(Map map) { - if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } - if(map != null) { this.counters.putAll(map);} return (A)this; + if (this.counters == null && map != null) { + this.counters = new LinkedHashMap(); + } + if (map != null) { + this.counters.putAll(map); + } + return (A) this; } public A removeFromCounters(String key) { - if(this.counters == null) { return (A) this; } - if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + if (this.counters == null) { + return (A) this; + } + if (key != null && this.counters != null) { + this.counters.remove(key); + } + return (A) this; } public A removeFromCounters(Map map) { - if(this.counters == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + if (this.counters == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.counters != null) { + this.counters.remove(key); + } + } + } + return (A) this; } public Map getCounters() { @@ -80,24 +106,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1CounterSetFluent that = (V1beta1CounterSetFluent) o; - if (!java.util.Objects.equals(counters, that.counters)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(counters, that.counters))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(counters, name, super.hashCode()); + return Objects.hash(counters, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 5e7a4ebf65..06b1535485 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceAllocationConfigurationBuilder extends V1beta1DeviceAllocationConfigurationFluent implements VisitableBuilder{ public V1beta1DeviceAllocationConfigurationBuilder() { this(new V1beta1DeviceAllocationConfiguration()); 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 4ce0ef0315..9e6991bffe 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceAllocationConfigurationFluent> extends BaseFluent{ +public class V1beta1DeviceAllocationConfigurationFluent> extends BaseFluent{ public V1beta1DeviceAllocationConfigurationFluent() { } @@ -26,12 +29,12 @@ public V1beta1DeviceAllocationConfigurationFluent(V1beta1DeviceAllocationConfigu private String source; protected void copyInstance(V1beta1DeviceAllocationConfiguration instance) { - instance = (instance != null ? instance : new V1beta1DeviceAllocationConfiguration()); + instance = instance != null ? instance : new V1beta1DeviceAllocationConfiguration(); if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - this.withSource(instance.getSource()); - } + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } } public V1beta1OpaqueDeviceConfiguration buildOpaque() { @@ -63,46 +66,71 @@ public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) } public OpaqueNested editOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } public OpaqueNested editOrNewOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); } public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); } public A addToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} + if (this.requests == null) { + this.requests = new ArrayList(); + } this.requests.add(index, item); - return (A)this; + return (A) this; } public A setToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.set(index, item); return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } - public A addToRequests(java.lang.String... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } - public A removeFromRequests(java.lang.String... items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public List getRequests() { @@ -151,7 +179,7 @@ public A withRequests(List requests) { return (A) this; } - public A withRequests(java.lang.String... requests) { + public A withRequests(String... requests) { if (this.requests != null) { this.requests.clear(); _visitables.remove("requests"); @@ -165,7 +193,7 @@ public A withRequests(java.lang.String... requests) { } public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); + return this.requests != null && !(this.requests.isEmpty()); } public String getSource() { @@ -182,26 +210,49 @@ public boolean hasSource() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceAllocationConfigurationFluent that = (V1beta1DeviceAllocationConfigurationFluent) o; - if (!java.util.Objects.equals(opaque, that.opaque)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; - if (!java.util.Objects.equals(source, that.source)) return false; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(opaque, requests, source, super.hashCode()); + return Objects.hash(opaque, requests, source); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests + ","); } - if (source != null) { sb.append("source:"); sb.append(source); } + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + } sb.append("}"); return sb.toString(); } 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 11c0d3b31c..b07790fde5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceAllocationResultBuilder extends V1beta1DeviceAllocationResultFluent implements VisitableBuilder{ public V1beta1DeviceAllocationResultBuilder() { this(new V1beta1DeviceAllocationResult()); 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 c5d6696e17..dafcd65e95 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceAllocationResultFluent> extends BaseFluent{ +public class V1beta1DeviceAllocationResultFluent> extends BaseFluent{ public V1beta1DeviceAllocationResultFluent() { } @@ -27,15 +29,17 @@ public V1beta1DeviceAllocationResultFluent(V1beta1DeviceAllocationResult instanc private ArrayList results; protected void copyInstance(V1beta1DeviceAllocationResult instance) { - instance = (instance != null ? instance : new V1beta1DeviceAllocationResult()); + instance = instance != null ? instance : new V1beta1DeviceAllocationResult(); if (instance != null) { - this.withConfig(instance.getConfig()); - this.withResults(instance.getResults()); - } + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } } public A addToConfig(int index,V1beta1DeviceAllocationConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -44,11 +48,13 @@ public A addToConfig(int index,V1beta1DeviceAllocationConfiguration item) { _visitables.get("config").add(builder); config.add(index, builder); } - return (A)this; + return (A) this; } public A setToConfig(int index,V1beta1DeviceAllocationConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -57,41 +63,71 @@ public A setToConfig(int index,V1beta1DeviceAllocationConfiguration item) { _visitables.get("config").add(builder); config.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConfig(io.kubernetes.client.openapi.models.V1beta1DeviceAllocationConfiguration... items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta1DeviceAllocationConfiguration item : items) {V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + public A addToConfig(V1beta1DeviceAllocationConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta1DeviceAllocationConfiguration item : items) { + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } public A addAllToConfig(Collection items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta1DeviceAllocationConfiguration item : items) {V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta1DeviceAllocationConfiguration item : items) { + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } - public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta1DeviceAllocationConfiguration... items) { - if (this.config == null) return (A)this; - for (V1beta1DeviceAllocationConfiguration item : items) {V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + public A removeFromConfig(V1beta1DeviceAllocationConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta1DeviceAllocationConfiguration item : items) { + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeAllFromConfig(Collection items) { - if (this.config == null) return (A)this; - for (V1beta1DeviceAllocationConfiguration item : items) {V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + if (this.config == null) { + return (A) this; + } + for (V1beta1DeviceAllocationConfiguration item : items) { + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) return (A) this; - final Iterator each = config.iterator(); - final List visitables = _visitables.get("config"); + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); while (each.hasNext()) { - V1beta1DeviceAllocationConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConfig() { @@ -143,7 +179,7 @@ public A withConfig(List config) { return (A) this; } - public A withConfig(io.kubernetes.client.openapi.models.V1beta1DeviceAllocationConfiguration... config) { + public A withConfig(V1beta1DeviceAllocationConfiguration... config) { if (this.config != null) { this.config.clear(); _visitables.remove("config"); @@ -157,7 +193,7 @@ public A withConfig(io.kubernetes.client.openapi.models.V1beta1DeviceAllocationC } public boolean hasConfig() { - return this.config != null && !this.config.isEmpty(); + return this.config != null && !(this.config.isEmpty()); } public ConfigNested addNewConfig() { @@ -173,32 +209,45 @@ public ConfigNested setNewConfigLike(int index,V1beta1DeviceAllocationConfigu } public ConfigNested editConfig(int index) { - if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); - return setNewConfigLike(index, buildConfig(index)); + if (index <= config.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editFirstConfig() { - if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); - return setNewConfigLike(0, buildConfig(0)); + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); } public ConfigNested editLastConfig() { int index = config.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); - return setNewConfigLike(index, buildConfig(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.results == null) { + this.results = new ArrayList(); + } V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); @@ -207,11 +256,13 @@ public A addToResults(int index,V1beta1DeviceRequestAllocationResult item) { _visitables.get("results").add(builder); results.add(index, builder); } - return (A)this; + return (A) this; } public A setToResults(int index,V1beta1DeviceRequestAllocationResult item) { - if (this.results == null) {this.results = new ArrayList();} + if (this.results == null) { + this.results = new ArrayList(); + } V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); @@ -220,41 +271,71 @@ public A setToResults(int index,V1beta1DeviceRequestAllocationResult item) { _visitables.get("results").add(builder); results.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResults(io.kubernetes.client.openapi.models.V1beta1DeviceRequestAllocationResult... items) { - if (this.results == null) {this.results = new ArrayList();} - for (V1beta1DeviceRequestAllocationResult item : items) {V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + public A addToResults(V1beta1DeviceRequestAllocationResult... items) { + if (this.results == null) { + this.results = new ArrayList(); + } + for (V1beta1DeviceRequestAllocationResult item : items) { + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); + } + return (A) this; } public A addAllToResults(Collection items) { - if (this.results == null) {this.results = new ArrayList();} - for (V1beta1DeviceRequestAllocationResult item : items) {V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + if (this.results == null) { + this.results = new ArrayList(); + } + for (V1beta1DeviceRequestAllocationResult item : items) { + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); + } + return (A) this; } - public A removeFromResults(io.kubernetes.client.openapi.models.V1beta1DeviceRequestAllocationResult... items) { - if (this.results == null) return (A)this; - for (V1beta1DeviceRequestAllocationResult item : items) {V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + public A removeFromResults(V1beta1DeviceRequestAllocationResult... items) { + if (this.results == null) { + return (A) this; + } + for (V1beta1DeviceRequestAllocationResult item : items) { + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").remove(builder); + this.results.remove(builder); + } + return (A) this; } public A removeAllFromResults(Collection items) { - if (this.results == null) return (A)this; - for (V1beta1DeviceRequestAllocationResult item : items) {V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + if (this.results == null) { + return (A) this; + } + for (V1beta1DeviceRequestAllocationResult item : items) { + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").remove(builder); + this.results.remove(builder); + } + return (A) this; } public A removeMatchingFromResults(Predicate predicate) { - if (results == null) return (A) this; - final Iterator each = results.iterator(); - final List visitables = _visitables.get("results"); + if (results == null) { + return (A) this; + } + Iterator each = results.iterator(); + List visitables = _visitables.get("results"); while (each.hasNext()) { - V1beta1DeviceRequestAllocationResultBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceRequestAllocationResultBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResults() { @@ -306,7 +387,7 @@ public A withResults(List results) { return (A) this; } - public A withResults(io.kubernetes.client.openapi.models.V1beta1DeviceRequestAllocationResult... results) { + public A withResults(V1beta1DeviceRequestAllocationResult... results) { if (this.results != null) { this.results.clear(); _visitables.remove("results"); @@ -320,7 +401,7 @@ public A withResults(io.kubernetes.client.openapi.models.V1beta1DeviceRequestAll } public boolean hasResults() { - return this.results != null && !this.results.isEmpty(); + return this.results != null && !(this.results.isEmpty()); } public ResultsNested addNewResult() { @@ -336,49 +417,77 @@ public ResultsNested setNewResultLike(int index,V1beta1DeviceRequestAllocatio } public ResultsNested editResult(int index) { - if (results.size() <= index) throw new RuntimeException("Can't edit results. Index exceeds size."); - return setNewResultLike(index, buildResult(index)); + if (index <= results.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); } public ResultsNested editFirstResult() { - if (results.size() == 0) throw new RuntimeException("Can't edit first results. The list is empty."); - return setNewResultLike(0, buildResult(0)); + if (results.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); + } + return this.setNewResultLike(0, this.buildResult(0)); } public ResultsNested editLastResult() { int index = results.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last results. The list is empty."); - return setNewResultLike(index, buildResult(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); } public ResultsNested editMatchingResult(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1DeviceAllocationConfigurationFluent< int index; public N and() { - return (N) V1beta1DeviceAllocationResultFluent.this.setToConfig(index,builder.build()); + return (N) V1beta1DeviceAllocationResultFluent.this.setToConfig(index, builder.build()); } public N endConfig() { @@ -409,7 +518,7 @@ public class ResultsNested extends V1beta1DeviceRequestAllocationResultFluent int index; public N and() { - return (N) V1beta1DeviceAllocationResultFluent.this.setToResults(index,builder.build()); + return (N) V1beta1DeviceAllocationResultFluent.this.setToResults(index, builder.build()); } public N endResult() { 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 2ae5e69b93..b274ac7297 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceAttributeBuilder extends V1beta1DeviceAttributeFluent implements VisitableBuilder{ public V1beta1DeviceAttributeBuilder() { this(new V1beta1DeviceAttribute()); 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 df326a8613..0d4aac9474 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceAttributeFluent> extends BaseFluent{ +public class V1beta1DeviceAttributeFluent> extends BaseFluent{ public V1beta1DeviceAttributeFluent() { } @@ -24,13 +26,13 @@ public V1beta1DeviceAttributeFluent(V1beta1DeviceAttribute instance) { private String version; protected void copyInstance(V1beta1DeviceAttribute instance) { - instance = (instance != null ? instance : new V1beta1DeviceAttribute()); + instance = instance != null ? instance : new V1beta1DeviceAttribute(); if (instance != null) { - this.withBool(instance.getBool()); - this.withInt(instance.getInt()); - this.withString(instance.getString()); - this.withVersion(instance.getVersion()); - } + this.withBool(instance.getBool()); + this.withInt(instance.getInt()); + this.withString(instance.getString()); + this.withVersion(instance.getVersion()); + } } public Boolean getBool() { @@ -86,28 +88,57 @@ public boolean hasVersion() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceAttributeFluent that = (V1beta1DeviceAttributeFluent) o; - if (!java.util.Objects.equals(bool, that.bool)) return false; - if (!java.util.Objects.equals(_int, that._int)) return false; - if (!java.util.Objects.equals(string, that.string)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; + if (!(Objects.equals(bool, that.bool))) { + return false; + } + if (!(Objects.equals(_int, that._int))) { + return false; + } + if (!(Objects.equals(string, that.string))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(bool, _int, string, version, super.hashCode()); + return Objects.hash(bool, _int, string, version); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (bool != null) { sb.append("bool:"); sb.append(bool + ","); } - if (_int != null) { sb.append("_int:"); sb.append(_int + ","); } - if (string != null) { sb.append("string:"); sb.append(string + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } + if (!(bool == null)) { + sb.append("bool:"); + sb.append(bool); + sb.append(","); + } + if (!(_int == null)) { + sb.append("_int:"); + sb.append(_int); + sb.append(","); + } + if (!(string == null)) { + sb.append("string:"); + sb.append(string); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } sb.append("}"); return sb.toString(); } 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 501a599b9a..b8c943aa76 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceBuilder extends V1beta1DeviceFluent implements VisitableBuilder{ public V1beta1DeviceBuilder() { this(new V1beta1Device()); 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 40d62bfa74..d7eb2f001a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceCapacityBuilder extends V1beta1DeviceCapacityFluent implements VisitableBuilder{ public V1beta1DeviceCapacityBuilder() { this(new V1beta1DeviceCapacity()); @@ -23,6 +24,7 @@ public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacity instance) { public V1beta1DeviceCapacity build() { V1beta1DeviceCapacity buildable = new V1beta1DeviceCapacity(); + buildable.setRequestPolicy(fluent.buildRequestPolicy()); buildable.setValue(fluent.getValue()); return buildable; } 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 f08e92dd58..427abe4b0a 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 @@ -1,29 +1,75 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceCapacityFluent> extends BaseFluent{ +public class V1beta1DeviceCapacityFluent> extends BaseFluent{ public V1beta1DeviceCapacityFluent() { } public V1beta1DeviceCapacityFluent(V1beta1DeviceCapacity instance) { this.copyInstance(instance); } + private V1beta1CapacityRequestPolicyBuilder requestPolicy; private Quantity value; protected void copyInstance(V1beta1DeviceCapacity instance) { - instance = (instance != null ? instance : new V1beta1DeviceCapacity()); + instance = instance != null ? instance : new V1beta1DeviceCapacity(); if (instance != null) { - this.withValue(instance.getValue()); - } + this.withRequestPolicy(instance.getRequestPolicy()); + this.withValue(instance.getValue()); + } + } + + public V1beta1CapacityRequestPolicy buildRequestPolicy() { + return this.requestPolicy != null ? this.requestPolicy.build() : null; + } + + public A withRequestPolicy(V1beta1CapacityRequestPolicy requestPolicy) { + this._visitables.remove("requestPolicy"); + if (requestPolicy != null) { + this.requestPolicy = new V1beta1CapacityRequestPolicyBuilder(requestPolicy); + this._visitables.get("requestPolicy").add(this.requestPolicy); + } else { + this.requestPolicy = null; + this._visitables.get("requestPolicy").remove(this.requestPolicy); + } + return (A) this; + } + + public boolean hasRequestPolicy() { + return this.requestPolicy != null; + } + + public RequestPolicyNested withNewRequestPolicy() { + return new RequestPolicyNested(null); + } + + public RequestPolicyNested withNewRequestPolicyLike(V1beta1CapacityRequestPolicy item) { + return new RequestPolicyNested(item); + } + + public RequestPolicyNested editRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); + } + + public RequestPolicyNested editOrNewRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(new V1beta1CapacityRequestPolicyBuilder().build())); + } + + public RequestPolicyNested editOrNewRequestPolicyLike(V1beta1CapacityRequestPolicy item) { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(item)); } public Quantity getValue() { @@ -40,29 +86,63 @@ public boolean hasValue() { } public A withNewValue(String value) { - return (A)withValue(new Quantity(value)); + return (A) this.withValue(new Quantity(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceCapacityFluent that = (V1beta1DeviceCapacityFluent) o; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(requestPolicy, that.requestPolicy))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(value, super.hashCode()); + return Objects.hash(requestPolicy, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(requestPolicy == null)) { + sb.append("requestPolicy:"); + sb.append(requestPolicy); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } + public class RequestPolicyNested extends V1beta1CapacityRequestPolicyFluent> implements Nested{ + RequestPolicyNested(V1beta1CapacityRequestPolicy item) { + this.builder = new V1beta1CapacityRequestPolicyBuilder(this, item); + } + V1beta1CapacityRequestPolicyBuilder builder; + + public N and() { + return (N) V1beta1DeviceCapacityFluent.this.withRequestPolicy(builder.build()); + } + + public N endRequestPolicy() { + return and(); + } + + } } \ No newline at end of file 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 1cffab3877..05929163ba 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceClaimBuilder extends V1beta1DeviceClaimFluent implements VisitableBuilder{ public V1beta1DeviceClaimBuilder() { this(new V1beta1DeviceClaim()); 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 848044c6b7..e2a3662d2e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceClaimConfigurationBuilder extends V1beta1DeviceClaimConfigurationFluent implements VisitableBuilder{ public V1beta1DeviceClaimConfigurationBuilder() { this(new V1beta1DeviceClaimConfiguration()); 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 d2030ee4be..a1e41f4fcc 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceClaimConfigurationFluent> extends BaseFluent{ +public class V1beta1DeviceClaimConfigurationFluent> extends BaseFluent{ public V1beta1DeviceClaimConfigurationFluent() { } @@ -25,11 +28,11 @@ public V1beta1DeviceClaimConfigurationFluent(V1beta1DeviceClaimConfiguration ins private List requests; protected void copyInstance(V1beta1DeviceClaimConfiguration instance) { - instance = (instance != null ? instance : new V1beta1DeviceClaimConfiguration()); + instance = instance != null ? instance : new V1beta1DeviceClaimConfiguration(); if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - } + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } } public V1beta1OpaqueDeviceConfiguration buildOpaque() { @@ -61,46 +64,71 @@ public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) } public OpaqueNested editOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } public OpaqueNested editOrNewOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); } public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); } public A addToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} + if (this.requests == null) { + this.requests = new ArrayList(); + } this.requests.add(index, item); - return (A)this; + return (A) this; } public A setToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.set(index, item); return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } - public A addToRequests(java.lang.String... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } - public A removeFromRequests(java.lang.String... items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public List getRequests() { @@ -149,7 +177,7 @@ public A withRequests(List requests) { return (A) this; } - public A withRequests(java.lang.String... requests) { + public A withRequests(String... requests) { if (this.requests != null) { this.requests.clear(); _visitables.remove("requests"); @@ -163,28 +191,45 @@ public A withRequests(java.lang.String... requests) { } public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); + return this.requests != null && !(this.requests.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceClaimConfigurationFluent that = (V1beta1DeviceClaimConfigurationFluent) o; - if (!java.util.Objects.equals(opaque, that.opaque)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(opaque, requests, super.hashCode()); + return Objects.hash(opaque, requests); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } sb.append("}"); return sb.toString(); } 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 c155a0aeaa..358731d8e7 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceClaimFluent> extends BaseFluent{ +public class V1beta1DeviceClaimFluent> extends BaseFluent{ public V1beta1DeviceClaimFluent() { } @@ -28,16 +30,18 @@ public V1beta1DeviceClaimFluent(V1beta1DeviceClaim instance) { private ArrayList requests; protected void copyInstance(V1beta1DeviceClaim instance) { - instance = (instance != null ? instance : new V1beta1DeviceClaim()); + instance = instance != null ? instance : new V1beta1DeviceClaim(); if (instance != null) { - this.withConfig(instance.getConfig()); - this.withConstraints(instance.getConstraints()); - this.withRequests(instance.getRequests()); - } + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } } public A addToConfig(int index,V1beta1DeviceClaimConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -46,11 +50,13 @@ public A addToConfig(int index,V1beta1DeviceClaimConfiguration item) { _visitables.get("config").add(builder); config.add(index, builder); } - return (A)this; + return (A) this; } public A setToConfig(int index,V1beta1DeviceClaimConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -59,41 +65,71 @@ public A setToConfig(int index,V1beta1DeviceClaimConfiguration item) { _visitables.get("config").add(builder); config.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClaimConfiguration... items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta1DeviceClaimConfiguration item : items) {V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + public A addToConfig(V1beta1DeviceClaimConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta1DeviceClaimConfiguration item : items) { + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } public A addAllToConfig(Collection items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta1DeviceClaimConfiguration item : items) {V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta1DeviceClaimConfiguration item : items) { + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } - public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClaimConfiguration... items) { - if (this.config == null) return (A)this; - for (V1beta1DeviceClaimConfiguration item : items) {V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + public A removeFromConfig(V1beta1DeviceClaimConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta1DeviceClaimConfiguration item : items) { + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeAllFromConfig(Collection items) { - if (this.config == null) return (A)this; - for (V1beta1DeviceClaimConfiguration item : items) {V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + if (this.config == null) { + return (A) this; + } + for (V1beta1DeviceClaimConfiguration item : items) { + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) return (A) this; - final Iterator each = config.iterator(); - final List visitables = _visitables.get("config"); + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); while (each.hasNext()) { - V1beta1DeviceClaimConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceClaimConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConfig() { @@ -145,7 +181,7 @@ public A withConfig(List config) { return (A) this; } - public A withConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClaimConfiguration... config) { + public A withConfig(V1beta1DeviceClaimConfiguration... config) { if (this.config != null) { this.config.clear(); _visitables.remove("config"); @@ -159,7 +195,7 @@ public A withConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClaimConfig } public boolean hasConfig() { - return this.config != null && !this.config.isEmpty(); + return this.config != null && !(this.config.isEmpty()); } public ConfigNested addNewConfig() { @@ -175,32 +211,45 @@ public ConfigNested setNewConfigLike(int index,V1beta1DeviceClaimConfiguratio } public ConfigNested editConfig(int index) { - if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); - return setNewConfigLike(index, buildConfig(index)); + if (index <= config.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editFirstConfig() { - if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); - return setNewConfigLike(0, buildConfig(0)); + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); } public ConfigNested editLastConfig() { int index = config.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); - return setNewConfigLike(index, buildConfig(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.constraints == null) { + this.constraints = new ArrayList(); + } V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); if (index < 0 || index >= constraints.size()) { _visitables.get("constraints").add(builder); @@ -209,11 +258,13 @@ public A addToConstraints(int index,V1beta1DeviceConstraint item) { _visitables.get("constraints").add(builder); constraints.add(index, builder); } - return (A)this; + return (A) this; } public A setToConstraints(int index,V1beta1DeviceConstraint item) { - if (this.constraints == null) {this.constraints = new ArrayList();} + if (this.constraints == null) { + this.constraints = new ArrayList(); + } V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); if (index < 0 || index >= constraints.size()) { _visitables.get("constraints").add(builder); @@ -222,41 +273,71 @@ public A setToConstraints(int index,V1beta1DeviceConstraint item) { _visitables.get("constraints").add(builder); constraints.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConstraints(io.kubernetes.client.openapi.models.V1beta1DeviceConstraint... items) { - if (this.constraints == null) {this.constraints = new ArrayList();} - for (V1beta1DeviceConstraint item : items) {V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + public A addToConstraints(V1beta1DeviceConstraint... items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + for (V1beta1DeviceConstraint item : items) { + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; } public A addAllToConstraints(Collection items) { - if (this.constraints == null) {this.constraints = new ArrayList();} - for (V1beta1DeviceConstraint item : items) {V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + for (V1beta1DeviceConstraint item : items) { + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; } - public A removeFromConstraints(io.kubernetes.client.openapi.models.V1beta1DeviceConstraint... items) { - if (this.constraints == null) return (A)this; - for (V1beta1DeviceConstraint item : items) {V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + public A removeFromConstraints(V1beta1DeviceConstraint... items) { + if (this.constraints == null) { + return (A) this; + } + for (V1beta1DeviceConstraint item : items) { + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); + } + return (A) this; } public A removeAllFromConstraints(Collection items) { - if (this.constraints == null) return (A)this; - for (V1beta1DeviceConstraint item : items) {V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + if (this.constraints == null) { + return (A) this; + } + for (V1beta1DeviceConstraint item : items) { + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); + } + return (A) this; } public A removeMatchingFromConstraints(Predicate predicate) { - if (constraints == null) return (A) this; - final Iterator each = constraints.iterator(); - final List visitables = _visitables.get("constraints"); + if (constraints == null) { + return (A) this; + } + Iterator each = constraints.iterator(); + List visitables = _visitables.get("constraints"); while (each.hasNext()) { - V1beta1DeviceConstraintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConstraints() { @@ -308,7 +389,7 @@ public A withConstraints(List constraints) { return (A) this; } - public A withConstraints(io.kubernetes.client.openapi.models.V1beta1DeviceConstraint... constraints) { + public A withConstraints(V1beta1DeviceConstraint... constraints) { if (this.constraints != null) { this.constraints.clear(); _visitables.remove("constraints"); @@ -322,7 +403,7 @@ public A withConstraints(io.kubernetes.client.openapi.models.V1beta1DeviceConstr } public boolean hasConstraints() { - return this.constraints != null && !this.constraints.isEmpty(); + return this.constraints != null && !(this.constraints.isEmpty()); } public ConstraintsNested addNewConstraint() { @@ -338,32 +419,45 @@ public ConstraintsNested setNewConstraintLike(int index,V1beta1DeviceConstrai } public ConstraintsNested editConstraint(int index) { - if (constraints.size() <= index) throw new RuntimeException("Can't edit constraints. Index exceeds size."); - return setNewConstraintLike(index, buildConstraint(index)); + if (index <= constraints.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); } public ConstraintsNested editFirstConstraint() { - if (constraints.size() == 0) throw new RuntimeException("Can't edit first constraints. The list is empty."); - return setNewConstraintLike(0, buildConstraint(0)); + if (constraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(0, this.buildConstraint(0)); } public ConstraintsNested editLastConstraint() { int index = constraints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last constraints. The list is empty."); - return setNewConstraintLike(index, buildConstraint(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); } public ConstraintsNested editMatchingConstraint(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.requests == null) { + this.requests = new ArrayList(); + } V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); @@ -372,11 +466,13 @@ public A addToRequests(int index,V1beta1DeviceRequest item) { _visitables.get("requests").add(builder); requests.add(index, builder); } - return (A)this; + return (A) this; } public A setToRequests(int index,V1beta1DeviceRequest item) { - if (this.requests == null) {this.requests = new ArrayList();} + if (this.requests == null) { + this.requests = new ArrayList(); + } V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); @@ -385,41 +481,71 @@ public A setToRequests(int index,V1beta1DeviceRequest item) { _visitables.get("requests").add(builder); requests.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRequests(io.kubernetes.client.openapi.models.V1beta1DeviceRequest... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (V1beta1DeviceRequest item : items) {V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + public A addToRequests(V1beta1DeviceRequest... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1beta1DeviceRequest item : items) { + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; } public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (V1beta1DeviceRequest item : items) {V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1beta1DeviceRequest item : items) { + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; } - public A removeFromRequests(io.kubernetes.client.openapi.models.V1beta1DeviceRequest... items) { - if (this.requests == null) return (A)this; - for (V1beta1DeviceRequest item : items) {V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + public A removeFromRequests(V1beta1DeviceRequest... items) { + if (this.requests == null) { + return (A) this; + } + for (V1beta1DeviceRequest item : items) { + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; } public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (V1beta1DeviceRequest item : items) {V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + if (this.requests == null) { + return (A) this; + } + for (V1beta1DeviceRequest item : items) { + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; } public A removeMatchingFromRequests(Predicate predicate) { - if (requests == null) return (A) this; - final Iterator each = requests.iterator(); - final List visitables = _visitables.get("requests"); + if (requests == null) { + return (A) this; + } + Iterator each = requests.iterator(); + List visitables = _visitables.get("requests"); while (each.hasNext()) { - V1beta1DeviceRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRequests() { @@ -471,7 +597,7 @@ public A withRequests(List requests) { return (A) this; } - public A withRequests(io.kubernetes.client.openapi.models.V1beta1DeviceRequest... requests) { + public A withRequests(V1beta1DeviceRequest... requests) { if (this.requests != null) { this.requests.clear(); _visitables.remove("requests"); @@ -485,7 +611,7 @@ public A withRequests(io.kubernetes.client.openapi.models.V1beta1DeviceRequest.. } public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); + return this.requests != null && !(this.requests.isEmpty()); } public RequestsNested addNewRequest() { @@ -501,51 +627,85 @@ public RequestsNested setNewRequestLike(int index,V1beta1DeviceRequest item) } public RequestsNested editRequest(int index) { - if (requests.size() <= index) throw new RuntimeException("Can't edit requests. Index exceeds size."); - return setNewRequestLike(index, buildRequest(index)); + if (index <= requests.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); } public RequestsNested editFirstRequest() { - if (requests.size() == 0) throw new RuntimeException("Can't edit first requests. The list is empty."); - return setNewRequestLike(0, buildRequest(0)); + if (requests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(0, this.buildRequest(0)); } public RequestsNested editLastRequest() { int index = requests.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last requests. The list is empty."); - return setNewRequestLike(index, buildRequest(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); } public RequestsNested editMatchingRequest(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1DeviceClaimConfigurationFluent extends V1beta1DeviceConstraintFluent extends V1beta1DeviceRequestFluent implements VisitableBuilder{ public V1beta1DeviceClassBuilder() { this(new V1beta1DeviceClass()); 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 01a9de0067..0184e678e0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceClassConfigurationBuilder extends V1beta1DeviceClassConfigurationFluent implements VisitableBuilder{ public V1beta1DeviceClassConfigurationBuilder() { this(new V1beta1DeviceClassConfiguration()); 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 e0c0506be8..df8150fb8b 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceClassConfigurationFluent> extends BaseFluent{ +public class V1beta1DeviceClassConfigurationFluent> extends BaseFluent{ public V1beta1DeviceClassConfigurationFluent() { } @@ -20,10 +23,10 @@ public V1beta1DeviceClassConfigurationFluent(V1beta1DeviceClassConfiguration ins private V1beta1OpaqueDeviceConfigurationBuilder opaque; protected void copyInstance(V1beta1DeviceClassConfiguration instance) { - instance = (instance != null ? instance : new V1beta1DeviceClassConfiguration()); + instance = instance != null ? instance : new V1beta1DeviceClassConfiguration(); if (instance != null) { - this.withOpaque(instance.getOpaque()); - } + this.withOpaque(instance.getOpaque()); + } } public V1beta1OpaqueDeviceConfiguration buildOpaque() { @@ -55,34 +58,45 @@ public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) } public OpaqueNested editOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } public OpaqueNested editOrNewOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); } public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceClassConfigurationFluent that = (V1beta1DeviceClassConfigurationFluent) o; - if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(opaque, super.hashCode()); + return Objects.hash(opaque); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (opaque != null) { sb.append("opaque:"); sb.append(opaque); } + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + } sb.append("}"); return sb.toString(); } 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 595b783e93..078ec96706 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceClassFluent> extends BaseFluent{ +public class V1beta1DeviceClassFluent> extends BaseFluent{ public V1beta1DeviceClassFluent() { } @@ -23,13 +26,13 @@ public V1beta1DeviceClassFluent(V1beta1DeviceClass instance) { private V1beta1DeviceClassSpecBuilder spec; protected void copyInstance(V1beta1DeviceClass instance) { - instance = (instance != null ? instance : new V1beta1DeviceClass()); + instance = instance != null ? instance : new V1beta1DeviceClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta1DeviceClassSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1beta1DeviceClassSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1DeviceClassSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1DeviceClassSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta1DeviceClassSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceClassFluent that = (V1beta1DeviceClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 6a0663c95c..21f16d2086 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceClassListBuilder extends V1beta1DeviceClassListFluent implements VisitableBuilder{ public V1beta1DeviceClassListBuilder() { this(new V1beta1DeviceClassList()); 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 05ca0ae737..6c2834ceea 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceClassListFluent> extends BaseFluent{ +public class V1beta1DeviceClassListFluent> extends BaseFluent{ public V1beta1DeviceClassListFluent() { } @@ -29,13 +32,13 @@ public V1beta1DeviceClassListFluent(V1beta1DeviceClassList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1beta1DeviceClassList instance) { - instance = (instance != null ? instance : new V1beta1DeviceClassList()); + instance = instance != null ? instance : new V1beta1DeviceClassList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta1DeviceClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta1DeviceClass item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta1DeviceClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta1DeviceClass item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1DeviceClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1DeviceClass item : items) {V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta1DeviceClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1DeviceClass item : items) { + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1DeviceClass item : items) {V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1DeviceClass item : items) { + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1DeviceClass... items) { - if (this.items == null) return (A)this; - for (V1beta1DeviceClass item : items) {V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta1DeviceClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1DeviceClass item : items) { + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1DeviceClass item : items) {V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta1DeviceClass item : items) { + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta1DeviceClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1DeviceClass... items) { + public A withItems(V1beta1DeviceClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1DeviceClass... ite } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta1DeviceClass item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceClassListFluent that = (V1beta1DeviceClassListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta1DeviceClassFluent> imp int index; public N and() { - return (N) V1beta1DeviceClassListFluent.this.setToItems(index,builder.build()); + return (N) V1beta1DeviceClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 dc2871c6bd..11271c66c1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceClassSpecBuilder extends V1beta1DeviceClassSpecFluent implements VisitableBuilder{ public V1beta1DeviceClassSpecBuilder() { this(new V1beta1DeviceClassSpec()); @@ -24,6 +25,7 @@ public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpec instance) { public V1beta1DeviceClassSpec build() { V1beta1DeviceClassSpec buildable = new V1beta1DeviceClassSpec(); buildable.setConfig(fluent.buildConfig()); + buildable.setExtendedResourceName(fluent.getExtendedResourceName()); buildable.setSelectors(fluent.buildSelectors()); return buildable; } 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 14b480fe2b..8af7ae2af3 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceClassSpecFluent> extends BaseFluent{ +public class V1beta1DeviceClassSpecFluent> extends BaseFluent{ public V1beta1DeviceClassSpecFluent() { } @@ -24,18 +26,22 @@ public V1beta1DeviceClassSpecFluent(V1beta1DeviceClassSpec instance) { this.copyInstance(instance); } private ArrayList config; + private String extendedResourceName; private ArrayList selectors; protected void copyInstance(V1beta1DeviceClassSpec instance) { - instance = (instance != null ? instance : new V1beta1DeviceClassSpec()); + instance = instance != null ? instance : new V1beta1DeviceClassSpec(); if (instance != null) { - this.withConfig(instance.getConfig()); - this.withSelectors(instance.getSelectors()); - } + this.withConfig(instance.getConfig()); + this.withExtendedResourceName(instance.getExtendedResourceName()); + this.withSelectors(instance.getSelectors()); + } } public A addToConfig(int index,V1beta1DeviceClassConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -44,11 +50,13 @@ public A addToConfig(int index,V1beta1DeviceClassConfiguration item) { _visitables.get("config").add(builder); config.add(index, builder); } - return (A)this; + return (A) this; } public A setToConfig(int index,V1beta1DeviceClassConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -57,41 +65,71 @@ public A setToConfig(int index,V1beta1DeviceClassConfiguration item) { _visitables.get("config").add(builder); config.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClassConfiguration... items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta1DeviceClassConfiguration item : items) {V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + public A addToConfig(V1beta1DeviceClassConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta1DeviceClassConfiguration item : items) { + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } public A addAllToConfig(Collection items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta1DeviceClassConfiguration item : items) {V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta1DeviceClassConfiguration item : items) { + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } - public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClassConfiguration... items) { - if (this.config == null) return (A)this; - for (V1beta1DeviceClassConfiguration item : items) {V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + public A removeFromConfig(V1beta1DeviceClassConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta1DeviceClassConfiguration item : items) { + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeAllFromConfig(Collection items) { - if (this.config == null) return (A)this; - for (V1beta1DeviceClassConfiguration item : items) {V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + if (this.config == null) { + return (A) this; + } + for (V1beta1DeviceClassConfiguration item : items) { + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) return (A) this; - final Iterator each = config.iterator(); - final List visitables = _visitables.get("config"); + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); while (each.hasNext()) { - V1beta1DeviceClassConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConfig() { @@ -143,7 +181,7 @@ public A withConfig(List config) { return (A) this; } - public A withConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClassConfiguration... config) { + public A withConfig(V1beta1DeviceClassConfiguration... config) { if (this.config != null) { this.config.clear(); _visitables.remove("config"); @@ -157,7 +195,7 @@ public A withConfig(io.kubernetes.client.openapi.models.V1beta1DeviceClassConfig } public boolean hasConfig() { - return this.config != null && !this.config.isEmpty(); + return this.config != null && !(this.config.isEmpty()); } public ConfigNested addNewConfig() { @@ -173,32 +211,58 @@ public ConfigNested setNewConfigLike(int index,V1beta1DeviceClassConfiguratio } public ConfigNested editConfig(int index) { - if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); - return setNewConfigLike(index, buildConfig(index)); + if (index <= config.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editFirstConfig() { - if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); - return setNewConfigLike(0, buildConfig(0)); + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); } public ConfigNested editLastConfig() { int index = config.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); - return setNewConfigLike(index, buildConfig(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -207,11 +271,13 @@ public A addToSelectors(int index,V1beta1DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.add(index, builder); } - return (A)this; + return (A) this; } public A setToSelectors(int index,V1beta1DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -220,41 +286,71 @@ public A setToSelectors(int index,V1beta1DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + public A addToSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + public A removeFromSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + if (this.selectors == null) { + return (A) this; + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); while (each.hasNext()) { - V1beta1DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSelectors() { @@ -306,7 +402,7 @@ public A withSelectors(List selectors) { return (A) this; } - public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... selectors) { + public A withSelectors(V1beta1DeviceSelector... selectors) { if (this.selectors != null) { this.selectors.clear(); _visitables.remove("selectors"); @@ -320,7 +416,7 @@ public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector } public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); + return this.selectors != null && !(this.selectors.isEmpty()); } public SelectorsNested addNewSelector() { @@ -336,49 +432,85 @@ public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector ite } public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); } public SelectorsNested editLastSelector() { int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1DeviceClassConfigurationFluent extends V1beta1DeviceSelectorFluent implements VisitableBuilder{ public V1beta1DeviceConstraintBuilder() { this(new V1beta1DeviceConstraint()); @@ -23,6 +24,7 @@ public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraint instance) { public V1beta1DeviceConstraint build() { V1beta1DeviceConstraint buildable = new V1beta1DeviceConstraint(); + buildable.setDistinctAttribute(fluent.getDistinctAttribute()); buildable.setMatchAttribute(fluent.getMatchAttribute()); buildable.setRequests(fluent.getRequests()); return buildable; 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 43e0c92b7b..c681faab0c 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,22 +15,37 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceConstraintFluent> extends BaseFluent{ +public class V1beta1DeviceConstraintFluent> extends BaseFluent{ public V1beta1DeviceConstraintFluent() { } public V1beta1DeviceConstraintFluent(V1beta1DeviceConstraint instance) { this.copyInstance(instance); } + private String distinctAttribute; private String matchAttribute; private List requests; protected void copyInstance(V1beta1DeviceConstraint instance) { - instance = (instance != null ? instance : new V1beta1DeviceConstraint()); + instance = instance != null ? instance : new V1beta1DeviceConstraint(); if (instance != null) { - this.withMatchAttribute(instance.getMatchAttribute()); - this.withRequests(instance.getRequests()); - } + this.withDistinctAttribute(instance.getDistinctAttribute()); + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public String getDistinctAttribute() { + return this.distinctAttribute; + } + + public A withDistinctAttribute(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return (A) this; + } + + public boolean hasDistinctAttribute() { + return this.distinctAttribute != null; } public String getMatchAttribute() { @@ -45,34 +62,59 @@ public boolean hasMatchAttribute() { } public A addToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} + if (this.requests == null) { + this.requests = new ArrayList(); + } this.requests.add(index, item); - return (A)this; + return (A) this; } public A setToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.set(index, item); return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } - public A addToRequests(java.lang.String... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } - public A removeFromRequests(java.lang.String... items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public List getRequests() { @@ -121,7 +163,7 @@ public A withRequests(List requests) { return (A) this; } - public A withRequests(java.lang.String... requests) { + public A withRequests(String... requests) { if (this.requests != null) { this.requests.clear(); _visitables.remove("requests"); @@ -135,28 +177,53 @@ public A withRequests(java.lang.String... requests) { } public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); + return this.requests != null && !(this.requests.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceConstraintFluent that = (V1beta1DeviceConstraintFluent) o; - if (!java.util.Objects.equals(matchAttribute, that.matchAttribute)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { + return false; + } + if (!(Objects.equals(matchAttribute, that.matchAttribute))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(matchAttribute, requests, super.hashCode()); + return Objects.hash(distinctAttribute, matchAttribute, requests); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (matchAttribute != null) { sb.append("matchAttribute:"); sb.append(matchAttribute + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + if (!(distinctAttribute == null)) { + sb.append("distinctAttribute:"); + sb.append(distinctAttribute); + sb.append(","); + } + if (!(matchAttribute == null)) { + sb.append("matchAttribute:"); + sb.append(matchAttribute); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } sb.append("}"); return sb.toString(); } 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 290f8fc7ea..48eaade3e9 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceCounterConsumptionBuilder extends V1beta1DeviceCounterConsumptionFluent implements VisitableBuilder{ public V1beta1DeviceCounterConsumptionBuilder() { this(new V1beta1DeviceCounterConsumption()); 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 9e67fc0a94..c688d1fdb1 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceCounterConsumptionFluent> extends BaseFluent{ +public class V1beta1DeviceCounterConsumptionFluent> extends BaseFluent{ public V1beta1DeviceCounterConsumptionFluent() { } @@ -22,11 +24,11 @@ public V1beta1DeviceCounterConsumptionFluent(V1beta1DeviceCounterConsumption ins private Map counters; protected void copyInstance(V1beta1DeviceCounterConsumption instance) { - instance = (instance != null ? instance : new V1beta1DeviceCounterConsumption()); + instance = instance != null ? instance : new V1beta1DeviceCounterConsumption(); if (instance != null) { - this.withCounterSet(instance.getCounterSet()); - this.withCounters(instance.getCounters()); - } + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } } public String getCounterSet() { @@ -43,23 +45,47 @@ public boolean hasCounterSet() { } public A addToCounters(String key,V1beta1Counter value) { - if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } - if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.counters.put(key, value); + } + return (A) this; } public A addToCounters(Map map) { - if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } - if(map != null) { this.counters.putAll(map);} return (A)this; + if (this.counters == null && map != null) { + this.counters = new LinkedHashMap(); + } + if (map != null) { + this.counters.putAll(map); + } + return (A) this; } public A removeFromCounters(String key) { - if(this.counters == null) { return (A) this; } - if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + if (this.counters == null) { + return (A) this; + } + if (key != null && this.counters != null) { + this.counters.remove(key); + } + return (A) this; } public A removeFromCounters(Map map) { - if(this.counters == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + if (this.counters == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.counters != null) { + this.counters.remove(key); + } + } + } + return (A) this; } public Map getCounters() { @@ -80,24 +106,41 @@ public boolean hasCounters() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceCounterConsumptionFluent that = (V1beta1DeviceCounterConsumptionFluent) o; - if (!java.util.Objects.equals(counterSet, that.counterSet)) return false; - if (!java.util.Objects.equals(counters, that.counters)) return false; + if (!(Objects.equals(counterSet, that.counterSet))) { + return false; + } + if (!(Objects.equals(counters, that.counters))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(counterSet, counters, super.hashCode()); + return Objects.hash(counterSet, counters); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (counterSet != null) { sb.append("counterSet:"); sb.append(counterSet + ","); } - if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters); } + if (!(counterSet == null)) { + sb.append("counterSet:"); + sb.append(counterSet); + sb.append(","); + } + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + } sb.append("}"); return sb.toString(); } 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 3a4e8535c8..40be70a81f 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceFluent> extends BaseFluent{ +public class V1beta1DeviceFluent> extends BaseFluent{ public V1beta1DeviceFluent() { } @@ -21,11 +24,11 @@ public V1beta1DeviceFluent(V1beta1Device instance) { private String name; protected void copyInstance(V1beta1Device instance) { - instance = (instance != null ? instance : new V1beta1Device()); + instance = instance != null ? instance : new V1beta1Device(); if (instance != null) { - this.withBasic(instance.getBasic()); - this.withName(instance.getName()); - } + this.withBasic(instance.getBasic()); + this.withName(instance.getName()); + } } public V1beta1BasicDevice buildBasic() { @@ -57,15 +60,15 @@ public BasicNested withNewBasicLike(V1beta1BasicDevice item) { } public BasicNested editBasic() { - return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(null)); + return this.withNewBasicLike(Optional.ofNullable(this.buildBasic()).orElse(null)); } public BasicNested editOrNewBasic() { - return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(new V1beta1BasicDeviceBuilder().build())); + return this.withNewBasicLike(Optional.ofNullable(this.buildBasic()).orElse(new V1beta1BasicDeviceBuilder().build())); } public BasicNested editOrNewBasicLike(V1beta1BasicDevice item) { - return withNewBasicLike(java.util.Optional.ofNullable(buildBasic()).orElse(item)); + return this.withNewBasicLike(Optional.ofNullable(this.buildBasic()).orElse(item)); } public String getName() { @@ -82,24 +85,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceFluent that = (V1beta1DeviceFluent) o; - if (!java.util.Objects.equals(basic, that.basic)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(basic, that.basic))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(basic, name, super.hashCode()); + return Objects.hash(basic, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (basic != null) { sb.append("basic:"); sb.append(basic + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(basic == null)) { + sb.append("basic:"); + sb.append(basic); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 70711f9a65..edfb075d99 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceRequestAllocationResultBuilder extends V1beta1DeviceRequestAllocationResultFluent implements VisitableBuilder{ public V1beta1DeviceRequestAllocationResultBuilder() { this(new V1beta1DeviceRequestAllocationResult()); @@ -24,10 +25,14 @@ public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocatio public V1beta1DeviceRequestAllocationResult build() { V1beta1DeviceRequestAllocationResult buildable = new V1beta1DeviceRequestAllocationResult(); buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setConsumedCapacity(fluent.getConsumedCapacity()); buildable.setDevice(fluent.getDevice()); buildable.setDriver(fluent.getDriver()); buildable.setPool(fluent.getPool()); buildable.setRequest(fluent.getRequest()); + buildable.setShareID(fluent.getShareID()); 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 9a975a9279..1bf2331721 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java @@ -1,23 +1,28 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; +import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; import java.util.List; import java.lang.Boolean; +import io.kubernetes.client.custom.Quantity; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.Map; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceRequestAllocationResultFluent> extends BaseFluent{ +public class V1beta1DeviceRequestAllocationResultFluent> extends BaseFluent{ public V1beta1DeviceRequestAllocationResultFluent() { } @@ -25,22 +30,30 @@ public V1beta1DeviceRequestAllocationResultFluent(V1beta1DeviceRequestAllocation this.copyInstance(instance); } private Boolean adminAccess; + private List bindingConditions; + private List bindingFailureConditions; + private Map consumedCapacity; private String device; private String driver; private String pool; private String request; + private String shareID; private ArrayList tolerations; protected void copyInstance(V1beta1DeviceRequestAllocationResult instance) { - instance = (instance != null ? instance : new V1beta1DeviceRequestAllocationResult()); + instance = instance != null ? instance : new V1beta1DeviceRequestAllocationResult(); if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withPool(instance.getPool()); - this.withRequest(instance.getRequest()); - this.withTolerations(instance.getTolerations()); - } + this.withAdminAccess(instance.getAdminAccess()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withConsumedCapacity(instance.getConsumedCapacity()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withShareID(instance.getShareID()); + this.withTolerations(instance.getTolerations()); + } } public Boolean getAdminAccess() { @@ -56,6 +69,305 @@ public boolean hasAdminAccess() { return this.adminAccess != null; } + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public A addToConsumedCapacity(String key,Quantity value) { + if (this.consumedCapacity == null && key != null && value != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.consumedCapacity.put(key, value); + } + return (A) this; + } + + public A addToConsumedCapacity(Map map) { + if (this.consumedCapacity == null && map != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (map != null) { + this.consumedCapacity.putAll(map); + } + return (A) this; + } + + public A removeFromConsumedCapacity(String key) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (key != null && this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + return (A) this; + } + + public A removeFromConsumedCapacity(Map map) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + } + } + return (A) this; + } + + public Map getConsumedCapacity() { + return this.consumedCapacity; + } + + public A withConsumedCapacity(Map consumedCapacity) { + if (consumedCapacity == null) { + this.consumedCapacity = null; + } else { + this.consumedCapacity = new LinkedHashMap(consumedCapacity); + } + return (A) this; + } + + public boolean hasConsumedCapacity() { + return this.consumedCapacity != null; + } + public String getDevice() { return this.device; } @@ -108,8 +420,23 @@ public boolean hasRequest() { return this.request != null; } + public String getShareID() { + return this.shareID; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public boolean hasShareID() { + return this.shareID != null; + } + public A addToTolerations(int index,V1beta1DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -118,11 +445,13 @@ public A addToTolerations(int index,V1beta1DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.add(index, builder); } - return (A)this; + return (A) this; } public A setToTolerations(int index,V1beta1DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -131,41 +460,71 @@ public A setToTolerations(int index,V1beta1DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A addToTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { - if (this.tolerations == null) return (A)this; - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A removeFromTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + if (this.tolerations == null) { + return (A) this; + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - V1beta1DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTolerations() { @@ -217,7 +576,7 @@ public A withTolerations(List tolerations) { return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... tolerations) { + public A withTolerations(V1beta1DeviceToleration... tolerations) { if (this.tolerations != null) { this.tolerations.clear(); _visitables.remove("tolerations"); @@ -231,7 +590,7 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceTolera } public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + return this.tolerations != null && !(this.tolerations.isEmpty()); } public TolerationsNested addNewToleration() { @@ -247,57 +606,141 @@ public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceTolerati } public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } public TolerationsNested editLastToleration() { int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1DeviceTolerationFluent implements VisitableBuilder{ public V1beta1DeviceRequestBuilder() { this(new V1beta1DeviceRequest()); @@ -25,6 +26,7 @@ public V1beta1DeviceRequest build() { V1beta1DeviceRequest buildable = new V1beta1DeviceRequest(); buildable.setAdminAccess(fluent.getAdminAccess()); buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setFirstAvailable(fluent.buildFirstAvailable()); 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 10022c6748..5b74117f97 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -18,7 +21,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceRequestFluent> extends BaseFluent{ +public class V1beta1DeviceRequestFluent> extends BaseFluent{ public V1beta1DeviceRequestFluent() { } @@ -27,6 +30,7 @@ public V1beta1DeviceRequestFluent(V1beta1DeviceRequest instance) { } private Boolean adminAccess; private String allocationMode; + private V1beta1CapacityRequirementsBuilder capacity; private Long count; private String deviceClassName; private ArrayList firstAvailable; @@ -35,17 +39,18 @@ public V1beta1DeviceRequestFluent(V1beta1DeviceRequest instance) { private ArrayList tolerations; protected void copyInstance(V1beta1DeviceRequest instance) { - instance = (instance != null ? instance : new V1beta1DeviceRequest()); + instance = instance != null ? instance : new V1beta1DeviceRequest(); if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withAllocationMode(instance.getAllocationMode()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withFirstAvailable(instance.getFirstAvailable()); - this.withName(instance.getName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } } public Boolean getAdminAccess() { @@ -74,6 +79,46 @@ public boolean hasAllocationMode() { return this.allocationMode != null; } + public V1beta1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public A withCapacity(V1beta1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { + return new CapacityNested(item); + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta1CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1beta1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + public Long getCount() { return this.count; } @@ -101,7 +146,9 @@ public boolean hasDeviceClassName() { } public A addToFirstAvailable(int index,V1beta1DeviceSubRequest item) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); if (index < 0 || index >= firstAvailable.size()) { _visitables.get("firstAvailable").add(builder); @@ -110,11 +157,13 @@ public A addToFirstAvailable(int index,V1beta1DeviceSubRequest item) { _visitables.get("firstAvailable").add(builder); firstAvailable.add(index, builder); } - return (A)this; + return (A) this; } public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); if (index < 0 || index >= firstAvailable.size()) { _visitables.get("firstAvailable").add(builder); @@ -123,41 +172,71 @@ public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { _visitables.get("firstAvailable").add(builder); firstAvailable.set(index, builder); } - return (A)this; + return (A) this; } - public A addToFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest... items) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} - for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + public A addToFirstAvailable(V1beta1DeviceSubRequest... items) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + for (V1beta1DeviceSubRequest item : items) { + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); + } + return (A) this; } public A addAllToFirstAvailable(Collection items) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} - for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + for (V1beta1DeviceSubRequest item : items) { + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); + } + return (A) this; } - public A removeFromFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest... items) { - if (this.firstAvailable == null) return (A)this; - for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + public A removeFromFirstAvailable(V1beta1DeviceSubRequest... items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1beta1DeviceSubRequest item : items) { + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; } public A removeAllFromFirstAvailable(Collection items) { - if (this.firstAvailable == null) return (A)this; - for (V1beta1DeviceSubRequest item : items) {V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + if (this.firstAvailable == null) { + return (A) this; + } + for (V1beta1DeviceSubRequest item : items) { + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; } public A removeMatchingFromFirstAvailable(Predicate predicate) { - if (firstAvailable == null) return (A) this; - final Iterator each = firstAvailable.iterator(); - final List visitables = _visitables.get("firstAvailable"); + if (firstAvailable == null) { + return (A) this; + } + Iterator each = firstAvailable.iterator(); + List visitables = _visitables.get("firstAvailable"); while (each.hasNext()) { - V1beta1DeviceSubRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildFirstAvailable() { @@ -209,7 +288,7 @@ public A withFirstAvailable(List firstAvailable) { return (A) this; } - public A withFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest... firstAvailable) { + public A withFirstAvailable(V1beta1DeviceSubRequest... firstAvailable) { if (this.firstAvailable != null) { this.firstAvailable.clear(); _visitables.remove("firstAvailable"); @@ -223,7 +302,7 @@ public A withFirstAvailable(io.kubernetes.client.openapi.models.V1beta1DeviceSub } public boolean hasFirstAvailable() { - return this.firstAvailable != null && !this.firstAvailable.isEmpty(); + return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); } public FirstAvailableNested addNewFirstAvailable() { @@ -239,28 +318,39 @@ public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta1DeviceS } public FirstAvailableNested editFirstAvailable(int index) { - if (firstAvailable.size() <= index) throw new RuntimeException("Can't edit firstAvailable. Index exceeds size."); - return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + if (index <= firstAvailable.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); } public FirstAvailableNested editFirstFirstAvailable() { - if (firstAvailable.size() == 0) throw new RuntimeException("Can't edit first firstAvailable. The list is empty."); - return setNewFirstAvailableLike(0, buildFirstAvailable(0)); + if (firstAvailable.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(0, this.buildFirstAvailable(0)); } public FirstAvailableNested editLastFirstAvailable() { int index = firstAvailable.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last firstAvailable. The list is empty."); - return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); } public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -286,11 +378,13 @@ public A addToSelectors(int index,V1beta1DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.add(index, builder); } - return (A)this; + return (A) this; } public A setToSelectors(int index,V1beta1DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -299,41 +393,71 @@ public A setToSelectors(int index,V1beta1DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + public A addToSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + public A removeFromSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + if (this.selectors == null) { + return (A) this; + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); while (each.hasNext()) { - V1beta1DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSelectors() { @@ -385,7 +509,7 @@ public A withSelectors(List selectors) { return (A) this; } - public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... selectors) { + public A withSelectors(V1beta1DeviceSelector... selectors) { if (this.selectors != null) { this.selectors.clear(); _visitables.remove("selectors"); @@ -399,7 +523,7 @@ public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector } public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); + return this.selectors != null && !(this.selectors.isEmpty()); } public SelectorsNested addNewSelector() { @@ -415,32 +539,45 @@ public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector ite } public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); } public SelectorsNested editLastSelector() { int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -449,11 +586,13 @@ public A addToTolerations(int index,V1beta1DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.add(index, builder); } - return (A)this; + return (A) this; } public A setToTolerations(int index,V1beta1DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -462,41 +601,71 @@ public A setToTolerations(int index,V1beta1DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A addToTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { - if (this.tolerations == null) return (A)this; - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A removeFromTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + if (this.tolerations == null) { + return (A) this; + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - V1beta1DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTolerations() { @@ -548,7 +717,7 @@ public A withTolerations(List tolerations) { return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... tolerations) { + public A withTolerations(V1beta1DeviceToleration... tolerations) { if (this.tolerations != null) { this.tolerations.clear(); _visitables.remove("tolerations"); @@ -562,7 +731,7 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceTolera } public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + return this.tolerations != null && !(this.tolerations.isEmpty()); } public TolerationsNested addNewToleration() { @@ -578,67 +747,155 @@ public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceTolerati } public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } public TolerationsNested editLastToleration() { int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1CapacityRequirementsFluent> implements Nested{ + CapacityNested(V1beta1CapacityRequirements item) { + this.builder = new V1beta1CapacityRequirementsBuilder(this, item); + } + V1beta1CapacityRequirementsBuilder builder; + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } public class FirstAvailableNested extends V1beta1DeviceSubRequestFluent> implements Nested{ FirstAvailableNested(int index,V1beta1DeviceSubRequest item) { @@ -649,7 +906,7 @@ public class FirstAvailableNested extends V1beta1DeviceSubRequestFluent extends V1beta1DeviceSelectorFluent extends V1beta1DeviceTolerationFluent implements VisitableBuilder{ public V1beta1DeviceSelectorBuilder() { this(new V1beta1DeviceSelector()); 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 22ba0580be..7c419480f8 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceSelectorFluent> extends BaseFluent{ +public class V1beta1DeviceSelectorFluent> extends BaseFluent{ public V1beta1DeviceSelectorFluent() { } @@ -20,10 +23,10 @@ public V1beta1DeviceSelectorFluent(V1beta1DeviceSelector instance) { private V1beta1CELDeviceSelectorBuilder cel; protected void copyInstance(V1beta1DeviceSelector instance) { - instance = (instance != null ? instance : new V1beta1DeviceSelector()); + instance = instance != null ? instance : new V1beta1DeviceSelector(); if (instance != null) { - this.withCel(instance.getCel()); - } + this.withCel(instance.getCel()); + } } public V1beta1CELDeviceSelector buildCel() { @@ -55,34 +58,45 @@ public CelNested withNewCelLike(V1beta1CELDeviceSelector item) { } public CelNested editCel() { - return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(null)); + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); } public CelNested editOrNewCel() { - return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(new V1beta1CELDeviceSelectorBuilder().build())); + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(new V1beta1CELDeviceSelectorBuilder().build())); } public CelNested editOrNewCelLike(V1beta1CELDeviceSelector item) { - return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(item)); + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceSelectorFluent that = (V1beta1DeviceSelectorFluent) o; - if (!java.util.Objects.equals(cel, that.cel)) return false; + if (!(Objects.equals(cel, that.cel))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(cel, super.hashCode()); + return Objects.hash(cel); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (cel != null) { sb.append("cel:"); sb.append(cel); } + if (!(cel == null)) { + sb.append("cel:"); + sb.append(cel); + } sb.append("}"); return sb.toString(); } 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 800e992109..2afa3df1a9 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceSubRequestBuilder extends V1beta1DeviceSubRequestFluent implements VisitableBuilder{ public V1beta1DeviceSubRequestBuilder() { this(new V1beta1DeviceSubRequest()); @@ -24,6 +25,7 @@ public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequest instance) { public V1beta1DeviceSubRequest build() { V1beta1DeviceSubRequest buildable = new V1beta1DeviceSubRequest(); buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setName(fluent.getName()); 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 041eb39e44..71693093bc 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 @@ -1,23 +1,26 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceSubRequestFluent> extends BaseFluent{ +public class V1beta1DeviceSubRequestFluent> extends BaseFluent{ public V1beta1DeviceSubRequestFluent() { } @@ -25,6 +28,7 @@ public V1beta1DeviceSubRequestFluent(V1beta1DeviceSubRequest instance) { this.copyInstance(instance); } private String allocationMode; + private V1beta1CapacityRequirementsBuilder capacity; private Long count; private String deviceClassName; private String name; @@ -32,15 +36,16 @@ public V1beta1DeviceSubRequestFluent(V1beta1DeviceSubRequest instance) { private ArrayList tolerations; protected void copyInstance(V1beta1DeviceSubRequest instance) { - instance = (instance != null ? instance : new V1beta1DeviceSubRequest()); + instance = instance != null ? instance : new V1beta1DeviceSubRequest(); if (instance != null) { - this.withAllocationMode(instance.getAllocationMode()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withName(instance.getName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } } public String getAllocationMode() { @@ -56,6 +61,46 @@ public boolean hasAllocationMode() { return this.allocationMode != null; } + public V1beta1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public A withCapacity(V1beta1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { + return new CapacityNested(item); + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta1CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1beta1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + public Long getCount() { return this.count; } @@ -96,7 +141,9 @@ public boolean hasName() { } public A addToSelectors(int index,V1beta1DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -105,11 +152,13 @@ public A addToSelectors(int index,V1beta1DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.add(index, builder); } - return (A)this; + return (A) this; } public A setToSelectors(int index,V1beta1DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -118,41 +167,71 @@ public A setToSelectors(int index,V1beta1DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + public A addToSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + public A removeFromSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1beta1DeviceSelector item : items) {V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + if (this.selectors == null) { + return (A) this; + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); while (each.hasNext()) { - V1beta1DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSelectors() { @@ -204,7 +283,7 @@ public A withSelectors(List selectors) { return (A) this; } - public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector... selectors) { + public A withSelectors(V1beta1DeviceSelector... selectors) { if (this.selectors != null) { this.selectors.clear(); _visitables.remove("selectors"); @@ -218,7 +297,7 @@ public A withSelectors(io.kubernetes.client.openapi.models.V1beta1DeviceSelector } public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); + return this.selectors != null && !(this.selectors.isEmpty()); } public SelectorsNested addNewSelector() { @@ -234,32 +313,45 @@ public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector ite } public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); } public SelectorsNested editLastSelector() { int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -268,11 +360,13 @@ public A addToTolerations(int index,V1beta1DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.add(index, builder); } - return (A)this; + return (A) this; } public A setToTolerations(int index,V1beta1DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -281,41 +375,71 @@ public A setToTolerations(int index,V1beta1DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A addToTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... items) { - if (this.tolerations == null) return (A)this; - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A removeFromTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1beta1DeviceToleration item : items) {V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + if (this.tolerations == null) { + return (A) this; + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - V1beta1DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTolerations() { @@ -367,7 +491,7 @@ public A withTolerations(List tolerations) { return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceToleration... tolerations) { + public A withTolerations(V1beta1DeviceToleration... tolerations) { if (this.tolerations != null) { this.tolerations.clear(); _visitables.remove("tolerations"); @@ -381,7 +505,7 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1beta1DeviceTolera } public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + return this.tolerations != null && !(this.tolerations.isEmpty()); } public TolerationsNested addNewToleration() { @@ -397,59 +521,135 @@ public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceTolerati } public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } public TolerationsNested editLastToleration() { int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1CapacityRequirementsFluent> implements Nested{ + CapacityNested(V1beta1CapacityRequirements item) { + this.builder = new V1beta1CapacityRequirementsBuilder(this, item); + } + V1beta1CapacityRequirementsBuilder builder; + + public N and() { + return (N) V1beta1DeviceSubRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ SelectorsNested(int index,V1beta1DeviceSelector item) { @@ -460,7 +660,7 @@ public class SelectorsNested extends V1beta1DeviceSelectorFluent extends V1beta1DeviceTolerationFluent implements VisitableBuilder{ public V1beta1DeviceTaintBuilder() { this(new V1beta1DeviceTaint()); 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 011d224a15..7f89f83148 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceTaintFluent> extends BaseFluent{ +public class V1beta1DeviceTaintFluent> extends BaseFluent{ public V1beta1DeviceTaintFluent() { } @@ -23,13 +25,13 @@ public V1beta1DeviceTaintFluent(V1beta1DeviceTaint instance) { private String value; protected void copyInstance(V1beta1DeviceTaint instance) { - instance = (instance != null ? instance : new V1beta1DeviceTaint()); + instance = instance != null ? instance : new V1beta1DeviceTaint(); if (instance != null) { - this.withEffect(instance.getEffect()); - this.withKey(instance.getKey()); - this.withTimeAdded(instance.getTimeAdded()); - this.withValue(instance.getValue()); - } + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } } public String getEffect() { @@ -85,28 +87,57 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceTaintFluent that = (V1beta1DeviceTaintFluent) o; - if (!java.util.Objects.equals(effect, that.effect)) return false; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + return Objects.hash(effect, key, timeAdded, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 853c7e5faa..39fed47c27 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1DeviceTolerationBuilder extends V1beta1DeviceTolerationFluent implements VisitableBuilder{ public V1beta1DeviceTolerationBuilder() { this(new V1beta1DeviceToleration()); 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 5406ea353d..36392b6177 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1DeviceTolerationFluent> extends BaseFluent{ +public class V1beta1DeviceTolerationFluent> extends BaseFluent{ public V1beta1DeviceTolerationFluent() { } @@ -24,14 +26,14 @@ public V1beta1DeviceTolerationFluent(V1beta1DeviceToleration instance) { private String value; protected void copyInstance(V1beta1DeviceToleration instance) { - instance = (instance != null ? instance : new V1beta1DeviceToleration()); + instance = instance != null ? instance : new V1beta1DeviceToleration(); if (instance != null) { - this.withEffect(instance.getEffect()); - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withTolerationSeconds(instance.getTolerationSeconds()); - this.withValue(instance.getValue()); - } + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } } public String getEffect() { @@ -100,30 +102,65 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1DeviceTolerationFluent that = (V1beta1DeviceTolerationFluent) o; - if (!java.util.Objects.equals(effect, that.effect)) return false; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(tolerationSeconds, that.tolerationSeconds))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + return Objects.hash(effect, key, operator, tolerationSeconds, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(tolerationSeconds == null)) { + sb.append("tolerationSeconds:"); + sb.append(tolerationSeconds); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningBuilder.java deleted file mode 100644 index 19778b58eb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ExpressionWarningBuilder extends V1beta1ExpressionWarningFluent implements VisitableBuilder{ - public V1beta1ExpressionWarningBuilder() { - this(new V1beta1ExpressionWarning()); - } - - public V1beta1ExpressionWarningBuilder(V1beta1ExpressionWarningFluent fluent) { - this(fluent, new V1beta1ExpressionWarning()); - } - - public V1beta1ExpressionWarningBuilder(V1beta1ExpressionWarningFluent fluent,V1beta1ExpressionWarning instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ExpressionWarningBuilder(V1beta1ExpressionWarning instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ExpressionWarningFluent fluent; - - public V1beta1ExpressionWarning build() { - V1beta1ExpressionWarning buildable = new V1beta1ExpressionWarning(); - buildable.setFieldRef(fluent.getFieldRef()); - buildable.setWarning(fluent.getWarning()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningFluent.java deleted file mode 100644 index 8343d88e29..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningFluent.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1ExpressionWarningFluent> extends BaseFluent{ - public V1beta1ExpressionWarningFluent() { - } - - public V1beta1ExpressionWarningFluent(V1beta1ExpressionWarning instance) { - this.copyInstance(instance); - } - private String fieldRef; - private String warning; - - protected void copyInstance(V1beta1ExpressionWarning instance) { - instance = (instance != null ? instance : new V1beta1ExpressionWarning()); - if (instance != null) { - this.withFieldRef(instance.getFieldRef()); - this.withWarning(instance.getWarning()); - } - } - - public String getFieldRef() { - return this.fieldRef; - } - - public A withFieldRef(String fieldRef) { - this.fieldRef = fieldRef; - return (A) this; - } - - public boolean hasFieldRef() { - return this.fieldRef != null; - } - - public String getWarning() { - return this.warning; - } - - public A withWarning(String warning) { - this.warning = warning; - return (A) this; - } - - public boolean hasWarning() { - return this.warning != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1ExpressionWarningFluent that = (V1beta1ExpressionWarningFluent) o; - if (!java.util.Objects.equals(fieldRef, that.fieldRef)) return false; - if (!java.util.Objects.equals(warning, that.warning)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(fieldRef, warning, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } - if (warning != null) { sb.append("warning:"); sb.append(warning); } - sb.append("}"); - return sb.toString(); - } - - -} \ 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/V1beta1IPAddressBuilder.java index 1c01b4bb57..49052ba5ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1IPAddressBuilder extends V1beta1IPAddressFluent implements VisitableBuilder{ public V1beta1IPAddressBuilder() { this(new V1beta1IPAddress()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java index 7af7890fcd..a443ed4dc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1IPAddressFluent> extends BaseFluent{ +public class V1beta1IPAddressFluent> extends BaseFluent{ public V1beta1IPAddressFluent() { } @@ -23,13 +26,13 @@ public V1beta1IPAddressFluent(V1beta1IPAddress instance) { private V1beta1IPAddressSpecBuilder spec; protected void copyInstance(V1beta1IPAddress instance) { - instance = (instance != null ? instance : new V1beta1IPAddress()); + instance = instance != null ? instance : new V1beta1IPAddress(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta1IPAddressSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1beta1IPAddressSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1IPAddressSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1IPAddressSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta1IPAddressSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1IPAddressFluent that = (V1beta1IPAddressFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java index 5ab5ccd262..967cfbba21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1IPAddressListBuilder extends V1beta1IPAddressListFluent implements VisitableBuilder{ public V1beta1IPAddressListBuilder() { this(new V1beta1IPAddressList()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java index e8b47feea4..30ebb09fc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1IPAddressListFluent> extends BaseFluent{ +public class V1beta1IPAddressListFluent> extends BaseFluent{ public V1beta1IPAddressListFluent() { } @@ -29,13 +32,13 @@ public V1beta1IPAddressListFluent(V1beta1IPAddressList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1beta1IPAddressList instance) { - instance = (instance != null ? instance : new V1beta1IPAddressList()); + instance = instance != null ? instance : new V1beta1IPAddressList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta1IPAddress item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta1IPAddress item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta1IPAddress item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta1IPAddress item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1IPAddress... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1IPAddress item : items) {V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta1IPAddress... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1IPAddress item : items) { + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1IPAddress item : items) {V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1IPAddress item : items) { + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1IPAddress... items) { - if (this.items == null) return (A)this; - for (V1beta1IPAddress item : items) {V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta1IPAddress... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1IPAddress item : items) { + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1IPAddress item : items) {V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta1IPAddress item : items) { + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta1IPAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1IPAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1IPAddress... items) { + public A withItems(V1beta1IPAddress... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1IPAddress... items } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta1IPAddress item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1IPAddressListFluent that = (V1beta1IPAddressListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta1IPAddressFluent> imple int index; public N and() { - return (N) V1beta1IPAddressListFluent.this.setToItems(index,builder.build()); + return (N) V1beta1IPAddressListFluent.this.setToItems(index, builder.build()); } public N endItem() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java index 1a9d61b008..129cd4bc53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1IPAddressSpecBuilder extends V1beta1IPAddressSpecFluent implements VisitableBuilder{ public V1beta1IPAddressSpecBuilder() { this(new V1beta1IPAddressSpec()); 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 index 5791e99c70..fc51413789 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1IPAddressSpecFluent> extends BaseFluent{ +public class V1beta1IPAddressSpecFluent> extends BaseFluent{ public V1beta1IPAddressSpecFluent() { } @@ -20,10 +23,10 @@ public V1beta1IPAddressSpecFluent(V1beta1IPAddressSpec instance) { private V1beta1ParentReferenceBuilder parentRef; protected void copyInstance(V1beta1IPAddressSpec instance) { - instance = (instance != null ? instance : new V1beta1IPAddressSpec()); + instance = instance != null ? instance : new V1beta1IPAddressSpec(); if (instance != null) { - this.withParentRef(instance.getParentRef()); - } + this.withParentRef(instance.getParentRef()); + } } public V1beta1ParentReference buildParentRef() { @@ -55,34 +58,45 @@ public ParentRefNested withNewParentRefLike(V1beta1ParentReference item) { } public ParentRefNested editParentRef() { - return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(null)); + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(null)); } public ParentRefNested editOrNewParentRef() { - return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(new V1beta1ParentReferenceBuilder().build())); + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(new V1beta1ParentReferenceBuilder().build())); } public ParentRefNested editOrNewParentRefLike(V1beta1ParentReference item) { - return withNewParentRefLike(java.util.Optional.ofNullable(buildParentRef()).orElse(item)); + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + 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 (!java.util.Objects.equals(parentRef, that.parentRef)) return false; + if (!(Objects.equals(parentRef, that.parentRef))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(parentRef, super.hashCode()); + return Objects.hash(parentRef); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (parentRef != null) { sb.append("parentRef:"); sb.append(parentRef); } + if (!(parentRef == null)) { + sb.append("parentRef:"); + sb.append(parentRef); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..01e9c3159b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1JSONPatchBuilder extends V1beta1JSONPatchFluent implements VisitableBuilder{ + public V1beta1JSONPatchBuilder() { + this(new V1beta1JSONPatch()); + } + + public V1beta1JSONPatchBuilder(V1beta1JSONPatchFluent fluent) { + this(fluent, new V1beta1JSONPatch()); + } + + public V1beta1JSONPatchBuilder(V1beta1JSONPatchFluent fluent,V1beta1JSONPatch instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1JSONPatchBuilder(V1beta1JSONPatch instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1JSONPatchFluent fluent; + + public V1beta1JSONPatch build() { + V1beta1JSONPatch buildable = new V1beta1JSONPatch(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..5c9c593f29 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java @@ -0,0 +1,76 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1JSONPatchFluent> extends BaseFluent{ + public V1beta1JSONPatchFluent() { + } + + public V1beta1JSONPatchFluent(V1beta1JSONPatch instance) { + this.copyInstance(instance); + } + private String expression; + + protected void copyInstance(V1beta1JSONPatch instance) { + instance = instance != null ? instance : new V1beta1JSONPatch(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public String getExpression() { + return this.expression; + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1JSONPatchFluent that = (V1beta1JSONPatchFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java index 5cd16d2995..95e475566c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1LeaseCandidateBuilder extends V1beta1LeaseCandidateFluent implements VisitableBuilder{ public V1beta1LeaseCandidateBuilder() { this(new V1beta1LeaseCandidate()); 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 876485d65e..e9538927fa 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1LeaseCandidateFluent> extends BaseFluent{ +public class V1beta1LeaseCandidateFluent> extends BaseFluent{ public V1beta1LeaseCandidateFluent() { } @@ -23,13 +26,13 @@ public V1beta1LeaseCandidateFluent(V1beta1LeaseCandidate instance) { private V1beta1LeaseCandidateSpecBuilder spec; protected void copyInstance(V1beta1LeaseCandidate instance) { - instance = (instance != null ? instance : new V1beta1LeaseCandidate()); + instance = instance != null ? instance : new V1beta1LeaseCandidate(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta1LeaseCandidateSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1beta1LeaseCandidateSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1LeaseCandidateSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1LeaseCandidateSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta1LeaseCandidateSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1LeaseCandidateFluent that = (V1beta1LeaseCandidateFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 6bc0c2567d..bde65b85fe 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1LeaseCandidateListBuilder extends V1beta1LeaseCandidateListFluent implements VisitableBuilder{ public V1beta1LeaseCandidateListBuilder() { this(new V1beta1LeaseCandidateList()); 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 a7104ea11e..1350422cd6 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1LeaseCandidateListFluent> extends BaseFluent{ +public class V1beta1LeaseCandidateListFluent> extends BaseFluent{ public V1beta1LeaseCandidateListFluent() { } @@ -29,13 +32,13 @@ public V1beta1LeaseCandidateListFluent(V1beta1LeaseCandidateList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1beta1LeaseCandidateList instance) { - instance = (instance != null ? instance : new V1beta1LeaseCandidateList()); + instance = instance != null ? instance : new V1beta1LeaseCandidateList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta1LeaseCandidate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta1LeaseCandidate item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta1LeaseCandidate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta1LeaseCandidate item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta1LeaseCandidate... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1LeaseCandidate item : items) { + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1LeaseCandidate item : items) { + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... items) { - if (this.items == null) return (A)this; - for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta1LeaseCandidate... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1LeaseCandidate item : items) { + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1LeaseCandidate item : items) {V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta1LeaseCandidate item : items) { + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta1LeaseCandidateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1LeaseCandidateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... items) { + public A withItems(V1beta1LeaseCandidate... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1LeaseCandidate... } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta1LeaseCandidate item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1LeaseCandidateListFluent that = (V1beta1LeaseCandidateListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta1LeaseCandidateFluent> int index; public N and() { - return (N) V1beta1LeaseCandidateListFluent.this.setToItems(index,builder.build()); + return (N) V1beta1LeaseCandidateListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 f236fedf26..42b316b171 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1LeaseCandidateSpecBuilder extends V1beta1LeaseCandidateSpecFluent implements VisitableBuilder{ public V1beta1LeaseCandidateSpecBuilder() { this(new V1beta1LeaseCandidateSpec()); 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 1c34d7a311..ef706f507a 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1LeaseCandidateSpecFluent> extends BaseFluent{ +public class V1beta1LeaseCandidateSpecFluent> extends BaseFluent{ public V1beta1LeaseCandidateSpecFluent() { } @@ -25,15 +27,15 @@ public V1beta1LeaseCandidateSpecFluent(V1beta1LeaseCandidateSpec instance) { private String strategy; protected void copyInstance(V1beta1LeaseCandidateSpec instance) { - instance = (instance != null ? instance : new V1beta1LeaseCandidateSpec()); + instance = instance != null ? instance : new V1beta1LeaseCandidateSpec(); if (instance != null) { - this.withBinaryVersion(instance.getBinaryVersion()); - this.withEmulationVersion(instance.getEmulationVersion()); - this.withLeaseName(instance.getLeaseName()); - this.withPingTime(instance.getPingTime()); - this.withRenewTime(instance.getRenewTime()); - this.withStrategy(instance.getStrategy()); - } + this.withBinaryVersion(instance.getBinaryVersion()); + this.withEmulationVersion(instance.getEmulationVersion()); + this.withLeaseName(instance.getLeaseName()); + this.withPingTime(instance.getPingTime()); + this.withRenewTime(instance.getRenewTime()); + this.withStrategy(instance.getStrategy()); + } } public String getBinaryVersion() { @@ -115,32 +117,73 @@ public boolean hasStrategy() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1LeaseCandidateSpecFluent that = (V1beta1LeaseCandidateSpecFluent) o; - if (!java.util.Objects.equals(binaryVersion, that.binaryVersion)) return false; - if (!java.util.Objects.equals(emulationVersion, that.emulationVersion)) return false; - if (!java.util.Objects.equals(leaseName, that.leaseName)) return false; - if (!java.util.Objects.equals(pingTime, that.pingTime)) return false; - if (!java.util.Objects.equals(renewTime, that.renewTime)) return false; - if (!java.util.Objects.equals(strategy, that.strategy)) return false; + if (!(Objects.equals(binaryVersion, that.binaryVersion))) { + return false; + } + if (!(Objects.equals(emulationVersion, that.emulationVersion))) { + return false; + } + if (!(Objects.equals(leaseName, that.leaseName))) { + return false; + } + if (!(Objects.equals(pingTime, that.pingTime))) { + return false; + } + if (!(Objects.equals(renewTime, that.renewTime))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy, super.hashCode()); + return Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (binaryVersion != null) { sb.append("binaryVersion:"); sb.append(binaryVersion + ","); } - if (emulationVersion != null) { sb.append("emulationVersion:"); sb.append(emulationVersion + ","); } - if (leaseName != null) { sb.append("leaseName:"); sb.append(leaseName + ","); } - if (pingTime != null) { sb.append("pingTime:"); sb.append(pingTime + ","); } - if (renewTime != null) { sb.append("renewTime:"); sb.append(renewTime + ","); } - if (strategy != null) { sb.append("strategy:"); sb.append(strategy); } + if (!(binaryVersion == null)) { + sb.append("binaryVersion:"); + sb.append(binaryVersion); + sb.append(","); + } + if (!(emulationVersion == null)) { + sb.append("emulationVersion:"); + sb.append(emulationVersion); + sb.append(","); + } + if (!(leaseName == null)) { + sb.append("leaseName:"); + sb.append(leaseName); + sb.append(","); + } + if (!(pingTime == null)) { + sb.append("pingTime:"); + sb.append(pingTime); + sb.append(","); + } + if (!(renewTime == null)) { + sb.append("renewTime:"); + sb.append(renewTime); + sb.append(","); + } + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + } sb.append("}"); return sb.toString(); } 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 60d6b67652..7c33d10b33 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1MatchConditionBuilder extends V1beta1MatchConditionFluent implements VisitableBuilder{ public V1beta1MatchConditionBuilder() { this(new V1beta1MatchCondition()); 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 314a60cb9c..f6de84ec0e 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1MatchConditionFluent> extends BaseFluent{ +public class V1beta1MatchConditionFluent> extends BaseFluent{ public V1beta1MatchConditionFluent() { } @@ -20,11 +22,11 @@ public V1beta1MatchConditionFluent(V1beta1MatchCondition instance) { private String name; protected void copyInstance(V1beta1MatchCondition instance) { - instance = (instance != null ? instance : new V1beta1MatchCondition()); + instance = instance != null ? instance : new V1beta1MatchCondition(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } } public String getExpression() { @@ -54,24 +56,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1MatchConditionFluent that = (V1beta1MatchConditionFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, name, super.hashCode()); + return Objects.hash(expression, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + 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(); } 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 15a160c6b2..2a0b95afa8 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1MatchResourcesBuilder extends V1beta1MatchResourcesFluent implements VisitableBuilder{ public V1beta1MatchResourcesBuilder() { this(new V1beta1MatchResources()); 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 3e684ae76b..6739f19b1f 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1MatchResourcesFluent> extends BaseFluent{ +public class V1beta1MatchResourcesFluent> extends BaseFluent{ public V1beta1MatchResourcesFluent() { } @@ -30,18 +33,20 @@ public V1beta1MatchResourcesFluent(V1beta1MatchResources instance) { private ArrayList resourceRules; protected void copyInstance(V1beta1MatchResources instance) { - instance = (instance != null ? instance : new V1beta1MatchResources()); + instance = instance != null ? instance : new V1beta1MatchResources(); if (instance != null) { - this.withExcludeResourceRules(instance.getExcludeResourceRules()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withResourceRules(instance.getResourceRules()); - } + this.withExcludeResourceRules(instance.getExcludeResourceRules()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withResourceRules(instance.getResourceRules()); + } } public A addToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); @@ -50,11 +55,13 @@ public A addToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); @@ -63,41 +70,71 @@ public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item _visitables.get("excludeResourceRules").add(builder); excludeResourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToExcludeResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + public A addToExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; } public A addAllToExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; } - public A removeFromExcludeResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + public A removeFromExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } public A removeAllFromExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromExcludeResourceRules(Predicate predicate) { - if (excludeResourceRules == null) return (A) this; - final Iterator each = excludeResourceRules.iterator(); - final List visitables = _visitables.get("excludeResourceRules"); + if (excludeResourceRules == null) { + return (A) this; + } + Iterator each = excludeResourceRules.iterator(); + List visitables = _visitables.get("excludeResourceRules"); while (each.hasNext()) { - V1beta1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildExcludeResourceRules() { @@ -149,7 +186,7 @@ public A withExcludeResourceRules(List excludeRe return (A) this; } - public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... excludeResourceRules) { + public A withExcludeResourceRules(V1beta1NamedRuleWithOperations... excludeResourceRules) { if (this.excludeResourceRules != null) { this.excludeResourceRules.clear(); _visitables.remove("excludeResourceRules"); @@ -163,7 +200,7 @@ public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1beta1Nam } public boolean hasExcludeResourceRules() { - return this.excludeResourceRules != null && !this.excludeResourceRules.isEmpty(); + return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); } public ExcludeResourceRulesNested addNewExcludeResourceRule() { @@ -179,28 +216,39 @@ public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1b } public ExcludeResourceRulesNested editExcludeResourceRule(int index) { - if (excludeResourceRules.size() <= index) throw new RuntimeException("Can't edit excludeResourceRules. Index exceeds size."); - return setNewExcludeResourceRuleLike(index, buildExcludeResourceRule(index)); + if (index <= excludeResourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } public ExcludeResourceRulesNested editFirstExcludeResourceRule() { - if (excludeResourceRules.size() == 0) throw new RuntimeException("Can't edit first excludeResourceRules. The list is empty."); - return setNewExcludeResourceRuleLike(0, buildExcludeResourceRule(0)); + if (excludeResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(0, this.buildExcludeResourceRule(0)); } public ExcludeResourceRulesNested editLastExcludeResourceRule() { int index = excludeResourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last excludeResourceRules. The list is empty."); - return setNewExcludeResourceRuleLike(index, buildExcludeResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i withNewNamespaceSelectorLike(V1LabelSelector i } public NamespaceSelectorNested editNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(null)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } public V1LabelSelector buildObjectSelector() { @@ -285,19 +333,21 @@ public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { } public ObjectSelectorNested editObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(null)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } public ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(item)); + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } public A addToResourceRules(int index,V1beta1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -306,11 +356,13 @@ public A addToResourceRules(int index,V1beta1NamedRuleWithOperations item) { _visitables.get("resourceRules").add(builder); resourceRules.add(index, builder); } - return (A)this; + return (A) this; } public A setToResourceRules(int index,V1beta1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); if (index < 0 || index >= resourceRules.size()) { _visitables.get("resourceRules").add(builder); @@ -319,41 +371,71 @@ public A setToResourceRules(int index,V1beta1NamedRuleWithOperations item) { _visitables.get("resourceRules").add(builder); resourceRules.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public A addToResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... items) { - if (this.resourceRules == null) return (A)this; - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public A removeFromResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + if (this.resourceRules == null) { + return (A) this; + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } public A removeMatchingFromResourceRules(Predicate predicate) { - if (resourceRules == null) return (A) this; - final Iterator each = resourceRules.iterator(); - final List visitables = _visitables.get("resourceRules"); + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); while (each.hasNext()) { - V1beta1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResourceRules() { @@ -405,7 +487,7 @@ public A withResourceRules(List resourceRules) { return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... resourceRules) { + public A withResourceRules(V1beta1NamedRuleWithOperations... resourceRules) { if (this.resourceRules != null) { this.resourceRules.clear(); _visitables.remove("resourceRules"); @@ -419,7 +501,7 @@ public A withResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleW } public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } public ResourceRulesNested addNewResourceRule() { @@ -435,55 +517,101 @@ public ResourceRulesNested setNewResourceRuleLike(int index,V1beta1NamedRuleW } public ResourceRulesNested editResourceRule(int index) { - if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index <= resourceRules.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); - return setNewResourceRuleLike(0, buildResourceRule(0)); + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); } public ResourceRulesNested editLastResourceRule() { int index = resourceRules.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceRules. The list is empty."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1NamedRuleWithOperation int index; public N and() { - return (N) V1beta1MatchResourcesFluent.this.setToExcludeResourceRules(index,builder.build()); + return (N) V1beta1MatchResourcesFluent.this.setToExcludeResourceRules(index, builder.build()); } public N endExcludeResourceRule() { @@ -546,7 +674,7 @@ public class ResourceRulesNested extends V1beta1NamedRuleWithOperationsFluent int index; public N and() { - return (N) V1beta1MatchResourcesFluent.this.setToResourceRules(index,builder.build()); + return (N) V1beta1MatchResourcesFluent.this.setToResourceRules(index, builder.build()); } public N endResourceRule() { 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 new file mode 100644 index 0000000000..a600b4c42a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyBindingBuilder extends V1beta1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + public V1beta1MutatingAdmissionPolicyBindingBuilder() { + this(new V1beta1MutatingAdmissionPolicyBinding()); + } + + public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPolicyBindingFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicyBinding()); + } + + public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPolicyBindingFluent fluent,V1beta1MutatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPolicyBinding instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1MutatingAdmissionPolicyBindingFluent fluent; + + public V1beta1MutatingAdmissionPolicyBinding build() { + V1beta1MutatingAdmissionPolicyBinding buildable = new V1beta1MutatingAdmissionPolicyBinding(); + 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/V1beta1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java new file mode 100644 index 0000000000..b5d5ad3847 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java @@ -0,0 +1,232 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ + public V1beta1MutatingAdmissionPolicyBindingFluent() { + } + + public V1beta1MutatingAdmissionPolicyBindingFluent(V1beta1MutatingAdmissionPolicyBinding instance) { + this.copyInstance(instance); + } + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1MutatingAdmissionPolicyBindingSpecBuilder spec; + + protected void copyInstance(V1beta1MutatingAdmissionPolicyBinding instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBinding(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public MetadataNested editMetadata() { + return 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 V1beta1MutatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1beta1MutatingAdmissionPolicyBindingSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1MutatingAdmissionPolicyBindingSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1MutatingAdmissionPolicyBindingSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1MutatingAdmissionPolicyBindingSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).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; + } + V1beta1MutatingAdmissionPolicyBindingFluent that = (V1beta1MutatingAdmissionPolicyBindingFluent) 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; + } + return true; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + 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("}"); + return sb.toString(); + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + + } + public class SpecNested extends V1beta1MutatingAdmissionPolicyBindingSpecFluent> implements Nested{ + SpecNested(V1beta1MutatingAdmissionPolicyBindingSpec item) { + this.builder = new V1beta1MutatingAdmissionPolicyBindingSpecBuilder(this, item); + } + V1beta1MutatingAdmissionPolicyBindingSpecBuilder builder; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java new file mode 100644 index 0000000000..7dbdcbbaa6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyBindingListBuilder extends V1beta1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + public V1beta1MutatingAdmissionPolicyBindingListBuilder() { + this(new V1beta1MutatingAdmissionPolicyBindingList()); + } + + public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmissionPolicyBindingListFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicyBindingList()); + } + + public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmissionPolicyBindingListFluent fluent,V1beta1MutatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmissionPolicyBindingList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1MutatingAdmissionPolicyBindingListFluent fluent; + + public V1beta1MutatingAdmissionPolicyBindingList build() { + V1beta1MutatingAdmissionPolicyBindingList buildable = new V1beta1MutatingAdmissionPolicyBindingList(); + 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/V1beta1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java new file mode 100644 index 0000000000..bef30c7c3e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java @@ -0,0 +1,408 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ + public V1beta1MutatingAdmissionPolicyBindingListFluent() { + } + + public V1beta1MutatingAdmissionPolicyBindingListFluent(V1beta1MutatingAdmissionPolicyBindingList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1MutatingAdmissionPolicyBindingList instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A) this; + } + + public A setToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public A addToItems(V1beta1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(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 = _visitables.get("items"); + while (each.hasNext()) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1MutatingAdmissionPolicyBinding buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1MutatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1MutatingAdmissionPolicyBinding buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1MutatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1MutatingAdmissionPolicyBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + 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 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 String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + 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; + } + V1beta1MutatingAdmissionPolicyBindingListFluent that = (V1beta1MutatingAdmissionPolicyBindingListFluent) 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 int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 class ItemsNested extends V1beta1MutatingAdmissionPolicyBindingFluent> implements Nested{ + ItemsNested(int index,V1beta1MutatingAdmissionPolicyBinding item) { + this.index = index; + this.builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(this, item); + } + V1beta1MutatingAdmissionPolicyBindingBuilder builder; + int index; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingListFluent.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/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java new file mode 100644 index 0000000000..fa65e9fe6c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyBindingSpecBuilder extends V1beta1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder() { + this(new V1beta1MutatingAdmissionPolicyBindingSpec()); + } + + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicyBindingSpec()); + } + + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent,V1beta1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent; + + public V1beta1MutatingAdmissionPolicyBindingSpec build() { + V1beta1MutatingAdmissionPolicyBindingSpec buildable = new V1beta1MutatingAdmissionPolicyBindingSpec(); + buildable.setMatchResources(fluent.buildMatchResources()); + buildable.setParamRef(fluent.buildParamRef()); + buildable.setPolicyName(fluent.getPolicyName()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..613e0d2139 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java @@ -0,0 +1,209 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + public V1beta1MutatingAdmissionPolicyBindingSpecFluent() { + } + + public V1beta1MutatingAdmissionPolicyBindingSpecFluent(V1beta1MutatingAdmissionPolicyBindingSpec instance) { + this.copyInstance(instance); + } + private V1beta1MatchResourcesBuilder matchResources; + private V1beta1ParamRefBuilder paramRef; + private String policyName; + + protected void copyInstance(V1beta1MutatingAdmissionPolicyBindingSpec instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBindingSpec(); + if (instance != null) { + this.withMatchResources(instance.getMatchResources()); + this.withParamRef(instance.getParamRef()); + this.withPolicyName(instance.getPolicyName()); + } + } + + public V1beta1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; + } + + public A withMatchResources(V1beta1MatchResources matchResources) { + this._visitables.remove("matchResources"); + if (matchResources != null) { + this.matchResources = new V1beta1MatchResourcesBuilder(matchResources); + this._visitables.get("matchResources").add(this.matchResources); + } else { + this.matchResources = null; + this._visitables.get("matchResources").remove(this.matchResources); + } + return (A) this; + } + + public boolean hasMatchResources() { + return this.matchResources != null; + } + + public MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); + } + + public MatchResourcesNested withNewMatchResourcesLike(V1beta1MatchResources item) { + return new MatchResourcesNested(item); + } + + public MatchResourcesNested editMatchResources() { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(null)); + } + + public MatchResourcesNested editOrNewMatchResources() { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(new V1beta1MatchResourcesBuilder().build())); + } + + public MatchResourcesNested editOrNewMatchResourcesLike(V1beta1MatchResources item) { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); + } + + public V1beta1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; + } + + public A withParamRef(V1beta1ParamRef paramRef) { + this._visitables.remove("paramRef"); + if (paramRef != null) { + this.paramRef = new V1beta1ParamRefBuilder(paramRef); + this._visitables.get("paramRef").add(this.paramRef); + } else { + this.paramRef = null; + this._visitables.get("paramRef").remove(this.paramRef); + } + return (A) this; + } + + public boolean hasParamRef() { + return this.paramRef != null; + } + + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); + } + + public ParamRefNested withNewParamRefLike(V1beta1ParamRef item) { + return new ParamRefNested(item); + } + + public ParamRefNested editParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); + } + + public ParamRefNested editOrNewParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1beta1ParamRefBuilder().build())); + } + + public ParamRefNested editOrNewParamRefLike(V1beta1ParamRef item) { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); + } + + public String getPolicyName() { + return this.policyName; + } + + public A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; + } + + public boolean hasPolicyName() { + return this.policyName != 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; + } + V1beta1MutatingAdmissionPolicyBindingSpecFluent that = (V1beta1MutatingAdmissionPolicyBindingSpecFluent) o; + if (!(Objects.equals(matchResources, that.matchResources))) { + return false; + } + if (!(Objects.equals(paramRef, that.paramRef))) { + return false; + } + if (!(Objects.equals(policyName, that.policyName))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchResources == null)) { + sb.append("matchResources:"); + sb.append(matchResources); + sb.append(","); + } + if (!(paramRef == null)) { + sb.append("paramRef:"); + sb.append(paramRef); + sb.append(","); + } + if (!(policyName == null)) { + sb.append("policyName:"); + sb.append(policyName); + } + sb.append("}"); + return sb.toString(); + } + public class MatchResourcesNested extends V1beta1MatchResourcesFluent> implements Nested{ + MatchResourcesNested(V1beta1MatchResources item) { + this.builder = new V1beta1MatchResourcesBuilder(this, item); + } + V1beta1MatchResourcesBuilder builder; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); + } + + public N endMatchResources() { + return and(); + } + + + } + public class ParamRefNested extends V1beta1ParamRefFluent> implements Nested{ + ParamRefNested(V1beta1ParamRef item) { + this.builder = new V1beta1ParamRefBuilder(this, item); + } + V1beta1ParamRefBuilder builder; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); + } + + public N endParamRef() { + return and(); + } + + + } + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..fea45fb4c8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyBuilder extends V1beta1MutatingAdmissionPolicyFluent implements VisitableBuilder{ + public V1beta1MutatingAdmissionPolicyBuilder() { + this(new V1beta1MutatingAdmissionPolicy()); + } + + public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicyFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicy()); + } + + public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicyFluent fluent,V1beta1MutatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1MutatingAdmissionPolicyFluent fluent; + + public V1beta1MutatingAdmissionPolicy build() { + V1beta1MutatingAdmissionPolicy buildable = new V1beta1MutatingAdmissionPolicy(); + 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/V1beta1ValidatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java similarity index 50% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java index 0f0ba17faa..f2bed6575c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java @@ -1,35 +1,38 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyBindingFluent() { +public class V1beta1MutatingAdmissionPolicyFluent> extends BaseFluent{ + public V1beta1MutatingAdmissionPolicyFluent() { } - public V1beta1ValidatingAdmissionPolicyBindingFluent(V1beta1ValidatingAdmissionPolicyBinding instance) { + public V1beta1MutatingAdmissionPolicyFluent(V1beta1MutatingAdmissionPolicy instance) { this.copyInstance(instance); } private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1beta1ValidatingAdmissionPolicyBindingSpecBuilder spec; + private V1beta1MutatingAdmissionPolicySpecBuilder spec; - protected void copyInstance(V1beta1ValidatingAdmissionPolicyBinding instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyBinding()); + protected void copyInstance(V1beta1MutatingAdmissionPolicy instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicy(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,25 +90,25 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1ValidatingAdmissionPolicyBindingSpec buildSpec() { + public V1beta1MutatingAdmissionPolicySpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(V1beta1ValidatingAdmissionPolicyBindingSpec spec) { + public A withSpec(V1beta1MutatingAdmissionPolicySpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(spec); + this.spec = new V1beta1MutatingAdmissionPolicySpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { this.spec = null; @@ -122,45 +125,74 @@ public SpecNested withNewSpec() { return new SpecNested(null); } - public SpecNested withNewSpecLike(V1beta1ValidatingAdmissionPolicyBindingSpec item) { + public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicySpec item) { return new SpecNested(item); } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ValidatingAdmissionPolicyBindingSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1MutatingAdmissionPolicySpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1beta1ValidatingAdmissionPolicyBindingSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + public SpecNested editOrNewSpecLike(V1beta1MutatingAdmissionPolicySpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1ValidatingAdmissionPolicyBindingFluent that = (V1beta1ValidatingAdmissionPolicyBindingFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MutatingAdmissionPolicyFluent that = (V1beta1MutatingAdmissionPolicyFluent) 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } @@ -171,7 +203,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp V1ObjectMetaBuilder builder; public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); + return (N) V1beta1MutatingAdmissionPolicyFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -180,14 +212,14 @@ public N endMetadata() { } - public class SpecNested extends V1beta1ValidatingAdmissionPolicyBindingSpecFluent> implements Nested{ - SpecNested(V1beta1ValidatingAdmissionPolicyBindingSpec item) { - this.builder = new V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(this, item); + public class SpecNested extends V1beta1MutatingAdmissionPolicySpecFluent> implements Nested{ + SpecNested(V1beta1MutatingAdmissionPolicySpec item) { + this.builder = new V1beta1MutatingAdmissionPolicySpecBuilder(this, item); } - V1beta1ValidatingAdmissionPolicyBindingSpecBuilder builder; + V1beta1MutatingAdmissionPolicySpecBuilder builder; public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); + return (N) V1beta1MutatingAdmissionPolicyFluent.this.withSpec(builder.build()); } public N endSpec() { 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 new file mode 100644 index 0000000000..2a6336bce0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyListBuilder extends V1beta1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ + public V1beta1MutatingAdmissionPolicyListBuilder() { + this(new V1beta1MutatingAdmissionPolicyList()); + } + + public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyListFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicyList()); + } + + public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyListFluent fluent,V1beta1MutatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyList instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1MutatingAdmissionPolicyListFluent fluent; + + public V1beta1MutatingAdmissionPolicyList build() { + V1beta1MutatingAdmissionPolicyList buildable = new V1beta1MutatingAdmissionPolicyList(); + 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/V1beta1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java new file mode 100644 index 0000000000..09d3b0a69a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java @@ -0,0 +1,408 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicyListFluent> extends BaseFluent{ + public V1beta1MutatingAdmissionPolicyListFluent() { + } + + public V1beta1MutatingAdmissionPolicyListFluent(V1beta1MutatingAdmissionPolicyList instance) { + this.copyInstance(instance); + } + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + protected void copyInstance(V1beta1MutatingAdmissionPolicyList instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public String getApiVersion() { + return this.apiVersion; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public A addToItems(int index,V1beta1MutatingAdmissionPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); + } + return (A) this; + } + + public A setToItems(int index,V1beta1MutatingAdmissionPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public A addToItems(V1beta1MutatingAdmissionPolicy... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1MutatingAdmissionPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(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 = _visitables.get("items"); + while (each.hasNext()) { + V1beta1MutatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1MutatingAdmissionPolicy buildItem(int index) { + return this.items.get(index).build(); + } + + public V1beta1MutatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1MutatingAdmissionPolicy buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1MutatingAdmissionPolicy buildMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1MutatingAdmissionPolicy... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicy item) { + return new ItemsNested(-1, item); + } + + public ItemsNested setNewItemLike(int index,V1beta1MutatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + public ItemsNested editItem(int index) { + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + 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 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 String getKind() { + return this.kind; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public boolean hasKind() { + return this.kind != null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 boolean hasMetadata() { + return this.metadata != null; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + 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; + } + V1beta1MutatingAdmissionPolicyListFluent that = (V1beta1MutatingAdmissionPolicyListFluent) 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 int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 class ItemsNested extends V1beta1MutatingAdmissionPolicyFluent> implements Nested{ + ItemsNested(int index,V1beta1MutatingAdmissionPolicy item) { + this.index = index; + this.builder = new V1beta1MutatingAdmissionPolicyBuilder(this, item); + } + V1beta1MutatingAdmissionPolicyBuilder builder; + int index; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + V1ListMetaBuilder builder; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyListFluent.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/V1beta1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java new file mode 100644 index 0000000000..3300fa501e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicySpecBuilder extends V1beta1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ + public V1beta1MutatingAdmissionPolicySpecBuilder() { + this(new V1beta1MutatingAdmissionPolicySpec()); + } + + public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicySpecFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicySpec()); + } + + public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicySpecFluent fluent,V1beta1MutatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicySpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1MutatingAdmissionPolicySpecFluent fluent; + + public V1beta1MutatingAdmissionPolicySpec build() { + V1beta1MutatingAdmissionPolicySpec buildable = new V1beta1MutatingAdmissionPolicySpec(); + buildable.setFailurePolicy(fluent.getFailurePolicy()); + buildable.setMatchConditions(fluent.buildMatchConditions()); + buildable.setMatchConstraints(fluent.buildMatchConstraints()); + buildable.setMutations(fluent.buildMutations()); + buildable.setParamKind(fluent.buildParamKind()); + buildable.setReinvocationPolicy(fluent.getReinvocationPolicy()); + buildable.setVariables(fluent.buildVariables()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..12f6365399 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java @@ -0,0 +1,946 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.lang.String; +import java.util.function.Predicate; +import java.lang.RuntimeException; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ + public V1beta1MutatingAdmissionPolicySpecFluent() { + } + + public V1beta1MutatingAdmissionPolicySpecFluent(V1beta1MutatingAdmissionPolicySpec instance) { + this.copyInstance(instance); + } + private String failurePolicy; + private ArrayList matchConditions; + private V1beta1MatchResourcesBuilder matchConstraints; + private ArrayList mutations; + private V1beta1ParamKindBuilder paramKind; + private String reinvocationPolicy; + private ArrayList variables; + + protected void copyInstance(V1beta1MutatingAdmissionPolicySpec instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicySpec(); + if (instance != null) { + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchConstraints(instance.getMatchConstraints()); + this.withMutations(instance.getMutations()); + this.withParamKind(instance.getParamKind()); + this.withReinvocationPolicy(instance.getReinvocationPolicy()); + this.withVariables(instance.getVariables()); + } + } + + public String getFailurePolicy() { + return this.failurePolicy; + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + + public boolean hasFailurePolicy() { + return this.failurePolicy != null; + } + + public A addToMatchConditions(int index,V1beta1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); + } + return (A) this; + } + + public A setToMatchConditions(int index,V1beta1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } + return (A) this; + } + + public A addToMatchConditions(V1beta1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; + } + + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; + } + + public A removeFromMatchConditions(V1beta1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; + } + + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); + while (each.hasNext()) { + V1beta1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; + } + + public V1beta1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); + } + + public V1beta1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); + } + + public V1beta1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); + } + + public V1beta1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1beta1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1beta1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); + } + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1beta1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; + } + return (A) this; + } + + public A withMatchConditions(V1beta1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); + } + if (matchConditions != null) { + for (V1beta1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); + } + + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); + } + + public MatchConditionsNested addNewMatchConditionLike(V1beta1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1beta1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public MatchConditionsNested editMatchCondition(int index) { + if (index <= matchConditions.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); + } + + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchConditions.size();i++) { + if (predicate.test(matchConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public V1beta1MatchResources buildMatchConstraints() { + return this.matchConstraints != null ? this.matchConstraints.build() : null; + } + + public A withMatchConstraints(V1beta1MatchResources matchConstraints) { + this._visitables.remove("matchConstraints"); + if (matchConstraints != null) { + this.matchConstraints = new V1beta1MatchResourcesBuilder(matchConstraints); + this._visitables.get("matchConstraints").add(this.matchConstraints); + } else { + this.matchConstraints = null; + this._visitables.get("matchConstraints").remove(this.matchConstraints); + } + return (A) this; + } + + public boolean hasMatchConstraints() { + return this.matchConstraints != null; + } + + public MatchConstraintsNested withNewMatchConstraints() { + return new MatchConstraintsNested(null); + } + + public MatchConstraintsNested withNewMatchConstraintsLike(V1beta1MatchResources item) { + return new MatchConstraintsNested(item); + } + + public MatchConstraintsNested editMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + } + + public MatchConstraintsNested editOrNewMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1beta1MatchResourcesBuilder().build())); + } + + public MatchConstraintsNested editOrNewMatchConstraintsLike(V1beta1MatchResources item) { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); + } + + public A addToMutations(int index,V1beta1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); + } else { + _visitables.get("mutations").add(builder); + mutations.add(index, builder); + } + return (A) this; + } + + public A setToMutations(int index,V1beta1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); + } else { + _visitables.get("mutations").add(builder); + mutations.set(index, builder); + } + return (A) this; + } + + public A addToMutations(V1beta1Mutation... items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; + } + + public A addAllToMutations(Collection items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; + } + + public A removeFromMutations(V1beta1Mutation... items) { + if (this.mutations == null) { + return (A) this; + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; + } + + public A removeAllFromMutations(Collection items) { + if (this.mutations == null) { + return (A) this; + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMutations(Predicate predicate) { + if (mutations == null) { + return (A) this; + } + Iterator each = mutations.iterator(); + List visitables = _visitables.get("mutations"); + while (each.hasNext()) { + V1beta1MutationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildMutations() { + return this.mutations != null ? build(mutations) : null; + } + + public V1beta1Mutation buildMutation(int index) { + return this.mutations.get(index).build(); + } + + public V1beta1Mutation buildFirstMutation() { + return this.mutations.get(0).build(); + } + + public V1beta1Mutation buildLastMutation() { + return this.mutations.get(mutations.size() - 1).build(); + } + + public V1beta1Mutation buildMatchingMutation(Predicate predicate) { + for (V1beta1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingMutation(Predicate predicate) { + for (V1beta1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withMutations(List mutations) { + if (this.mutations != null) { + this._visitables.get("mutations").clear(); + } + if (mutations != null) { + this.mutations = new ArrayList(); + for (V1beta1Mutation item : mutations) { + this.addToMutations(item); + } + } else { + this.mutations = null; + } + return (A) this; + } + + public A withMutations(V1beta1Mutation... mutations) { + if (this.mutations != null) { + this.mutations.clear(); + _visitables.remove("mutations"); + } + if (mutations != null) { + for (V1beta1Mutation item : mutations) { + this.addToMutations(item); + } + } + return (A) this; + } + + public boolean hasMutations() { + return this.mutations != null && !(this.mutations.isEmpty()); + } + + public MutationsNested addNewMutation() { + return new MutationsNested(-1, null); + } + + public MutationsNested addNewMutationLike(V1beta1Mutation item) { + return new MutationsNested(-1, item); + } + + public MutationsNested setNewMutationLike(int index,V1beta1Mutation item) { + return new MutationsNested(index, item); + } + + public MutationsNested editMutation(int index) { + if (index <= mutations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public MutationsNested editFirstMutation() { + if (mutations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(0, this.buildMutation(0)); + } + + public MutationsNested editLastMutation() { + int index = mutations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public MutationsNested editMatchingMutation(Predicate predicate) { + int index = -1; + for (int i = 0;i < mutations.size();i++) { + if (predicate.test(mutations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public V1beta1ParamKind buildParamKind() { + return this.paramKind != null ? this.paramKind.build() : null; + } + + public A withParamKind(V1beta1ParamKind paramKind) { + this._visitables.remove("paramKind"); + if (paramKind != null) { + this.paramKind = new V1beta1ParamKindBuilder(paramKind); + this._visitables.get("paramKind").add(this.paramKind); + } else { + this.paramKind = null; + this._visitables.get("paramKind").remove(this.paramKind); + } + return (A) this; + } + + public boolean hasParamKind() { + return this.paramKind != null; + } + + public ParamKindNested withNewParamKind() { + return new ParamKindNested(null); + } + + public ParamKindNested withNewParamKindLike(V1beta1ParamKind item) { + return new ParamKindNested(item); + } + + public ParamKindNested editParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); + } + + public ParamKindNested editOrNewParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1beta1ParamKindBuilder().build())); + } + + public ParamKindNested editOrNewParamKindLike(V1beta1ParamKind item) { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); + } + + public String getReinvocationPolicy() { + return this.reinvocationPolicy; + } + + public A withReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + return (A) this; + } + + public boolean hasReinvocationPolicy() { + return this.reinvocationPolicy != null; + } + + public A addToVariables(int index,V1beta1Variable item) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); + } + return (A) this; + } + + public A setToVariables(int index,V1beta1Variable item) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.set(index, builder); + } + return (A) this; + } + + public A addToVariables(V1beta1Variable... items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; + } + + public A addAllToVariables(Collection items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; + } + + public A removeFromVariables(V1beta1Variable... items) { + if (this.variables == null) { + return (A) this; + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; + } + + public A removeAllFromVariables(Collection items) { + if (this.variables == null) { + return (A) this; + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) { + return (A) this; + } + Iterator each = variables.iterator(); + List visitables = _visitables.get("variables"); + while (each.hasNext()) { + V1beta1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public List buildVariables() { + return this.variables != null ? build(variables) : null; + } + + public V1beta1Variable buildVariable(int index) { + return this.variables.get(index).build(); + } + + public V1beta1Variable buildFirstVariable() { + return this.variables.get(0).build(); + } + + public V1beta1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); + } + + public V1beta1Variable buildMatchingVariable(Predicate predicate) { + for (V1beta1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public boolean hasMatchingVariable(Predicate predicate) { + for (V1beta1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withVariables(List variables) { + if (this.variables != null) { + this._visitables.get("variables").clear(); + } + if (variables != null) { + this.variables = new ArrayList(); + for (V1beta1Variable item : variables) { + this.addToVariables(item); + } + } else { + this.variables = null; + } + return (A) this; + } + + public A withVariables(V1beta1Variable... variables) { + if (this.variables != null) { + this.variables.clear(); + _visitables.remove("variables"); + } + if (variables != null) { + for (V1beta1Variable item : variables) { + this.addToVariables(item); + } + } + return (A) this; + } + + public boolean hasVariables() { + return this.variables != null && !(this.variables.isEmpty()); + } + + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); + } + + public VariablesNested addNewVariableLike(V1beta1Variable item) { + return new VariablesNested(-1, item); + } + + public VariablesNested setNewVariableLike(int index,V1beta1Variable item) { + return new VariablesNested(index, item); + } + + public VariablesNested editVariable(int index) { + if (index <= variables.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public VariablesNested editFirstVariable() { + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(0, this.buildVariable(0)); + } + + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i = 0;i < variables.size();i++) { + if (predicate.test(variables.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(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; + } + V1beta1MutatingAdmissionPolicySpecFluent that = (V1beta1MutatingAdmissionPolicySpecFluent) o; + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; + } + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; + } + if (!(Objects.equals(matchConstraints, that.matchConstraints))) { + return false; + } + if (!(Objects.equals(mutations, that.mutations))) { + return false; + } + if (!(Objects.equals(paramKind, that.paramKind))) { + return false; + } + if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { + return false; + } + if (!(Objects.equals(variables, that.variables))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(failurePolicy == null)) { + sb.append("failurePolicy:"); + sb.append(failurePolicy); + sb.append(","); + } + if (!(matchConditions == null) && !(matchConditions.isEmpty())) { + sb.append("matchConditions:"); + sb.append(matchConditions); + sb.append(","); + } + if (!(matchConstraints == null)) { + sb.append("matchConstraints:"); + sb.append(matchConstraints); + sb.append(","); + } + if (!(mutations == null) && !(mutations.isEmpty())) { + sb.append("mutations:"); + sb.append(mutations); + sb.append(","); + } + if (!(paramKind == null)) { + sb.append("paramKind:"); + sb.append(paramKind); + sb.append(","); + } + if (!(reinvocationPolicy == null)) { + sb.append("reinvocationPolicy:"); + sb.append(reinvocationPolicy); + sb.append(","); + } + if (!(variables == null) && !(variables.isEmpty())) { + sb.append("variables:"); + sb.append(variables); + } + sb.append("}"); + return sb.toString(); + } + public class MatchConditionsNested extends V1beta1MatchConditionFluent> implements Nested{ + MatchConditionsNested(int index,V1beta1MatchCondition item) { + this.index = index; + this.builder = new V1beta1MatchConditionBuilder(this, item); + } + V1beta1MatchConditionBuilder builder; + int index; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.setToMatchConditions(index, builder.build()); + } + + public N endMatchCondition() { + return and(); + } + + + } + public class MatchConstraintsNested extends V1beta1MatchResourcesFluent> implements Nested{ + MatchConstraintsNested(V1beta1MatchResources item) { + this.builder = new V1beta1MatchResourcesBuilder(this, item); + } + V1beta1MatchResourcesBuilder builder; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); + } + + public N endMatchConstraints() { + return and(); + } + + + } + public class MutationsNested extends V1beta1MutationFluent> implements Nested{ + MutationsNested(int index,V1beta1Mutation item) { + this.index = index; + this.builder = new V1beta1MutationBuilder(this, item); + } + V1beta1MutationBuilder builder; + int index; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.setToMutations(index, builder.build()); + } + + public N endMutation() { + return and(); + } + + + } + public class ParamKindNested extends V1beta1ParamKindFluent> implements Nested{ + ParamKindNested(V1beta1ParamKind item) { + this.builder = new V1beta1ParamKindBuilder(this, item); + } + V1beta1ParamKindBuilder builder; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); + } + + public N endParamKind() { + return and(); + } + + + } + public class VariablesNested extends V1beta1VariableFluent> implements Nested{ + VariablesNested(int index,V1beta1Variable item) { + this.index = index; + this.builder = new V1beta1VariableBuilder(this, item); + } + V1beta1VariableBuilder builder; + int index; + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.setToVariables(index, builder.build()); + } + + public N endVariable() { + return and(); + } + + + } + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..dede1bfc10 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutationBuilder extends V1beta1MutationFluent implements VisitableBuilder{ + public V1beta1MutationBuilder() { + this(new V1beta1Mutation()); + } + + public V1beta1MutationBuilder(V1beta1MutationFluent fluent) { + this(fluent, new V1beta1Mutation()); + } + + public V1beta1MutationBuilder(V1beta1MutationFluent fluent,V1beta1Mutation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutationBuilder(V1beta1Mutation instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta1MutationFluent fluent; + + public V1beta1Mutation build() { + V1beta1Mutation buildable = new V1beta1Mutation(); + buildable.setApplyConfiguration(fluent.buildApplyConfiguration()); + buildable.setJsonPatch(fluent.buildJsonPatch()); + buildable.setPatchType(fluent.getPatchType()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..38d954cba6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java @@ -0,0 +1,209 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutationFluent> extends BaseFluent{ + public V1beta1MutationFluent() { + } + + public V1beta1MutationFluent(V1beta1Mutation instance) { + this.copyInstance(instance); + } + private V1beta1ApplyConfigurationBuilder applyConfiguration; + private V1beta1JSONPatchBuilder jsonPatch; + private String patchType; + + protected void copyInstance(V1beta1Mutation instance) { + instance = instance != null ? instance : new V1beta1Mutation(); + if (instance != null) { + this.withApplyConfiguration(instance.getApplyConfiguration()); + this.withJsonPatch(instance.getJsonPatch()); + this.withPatchType(instance.getPatchType()); + } + } + + public V1beta1ApplyConfiguration buildApplyConfiguration() { + return this.applyConfiguration != null ? this.applyConfiguration.build() : null; + } + + public A withApplyConfiguration(V1beta1ApplyConfiguration applyConfiguration) { + this._visitables.remove("applyConfiguration"); + if (applyConfiguration != null) { + this.applyConfiguration = new V1beta1ApplyConfigurationBuilder(applyConfiguration); + this._visitables.get("applyConfiguration").add(this.applyConfiguration); + } else { + this.applyConfiguration = null; + this._visitables.get("applyConfiguration").remove(this.applyConfiguration); + } + return (A) this; + } + + public boolean hasApplyConfiguration() { + return this.applyConfiguration != null; + } + + public ApplyConfigurationNested withNewApplyConfiguration() { + return new ApplyConfigurationNested(null); + } + + public ApplyConfigurationNested withNewApplyConfigurationLike(V1beta1ApplyConfiguration item) { + return new ApplyConfigurationNested(item); + } + + public ApplyConfigurationNested editApplyConfiguration() { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(null)); + } + + public ApplyConfigurationNested editOrNewApplyConfiguration() { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(new V1beta1ApplyConfigurationBuilder().build())); + } + + public ApplyConfigurationNested editOrNewApplyConfigurationLike(V1beta1ApplyConfiguration item) { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(item)); + } + + public V1beta1JSONPatch buildJsonPatch() { + return this.jsonPatch != null ? this.jsonPatch.build() : null; + } + + public A withJsonPatch(V1beta1JSONPatch jsonPatch) { + this._visitables.remove("jsonPatch"); + if (jsonPatch != null) { + this.jsonPatch = new V1beta1JSONPatchBuilder(jsonPatch); + this._visitables.get("jsonPatch").add(this.jsonPatch); + } else { + this.jsonPatch = null; + this._visitables.get("jsonPatch").remove(this.jsonPatch); + } + return (A) this; + } + + public boolean hasJsonPatch() { + return this.jsonPatch != null; + } + + public JsonPatchNested withNewJsonPatch() { + return new JsonPatchNested(null); + } + + public JsonPatchNested withNewJsonPatchLike(V1beta1JSONPatch item) { + return new JsonPatchNested(item); + } + + public JsonPatchNested editJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(null)); + } + + public JsonPatchNested editOrNewJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(new V1beta1JSONPatchBuilder().build())); + } + + public JsonPatchNested editOrNewJsonPatchLike(V1beta1JSONPatch item) { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(item)); + } + + public String getPatchType() { + return this.patchType; + } + + public A withPatchType(String patchType) { + this.patchType = patchType; + return (A) this; + } + + public boolean hasPatchType() { + return this.patchType != 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; + } + V1beta1MutationFluent that = (V1beta1MutationFluent) o; + if (!(Objects.equals(applyConfiguration, that.applyConfiguration))) { + return false; + } + if (!(Objects.equals(jsonPatch, that.jsonPatch))) { + return false; + } + if (!(Objects.equals(patchType, that.patchType))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(applyConfiguration, jsonPatch, patchType); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(applyConfiguration == null)) { + sb.append("applyConfiguration:"); + sb.append(applyConfiguration); + sb.append(","); + } + if (!(jsonPatch == null)) { + sb.append("jsonPatch:"); + sb.append(jsonPatch); + sb.append(","); + } + if (!(patchType == null)) { + sb.append("patchType:"); + sb.append(patchType); + } + sb.append("}"); + return sb.toString(); + } + public class ApplyConfigurationNested extends V1beta1ApplyConfigurationFluent> implements Nested{ + ApplyConfigurationNested(V1beta1ApplyConfiguration item) { + this.builder = new V1beta1ApplyConfigurationBuilder(this, item); + } + V1beta1ApplyConfigurationBuilder builder; + + public N and() { + return (N) V1beta1MutationFluent.this.withApplyConfiguration(builder.build()); + } + + public N endApplyConfiguration() { + return and(); + } + + + } + public class JsonPatchNested extends V1beta1JSONPatchFluent> implements Nested{ + JsonPatchNested(V1beta1JSONPatch item) { + this.builder = new V1beta1JSONPatchBuilder(this, item); + } + V1beta1JSONPatchBuilder builder; + + public N and() { + return (N) V1beta1MutationFluent.this.withJsonPatch(builder.build()); + } + + public N endJsonPatch() { + return and(); + } + + + } + +} \ No newline at end of file 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 55248dd26c..0f536b0333 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1NamedRuleWithOperationsBuilder extends V1beta1NamedRuleWithOperationsFluent implements VisitableBuilder{ public V1beta1NamedRuleWithOperationsBuilder() { this(new V1beta1NamedRuleWithOperations()); 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 0a6c0dda6e..d6a0c79259 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1NamedRuleWithOperationsFluent> extends BaseFluent{ +public class V1beta1NamedRuleWithOperationsFluent> extends BaseFluent{ public V1beta1NamedRuleWithOperationsFluent() { } @@ -28,46 +30,71 @@ public V1beta1NamedRuleWithOperationsFluent(V1beta1NamedRuleWithOperations insta private String scope; protected void copyInstance(V1beta1NamedRuleWithOperations instance) { - instance = (instance != null ? instance : new V1beta1NamedRuleWithOperations()); + instance = instance != null ? instance : new V1beta1NamedRuleWithOperations(); if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withApiVersions(instance.getApiVersions()); - this.withOperations(instance.getOperations()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withScope(instance.getScope()); - } + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); + } } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + return (A) this; } public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - this.apiGroups.set(index, item); return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A addToApiGroups(java.lang.String... items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } - public A removeFromApiGroups(java.lang.String... items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) return (A)this; - for (String item : items) { this.apiGroups.remove(item);} return (A)this; + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } public List getApiGroups() { @@ -116,7 +143,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -130,38 +157,63 @@ public A withApiGroups(java.lang.String... apiGroups) { } public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } public A addToApiVersions(int index,String item) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } this.apiVersions.add(index, item); - return (A)this; + return (A) this; } public A setToApiVersions(int index,String item) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - this.apiVersions.set(index, item); return (A)this; + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(index, item); + return (A) this; } - public A addToApiVersions(java.lang.String... items) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - for (String item : items) {this.apiVersions.add(item);} return (A)this; + public A addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); + } + return (A) this; } public A addAllToApiVersions(Collection items) { - if (this.apiVersions == null) {this.apiVersions = new ArrayList();} - for (String item : items) {this.apiVersions.add(item);} return (A)this; + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); + } + return (A) this; } - public A removeFromApiVersions(java.lang.String... items) { - if (this.apiVersions == null) return (A)this; - for (String item : items) { this.apiVersions.remove(item);} return (A)this; + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } public A removeAllFromApiVersions(Collection items) { - if (this.apiVersions == null) return (A)this; - for (String item : items) { this.apiVersions.remove(item);} return (A)this; + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } public List getApiVersions() { @@ -210,7 +262,7 @@ public A withApiVersions(List apiVersions) { return (A) this; } - public A withApiVersions(java.lang.String... apiVersions) { + public A withApiVersions(String... apiVersions) { if (this.apiVersions != null) { this.apiVersions.clear(); _visitables.remove("apiVersions"); @@ -224,38 +276,63 @@ public A withApiVersions(java.lang.String... apiVersions) { } public boolean hasApiVersions() { - return this.apiVersions != null && !this.apiVersions.isEmpty(); + return this.apiVersions != null && !(this.apiVersions.isEmpty()); } public A addToOperations(int index,String item) { - if (this.operations == null) {this.operations = new ArrayList();} + if (this.operations == null) { + this.operations = new ArrayList(); + } this.operations.add(index, item); - return (A)this; + return (A) this; } public A setToOperations(int index,String item) { - if (this.operations == null) {this.operations = new ArrayList();} - this.operations.set(index, item); return (A)this; + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.set(index, item); + return (A) this; } - public A addToOperations(java.lang.String... items) { - if (this.operations == null) {this.operations = new ArrayList();} - for (String item : items) {this.operations.add(item);} return (A)this; + public A addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } public A addAllToOperations(Collection items) { - if (this.operations == null) {this.operations = new ArrayList();} - for (String item : items) {this.operations.add(item);} return (A)this; + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } - public A removeFromOperations(java.lang.String... items) { - if (this.operations == null) return (A)this; - for (String item : items) { this.operations.remove(item);} return (A)this; + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } public A removeAllFromOperations(Collection items) { - if (this.operations == null) return (A)this; - for (String item : items) { this.operations.remove(item);} return (A)this; + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } public List getOperations() { @@ -304,7 +381,7 @@ public A withOperations(List operations) { return (A) this; } - public A withOperations(java.lang.String... operations) { + public A withOperations(String... operations) { if (this.operations != null) { this.operations.clear(); _visitables.remove("operations"); @@ -318,38 +395,63 @@ public A withOperations(java.lang.String... operations) { } public boolean hasOperations() { - return this.operations != null && !this.operations.isEmpty(); + return this.operations != null && !(this.operations.isEmpty()); } public A addToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } this.resourceNames.add(index, item); - return (A)this; + return (A) this; } public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - this.resourceNames.set(index, item); return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(index, item); + return (A) this; } - public A addToResourceNames(java.lang.String... items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - for (String item : items) {this.resourceNames.add(item);} return (A)this; + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } - public A removeFromResourceNames(java.lang.String... items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) return (A)this; - for (String item : items) { this.resourceNames.remove(item);} return (A)this; + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } public List getResourceNames() { @@ -398,7 +500,7 @@ public A withResourceNames(List resourceNames) { return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { + public A withResourceNames(String... resourceNames) { if (this.resourceNames != null) { this.resourceNames.clear(); _visitables.remove("resourceNames"); @@ -412,38 +514,63 @@ public A withResourceNames(java.lang.String... resourceNames) { } public boolean hasResourceNames() { - return this.resourceNames != null && !this.resourceNames.isEmpty(); + return this.resourceNames != null && !(this.resourceNames.isEmpty()); } public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} + if (this.resources == null) { + this.resources = new ArrayList(); + } this.resources.add(index, item); - return (A)this; + return (A) this; } public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public A addToResources(java.lang.String... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (String item : items) {this.resources.add(item);} return (A)this; + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public A removeFromResources(java.lang.String... items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } public List getResources() { @@ -492,7 +619,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -506,7 +633,7 @@ public A withResources(java.lang.String... resources) { } public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + return this.resources != null && !(this.resources.isEmpty()); } public String getScope() { @@ -523,32 +650,73 @@ public boolean hasScope() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1NamedRuleWithOperationsFluent that = (V1beta1NamedRuleWithOperationsFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(apiVersions, that.apiVersions)) return false; - if (!java.util.Objects.equals(operations, that.operations)) return false; - if (!java.util.Objects.equals(resourceNames, that.resourceNames)) return false; - if (!java.util.Objects.equals(resources, that.resources)) return false; - if (!java.util.Objects.equals(scope, that.scope)) return false; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope, super.hashCode()); + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroups != null && !apiGroups.isEmpty()) { sb.append("apiGroups:"); sb.append(apiGroups + ","); } - if (apiVersions != null && !apiVersions.isEmpty()) { sb.append("apiVersions:"); sb.append(apiVersions + ","); } - if (operations != null && !operations.isEmpty()) { sb.append("operations:"); sb.append(operations + ","); } - if (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources + ","); } - if (scope != null) { sb.append("scope:"); sb.append(scope); } + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(apiVersions == null) && !(apiVersions.isEmpty())) { + sb.append("apiVersions:"); + sb.append(apiVersions); + sb.append(","); + } + if (!(operations == null) && !(operations.isEmpty())) { + sb.append("operations:"); + sb.append(operations); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } sb.append("}"); return sb.toString(); } 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 bebc793717..a75ab37c6c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1NetworkDeviceDataBuilder extends V1beta1NetworkDeviceDataFluent implements VisitableBuilder{ public V1beta1NetworkDeviceDataBuilder() { this(new V1beta1NetworkDeviceData()); 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 697c2564bc..add77e7e5f 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1NetworkDeviceDataFluent> extends BaseFluent{ +public class V1beta1NetworkDeviceDataFluent> extends BaseFluent{ public V1beta1NetworkDeviceDataFluent() { } @@ -25,12 +27,12 @@ public V1beta1NetworkDeviceDataFluent(V1beta1NetworkDeviceData instance) { private List ips; protected void copyInstance(V1beta1NetworkDeviceData instance) { - instance = (instance != null ? instance : new V1beta1NetworkDeviceData()); + instance = instance != null ? instance : new V1beta1NetworkDeviceData(); if (instance != null) { - this.withHardwareAddress(instance.getHardwareAddress()); - this.withInterfaceName(instance.getInterfaceName()); - this.withIps(instance.getIps()); - } + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); + } } public String getHardwareAddress() { @@ -60,34 +62,59 @@ public boolean hasInterfaceName() { } public A addToIps(int index,String item) { - if (this.ips == null) {this.ips = new ArrayList();} + if (this.ips == null) { + this.ips = new ArrayList(); + } this.ips.add(index, item); - return (A)this; + return (A) this; } public A setToIps(int index,String item) { - if (this.ips == null) {this.ips = new ArrayList();} - this.ips.set(index, item); return (A)this; + if (this.ips == null) { + this.ips = new ArrayList(); + } + this.ips.set(index, item); + return (A) this; } - public A addToIps(java.lang.String... items) { - if (this.ips == null) {this.ips = new ArrayList();} - for (String item : items) {this.ips.add(item);} return (A)this; + public A addToIps(String... items) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + for (String item : items) { + this.ips.add(item); + } + return (A) this; } public A addAllToIps(Collection items) { - if (this.ips == null) {this.ips = new ArrayList();} - for (String item : items) {this.ips.add(item);} return (A)this; + if (this.ips == null) { + this.ips = new ArrayList(); + } + for (String item : items) { + this.ips.add(item); + } + return (A) this; } - public A removeFromIps(java.lang.String... items) { - if (this.ips == null) return (A)this; - for (String item : items) { this.ips.remove(item);} return (A)this; + public A removeFromIps(String... items) { + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(item); + } + return (A) this; } public A removeAllFromIps(Collection items) { - if (this.ips == null) return (A)this; - for (String item : items) { this.ips.remove(item);} return (A)this; + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(item); + } + return (A) this; } public List getIps() { @@ -136,7 +163,7 @@ public A withIps(List ips) { return (A) this; } - public A withIps(java.lang.String... ips) { + public A withIps(String... ips) { if (this.ips != null) { this.ips.clear(); _visitables.remove("ips"); @@ -150,30 +177,53 @@ public A withIps(java.lang.String... ips) { } public boolean hasIps() { - return this.ips != null && !this.ips.isEmpty(); + return this.ips != null && !(this.ips.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1NetworkDeviceDataFluent that = (V1beta1NetworkDeviceDataFluent) o; - if (!java.util.Objects.equals(hardwareAddress, that.hardwareAddress)) return false; - if (!java.util.Objects.equals(interfaceName, that.interfaceName)) return false; - if (!java.util.Objects.equals(ips, that.ips)) return false; + if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { + return false; + } + if (!(Objects.equals(interfaceName, that.interfaceName))) { + return false; + } + if (!(Objects.equals(ips, that.ips))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(hardwareAddress, interfaceName, ips, super.hashCode()); + return Objects.hash(hardwareAddress, interfaceName, ips); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hardwareAddress != null) { sb.append("hardwareAddress:"); sb.append(hardwareAddress + ","); } - if (interfaceName != null) { sb.append("interfaceName:"); sb.append(interfaceName + ","); } - if (ips != null && !ips.isEmpty()) { sb.append("ips:"); sb.append(ips); } + if (!(hardwareAddress == null)) { + sb.append("hardwareAddress:"); + sb.append(hardwareAddress); + sb.append(","); + } + if (!(interfaceName == null)) { + sb.append("interfaceName:"); + sb.append(interfaceName); + sb.append(","); + } + if (!(ips == null) && !(ips.isEmpty())) { + sb.append("ips:"); + sb.append(ips); + } sb.append("}"); return sb.toString(); } 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 05deace978..7d1d121199 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1OpaqueDeviceConfigurationBuilder extends V1beta1OpaqueDeviceConfigurationFluent implements VisitableBuilder{ public V1beta1OpaqueDeviceConfigurationBuilder() { this(new V1beta1OpaqueDeviceConfiguration()); 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 9168b1340e..51581f9f9a 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1OpaqueDeviceConfigurationFluent> extends BaseFluent{ +public class V1beta1OpaqueDeviceConfigurationFluent> extends BaseFluent{ public V1beta1OpaqueDeviceConfigurationFluent() { } @@ -20,11 +22,11 @@ public V1beta1OpaqueDeviceConfigurationFluent(V1beta1OpaqueDeviceConfiguration i private Object parameters; protected void copyInstance(V1beta1OpaqueDeviceConfiguration instance) { - instance = (instance != null ? instance : new V1beta1OpaqueDeviceConfiguration()); + instance = instance != null ? instance : new V1beta1OpaqueDeviceConfiguration(); if (instance != null) { - this.withDriver(instance.getDriver()); - this.withParameters(instance.getParameters()); - } + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } } public String getDriver() { @@ -54,24 +56,41 @@ public boolean hasParameters() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1OpaqueDeviceConfigurationFluent that = (V1beta1OpaqueDeviceConfigurationFluent) o; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(driver, parameters, super.hashCode()); + return Objects.hash(driver, parameters); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(parameters == null)) { + sb.append("parameters:"); + sb.append(parameters); + } sb.append("}"); return sb.toString(); } 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 b064e68bad..a110c4f697 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ParamKindBuilder extends V1beta1ParamKindFluent implements VisitableBuilder{ public V1beta1ParamKindBuilder() { this(new V1beta1ParamKind()); 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 4e503b27bd..b9f3f72eaa 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ParamKindFluent> extends BaseFluent{ +public class V1beta1ParamKindFluent> extends BaseFluent{ public V1beta1ParamKindFluent() { } @@ -20,11 +22,11 @@ public V1beta1ParamKindFluent(V1beta1ParamKind instance) { private String kind; protected void copyInstance(V1beta1ParamKind instance) { - instance = (instance != null ? instance : new V1beta1ParamKind()); + instance = instance != null ? instance : new V1beta1ParamKind(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + } } public String getApiVersion() { @@ -54,24 +56,41 @@ public boolean hasKind() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ParamKindFluent that = (V1beta1ParamKindFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, super.hashCode()); + return Objects.hash(apiVersion, kind); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + 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/V1beta1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java index 0d6fa5b388..a563da16e7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ParamRefBuilder extends V1beta1ParamRefFluent implements VisitableBuilder{ public V1beta1ParamRefBuilder() { this(new V1beta1ParamRef()); 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 ba61ba39bb..6b7fca50ff 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ParamRefFluent> extends BaseFluent{ +public class V1beta1ParamRefFluent> extends BaseFluent{ public V1beta1ParamRefFluent() { } @@ -23,13 +26,13 @@ public V1beta1ParamRefFluent(V1beta1ParamRef instance) { private V1LabelSelectorBuilder selector; protected void copyInstance(V1beta1ParamRef instance) { - instance = (instance != null ? instance : new V1beta1ParamRef()); + instance = instance != null ? instance : new V1beta1ParamRef(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); - this.withSelector(instance.getSelector()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); + this.withSelector(instance.getSelector()); + } } public String getName() { @@ -100,40 +103,69 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ParamRefFluent that = (V1beta1ParamRefFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, namespace, parameterNotFoundAction, selector, super.hashCode()); + return Objects.hash(name, namespace, parameterNotFoundAction, selector); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (parameterNotFoundAction != null) { sb.append("parameterNotFoundAction:"); sb.append(parameterNotFoundAction + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(parameterNotFoundAction == null)) { + sb.append("parameterNotFoundAction:"); + sb.append(parameterNotFoundAction); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } sb.append("}"); return sb.toString(); } 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 index 5f864d47f3..35b5bc631c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ParentReferenceBuilder extends V1beta1ParentReferenceFluent implements VisitableBuilder{ public V1beta1ParentReferenceBuilder() { this(new V1beta1ParentReference()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java index 2a36a4ed39..2726154af8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ParentReferenceFluent> extends BaseFluent{ +public class V1beta1ParentReferenceFluent> extends BaseFluent{ public V1beta1ParentReferenceFluent() { } @@ -22,13 +24,13 @@ public V1beta1ParentReferenceFluent(V1beta1ParentReference instance) { private String resource; protected void copyInstance(V1beta1ParentReference instance) { - instance = (instance != null ? instance : new V1beta1ParentReference()); + instance = instance != null ? instance : new V1beta1ParentReference(); if (instance != null) { - this.withGroup(instance.getGroup()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResource(instance.getResource()); - } + this.withGroup(instance.getGroup()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResource(instance.getResource()); + } } public String getGroup() { @@ -84,28 +86,57 @@ public boolean hasResource() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ParentReferenceFluent that = (V1beta1ParentReferenceFluent) o; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(group, name, namespace, resource, super.hashCode()); + return Objects.hash(group, name, namespace, resource); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource); } + 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); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } sb.append("}"); return sb.toString(); } 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 d580d17ade..5521a0ef36 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceClaimBuilder extends V1beta1ResourceClaimFluent implements VisitableBuilder{ public V1beta1ResourceClaimBuilder() { this(new V1beta1ResourceClaim()); 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 e29b950ba9..3fc4b08dbb 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceClaimConsumerReferenceBuilder extends V1beta1ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ public V1beta1ResourceClaimConsumerReferenceBuilder() { this(new V1beta1ResourceClaimConsumerReference()); 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 fc31a35f75..d53598e535 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ +public class V1beta1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ public V1beta1ResourceClaimConsumerReferenceFluent() { } @@ -22,13 +24,13 @@ public V1beta1ResourceClaimConsumerReferenceFluent(V1beta1ResourceClaimConsumerR private String uid; protected void copyInstance(V1beta1ResourceClaimConsumerReference instance) { - instance = (instance != null ? instance : new V1beta1ResourceClaimConsumerReference()); + instance = instance != null ? instance : new V1beta1ResourceClaimConsumerReference(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withName(instance.getName()); - this.withResource(instance.getResource()); - this.withUid(instance.getUid()); - } + this.withApiGroup(instance.getApiGroup()); + this.withName(instance.getName()); + this.withResource(instance.getResource()); + this.withUid(instance.getUid()); + } } public String getApiGroup() { @@ -84,28 +86,57 @@ public boolean hasUid() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourceClaimConsumerReferenceFluent that = (V1beta1ResourceClaimConsumerReferenceFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroup, name, resource, uid, super.hashCode()); + return Objects.hash(apiGroup, name, resource, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } sb.append("}"); return sb.toString(); } 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 1ecae12e58..7b98df7544 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceClaimFluent> extends BaseFluent{ +public class V1beta1ResourceClaimFluent> extends BaseFluent{ public V1beta1ResourceClaimFluent() { } @@ -24,14 +27,14 @@ public V1beta1ResourceClaimFluent(V1beta1ResourceClaim instance) { private V1beta1ResourceClaimStatusBuilder status; protected void copyInstance(V1beta1ResourceClaim instance) { - instance = (instance != null ? instance : new V1beta1ResourceClaim()); + instance = instance != null ? instance : new V1beta1ResourceClaim(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta1ResourceClaimSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta1ResourceClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1beta1ResourceClaimStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1beta1ResourceClaimStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta1ResourceClaimStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1ResourceClaimStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1beta1ResourceClaimStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourceClaimFluent that = (V1beta1ResourceClaimFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 3a5bea113d..f99feaed14 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceClaimListBuilder extends V1beta1ResourceClaimListFluent implements VisitableBuilder{ public V1beta1ResourceClaimListBuilder() { this(new V1beta1ResourceClaimList()); 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 45d0d9352a..5dfa39022d 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceClaimListFluent> extends BaseFluent{ +public class V1beta1ResourceClaimListFluent> extends BaseFluent{ public V1beta1ResourceClaimListFluent() { } @@ -29,13 +32,13 @@ public V1beta1ResourceClaimListFluent(V1beta1ResourceClaimList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1beta1ResourceClaimList instance) { - instance = (instance != null ? instance : new V1beta1ResourceClaimList()); + instance = instance != null ? instance : new V1beta1ResourceClaimList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta1ResourceClaim item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta1ResourceClaim item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta1ResourceClaim item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta1ResourceClaim item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaim... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ResourceClaim item : items) {V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta1ResourceClaim... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ResourceClaim item : items) { + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ResourceClaim item : items) {V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ResourceClaim item : items) { + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaim... items) { - if (this.items == null) return (A)this; - for (V1beta1ResourceClaim item : items) {V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta1ResourceClaim... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceClaim item : items) { + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1ResourceClaim item : items) {V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceClaim item : items) { + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta1ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaim... items) { + public A withItems(V1beta1ResourceClaim... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaim... i } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta1ResourceClaim item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourceClaimListFluent that = (V1beta1ResourceClaimListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta1ResourceClaimFluent> i int index; public N and() { - return (N) V1beta1ResourceClaimListFluent.this.setToItems(index,builder.build()); + return (N) V1beta1ResourceClaimListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 c2a9a71952..8fc327ea4a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceClaimSpecBuilder extends V1beta1ResourceClaimSpecFluent implements VisitableBuilder{ public V1beta1ResourceClaimSpecBuilder() { this(new V1beta1ResourceClaimSpec()); 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 e4a9596798..dcb713bf11 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceClaimSpecFluent> extends BaseFluent{ +public class V1beta1ResourceClaimSpecFluent> extends BaseFluent{ public V1beta1ResourceClaimSpecFluent() { } @@ -20,10 +23,10 @@ public V1beta1ResourceClaimSpecFluent(V1beta1ResourceClaimSpec instance) { private V1beta1DeviceClaimBuilder devices; protected void copyInstance(V1beta1ResourceClaimSpec instance) { - instance = (instance != null ? instance : new V1beta1ResourceClaimSpec()); + instance = instance != null ? instance : new V1beta1ResourceClaimSpec(); if (instance != null) { - this.withDevices(instance.getDevices()); - } + this.withDevices(instance.getDevices()); + } } public V1beta1DeviceClaim buildDevices() { @@ -55,34 +58,45 @@ public DevicesNested withNewDevicesLike(V1beta1DeviceClaim item) { } public DevicesNested editDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } public DevicesNested editOrNewDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta1DeviceClaimBuilder().build())); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta1DeviceClaimBuilder().build())); } public DevicesNested editOrNewDevicesLike(V1beta1DeviceClaim item) { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourceClaimSpecFluent that = (V1beta1ResourceClaimSpecFluent) o; - if (!java.util.Objects.equals(devices, that.devices)) return false; + if (!(Objects.equals(devices, that.devices))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(devices, super.hashCode()); + return Objects.hash(devices); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devices != null) { sb.append("devices:"); sb.append(devices); } + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + } sb.append("}"); return sb.toString(); } 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 988185a361..98f8a2fb42 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceClaimStatusBuilder extends V1beta1ResourceClaimStatusFluent implements VisitableBuilder{ public V1beta1ResourceClaimStatusBuilder() { this(new V1beta1ResourceClaimStatus()); 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 78db278e46..3e37af8c32 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceClaimStatusFluent> extends BaseFluent{ +public class V1beta1ResourceClaimStatusFluent> extends BaseFluent{ public V1beta1ResourceClaimStatusFluent() { } @@ -28,12 +31,12 @@ public V1beta1ResourceClaimStatusFluent(V1beta1ResourceClaimStatus instance) { private ArrayList reservedFor; protected void copyInstance(V1beta1ResourceClaimStatus instance) { - instance = (instance != null ? instance : new V1beta1ResourceClaimStatus()); + instance = instance != null ? instance : new V1beta1ResourceClaimStatus(); if (instance != null) { - this.withAllocation(instance.getAllocation()); - this.withDevices(instance.getDevices()); - this.withReservedFor(instance.getReservedFor()); - } + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } } public V1beta1AllocationResult buildAllocation() { @@ -65,19 +68,21 @@ public AllocationNested withNewAllocationLike(V1beta1AllocationResult item) { } public AllocationNested editAllocation() { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(null)); + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); } public AllocationNested editOrNewAllocation() { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(new V1beta1AllocationResultBuilder().build())); + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1beta1AllocationResultBuilder().build())); } public AllocationNested editOrNewAllocationLike(V1beta1AllocationResult item) { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(item)); + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); } public A addToDevices(int index,V1beta1AllocatedDeviceStatus item) { - if (this.devices == null) {this.devices = new ArrayList();} + if (this.devices == null) { + this.devices = new ArrayList(); + } V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); @@ -86,11 +91,13 @@ public A addToDevices(int index,V1beta1AllocatedDeviceStatus item) { _visitables.get("devices").add(builder); devices.add(index, builder); } - return (A)this; + return (A) this; } public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { - if (this.devices == null) {this.devices = new ArrayList();} + if (this.devices == null) { + this.devices = new ArrayList(); + } V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); @@ -99,41 +106,71 @@ public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { _visitables.get("devices").add(builder); devices.set(index, builder); } - return (A)this; + return (A) this; } - public A addToDevices(io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceStatus... items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1beta1AllocatedDeviceStatus item : items) {V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + public A addToDevices(V1beta1AllocatedDeviceStatus... items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1beta1AllocatedDeviceStatus item : items) { + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; } public A addAllToDevices(Collection items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1beta1AllocatedDeviceStatus item : items) {V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1beta1AllocatedDeviceStatus item : items) { + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; } - public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceStatus... items) { - if (this.devices == null) return (A)this; - for (V1beta1AllocatedDeviceStatus item : items) {V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + public A removeFromDevices(V1beta1AllocatedDeviceStatus... items) { + if (this.devices == null) { + return (A) this; + } + for (V1beta1AllocatedDeviceStatus item : items) { + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; } public A removeAllFromDevices(Collection items) { - if (this.devices == null) return (A)this; - for (V1beta1AllocatedDeviceStatus item : items) {V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + if (this.devices == null) { + return (A) this; + } + for (V1beta1AllocatedDeviceStatus item : items) { + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; } public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) return (A) this; - final Iterator each = devices.iterator(); - final List visitables = _visitables.get("devices"); + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); while (each.hasNext()) { - V1beta1AllocatedDeviceStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildDevices() { @@ -185,7 +222,7 @@ public A withDevices(List devices) { return (A) this; } - public A withDevices(io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceStatus... devices) { + public A withDevices(V1beta1AllocatedDeviceStatus... devices) { if (this.devices != null) { this.devices.clear(); _visitables.remove("devices"); @@ -199,7 +236,7 @@ public A withDevices(io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceS } public boolean hasDevices() { - return this.devices != null && !this.devices.isEmpty(); + return this.devices != null && !(this.devices.isEmpty()); } public DevicesNested addNewDevice() { @@ -215,32 +252,45 @@ public DevicesNested setNewDeviceLike(int index,V1beta1AllocatedDeviceStatus } public DevicesNested editDevice(int index) { - if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); - return setNewDeviceLike(index, buildDevice(index)); + if (index <= devices.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); } public DevicesNested editFirstDevice() { - if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); - return setNewDeviceLike(0, buildDevice(0)); + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); } public DevicesNested editLastDevice() { int index = devices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); - return setNewDeviceLike(index, buildDevice(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); } public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); @@ -249,11 +299,13 @@ public A addToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) _visitables.get("reservedFor").add(builder); reservedFor.add(index, builder); } - return (A)this; + return (A) this; } public A setToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); @@ -262,41 +314,71 @@ public A setToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) _visitables.get("reservedFor").add(builder); reservedFor.set(index, builder); } - return (A)this; + return (A) this; } - public A addToReservedFor(io.kubernetes.client.openapi.models.V1beta1ResourceClaimConsumerReference... items) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - for (V1beta1ResourceClaimConsumerReference item : items) {V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + public A addToReservedFor(V1beta1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1beta1ResourceClaimConsumerReference item : items) { + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; } public A addAllToReservedFor(Collection items) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - for (V1beta1ResourceClaimConsumerReference item : items) {V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1beta1ResourceClaimConsumerReference item : items) { + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; } - public A removeFromReservedFor(io.kubernetes.client.openapi.models.V1beta1ResourceClaimConsumerReference... items) { - if (this.reservedFor == null) return (A)this; - for (V1beta1ResourceClaimConsumerReference item : items) {V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + public A removeFromReservedFor(V1beta1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + return (A) this; + } + for (V1beta1ResourceClaimConsumerReference item : items) { + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); + } + return (A) this; } public A removeAllFromReservedFor(Collection items) { - if (this.reservedFor == null) return (A)this; - for (V1beta1ResourceClaimConsumerReference item : items) {V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + if (this.reservedFor == null) { + return (A) this; + } + for (V1beta1ResourceClaimConsumerReference item : items) { + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); + } + return (A) this; } public A removeMatchingFromReservedFor(Predicate predicate) { - if (reservedFor == null) return (A) this; - final Iterator each = reservedFor.iterator(); - final List visitables = _visitables.get("reservedFor"); + if (reservedFor == null) { + return (A) this; + } + Iterator each = reservedFor.iterator(); + List visitables = _visitables.get("reservedFor"); while (each.hasNext()) { - V1beta1ResourceClaimConsumerReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1ResourceClaimConsumerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildReservedFor() { @@ -348,7 +430,7 @@ public A withReservedFor(List reservedFor return (A) this; } - public A withReservedFor(io.kubernetes.client.openapi.models.V1beta1ResourceClaimConsumerReference... reservedFor) { + public A withReservedFor(V1beta1ResourceClaimConsumerReference... reservedFor) { if (this.reservedFor != null) { this.reservedFor.clear(); _visitables.remove("reservedFor"); @@ -362,7 +444,7 @@ public A withReservedFor(io.kubernetes.client.openapi.models.V1beta1ResourceClai } public boolean hasReservedFor() { - return this.reservedFor != null && !this.reservedFor.isEmpty(); + return this.reservedFor != null && !(this.reservedFor.isEmpty()); } public ReservedForNested addNewReservedFor() { @@ -378,51 +460,85 @@ public ReservedForNested setNewReservedForLike(int index,V1beta1ResourceClaim } public ReservedForNested editReservedFor(int index) { - if (reservedFor.size() <= index) throw new RuntimeException("Can't edit reservedFor. Index exceeds size."); - return setNewReservedForLike(index, buildReservedFor(index)); + if (index <= reservedFor.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); } public ReservedForNested editFirstReservedFor() { - if (reservedFor.size() == 0) throw new RuntimeException("Can't edit first reservedFor. The list is empty."); - return setNewReservedForLike(0, buildReservedFor(0)); + if (reservedFor.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(0, this.buildReservedFor(0)); } public ReservedForNested editLastReservedFor() { int index = reservedFor.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last reservedFor. The list is empty."); - return setNewReservedForLike(index, buildReservedFor(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); } public ReservedForNested editMatchingReservedFor(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1AllocatedDeviceStatusFluent extends V1beta1ResourceClaimConsumerReferenceF int index; public N and() { - return (N) V1beta1ResourceClaimStatusFluent.this.setToReservedFor(index,builder.build()); + return (N) V1beta1ResourceClaimStatusFluent.this.setToReservedFor(index, builder.build()); } public N endReservedFor() { 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 77dbda5dc4..375d777893 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceClaimTemplateBuilder extends V1beta1ResourceClaimTemplateFluent implements VisitableBuilder{ public V1beta1ResourceClaimTemplateBuilder() { this(new V1beta1ResourceClaimTemplate()); 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 12b5ee7d98..288addd52d 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceClaimTemplateFluent> extends BaseFluent{ +public class V1beta1ResourceClaimTemplateFluent> extends BaseFluent{ public V1beta1ResourceClaimTemplateFluent() { } @@ -23,13 +26,13 @@ public V1beta1ResourceClaimTemplateFluent(V1beta1ResourceClaimTemplate instance) private V1beta1ResourceClaimTemplateSpecBuilder spec; protected void copyInstance(V1beta1ResourceClaimTemplate instance) { - instance = (instance != null ? instance : new V1beta1ResourceClaimTemplate()); + instance = instance != null ? instance : new V1beta1ResourceClaimTemplate(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta1ResourceClaimTemplateSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ResourceClaimTemplateSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceClaimTemplateSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourceClaimTemplateFluent that = (V1beta1ResourceClaimTemplateFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 45f0702169..3c3218072c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceClaimTemplateListBuilder extends V1beta1ResourceClaimTemplateListFluent implements VisitableBuilder{ public V1beta1ResourceClaimTemplateListBuilder() { this(new V1beta1ResourceClaimTemplateList()); 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 f0bab0120c..5ff41630f3 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceClaimTemplateListFluent> extends BaseFluent{ +public class V1beta1ResourceClaimTemplateListFluent> extends BaseFluent{ public V1beta1ResourceClaimTemplateListFluent() { } @@ -29,13 +32,13 @@ public V1beta1ResourceClaimTemplateListFluent(V1beta1ResourceClaimTemplateList i private V1ListMetaBuilder metadata; protected void copyInstance(V1beta1ResourceClaimTemplateList instance) { - instance = (instance != null ? instance : new V1beta1ResourceClaimTemplateList()); + instance = instance != null ? instance : new V1beta1ResourceClaimTemplateList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta1ResourceClaimTemplate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta1ResourceClaimTemplate item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta1ResourceClaimTemplate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta1ResourceClaimTemplate item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplate... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ResourceClaimTemplate item : items) {V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta1ResourceClaimTemplate... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ResourceClaimTemplate item : items) { + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ResourceClaimTemplate item : items) {V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ResourceClaimTemplate item : items) { + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplate... items) { - if (this.items == null) return (A)this; - for (V1beta1ResourceClaimTemplate item : items) {V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta1ResourceClaimTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceClaimTemplate item : items) { + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1ResourceClaimTemplate item : items) {V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceClaimTemplate item : items) { + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta1ResourceClaimTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplate... items) { + public A withItems(V1beta1ResourceClaimTemplate... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1ResourceClaimTempl } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta1ResourceClaimTemplate item } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourceClaimTemplateListFluent that = (V1beta1ResourceClaimTemplateListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta1ResourceClaimTemplateFluent implements VisitableBuilder{ public V1beta1ResourceClaimTemplateSpecBuilder() { this(new V1beta1ResourceClaimTemplateSpec()); 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 6990b843a2..c7306f7adc 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceClaimTemplateSpecFluent> extends BaseFluent{ +public class V1beta1ResourceClaimTemplateSpecFluent> extends BaseFluent{ public V1beta1ResourceClaimTemplateSpecFluent() { } @@ -21,11 +24,11 @@ public V1beta1ResourceClaimTemplateSpecFluent(V1beta1ResourceClaimTemplateSpec i private V1beta1ResourceClaimSpecBuilder spec; protected void copyInstance(V1beta1ResourceClaimTemplateSpec instance) { - instance = (instance != null ? instance : new V1beta1ResourceClaimTemplateSpec()); + instance = instance != null ? instance : new V1beta1ResourceClaimTemplateSpec(); if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public V1ObjectMeta buildMetadata() { @@ -57,15 +60,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta1ResourceClaimSpec buildSpec() { @@ -97,36 +100,53 @@ public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta1ResourceClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourceClaimTemplateSpecFluent that = (V1beta1ResourceClaimTemplateSpecFluent) o; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); + return Objects.hash(metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } sb.append("}"); return sb.toString(); } 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 6d0bac7bd8..7f3fdcd774 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourcePoolBuilder extends V1beta1ResourcePoolFluent implements VisitableBuilder{ public V1beta1ResourcePoolBuilder() { this(new V1beta1ResourcePool()); 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 eadacb4293..c206035048 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourcePoolFluent> extends BaseFluent{ +public class V1beta1ResourcePoolFluent> extends BaseFluent{ public V1beta1ResourcePoolFluent() { } @@ -22,12 +24,12 @@ public V1beta1ResourcePoolFluent(V1beta1ResourcePool instance) { private Long resourceSliceCount; protected void copyInstance(V1beta1ResourcePool instance) { - instance = (instance != null ? instance : new V1beta1ResourcePool()); + instance = instance != null ? instance : new V1beta1ResourcePool(); if (instance != null) { - this.withGeneration(instance.getGeneration()); - this.withName(instance.getName()); - this.withResourceSliceCount(instance.getResourceSliceCount()); - } + this.withGeneration(instance.getGeneration()); + this.withName(instance.getName()); + this.withResourceSliceCount(instance.getResourceSliceCount()); + } } public Long getGeneration() { @@ -70,26 +72,49 @@ public boolean hasResourceSliceCount() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourcePoolFluent that = (V1beta1ResourcePoolFluent) o; - if (!java.util.Objects.equals(generation, that.generation)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resourceSliceCount, that.resourceSliceCount)) return false; + if (!(Objects.equals(generation, that.generation))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceSliceCount, that.resourceSliceCount))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(generation, name, resourceSliceCount, super.hashCode()); + return Objects.hash(generation, name, resourceSliceCount); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (generation != null) { sb.append("generation:"); sb.append(generation + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (resourceSliceCount != null) { sb.append("resourceSliceCount:"); sb.append(resourceSliceCount); } + if (!(generation == null)) { + sb.append("generation:"); + sb.append(generation); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceSliceCount == null)) { + sb.append("resourceSliceCount:"); + sb.append(resourceSliceCount); + } sb.append("}"); return sb.toString(); } 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 3fef42af65..95195d27ff 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceSliceBuilder extends V1beta1ResourceSliceFluent implements VisitableBuilder{ public V1beta1ResourceSliceBuilder() { this(new V1beta1ResourceSlice()); 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 ed9d1f8a2e..4f6bdb198c 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceSliceFluent> extends BaseFluent{ +public class V1beta1ResourceSliceFluent> extends BaseFluent{ public V1beta1ResourceSliceFluent() { } @@ -23,13 +26,13 @@ public V1beta1ResourceSliceFluent(V1beta1ResourceSlice instance) { private V1beta1ResourceSliceSpecBuilder spec; protected void copyInstance(V1beta1ResourceSlice instance) { - instance = (instance != null ? instance : new V1beta1ResourceSlice()); + instance = instance != null ? instance : new V1beta1ResourceSlice(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta1ResourceSliceSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1beta1ResourceSliceSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ResourceSliceSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceSliceSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta1ResourceSliceSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourceSliceFluent that = (V1beta1ResourceSliceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 8b5df90a17..e30f2dae46 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceSliceListBuilder extends V1beta1ResourceSliceListFluent implements VisitableBuilder{ public V1beta1ResourceSliceListBuilder() { this(new V1beta1ResourceSliceList()); 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 ac9a84afcc..e0a63af609 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceSliceListFluent> extends BaseFluent{ +public class V1beta1ResourceSliceListFluent> extends BaseFluent{ public V1beta1ResourceSliceListFluent() { } @@ -29,13 +32,13 @@ public V1beta1ResourceSliceListFluent(V1beta1ResourceSliceList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1beta1ResourceSliceList instance) { - instance = (instance != null ? instance : new V1beta1ResourceSliceList()); + instance = instance != null ? instance : new V1beta1ResourceSliceList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta1ResourceSlice item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta1ResourceSlice item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta1ResourceSlice item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta1ResourceSlice item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1ResourceSlice... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ResourceSlice item : items) {V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta1ResourceSlice... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ResourceSlice item : items) { + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ResourceSlice item : items) {V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ResourceSlice item : items) { + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ResourceSlice... items) { - if (this.items == null) return (A)this; - for (V1beta1ResourceSlice item : items) {V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta1ResourceSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceSlice item : items) { + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1ResourceSlice item : items) {V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceSlice item : items) { + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta1ResourceSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1ResourceSlice... items) { + public A withItems(V1beta1ResourceSlice... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1ResourceSlice... i } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta1ResourceSlice item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ResourceSliceListFluent that = (V1beta1ResourceSliceListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta1ResourceSliceFluent> i int index; public N and() { - return (N) V1beta1ResourceSliceListFluent.this.setToItems(index,builder.build()); + return (N) V1beta1ResourceSliceListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 77a29b2932..e27296d4d0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ResourceSliceSpecBuilder extends V1beta1ResourceSliceSpecFluent implements VisitableBuilder{ public V1beta1ResourceSliceSpecBuilder() { this(new V1beta1ResourceSliceSpec()); 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 6fed1f29f3..0748e4cbe1 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 @@ -1,15 +1,18 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ResourceSliceSpecFluent> extends BaseFluent{ +public class V1beta1ResourceSliceSpecFluent> extends BaseFluent{ public V1beta1ResourceSliceSpecFluent() { } @@ -34,17 +37,17 @@ public V1beta1ResourceSliceSpecFluent(V1beta1ResourceSliceSpec instance) { private ArrayList sharedCounters; protected void copyInstance(V1beta1ResourceSliceSpec instance) { - instance = (instance != null ? instance : new V1beta1ResourceSliceSpec()); + instance = instance != null ? instance : new V1beta1ResourceSliceSpec(); if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withDevices(instance.getDevices()); - this.withDriver(instance.getDriver()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); - this.withPool(instance.getPool()); - this.withSharedCounters(instance.getSharedCounters()); - } + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } } public Boolean getAllNodes() { @@ -61,7 +64,9 @@ public boolean hasAllNodes() { } public A addToDevices(int index,V1beta1Device item) { - if (this.devices == null) {this.devices = new ArrayList();} + if (this.devices == null) { + this.devices = new ArrayList(); + } V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); @@ -70,11 +75,13 @@ public A addToDevices(int index,V1beta1Device item) { _visitables.get("devices").add(builder); devices.add(index, builder); } - return (A)this; + return (A) this; } public A setToDevices(int index,V1beta1Device item) { - if (this.devices == null) {this.devices = new ArrayList();} + if (this.devices == null) { + this.devices = new ArrayList(); + } V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); @@ -83,41 +90,71 @@ public A setToDevices(int index,V1beta1Device item) { _visitables.get("devices").add(builder); devices.set(index, builder); } - return (A)this; + return (A) this; } - public A addToDevices(io.kubernetes.client.openapi.models.V1beta1Device... items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1beta1Device item : items) {V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + public A addToDevices(V1beta1Device... items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1beta1Device item : items) { + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; } public A addAllToDevices(Collection items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1beta1Device item : items) {V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1beta1Device item : items) { + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; } - public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta1Device... items) { - if (this.devices == null) return (A)this; - for (V1beta1Device item : items) {V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + public A removeFromDevices(V1beta1Device... items) { + if (this.devices == null) { + return (A) this; + } + for (V1beta1Device item : items) { + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; } public A removeAllFromDevices(Collection items) { - if (this.devices == null) return (A)this; - for (V1beta1Device item : items) {V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + if (this.devices == null) { + return (A) this; + } + for (V1beta1Device item : items) { + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; } public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) return (A) this; - final Iterator each = devices.iterator(); - final List visitables = _visitables.get("devices"); + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); while (each.hasNext()) { - V1beta1DeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildDevices() { @@ -169,7 +206,7 @@ public A withDevices(List devices) { return (A) this; } - public A withDevices(io.kubernetes.client.openapi.models.V1beta1Device... devices) { + public A withDevices(V1beta1Device... devices) { if (this.devices != null) { this.devices.clear(); _visitables.remove("devices"); @@ -183,7 +220,7 @@ public A withDevices(io.kubernetes.client.openapi.models.V1beta1Device... device } public boolean hasDevices() { - return this.devices != null && !this.devices.isEmpty(); + return this.devices != null && !(this.devices.isEmpty()); } public DevicesNested addNewDevice() { @@ -199,28 +236,39 @@ public DevicesNested setNewDeviceLike(int index,V1beta1Device item) { } public DevicesNested editDevice(int index) { - if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); - return setNewDeviceLike(index, buildDevice(index)); + if (index <= devices.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); } public DevicesNested editFirstDevice() { - if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); - return setNewDeviceLike(0, buildDevice(0)); + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); } public DevicesNested editLastDevice() { int index = devices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); - return setNewDeviceLike(index, buildDevice(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); } public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; - for (int i=0;i withNewNodeSelectorLike(V1NodeSelector item) { } public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } public Boolean getPerDeviceNodeSelection() { @@ -331,19 +379,21 @@ public PoolNested withNewPoolLike(V1beta1ResourcePool item) { } public PoolNested editPool() { - return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(null)); + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); } public PoolNested editOrNewPool() { - return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(new V1beta1ResourcePoolBuilder().build())); + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1beta1ResourcePoolBuilder().build())); } public PoolNested editOrNewPoolLike(V1beta1ResourcePool item) { - return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(item)); + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); } public A addToSharedCounters(int index,V1beta1CounterSet item) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); if (index < 0 || index >= sharedCounters.size()) { _visitables.get("sharedCounters").add(builder); @@ -352,11 +402,13 @@ public A addToSharedCounters(int index,V1beta1CounterSet item) { _visitables.get("sharedCounters").add(builder); sharedCounters.add(index, builder); } - return (A)this; + return (A) this; } public A setToSharedCounters(int index,V1beta1CounterSet item) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); if (index < 0 || index >= sharedCounters.size()) { _visitables.get("sharedCounters").add(builder); @@ -365,41 +417,71 @@ public A setToSharedCounters(int index,V1beta1CounterSet item) { _visitables.get("sharedCounters").add(builder); sharedCounters.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSet... items) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} - for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + public A addToSharedCounters(V1beta1CounterSet... items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + for (V1beta1CounterSet item : items) { + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); + } + return (A) this; } public A addAllToSharedCounters(Collection items) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} - for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + for (V1beta1CounterSet item : items) { + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); + } + return (A) this; } - public A removeFromSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSet... items) { - if (this.sharedCounters == null) return (A)this; - for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + public A removeFromSharedCounters(V1beta1CounterSet... items) { + if (this.sharedCounters == null) { + return (A) this; + } + for (V1beta1CounterSet item : items) { + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); + } + return (A) this; } public A removeAllFromSharedCounters(Collection items) { - if (this.sharedCounters == null) return (A)this; - for (V1beta1CounterSet item : items) {V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + if (this.sharedCounters == null) { + return (A) this; + } + for (V1beta1CounterSet item : items) { + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); + } + return (A) this; } public A removeMatchingFromSharedCounters(Predicate predicate) { - if (sharedCounters == null) return (A) this; - final Iterator each = sharedCounters.iterator(); - final List visitables = _visitables.get("sharedCounters"); + if (sharedCounters == null) { + return (A) this; + } + Iterator each = sharedCounters.iterator(); + List visitables = _visitables.get("sharedCounters"); while (each.hasNext()) { - V1beta1CounterSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSharedCounters() { @@ -451,7 +533,7 @@ public A withSharedCounters(List sharedCounters) { return (A) this; } - public A withSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSet... sharedCounters) { + public A withSharedCounters(V1beta1CounterSet... sharedCounters) { if (this.sharedCounters != null) { this.sharedCounters.clear(); _visitables.remove("sharedCounters"); @@ -465,7 +547,7 @@ public A withSharedCounters(io.kubernetes.client.openapi.models.V1beta1CounterSe } public boolean hasSharedCounters() { - return this.sharedCounters != null && !this.sharedCounters.isEmpty(); + return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); } public SharedCountersNested addNewSharedCounter() { @@ -481,61 +563,125 @@ public SharedCountersNested setNewSharedCounterLike(int index,V1beta1CounterS } public SharedCountersNested editSharedCounter(int index) { - if (sharedCounters.size() <= index) throw new RuntimeException("Can't edit sharedCounters. Index exceeds size."); - return setNewSharedCounterLike(index, buildSharedCounter(index)); + if (index <= sharedCounters.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } public SharedCountersNested editFirstSharedCounter() { - if (sharedCounters.size() == 0) throw new RuntimeException("Can't edit first sharedCounters. The list is empty."); - return setNewSharedCounterLike(0, buildSharedCounter(0)); + if (sharedCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); } public SharedCountersNested editLastSharedCounter() { int index = sharedCounters.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last sharedCounters. The list is empty."); - return setNewSharedCounterLike(index, buildSharedCounter(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta1DeviceFluent> impl int index; public N and() { - return (N) V1beta1ResourceSliceSpecFluent.this.setToDevices(index,builder.build()); + return (N) V1beta1ResourceSliceSpecFluent.this.setToDevices(index, builder.build()); } public N endDevice() { @@ -606,7 +752,7 @@ public class SharedCountersNested extends V1beta1CounterSetFluent implements VisitableBuilder{ public V1beta1ServiceCIDRBuilder() { this(new V1beta1ServiceCIDR()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java index abaad1a5a6..bc2d092f33 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ServiceCIDRFluent> extends BaseFluent{ +public class V1beta1ServiceCIDRFluent> extends BaseFluent{ public V1beta1ServiceCIDRFluent() { } @@ -24,14 +27,14 @@ public V1beta1ServiceCIDRFluent(V1beta1ServiceCIDR instance) { private V1beta1ServiceCIDRStatusBuilder status; protected void copyInstance(V1beta1ServiceCIDR instance) { - instance = (instance != null ? instance : new V1beta1ServiceCIDR()); + instance = instance != null ? instance : new V1beta1ServiceCIDR(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta1ServiceCIDRSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1beta1ServiceCIDRSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ServiceCIDRSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ServiceCIDRSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta1ServiceCIDRSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1beta1ServiceCIDRStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1beta1ServiceCIDRStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta1ServiceCIDRStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1ServiceCIDRStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1beta1ServiceCIDRStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ServiceCIDRFluent that = (V1beta1ServiceCIDRFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java index d9a1ac973f..0201490295 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ServiceCIDRListBuilder extends V1beta1ServiceCIDRListFluent implements VisitableBuilder{ public V1beta1ServiceCIDRListBuilder() { this(new V1beta1ServiceCIDRList()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java index 820632541e..92467a0a45 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ServiceCIDRListFluent> extends BaseFluent{ +public class V1beta1ServiceCIDRListFluent> extends BaseFluent{ public V1beta1ServiceCIDRListFluent() { } @@ -29,13 +32,13 @@ public V1beta1ServiceCIDRListFluent(V1beta1ServiceCIDRList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1beta1ServiceCIDRList instance) { - instance = (instance != null ? instance : new V1beta1ServiceCIDRList()); + instance = instance != null ? instance : new V1beta1ServiceCIDRList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta1ServiceCIDR item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta1ServiceCIDR item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta1ServiceCIDR item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta1ServiceCIDR item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1ServiceCIDR... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ServiceCIDR item : items) {V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta1ServiceCIDR... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ServiceCIDR item : items) { + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ServiceCIDR item : items) {V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1ServiceCIDR item : items) { + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ServiceCIDR... items) { - if (this.items == null) return (A)this; - for (V1beta1ServiceCIDR item : items) {V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta1ServiceCIDR... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ServiceCIDR item : items) { + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1ServiceCIDR item : items) {V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta1ServiceCIDR item : items) { + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta1ServiceCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1ServiceCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1ServiceCIDR... items) { + public A withItems(V1beta1ServiceCIDR... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1ServiceCIDR... ite } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta1ServiceCIDR item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1ServiceCIDRListFluent that = (V1beta1ServiceCIDRListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta1ServiceCIDRFluent> imp int index; public N and() { - return (N) V1beta1ServiceCIDRListFluent.this.setToItems(index,builder.build()); + return (N) V1beta1ServiceCIDRListFluent.this.setToItems(index, builder.build()); } public N endItem() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java index da4f32f552..6d50ca04b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ServiceCIDRSpecBuilder extends V1beta1ServiceCIDRSpecFluent implements VisitableBuilder{ public V1beta1ServiceCIDRSpecBuilder() { this(new V1beta1ServiceCIDRSpec()); 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 index f4ac442be5..65e75c7d2b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ServiceCIDRSpecFluent> extends BaseFluent{ +public class V1beta1ServiceCIDRSpecFluent> extends BaseFluent{ public V1beta1ServiceCIDRSpecFluent() { } @@ -23,41 +25,66 @@ public V1beta1ServiceCIDRSpecFluent(V1beta1ServiceCIDRSpec instance) { private List cidrs; protected void copyInstance(V1beta1ServiceCIDRSpec instance) { - instance = (instance != null ? instance : new V1beta1ServiceCIDRSpec()); + instance = instance != null ? instance : new V1beta1ServiceCIDRSpec(); if (instance != null) { - this.withCidrs(instance.getCidrs()); - } + this.withCidrs(instance.getCidrs()); + } } public A addToCidrs(int index,String item) { - if (this.cidrs == null) {this.cidrs = new ArrayList();} + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } this.cidrs.add(index, item); - return (A)this; + 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; + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + this.cidrs.set(index, item); + return (A) this; } - public A addToCidrs(java.lang.String... items) { - if (this.cidrs == null) {this.cidrs = new ArrayList();} - for (String item : items) {this.cidrs.add(item);} return (A)this; + public A addToCidrs(String... items) { + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + for (String item : items) { + this.cidrs.add(item); + } + return (A) this; } public A addAllToCidrs(Collection items) { - if (this.cidrs == null) {this.cidrs = new ArrayList();} - for (String item : items) {this.cidrs.add(item);} return (A)this; + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + for (String item : items) { + this.cidrs.add(item); + } + return (A) this; } - public A removeFromCidrs(java.lang.String... items) { - if (this.cidrs == null) return (A)this; - for (String item : items) { this.cidrs.remove(item);} return (A)this; + public A removeFromCidrs(String... items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; } public A removeAllFromCidrs(Collection items) { - if (this.cidrs == null) return (A)this; - for (String item : items) { this.cidrs.remove(item);} return (A)this; + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; } public List getCidrs() { @@ -106,7 +133,7 @@ public A withCidrs(List cidrs) { return (A) this; } - public A withCidrs(java.lang.String... cidrs) { + public A withCidrs(String... cidrs) { if (this.cidrs != null) { this.cidrs.clear(); _visitables.remove("cidrs"); @@ -120,26 +147,37 @@ public A withCidrs(java.lang.String... cidrs) { } public boolean hasCidrs() { - return this.cidrs != null && !this.cidrs.isEmpty(); + return this.cidrs != null && !(this.cidrs.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + 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 (!java.util.Objects.equals(cidrs, that.cidrs)) return false; + if (!(Objects.equals(cidrs, that.cidrs))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(cidrs, super.hashCode()); + return Objects.hash(cidrs); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (cidrs != null && !cidrs.isEmpty()) { sb.append("cidrs:"); sb.append(cidrs); } + if (!(cidrs == null) && !(cidrs.isEmpty())) { + sb.append("cidrs:"); + sb.append(cidrs); + } sb.append("}"); return sb.toString(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java index 1aeaff78a7..47fff76abb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ServiceCIDRStatusBuilder extends V1beta1ServiceCIDRStatusFluent implements VisitableBuilder{ public V1beta1ServiceCIDRStatusBuilder() { this(new V1beta1ServiceCIDRStatus()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java index f476967399..a46dbd7866 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java @@ -1,13 +1,15 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ServiceCIDRStatusFluent> extends BaseFluent{ +public class V1beta1ServiceCIDRStatusFluent> extends BaseFluent{ public V1beta1ServiceCIDRStatusFluent() { } @@ -26,14 +28,16 @@ public V1beta1ServiceCIDRStatusFluent(V1beta1ServiceCIDRStatus instance) { private ArrayList conditions; protected void copyInstance(V1beta1ServiceCIDRStatus instance) { - instance = (instance != null ? instance : new V1beta1ServiceCIDRStatus()); + instance = instance != null ? instance : new V1beta1ServiceCIDRStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - } + this.withConditions(instance.getConditions()); + } } public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -42,11 +46,13 @@ public A addToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -55,41 +61,71 @@ public A setToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A 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 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; + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -141,7 +177,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + public A withConditions(V1Condition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -155,7 +191,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -171,47 +207,69 @@ public ConditionsNested setNewConditionLike(int index,V1Condition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 extends V1ConditionFluent> int index; public N and() { - return (N) V1beta1ServiceCIDRStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1beta1ServiceCIDRStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingBuilder.java deleted file mode 100644 index b146a4ff47..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1TypeCheckingBuilder extends V1beta1TypeCheckingFluent implements VisitableBuilder{ - public V1beta1TypeCheckingBuilder() { - this(new V1beta1TypeChecking()); - } - - public V1beta1TypeCheckingBuilder(V1beta1TypeCheckingFluent fluent) { - this(fluent, new V1beta1TypeChecking()); - } - - public V1beta1TypeCheckingBuilder(V1beta1TypeCheckingFluent fluent,V1beta1TypeChecking instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1TypeCheckingBuilder(V1beta1TypeChecking instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1TypeCheckingFluent fluent; - - public V1beta1TypeChecking build() { - V1beta1TypeChecking buildable = new V1beta1TypeChecking(); - buildable.setExpressionWarnings(fluent.buildExpressionWarnings()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java deleted file mode 100644 index efcc2d7d1e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.java +++ /dev/null @@ -1,237 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1TypeCheckingFluent> extends BaseFluent{ - public V1beta1TypeCheckingFluent() { - } - - public V1beta1TypeCheckingFluent(V1beta1TypeChecking instance) { - this.copyInstance(instance); - } - private ArrayList expressionWarnings; - - protected void copyInstance(V1beta1TypeChecking instance) { - instance = (instance != null ? instance : new V1beta1TypeChecking()); - if (instance != null) { - this.withExpressionWarnings(instance.getExpressionWarnings()); - } - } - - public A addToExpressionWarnings(int index,V1beta1ExpressionWarning item) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.add(builder); - } else { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.add(index, builder); - } - return (A)this; - } - - public A setToExpressionWarnings(int index,V1beta1ExpressionWarning item) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.add(builder); - } else { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.set(index, builder); - } - return (A)this; - } - - public A addToExpressionWarnings(io.kubernetes.client.openapi.models.V1beta1ExpressionWarning... items) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - for (V1beta1ExpressionWarning item : items) {V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").add(builder);this.expressionWarnings.add(builder);} return (A)this; - } - - public A addAllToExpressionWarnings(Collection items) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - for (V1beta1ExpressionWarning item : items) {V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").add(builder);this.expressionWarnings.add(builder);} return (A)this; - } - - public A removeFromExpressionWarnings(io.kubernetes.client.openapi.models.V1beta1ExpressionWarning... items) { - if (this.expressionWarnings == null) return (A)this; - for (V1beta1ExpressionWarning item : items) {V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").remove(builder); this.expressionWarnings.remove(builder);} return (A)this; - } - - public A removeAllFromExpressionWarnings(Collection items) { - if (this.expressionWarnings == null) return (A)this; - for (V1beta1ExpressionWarning item : items) {V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").remove(builder); this.expressionWarnings.remove(builder);} return (A)this; - } - - public A removeMatchingFromExpressionWarnings(Predicate predicate) { - if (expressionWarnings == null) return (A) this; - final Iterator each = expressionWarnings.iterator(); - final List visitables = _visitables.get("expressionWarnings"); - while (each.hasNext()) { - V1beta1ExpressionWarningBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildExpressionWarnings() { - return this.expressionWarnings != null ? build(expressionWarnings) : null; - } - - public V1beta1ExpressionWarning buildExpressionWarning(int index) { - return this.expressionWarnings.get(index).build(); - } - - public V1beta1ExpressionWarning buildFirstExpressionWarning() { - return this.expressionWarnings.get(0).build(); - } - - public V1beta1ExpressionWarning buildLastExpressionWarning() { - return this.expressionWarnings.get(expressionWarnings.size() - 1).build(); - } - - public V1beta1ExpressionWarning buildMatchingExpressionWarning(Predicate predicate) { - for (V1beta1ExpressionWarningBuilder item : expressionWarnings) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingExpressionWarning(Predicate predicate) { - for (V1beta1ExpressionWarningBuilder item : expressionWarnings) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withExpressionWarnings(List expressionWarnings) { - if (this.expressionWarnings != null) { - this._visitables.get("expressionWarnings").clear(); - } - if (expressionWarnings != null) { - this.expressionWarnings = new ArrayList(); - for (V1beta1ExpressionWarning item : expressionWarnings) { - this.addToExpressionWarnings(item); - } - } else { - this.expressionWarnings = null; - } - return (A) this; - } - - public A withExpressionWarnings(io.kubernetes.client.openapi.models.V1beta1ExpressionWarning... expressionWarnings) { - if (this.expressionWarnings != null) { - this.expressionWarnings.clear(); - _visitables.remove("expressionWarnings"); - } - if (expressionWarnings != null) { - for (V1beta1ExpressionWarning item : expressionWarnings) { - this.addToExpressionWarnings(item); - } - } - return (A) this; - } - - public boolean hasExpressionWarnings() { - return this.expressionWarnings != null && !this.expressionWarnings.isEmpty(); - } - - public ExpressionWarningsNested addNewExpressionWarning() { - return new ExpressionWarningsNested(-1, null); - } - - public ExpressionWarningsNested addNewExpressionWarningLike(V1beta1ExpressionWarning item) { - return new ExpressionWarningsNested(-1, item); - } - - public ExpressionWarningsNested setNewExpressionWarningLike(int index,V1beta1ExpressionWarning item) { - return new ExpressionWarningsNested(index, item); - } - - public ExpressionWarningsNested editExpressionWarning(int index) { - if (expressionWarnings.size() <= index) throw new RuntimeException("Can't edit expressionWarnings. Index exceeds size."); - return setNewExpressionWarningLike(index, buildExpressionWarning(index)); - } - - public ExpressionWarningsNested editFirstExpressionWarning() { - if (expressionWarnings.size() == 0) throw new RuntimeException("Can't edit first expressionWarnings. The list is empty."); - return setNewExpressionWarningLike(0, buildExpressionWarning(0)); - } - - public ExpressionWarningsNested editLastExpressionWarning() { - int index = expressionWarnings.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last expressionWarnings. The list is empty."); - return setNewExpressionWarningLike(index, buildExpressionWarning(index)); - } - - public ExpressionWarningsNested editMatchingExpressionWarning(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta1ExpressionWarningFluent> implements Nested{ - ExpressionWarningsNested(int index,V1beta1ExpressionWarning item) { - this.index = index; - this.builder = new V1beta1ExpressionWarningBuilder(this, item); - } - V1beta1ExpressionWarningBuilder builder; - int index; - - public N and() { - return (N) V1beta1TypeCheckingFluent.this.setToExpressionWarnings(index,builder.build()); - } - - public N endExpressionWarning() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingBuilder.java deleted file mode 100644 index 0025d41770..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyBindingBuilder extends V1beta1ValidatingAdmissionPolicyBindingFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyBindingBuilder() { - this(new V1beta1ValidatingAdmissionPolicyBinding()); - } - - public V1beta1ValidatingAdmissionPolicyBindingBuilder(V1beta1ValidatingAdmissionPolicyBindingFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyBinding()); - } - - public V1beta1ValidatingAdmissionPolicyBindingBuilder(V1beta1ValidatingAdmissionPolicyBindingFluent fluent,V1beta1ValidatingAdmissionPolicyBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyBindingBuilder(V1beta1ValidatingAdmissionPolicyBinding instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyBindingFluent fluent; - - public V1beta1ValidatingAdmissionPolicyBinding build() { - V1beta1ValidatingAdmissionPolicyBinding buildable = new V1beta1ValidatingAdmissionPolicyBinding(); - 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/V1beta1ValidatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListBuilder.java deleted file mode 100644 index da4dbc7721..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyBindingListBuilder extends V1beta1ValidatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyBindingListBuilder() { - this(new V1beta1ValidatingAdmissionPolicyBindingList()); - } - - public V1beta1ValidatingAdmissionPolicyBindingListBuilder(V1beta1ValidatingAdmissionPolicyBindingListFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyBindingList()); - } - - public V1beta1ValidatingAdmissionPolicyBindingListBuilder(V1beta1ValidatingAdmissionPolicyBindingListFluent fluent,V1beta1ValidatingAdmissionPolicyBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyBindingListBuilder(V1beta1ValidatingAdmissionPolicyBindingList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyBindingListFluent fluent; - - public V1beta1ValidatingAdmissionPolicyBindingList build() { - V1beta1ValidatingAdmissionPolicyBindingList buildable = new V1beta1ValidatingAdmissionPolicyBindingList(); - 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/V1beta1ValidatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java deleted file mode 100644 index 5fe25d0e6b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java +++ /dev/null @@ -1,331 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyBindingListFluent() { - } - - public V1beta1ValidatingAdmissionPolicyBindingListFluent(V1beta1ValidatingAdmissionPolicyBindingList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicyBindingList instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyBindingList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1beta1ValidatingAdmissionPolicyBinding item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.add(index, builder); - } - return (A)this; - } - - public A setToItems(int index,V1beta1ValidatingAdmissionPolicyBinding item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ValidatingAdmissionPolicyBinding item : items) {V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ValidatingAdmissionPolicyBinding item : items) {V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding... items) { - if (this.items == null) return (A)this; - for (V1beta1ValidatingAdmissionPolicyBinding item : items) {V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1ValidatingAdmissionPolicyBinding item : items) {V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1ValidatingAdmissionPolicyBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1beta1ValidatingAdmissionPolicyBinding buildItem(int index) { - return this.items.get(index).build(); - } - - public V1beta1ValidatingAdmissionPolicyBinding buildFirstItem() { - return this.items.get(0).build(); - } - - public V1beta1ValidatingAdmissionPolicyBinding buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1beta1ValidatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { - for (V1beta1ValidatingAdmissionPolicyBindingBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1ValidatingAdmissionPolicyBindingBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1ValidatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1ValidatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1ValidatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1ValidatingAdmissionPolicyBinding item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1ValidatingAdmissionPolicyBindingListFluent that = (V1beta1ValidatingAdmissionPolicyBindingListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1beta1ValidatingAdmissionPolicyBindingFluent> implements Nested{ - ItemsNested(int index,V1beta1ValidatingAdmissionPolicyBinding item) { - this.index = index; - this.builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(this, item); - } - V1beta1ValidatingAdmissionPolicyBindingBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingListFluent.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/V1beta1ValidatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpecBuilder.java deleted file mode 100644 index c4cfe3f665..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpecBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyBindingSpecBuilder extends V1beta1ValidatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyBindingSpecBuilder() { - this(new V1beta1ValidatingAdmissionPolicyBindingSpec()); - } - - public V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(V1beta1ValidatingAdmissionPolicyBindingSpecFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyBindingSpec()); - } - - public V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(V1beta1ValidatingAdmissionPolicyBindingSpecFluent fluent,V1beta1ValidatingAdmissionPolicyBindingSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(V1beta1ValidatingAdmissionPolicyBindingSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyBindingSpecFluent fluent; - - public V1beta1ValidatingAdmissionPolicyBindingSpec build() { - V1beta1ValidatingAdmissionPolicyBindingSpec buildable = new V1beta1ValidatingAdmissionPolicyBindingSpec(); - buildable.setMatchResources(fluent.buildMatchResources()); - buildable.setParamRef(fluent.buildParamRef()); - buildable.setPolicyName(fluent.getPolicyName()); - buildable.setValidationActions(fluent.getValidationActions()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpecFluent.java deleted file mode 100644 index 3e131d4d9e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpecFluent.java +++ /dev/null @@ -1,285 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyBindingSpecFluent() { - } - - public V1beta1ValidatingAdmissionPolicyBindingSpecFluent(V1beta1ValidatingAdmissionPolicyBindingSpec instance) { - this.copyInstance(instance); - } - private V1beta1MatchResourcesBuilder matchResources; - private V1beta1ParamRefBuilder paramRef; - private String policyName; - private List validationActions; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicyBindingSpec instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyBindingSpec()); - if (instance != null) { - this.withMatchResources(instance.getMatchResources()); - this.withParamRef(instance.getParamRef()); - this.withPolicyName(instance.getPolicyName()); - this.withValidationActions(instance.getValidationActions()); - } - } - - public V1beta1MatchResources buildMatchResources() { - return this.matchResources != null ? this.matchResources.build() : null; - } - - public A withMatchResources(V1beta1MatchResources matchResources) { - this._visitables.remove("matchResources"); - if (matchResources != null) { - this.matchResources = new V1beta1MatchResourcesBuilder(matchResources); - this._visitables.get("matchResources").add(this.matchResources); - } else { - this.matchResources = null; - this._visitables.get("matchResources").remove(this.matchResources); - } - return (A) this; - } - - public boolean hasMatchResources() { - return this.matchResources != null; - } - - public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); - } - - public MatchResourcesNested withNewMatchResourcesLike(V1beta1MatchResources item) { - return new MatchResourcesNested(item); - } - - public MatchResourcesNested editMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(null)); - } - - public MatchResourcesNested editOrNewMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(new V1beta1MatchResourcesBuilder().build())); - } - - public MatchResourcesNested editOrNewMatchResourcesLike(V1beta1MatchResources item) { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(item)); - } - - public V1beta1ParamRef buildParamRef() { - return this.paramRef != null ? this.paramRef.build() : null; - } - - public A withParamRef(V1beta1ParamRef paramRef) { - this._visitables.remove("paramRef"); - if (paramRef != null) { - this.paramRef = new V1beta1ParamRefBuilder(paramRef); - this._visitables.get("paramRef").add(this.paramRef); - } else { - this.paramRef = null; - this._visitables.get("paramRef").remove(this.paramRef); - } - return (A) this; - } - - public boolean hasParamRef() { - return this.paramRef != null; - } - - public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); - } - - public ParamRefNested withNewParamRefLike(V1beta1ParamRef item) { - return new ParamRefNested(item); - } - - public ParamRefNested editParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(null)); - } - - public ParamRefNested editOrNewParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(new V1beta1ParamRefBuilder().build())); - } - - public ParamRefNested editOrNewParamRefLike(V1beta1ParamRef item) { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(item)); - } - - public String getPolicyName() { - return this.policyName; - } - - public A withPolicyName(String policyName) { - this.policyName = policyName; - return (A) this; - } - - public boolean hasPolicyName() { - return this.policyName != null; - } - - public A addToValidationActions(int index,String item) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - this.validationActions.add(index, item); - return (A)this; - } - - public A setToValidationActions(int index,String item) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - this.validationActions.set(index, item); return (A)this; - } - - public A addToValidationActions(java.lang.String... items) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - for (String item : items) {this.validationActions.add(item);} return (A)this; - } - - public A addAllToValidationActions(Collection items) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - for (String item : items) {this.validationActions.add(item);} return (A)this; - } - - public A removeFromValidationActions(java.lang.String... items) { - if (this.validationActions == null) return (A)this; - for (String item : items) { this.validationActions.remove(item);} return (A)this; - } - - public A removeAllFromValidationActions(Collection items) { - if (this.validationActions == null) return (A)this; - for (String item : items) { this.validationActions.remove(item);} return (A)this; - } - - public List getValidationActions() { - return this.validationActions; - } - - public String getValidationAction(int index) { - return this.validationActions.get(index); - } - - public String getFirstValidationAction() { - return this.validationActions.get(0); - } - - public String getLastValidationAction() { - return this.validationActions.get(validationActions.size() - 1); - } - - public String getMatchingValidationAction(Predicate predicate) { - for (String item : validationActions) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingValidationAction(Predicate predicate) { - for (String item : validationActions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withValidationActions(List validationActions) { - if (validationActions != null) { - this.validationActions = new ArrayList(); - for (String item : validationActions) { - this.addToValidationActions(item); - } - } else { - this.validationActions = null; - } - return (A) this; - } - - public A withValidationActions(java.lang.String... validationActions) { - if (this.validationActions != null) { - this.validationActions.clear(); - _visitables.remove("validationActions"); - } - if (validationActions != null) { - for (String item : validationActions) { - this.addToValidationActions(item); - } - } - return (A) this; - } - - public boolean hasValidationActions() { - return this.validationActions != null && !this.validationActions.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1ValidatingAdmissionPolicyBindingSpecFluent that = (V1beta1ValidatingAdmissionPolicyBindingSpecFluent) o; - if (!java.util.Objects.equals(matchResources, that.matchResources)) return false; - if (!java.util.Objects.equals(paramRef, that.paramRef)) return false; - if (!java.util.Objects.equals(policyName, that.policyName)) return false; - if (!java.util.Objects.equals(validationActions, that.validationActions)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(matchResources, paramRef, policyName, validationActions, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (matchResources != null) { sb.append("matchResources:"); sb.append(matchResources + ","); } - if (paramRef != null) { sb.append("paramRef:"); sb.append(paramRef + ","); } - if (policyName != null) { sb.append("policyName:"); sb.append(policyName + ","); } - if (validationActions != null && !validationActions.isEmpty()) { sb.append("validationActions:"); sb.append(validationActions); } - sb.append("}"); - return sb.toString(); - } - public class MatchResourcesNested extends V1beta1MatchResourcesFluent> implements Nested{ - MatchResourcesNested(V1beta1MatchResources item) { - this.builder = new V1beta1MatchResourcesBuilder(this, item); - } - V1beta1MatchResourcesBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); - } - - public N endMatchResources() { - return and(); - } - - - } - public class ParamRefNested extends V1beta1ParamRefFluent> implements Nested{ - ParamRefNested(V1beta1ParamRef item) { - this.builder = new V1beta1ParamRefBuilder(this, item); - } - V1beta1ParamRefBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); - } - - public N endParamRef() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBuilder.java deleted file mode 100644 index 422df88d62..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyBuilder extends V1beta1ValidatingAdmissionPolicyFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyBuilder() { - this(new V1beta1ValidatingAdmissionPolicy()); - } - - public V1beta1ValidatingAdmissionPolicyBuilder(V1beta1ValidatingAdmissionPolicyFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicy()); - } - - public V1beta1ValidatingAdmissionPolicyBuilder(V1beta1ValidatingAdmissionPolicyFluent fluent,V1beta1ValidatingAdmissionPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyBuilder(V1beta1ValidatingAdmissionPolicy instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyFluent fluent; - - public V1beta1ValidatingAdmissionPolicy build() { - V1beta1ValidatingAdmissionPolicy buildable = new V1beta1ValidatingAdmissionPolicy(); - 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/V1beta1ValidatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyFluent.java deleted file mode 100644 index fb026287d3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyFluent.java +++ /dev/null @@ -1,260 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1ValidatingAdmissionPolicyFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyFluent() { - } - - public V1beta1ValidatingAdmissionPolicyFluent(V1beta1ValidatingAdmissionPolicy instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1ValidatingAdmissionPolicySpecBuilder spec; - private V1beta1ValidatingAdmissionPolicyStatusBuilder status; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicy instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicy()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public V1beta1ValidatingAdmissionPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1ValidatingAdmissionPolicySpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1ValidatingAdmissionPolicySpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1ValidatingAdmissionPolicySpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); - } - - public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta1ValidatingAdmissionPolicySpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1beta1ValidatingAdmissionPolicySpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1beta1ValidatingAdmissionPolicyStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta1ValidatingAdmissionPolicyStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta1ValidatingAdmissionPolicyStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1beta1ValidatingAdmissionPolicyStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); - } - - public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta1ValidatingAdmissionPolicyStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta1ValidatingAdmissionPolicyStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1ValidatingAdmissionPolicyFluent that = (V1beta1ValidatingAdmissionPolicyFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1beta1ValidatingAdmissionPolicySpecFluent> implements Nested{ - SpecNested(V1beta1ValidatingAdmissionPolicySpec item) { - this.builder = new V1beta1ValidatingAdmissionPolicySpecBuilder(this, item); - } - V1beta1ValidatingAdmissionPolicySpecBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1beta1ValidatingAdmissionPolicyStatusFluent> implements Nested{ - StatusNested(V1beta1ValidatingAdmissionPolicyStatus item) { - this.builder = new V1beta1ValidatingAdmissionPolicyStatusBuilder(this, item); - } - V1beta1ValidatingAdmissionPolicyStatusBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyFluent.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/V1beta1ValidatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListBuilder.java deleted file mode 100644 index bc311bf4f3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyListBuilder extends V1beta1ValidatingAdmissionPolicyListFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyListBuilder() { - this(new V1beta1ValidatingAdmissionPolicyList()); - } - - public V1beta1ValidatingAdmissionPolicyListBuilder(V1beta1ValidatingAdmissionPolicyListFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyList()); - } - - public V1beta1ValidatingAdmissionPolicyListBuilder(V1beta1ValidatingAdmissionPolicyListFluent fluent,V1beta1ValidatingAdmissionPolicyList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyListBuilder(V1beta1ValidatingAdmissionPolicyList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyListFluent fluent; - - public V1beta1ValidatingAdmissionPolicyList build() { - V1beta1ValidatingAdmissionPolicyList buildable = new V1beta1ValidatingAdmissionPolicyList(); - 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/V1beta1ValidatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java deleted file mode 100644 index 53d9f72b64..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java +++ /dev/null @@ -1,331 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyListFluent() { - } - - public V1beta1ValidatingAdmissionPolicyListFluent(V1beta1ValidatingAdmissionPolicyList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicyList instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(int index,V1beta1ValidatingAdmissionPolicy item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.add(index, builder); - } - return (A)this; - } - - public A setToItems(int index,V1beta1ValidatingAdmissionPolicy item) { - if (this.items == null) {this.items = new ArrayList();} - V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicy... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ValidatingAdmissionPolicy item : items) {V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ValidatingAdmissionPolicy item : items) {V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicy... items) { - if (this.items == null) return (A)this; - for (V1beta1ValidatingAdmissionPolicy item : items) {V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta1ValidatingAdmissionPolicy item : items) {V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1ValidatingAdmissionPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildItems() { - return this.items != null ? build(items) : null; - } - - public V1beta1ValidatingAdmissionPolicy buildItem(int index) { - return this.items.get(index).build(); - } - - public V1beta1ValidatingAdmissionPolicy buildFirstItem() { - return this.items.get(0).build(); - } - - public V1beta1ValidatingAdmissionPolicy buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1beta1ValidatingAdmissionPolicy buildMatchingItem(Predicate predicate) { - for (V1beta1ValidatingAdmissionPolicyBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1ValidatingAdmissionPolicyBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1ValidatingAdmissionPolicy item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicy... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1ValidatingAdmissionPolicy item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1ValidatingAdmissionPolicy item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1ValidatingAdmissionPolicy item) { - return new ItemsNested(index, item); - } - - public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public ItemsNested editLastItem() { - int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); - } - - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1ValidatingAdmissionPolicyListFluent that = (V1beta1ValidatingAdmissionPolicyListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } - public class ItemsNested extends V1beta1ValidatingAdmissionPolicyFluent> implements Nested{ - ItemsNested(int index,V1beta1ValidatingAdmissionPolicy item) { - this.index = index; - this.builder = new V1beta1ValidatingAdmissionPolicyBuilder(this, item); - } - V1beta1ValidatingAdmissionPolicyBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyListFluent.this.setToItems(index,builder.build()); - } - - public N endItem() { - return and(); - } - - - } - public class MetadataNested extends V1ListMetaFluent> implements Nested{ - MetadataNested(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyListFluent.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/V1beta1ValidatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecBuilder.java deleted file mode 100644 index 06379dfea9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicySpecBuilder extends V1beta1ValidatingAdmissionPolicySpecFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicySpecBuilder() { - this(new V1beta1ValidatingAdmissionPolicySpec()); - } - - public V1beta1ValidatingAdmissionPolicySpecBuilder(V1beta1ValidatingAdmissionPolicySpecFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicySpec()); - } - - public V1beta1ValidatingAdmissionPolicySpecBuilder(V1beta1ValidatingAdmissionPolicySpecFluent fluent,V1beta1ValidatingAdmissionPolicySpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicySpecBuilder(V1beta1ValidatingAdmissionPolicySpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicySpecFluent fluent; - - public V1beta1ValidatingAdmissionPolicySpec build() { - V1beta1ValidatingAdmissionPolicySpec buildable = new V1beta1ValidatingAdmissionPolicySpec(); - buildable.setAuditAnnotations(fluent.buildAuditAnnotations()); - buildable.setFailurePolicy(fluent.getFailurePolicy()); - buildable.setMatchConditions(fluent.buildMatchConditions()); - buildable.setMatchConstraints(fluent.buildMatchConstraints()); - buildable.setParamKind(fluent.buildParamKind()); - buildable.setValidations(fluent.buildValidations()); - buildable.setVariables(fluent.buildVariables()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java deleted file mode 100644 index 9f57b536f8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java +++ /dev/null @@ -1,929 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicySpecFluent() { - } - - public V1beta1ValidatingAdmissionPolicySpecFluent(V1beta1ValidatingAdmissionPolicySpec instance) { - this.copyInstance(instance); - } - private ArrayList auditAnnotations; - private String failurePolicy; - private ArrayList matchConditions; - private V1beta1MatchResourcesBuilder matchConstraints; - private V1beta1ParamKindBuilder paramKind; - private ArrayList validations; - private ArrayList variables; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicySpec instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicySpec()); - if (instance != null) { - this.withAuditAnnotations(instance.getAuditAnnotations()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchConstraints(instance.getMatchConstraints()); - this.withParamKind(instance.getParamKind()); - this.withValidations(instance.getValidations()); - this.withVariables(instance.getVariables()); - } - } - - public A addToAuditAnnotations(int index,V1beta1AuditAnnotation item) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.add(builder); - } else { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.add(index, builder); - } - return (A)this; - } - - public A setToAuditAnnotations(int index,V1beta1AuditAnnotation item) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.add(builder); - } else { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.set(index, builder); - } - return (A)this; - } - - public A addToAuditAnnotations(io.kubernetes.client.openapi.models.V1beta1AuditAnnotation... items) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - for (V1beta1AuditAnnotation item : items) {V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").add(builder);this.auditAnnotations.add(builder);} return (A)this; - } - - public A addAllToAuditAnnotations(Collection items) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - for (V1beta1AuditAnnotation item : items) {V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").add(builder);this.auditAnnotations.add(builder);} return (A)this; - } - - public A removeFromAuditAnnotations(io.kubernetes.client.openapi.models.V1beta1AuditAnnotation... items) { - if (this.auditAnnotations == null) return (A)this; - for (V1beta1AuditAnnotation item : items) {V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").remove(builder); this.auditAnnotations.remove(builder);} return (A)this; - } - - public A removeAllFromAuditAnnotations(Collection items) { - if (this.auditAnnotations == null) return (A)this; - for (V1beta1AuditAnnotation item : items) {V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").remove(builder); this.auditAnnotations.remove(builder);} return (A)this; - } - - public A removeMatchingFromAuditAnnotations(Predicate predicate) { - if (auditAnnotations == null) return (A) this; - final Iterator each = auditAnnotations.iterator(); - final List visitables = _visitables.get("auditAnnotations"); - while (each.hasNext()) { - V1beta1AuditAnnotationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildAuditAnnotations() { - return this.auditAnnotations != null ? build(auditAnnotations) : null; - } - - public V1beta1AuditAnnotation buildAuditAnnotation(int index) { - return this.auditAnnotations.get(index).build(); - } - - public V1beta1AuditAnnotation buildFirstAuditAnnotation() { - return this.auditAnnotations.get(0).build(); - } - - public V1beta1AuditAnnotation buildLastAuditAnnotation() { - return this.auditAnnotations.get(auditAnnotations.size() - 1).build(); - } - - public V1beta1AuditAnnotation buildMatchingAuditAnnotation(Predicate predicate) { - for (V1beta1AuditAnnotationBuilder item : auditAnnotations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingAuditAnnotation(Predicate predicate) { - for (V1beta1AuditAnnotationBuilder item : auditAnnotations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAuditAnnotations(List auditAnnotations) { - if (this.auditAnnotations != null) { - this._visitables.get("auditAnnotations").clear(); - } - if (auditAnnotations != null) { - this.auditAnnotations = new ArrayList(); - for (V1beta1AuditAnnotation item : auditAnnotations) { - this.addToAuditAnnotations(item); - } - } else { - this.auditAnnotations = null; - } - return (A) this; - } - - public A withAuditAnnotations(io.kubernetes.client.openapi.models.V1beta1AuditAnnotation... auditAnnotations) { - if (this.auditAnnotations != null) { - this.auditAnnotations.clear(); - _visitables.remove("auditAnnotations"); - } - if (auditAnnotations != null) { - for (V1beta1AuditAnnotation item : auditAnnotations) { - this.addToAuditAnnotations(item); - } - } - return (A) this; - } - - public boolean hasAuditAnnotations() { - return this.auditAnnotations != null && !this.auditAnnotations.isEmpty(); - } - - public AuditAnnotationsNested addNewAuditAnnotation() { - return new AuditAnnotationsNested(-1, null); - } - - public AuditAnnotationsNested addNewAuditAnnotationLike(V1beta1AuditAnnotation item) { - return new AuditAnnotationsNested(-1, item); - } - - public AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1beta1AuditAnnotation item) { - return new AuditAnnotationsNested(index, item); - } - - public AuditAnnotationsNested editAuditAnnotation(int index) { - if (auditAnnotations.size() <= index) throw new RuntimeException("Can't edit auditAnnotations. Index exceeds size."); - return setNewAuditAnnotationLike(index, buildAuditAnnotation(index)); - } - - public AuditAnnotationsNested editFirstAuditAnnotation() { - if (auditAnnotations.size() == 0) throw new RuntimeException("Can't edit first auditAnnotations. The list is empty."); - return setNewAuditAnnotationLike(0, buildAuditAnnotation(0)); - } - - public AuditAnnotationsNested editLastAuditAnnotation() { - int index = auditAnnotations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last auditAnnotations. The list is empty."); - return setNewAuditAnnotationLike(index, buildAuditAnnotation(index)); - } - - public AuditAnnotationsNested editMatchingAuditAnnotation(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { - _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); - } - return (A)this; - } - - public A setToMatchConditions(int index,V1beta1MatchCondition item) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { - _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); - } - return (A)this; - } - - public A addToMatchConditions(io.kubernetes.client.openapi.models.V1beta1MatchCondition... items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1beta1MatchCondition item : items) {V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; - } - - public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1beta1MatchCondition item : items) {V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; - } - - public A removeFromMatchConditions(io.kubernetes.client.openapi.models.V1beta1MatchCondition... items) { - if (this.matchConditions == null) return (A)this; - for (V1beta1MatchCondition item : items) {V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; - } - - public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) return (A)this; - for (V1beta1MatchCondition item : items) {V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item);_visitables.get("matchConditions").remove(builder); this.matchConditions.remove(builder);} return (A)this; - } - - public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) return (A) this; - final Iterator each = matchConditions.iterator(); - final List visitables = _visitables.get("matchConditions"); - while (each.hasNext()) { - V1beta1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildMatchConditions() { - return this.matchConditions != null ? build(matchConditions) : null; - } - - public V1beta1MatchCondition buildMatchCondition(int index) { - return this.matchConditions.get(index).build(); - } - - public V1beta1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); - } - - public V1beta1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); - } - - public V1beta1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1beta1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingMatchCondition(Predicate predicate) { - for (V1beta1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMatchConditions(List matchConditions) { - if (this.matchConditions != null) { - this._visitables.get("matchConditions").clear(); - } - if (matchConditions != null) { - this.matchConditions = new ArrayList(); - for (V1beta1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } else { - this.matchConditions = null; - } - return (A) this; - } - - public A withMatchConditions(io.kubernetes.client.openapi.models.V1beta1MatchCondition... matchConditions) { - if (this.matchConditions != null) { - this.matchConditions.clear(); - _visitables.remove("matchConditions"); - } - if (matchConditions != null) { - for (V1beta1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } - return (A) this; - } - - public boolean hasMatchConditions() { - return this.matchConditions != null && !this.matchConditions.isEmpty(); - } - - public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); - } - - public MatchConditionsNested addNewMatchConditionLike(V1beta1MatchCondition item) { - return new MatchConditionsNested(-1, item); - } - - public MatchConditionsNested setNewMatchConditionLike(int index,V1beta1MatchCondition item) { - return new MatchConditionsNested(index, item); - } - - public MatchConditionsNested editMatchCondition(int index) { - if (matchConditions.size() <= index) throw new RuntimeException("Can't edit matchConditions. Index exceeds size."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); - } - - public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) throw new RuntimeException("Can't edit first matchConditions. The list is empty."); - return setNewMatchConditionLike(0, buildMatchCondition(0)); - } - - public MatchConditionsNested editLastMatchCondition() { - int index = matchConditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchConditions. The list is empty."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); - } - - public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { - int index = -1; - for (int i=0;i withNewMatchConstraints() { - return new MatchConstraintsNested(null); - } - - public MatchConstraintsNested withNewMatchConstraintsLike(V1beta1MatchResources item) { - return new MatchConstraintsNested(item); - } - - public MatchConstraintsNested editMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(null)); - } - - public MatchConstraintsNested editOrNewMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(new V1beta1MatchResourcesBuilder().build())); - } - - public MatchConstraintsNested editOrNewMatchConstraintsLike(V1beta1MatchResources item) { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(item)); - } - - public V1beta1ParamKind buildParamKind() { - return this.paramKind != null ? this.paramKind.build() : null; - } - - public A withParamKind(V1beta1ParamKind paramKind) { - this._visitables.remove("paramKind"); - if (paramKind != null) { - this.paramKind = new V1beta1ParamKindBuilder(paramKind); - this._visitables.get("paramKind").add(this.paramKind); - } else { - this.paramKind = null; - this._visitables.get("paramKind").remove(this.paramKind); - } - return (A) this; - } - - public boolean hasParamKind() { - return this.paramKind != null; - } - - public ParamKindNested withNewParamKind() { - return new ParamKindNested(null); - } - - public ParamKindNested withNewParamKindLike(V1beta1ParamKind item) { - return new ParamKindNested(item); - } - - public ParamKindNested editParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(null)); - } - - public ParamKindNested editOrNewParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(new V1beta1ParamKindBuilder().build())); - } - - public ParamKindNested editOrNewParamKindLike(V1beta1ParamKind item) { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(item)); - } - - public A addToValidations(int index,V1beta1Validation item) { - if (this.validations == null) {this.validations = new ArrayList();} - V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { - _visitables.get("validations").add(builder); - validations.add(builder); - } else { - _visitables.get("validations").add(builder); - validations.add(index, builder); - } - return (A)this; - } - - public A setToValidations(int index,V1beta1Validation item) { - if (this.validations == null) {this.validations = new ArrayList();} - V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { - _visitables.get("validations").add(builder); - validations.add(builder); - } else { - _visitables.get("validations").add(builder); - validations.set(index, builder); - } - return (A)this; - } - - public A addToValidations(io.kubernetes.client.openapi.models.V1beta1Validation... items) { - if (this.validations == null) {this.validations = new ArrayList();} - for (V1beta1Validation item : items) {V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item);_visitables.get("validations").add(builder);this.validations.add(builder);} return (A)this; - } - - public A addAllToValidations(Collection items) { - if (this.validations == null) {this.validations = new ArrayList();} - for (V1beta1Validation item : items) {V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item);_visitables.get("validations").add(builder);this.validations.add(builder);} return (A)this; - } - - public A removeFromValidations(io.kubernetes.client.openapi.models.V1beta1Validation... items) { - if (this.validations == null) return (A)this; - for (V1beta1Validation item : items) {V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item);_visitables.get("validations").remove(builder); this.validations.remove(builder);} return (A)this; - } - - public A removeAllFromValidations(Collection items) { - if (this.validations == null) return (A)this; - for (V1beta1Validation item : items) {V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item);_visitables.get("validations").remove(builder); this.validations.remove(builder);} return (A)this; - } - - public A removeMatchingFromValidations(Predicate predicate) { - if (validations == null) return (A) this; - final Iterator each = validations.iterator(); - final List visitables = _visitables.get("validations"); - while (each.hasNext()) { - V1beta1ValidationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildValidations() { - return this.validations != null ? build(validations) : null; - } - - public V1beta1Validation buildValidation(int index) { - return this.validations.get(index).build(); - } - - public V1beta1Validation buildFirstValidation() { - return this.validations.get(0).build(); - } - - public V1beta1Validation buildLastValidation() { - return this.validations.get(validations.size() - 1).build(); - } - - public V1beta1Validation buildMatchingValidation(Predicate predicate) { - for (V1beta1ValidationBuilder item : validations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingValidation(Predicate predicate) { - for (V1beta1ValidationBuilder item : validations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withValidations(List validations) { - if (this.validations != null) { - this._visitables.get("validations").clear(); - } - if (validations != null) { - this.validations = new ArrayList(); - for (V1beta1Validation item : validations) { - this.addToValidations(item); - } - } else { - this.validations = null; - } - return (A) this; - } - - public A withValidations(io.kubernetes.client.openapi.models.V1beta1Validation... validations) { - if (this.validations != null) { - this.validations.clear(); - _visitables.remove("validations"); - } - if (validations != null) { - for (V1beta1Validation item : validations) { - this.addToValidations(item); - } - } - return (A) this; - } - - public boolean hasValidations() { - return this.validations != null && !this.validations.isEmpty(); - } - - public ValidationsNested addNewValidation() { - return new ValidationsNested(-1, null); - } - - public ValidationsNested addNewValidationLike(V1beta1Validation item) { - return new ValidationsNested(-1, item); - } - - public ValidationsNested setNewValidationLike(int index,V1beta1Validation item) { - return new ValidationsNested(index, item); - } - - public ValidationsNested editValidation(int index) { - if (validations.size() <= index) throw new RuntimeException("Can't edit validations. Index exceeds size."); - return setNewValidationLike(index, buildValidation(index)); - } - - public ValidationsNested editFirstValidation() { - if (validations.size() == 0) throw new RuntimeException("Can't edit first validations. The list is empty."); - return setNewValidationLike(0, buildValidation(0)); - } - - public ValidationsNested editLastValidation() { - int index = validations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last validations. The list is empty."); - return setNewValidationLike(index, buildValidation(index)); - } - - public ValidationsNested editMatchingValidation(Predicate predicate) { - int index = -1; - for (int i=0;i();} - V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); - } else { - _visitables.get("variables").add(builder); - variables.add(index, builder); - } - return (A)this; - } - - public A setToVariables(int index,V1beta1Variable item) { - if (this.variables == null) {this.variables = new ArrayList();} - V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); - } else { - _visitables.get("variables").add(builder); - variables.set(index, builder); - } - return (A)this; - } - - public A addToVariables(io.kubernetes.client.openapi.models.V1beta1Variable... items) { - if (this.variables == null) {this.variables = new ArrayList();} - for (V1beta1Variable item : items) {V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; - } - - public A addAllToVariables(Collection items) { - if (this.variables == null) {this.variables = new ArrayList();} - for (V1beta1Variable item : items) {V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; - } - - public A removeFromVariables(io.kubernetes.client.openapi.models.V1beta1Variable... items) { - if (this.variables == null) return (A)this; - for (V1beta1Variable item : items) {V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; - } - - public A removeAllFromVariables(Collection items) { - if (this.variables == null) return (A)this; - for (V1beta1Variable item : items) {V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item);_visitables.get("variables").remove(builder); this.variables.remove(builder);} return (A)this; - } - - public A removeMatchingFromVariables(Predicate predicate) { - if (variables == null) return (A) this; - final Iterator each = variables.iterator(); - final List visitables = _visitables.get("variables"); - while (each.hasNext()) { - V1beta1VariableBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildVariables() { - return this.variables != null ? build(variables) : null; - } - - public V1beta1Variable buildVariable(int index) { - return this.variables.get(index).build(); - } - - public V1beta1Variable buildFirstVariable() { - return this.variables.get(0).build(); - } - - public V1beta1Variable buildLastVariable() { - return this.variables.get(variables.size() - 1).build(); - } - - public V1beta1Variable buildMatchingVariable(Predicate predicate) { - for (V1beta1VariableBuilder item : variables) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingVariable(Predicate predicate) { - for (V1beta1VariableBuilder item : variables) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVariables(List variables) { - if (this.variables != null) { - this._visitables.get("variables").clear(); - } - if (variables != null) { - this.variables = new ArrayList(); - for (V1beta1Variable item : variables) { - this.addToVariables(item); - } - } else { - this.variables = null; - } - return (A) this; - } - - public A withVariables(io.kubernetes.client.openapi.models.V1beta1Variable... variables) { - if (this.variables != null) { - this.variables.clear(); - _visitables.remove("variables"); - } - if (variables != null) { - for (V1beta1Variable item : variables) { - this.addToVariables(item); - } - } - return (A) this; - } - - public boolean hasVariables() { - return this.variables != null && !this.variables.isEmpty(); - } - - public VariablesNested addNewVariable() { - return new VariablesNested(-1, null); - } - - public VariablesNested addNewVariableLike(V1beta1Variable item) { - return new VariablesNested(-1, item); - } - - public VariablesNested setNewVariableLike(int index,V1beta1Variable item) { - return new VariablesNested(index, item); - } - - public VariablesNested editVariable(int index) { - if (variables.size() <= index) throw new RuntimeException("Can't edit variables. Index exceeds size."); - return setNewVariableLike(index, buildVariable(index)); - } - - public VariablesNested editFirstVariable() { - if (variables.size() == 0) throw new RuntimeException("Can't edit first variables. The list is empty."); - return setNewVariableLike(0, buildVariable(0)); - } - - public VariablesNested editLastVariable() { - int index = variables.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last variables. The list is empty."); - return setNewVariableLike(index, buildVariable(index)); - } - - public VariablesNested editMatchingVariable(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1beta1AuditAnnotationFluent> implements Nested{ - AuditAnnotationsNested(int index,V1beta1AuditAnnotation item) { - this.index = index; - this.builder = new V1beta1AuditAnnotationBuilder(this, item); - } - V1beta1AuditAnnotationBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.setToAuditAnnotations(index,builder.build()); - } - - public N endAuditAnnotation() { - return and(); - } - - - } - public class MatchConditionsNested extends V1beta1MatchConditionFluent> implements Nested{ - MatchConditionsNested(int index,V1beta1MatchCondition item) { - this.index = index; - this.builder = new V1beta1MatchConditionBuilder(this, item); - } - V1beta1MatchConditionBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.setToMatchConditions(index,builder.build()); - } - - public N endMatchCondition() { - return and(); - } - - - } - public class MatchConstraintsNested extends V1beta1MatchResourcesFluent> implements Nested{ - MatchConstraintsNested(V1beta1MatchResources item) { - this.builder = new V1beta1MatchResourcesBuilder(this, item); - } - V1beta1MatchResourcesBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); - } - - public N endMatchConstraints() { - return and(); - } - - - } - public class ParamKindNested extends V1beta1ParamKindFluent> implements Nested{ - ParamKindNested(V1beta1ParamKind item) { - this.builder = new V1beta1ParamKindBuilder(this, item); - } - V1beta1ParamKindBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); - } - - public N endParamKind() { - return and(); - } - - - } - public class ValidationsNested extends V1beta1ValidationFluent> implements Nested{ - ValidationsNested(int index,V1beta1Validation item) { - this.index = index; - this.builder = new V1beta1ValidationBuilder(this, item); - } - V1beta1ValidationBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.setToValidations(index,builder.build()); - } - - public N endValidation() { - return and(); - } - - - } - public class VariablesNested extends V1beta1VariableFluent> implements Nested{ - VariablesNested(int index,V1beta1Variable item) { - this.index = index; - this.builder = new V1beta1VariableBuilder(this, item); - } - V1beta1VariableBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.setToVariables(index,builder.build()); - } - - public N endVariable() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusBuilder.java deleted file mode 100644 index 09b6037cf2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyStatusBuilder extends V1beta1ValidatingAdmissionPolicyStatusFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyStatusBuilder() { - this(new V1beta1ValidatingAdmissionPolicyStatus()); - } - - public V1beta1ValidatingAdmissionPolicyStatusBuilder(V1beta1ValidatingAdmissionPolicyStatusFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyStatus()); - } - - public V1beta1ValidatingAdmissionPolicyStatusBuilder(V1beta1ValidatingAdmissionPolicyStatusFluent fluent,V1beta1ValidatingAdmissionPolicyStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyStatusBuilder(V1beta1ValidatingAdmissionPolicyStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyStatusFluent fluent; - - public V1beta1ValidatingAdmissionPolicyStatus build() { - V1beta1ValidatingAdmissionPolicyStatus buildable = new V1beta1ValidatingAdmissionPolicyStatus(); - buildable.setConditions(fluent.buildConditions()); - buildable.setObservedGeneration(fluent.getObservedGeneration()); - buildable.setTypeChecking(fluent.buildTypeChecking()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java deleted file mode 100644 index 42468e0cb6..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java +++ /dev/null @@ -1,315 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; -import java.util.List; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyStatusFluent() { - } - - public V1beta1ValidatingAdmissionPolicyStatusFluent(V1beta1ValidatingAdmissionPolicyStatus instance) { - this.copyInstance(instance); - } - private ArrayList conditions; - private Long observedGeneration; - private V1beta1TypeCheckingBuilder typeChecking; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicyStatus instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withTypeChecking(instance.getTypeChecking()); - } - } - - public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); - } - return (A)this; - } - - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; - } - - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; - } - - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1Condition buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public V1Condition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public V1Condition buildMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); - } - - public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i withNewTypeChecking() { - return new TypeCheckingNested(null); - } - - public TypeCheckingNested withNewTypeCheckingLike(V1beta1TypeChecking item) { - return new TypeCheckingNested(item); - } - - public TypeCheckingNested editTypeChecking() { - return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(null)); - } - - public TypeCheckingNested editOrNewTypeChecking() { - return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(new V1beta1TypeCheckingBuilder().build())); - } - - public TypeCheckingNested editOrNewTypeCheckingLike(V1beta1TypeChecking item) { - return withNewTypeCheckingLike(java.util.Optional.ofNullable(buildTypeChecking()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1ValidatingAdmissionPolicyStatusFluent that = (V1beta1ValidatingAdmissionPolicyStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - if (!java.util.Objects.equals(typeChecking, that.typeChecking)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(conditions, observedGeneration, typeChecking, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } - if (typeChecking != null) { sb.append("typeChecking:"); sb.append(typeChecking); } - sb.append("}"); - return sb.toString(); - } - public class ConditionsNested extends V1ConditionFluent> implements Nested{ - ConditionsNested(int index,V1Condition item) { - this.index = index; - this.builder = new V1ConditionBuilder(this, item); - } - V1ConditionBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyStatusFluent.this.setToConditions(index,builder.build()); - } - - public N endCondition() { - return and(); - } - - - } - public class TypeCheckingNested extends V1beta1TypeCheckingFluent> implements Nested{ - TypeCheckingNested(V1beta1TypeChecking item) { - this.builder = new V1beta1TypeCheckingBuilder(this, item); - } - V1beta1TypeCheckingBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyStatusFluent.this.withTypeChecking(builder.build()); - } - - public N endTypeChecking() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationBuilder.java deleted file mode 100644 index 3eca24a127..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidationBuilder extends V1beta1ValidationFluent implements VisitableBuilder{ - public V1beta1ValidationBuilder() { - this(new V1beta1Validation()); - } - - public V1beta1ValidationBuilder(V1beta1ValidationFluent fluent) { - this(fluent, new V1beta1Validation()); - } - - public V1beta1ValidationBuilder(V1beta1ValidationFluent fluent,V1beta1Validation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidationBuilder(V1beta1Validation instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidationFluent fluent; - - public V1beta1Validation build() { - V1beta1Validation buildable = new V1beta1Validation(); - buildable.setExpression(fluent.getExpression()); - buildable.setMessage(fluent.getMessage()); - buildable.setMessageExpression(fluent.getMessageExpression()); - buildable.setReason(fluent.getReason()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationFluent.java deleted file mode 100644 index 7599756be0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationFluent.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.String; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1beta1ValidationFluent> extends BaseFluent{ - public V1beta1ValidationFluent() { - } - - public V1beta1ValidationFluent(V1beta1Validation instance) { - this.copyInstance(instance); - } - private String expression; - private String message; - private String messageExpression; - private String reason; - - protected void copyInstance(V1beta1Validation instance) { - instance = (instance != null ? instance : new V1beta1Validation()); - if (instance != null) { - this.withExpression(instance.getExpression()); - this.withMessage(instance.getMessage()); - this.withMessageExpression(instance.getMessageExpression()); - this.withReason(instance.getReason()); - } - } - - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getMessageExpression() { - return this.messageExpression; - } - - public A withMessageExpression(String messageExpression) { - this.messageExpression = messageExpression; - return (A) this; - } - - public boolean hasMessageExpression() { - return this.messageExpression != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1ValidationFluent that = (V1beta1ValidationFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(messageExpression, that.messageExpression)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(expression, message, messageExpression, reason, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (messageExpression != null) { sb.append("messageExpression:"); sb.append(messageExpression + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } - sb.append("}"); - return sb.toString(); - } - - -} \ 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 02c0dad473..7c29ec9651 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1VariableBuilder extends V1beta1VariableFluent implements VisitableBuilder{ public V1beta1VariableBuilder() { this(new V1beta1Variable()); 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 f8ff4bcefe..74dc3258fa 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1VariableFluent> extends BaseFluent{ +public class V1beta1VariableFluent> extends BaseFluent{ public V1beta1VariableFluent() { } @@ -20,11 +22,11 @@ public V1beta1VariableFluent(V1beta1Variable instance) { private String name; protected void copyInstance(V1beta1Variable instance) { - instance = (instance != null ? instance : new V1beta1Variable()); + instance = instance != null ? instance : new V1beta1Variable(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + this.withExpression(instance.getExpression()); + this.withName(instance.getName()); + } } public String getExpression() { @@ -54,24 +56,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta1VariableFluent that = (V1beta1VariableFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, name, super.hashCode()); + return Objects.hash(expression, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + 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(); } 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 index 4cd2f832bd..9164c6adbd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1VolumeAttributesClassBuilder extends V1beta1VolumeAttributesClassFluent implements VisitableBuilder{ public V1beta1VolumeAttributesClassBuilder() { this(new V1beta1VolumeAttributesClass()); 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 index 2a73f5e94d..3e8f3c48b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java @@ -1,10 +1,13 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.util.Map; @@ -12,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta1VolumeAttributesClassFluent> extends BaseFluent{ +public class V1beta1VolumeAttributesClassFluent> extends BaseFluent{ public V1beta1VolumeAttributesClassFluent() { } @@ -26,14 +29,14 @@ public V1beta1VolumeAttributesClassFluent(V1beta1VolumeAttributesClass instance) private Map parameters; protected void copyInstance(V1beta1VolumeAttributesClass instance) { - instance = (instance != null ? instance : new V1beta1VolumeAttributesClass()); + 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()); - } + this.withApiVersion(instance.getApiVersion()); + this.withDriverName(instance.getDriverName()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withParameters(instance.getParameters()); + } } public String getApiVersion() { @@ -104,35 +107,59 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } 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; + 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 A addToParameters(Map map) { - if(this.parameters == null && map != null) { this.parameters = new LinkedHashMap(); } - if(map != null) { this.parameters.putAll(map);} return (A)this; + if (this.parameters == null && map != null) { + this.parameters = new LinkedHashMap(); + } + if (map != null) { + this.parameters.putAll(map); + } + return (A) this; } 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; + 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; + 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 Map getParameters() { @@ -153,30 +180,65 @@ public boolean hasParameters() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + 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 (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(driverName, that.driverName)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, driverName, kind, metadata, parameters, super.hashCode()); + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (driverName != null) { sb.append("driverName:"); sb.append(driverName + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (parameters != null && !parameters.isEmpty()) { sb.append("parameters:"); sb.append(parameters); } + 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(); } 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 index 01c4588d81..d18730c4c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1VolumeAttributesClassListBuilder extends V1beta1VolumeAttributesClassListFluent implements VisitableBuilder{ public V1beta1VolumeAttributesClassListBuilder() { this(new V1beta1VolumeAttributesClassList()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java index 44b615d002..5bd8143a60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1VolumeAttributesClassListFluent> extends BaseFluent{ +public class V1beta1VolumeAttributesClassListFluent> extends BaseFluent{ public V1beta1VolumeAttributesClassListFluent() { } @@ -29,13 +32,13 @@ public V1beta1VolumeAttributesClassListFluent(V1beta1VolumeAttributesClassList i private V1ListMetaBuilder metadata; protected void copyInstance(V1beta1VolumeAttributesClassList instance) { - instance = (instance != null ? instance : new V1beta1VolumeAttributesClassList()); + 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()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta1VolumeAttributesClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta1VolumeAttributesClass item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta1VolumeAttributesClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta1VolumeAttributesClass item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1VolumeAttributesClass item : items) {V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta1VolumeAttributesClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1VolumeAttributesClass item : items) { + V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1VolumeAttributesClass item : items) {V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1VolumeAttributesClass item : items) { + V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.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 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 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; + 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; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta1VolumeAttributesClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1VolumeAttributesClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass... items) { + public A withItems(V1beta1VolumeAttributesClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1VolumeAttributesCl } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta1VolumeAttributesClass item } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + 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 (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta1VolumeAttributesClassFluent implements VisitableBuilder{ public V1beta2AllocatedDeviceStatusBuilder() { this(new V1beta2AllocatedDeviceStatus()); @@ -29,6 +30,7 @@ public V1beta2AllocatedDeviceStatus build() { buildable.setDriver(fluent.getDriver()); buildable.setNetworkData(fluent.buildNetworkData()); buildable.setPool(fluent.getPool()); + buildable.setShareID(fluent.getShareID()); return buildable; } 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 05ee44635a..dc72f0d160 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2AllocatedDeviceStatusFluent> extends BaseFluent{ +public class V1beta2AllocatedDeviceStatusFluent> extends BaseFluent{ public V1beta2AllocatedDeviceStatusFluent() { } @@ -29,21 +32,25 @@ public V1beta2AllocatedDeviceStatusFluent(V1beta2AllocatedDeviceStatus instance) private String driver; private V1beta2NetworkDeviceDataBuilder networkData; private String pool; + private String shareID; protected void copyInstance(V1beta2AllocatedDeviceStatus instance) { - instance = (instance != null ? instance : new V1beta2AllocatedDeviceStatus()); + instance = instance != null ? instance : new V1beta2AllocatedDeviceStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - this.withData(instance.getData()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withNetworkData(instance.getNetworkData()); - this.withPool(instance.getPool()); - } + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + this.withShareID(instance.getShareID()); + } } public A addToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -52,11 +59,13 @@ public A addToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -65,41 +74,71 @@ public A setToConditions(int index,V1Condition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) return (A)this; - for (V1Condition item : items) {V1ConditionBuilder builder = new V1ConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A 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 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; + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -151,7 +190,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + public A withConditions(V1Condition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -165,7 +204,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -181,28 +220,39 @@ public ConditionsNested setNewConditionLike(int index,V1Condition item) { } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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 withNewNetworkDataLike(V1beta2NetworkDeviceData item } public NetworkDataNested editNetworkData() { - return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(null)); + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); } public NetworkDataNested editOrNewNetworkData() { - return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(new V1beta2NetworkDeviceDataBuilder().build())); + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1beta2NetworkDeviceDataBuilder().build())); } public NetworkDataNested editOrNewNetworkDataLike(V1beta2NetworkDeviceData item) { - return withNewNetworkDataLike(java.util.Optional.ofNullable(buildNetworkData()).orElse(item)); + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); } public String getPool() { @@ -297,33 +347,95 @@ public boolean hasPool() { return this.pool != null; } + public String getShareID() { + return this.shareID; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public boolean hasShareID() { + return this.shareID != null; + } + public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2AllocatedDeviceStatusFluent that = (V1beta2AllocatedDeviceStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(device, that.device)) return false; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(networkData, that.networkData)) return false; - if (!java.util.Objects.equals(pool, that.pool)) return false; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(networkData, that.networkData))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(conditions, data, device, driver, networkData, pool, super.hashCode()); + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (data != null) { sb.append("data:"); sb.append(data + ","); } - if (device != null) { sb.append("device:"); sb.append(device + ","); } - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (networkData != null) { sb.append("networkData:"); sb.append(networkData + ","); } - if (pool != null) { sb.append("pool:"); sb.append(pool); } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(data == null)) { + sb.append("data:"); + sb.append(data); + 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 (!(networkData == null)) { + sb.append("networkData:"); + sb.append(networkData); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + } sb.append("}"); return sb.toString(); } @@ -336,7 +448,7 @@ public class ConditionsNested extends V1ConditionFluent> int index; public N and() { - return (N) V1beta2AllocatedDeviceStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1beta2AllocatedDeviceStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { 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 df5522d2d8..86a5fee5fe 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2AllocationResultBuilder extends V1beta2AllocationResultFluent implements VisitableBuilder{ public V1beta2AllocationResultBuilder() { this(new V1beta2AllocationResult()); @@ -23,6 +24,7 @@ public V1beta2AllocationResultBuilder(V1beta2AllocationResult instance) { public V1beta2AllocationResult build() { V1beta2AllocationResult buildable = new V1beta2AllocationResult(); + buildable.setAllocationTimestamp(fluent.getAllocationTimestamp()); buildable.setDevices(fluent.buildDevices()); buildable.setNodeSelector(fluent.buildNodeSelector()); return buildable; 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 2019cbe1b1..804258f439 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 @@ -1,31 +1,50 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; +import java.time.OffsetDateTime; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2AllocationResultFluent> extends BaseFluent{ +public class V1beta2AllocationResultFluent> extends BaseFluent{ public V1beta2AllocationResultFluent() { } public V1beta2AllocationResultFluent(V1beta2AllocationResult instance) { this.copyInstance(instance); } + private OffsetDateTime allocationTimestamp; private V1beta2DeviceAllocationResultBuilder devices; private V1NodeSelectorBuilder nodeSelector; protected void copyInstance(V1beta2AllocationResult instance) { - instance = (instance != null ? instance : new V1beta2AllocationResult()); + instance = instance != null ? instance : new V1beta2AllocationResult(); if (instance != null) { - this.withDevices(instance.getDevices()); - this.withNodeSelector(instance.getNodeSelector()); - } + this.withAllocationTimestamp(instance.getAllocationTimestamp()); + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public OffsetDateTime getAllocationTimestamp() { + return this.allocationTimestamp; + } + + public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return (A) this; + } + + public boolean hasAllocationTimestamp() { + return this.allocationTimestamp != null; } public V1beta2DeviceAllocationResult buildDevices() { @@ -57,15 +76,15 @@ public DevicesNested withNewDevicesLike(V1beta2DeviceAllocationResult item) { } public DevicesNested editDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } public DevicesNested editOrNewDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta2DeviceAllocationResultBuilder().build())); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta2DeviceAllocationResultBuilder().build())); } public DevicesNested editOrNewDevicesLike(V1beta2DeviceAllocationResult item) { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); } public V1NodeSelector buildNodeSelector() { @@ -97,36 +116,61 @@ public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { } public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2AllocationResultFluent that = (V1beta2AllocationResultFluent) o; - if (!java.util.Objects.equals(devices, that.devices)) return false; - if (!java.util.Objects.equals(nodeSelector, that.nodeSelector)) return false; + if (!(Objects.equals(allocationTimestamp, that.allocationTimestamp))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(devices, nodeSelector, super.hashCode()); + return Objects.hash(allocationTimestamp, devices, nodeSelector); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devices != null) { sb.append("devices:"); sb.append(devices + ","); } - if (nodeSelector != null) { sb.append("nodeSelector:"); sb.append(nodeSelector); } + if (!(allocationTimestamp == null)) { + sb.append("allocationTimestamp:"); + sb.append(allocationTimestamp); + sb.append(","); + } + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + } sb.append("}"); return sb.toString(); } 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 d34484d684..6a8d0599bf 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2CELDeviceSelectorBuilder extends V1beta2CELDeviceSelectorFluent implements VisitableBuilder{ public V1beta2CELDeviceSelectorBuilder() { this(new V1beta2CELDeviceSelector()); 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 2a2468d9a4..b620ae7a85 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2CELDeviceSelectorFluent> extends BaseFluent{ +public class V1beta2CELDeviceSelectorFluent> extends BaseFluent{ public V1beta2CELDeviceSelectorFluent() { } @@ -19,10 +21,10 @@ public V1beta2CELDeviceSelectorFluent(V1beta2CELDeviceSelector instance) { private String expression; protected void copyInstance(V1beta2CELDeviceSelector instance) { - instance = (instance != null ? instance : new V1beta2CELDeviceSelector()); + instance = instance != null ? instance : new V1beta2CELDeviceSelector(); if (instance != null) { - this.withExpression(instance.getExpression()); - } + this.withExpression(instance.getExpression()); + } } public String getExpression() { @@ -39,22 +41,33 @@ public boolean hasExpression() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2CELDeviceSelectorFluent that = (V1beta2CELDeviceSelectorFluent) o; - if (!java.util.Objects.equals(expression, that.expression)) return false; + if (!(Objects.equals(expression, that.expression))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(expression, super.hashCode()); + return Objects.hash(expression); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expression != null) { sb.append("expression:"); sb.append(expression); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } sb.append("}"); return sb.toString(); } 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 new file mode 100644 index 0000000000..330fa5ccdb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2CapacityRequestPolicyBuilder extends V1beta2CapacityRequestPolicyFluent implements VisitableBuilder{ + public V1beta2CapacityRequestPolicyBuilder() { + this(new V1beta2CapacityRequestPolicy()); + } + + public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicyFluent fluent) { + this(fluent, new V1beta2CapacityRequestPolicy()); + } + + public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicyFluent fluent,V1beta2CapacityRequestPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2CapacityRequestPolicyFluent fluent; + + public V1beta2CapacityRequestPolicy build() { + V1beta2CapacityRequestPolicy buildable = new V1beta2CapacityRequestPolicy(); + buildable.setDefault(fluent.getDefault()); + buildable.setValidRange(fluent.buildValidRange()); + buildable.setValidValues(fluent.getValidValues()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..9514529532 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java @@ -0,0 +1,285 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.util.Optional; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import io.kubernetes.client.custom.Quantity; +import java.lang.String; +import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.List; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CapacityRequestPolicyFluent> extends BaseFluent{ + public V1beta2CapacityRequestPolicyFluent() { + } + + public V1beta2CapacityRequestPolicyFluent(V1beta2CapacityRequestPolicy instance) { + this.copyInstance(instance); + } + private Quantity _default; + private V1beta2CapacityRequestPolicyRangeBuilder validRange; + private List validValues; + + protected void copyInstance(V1beta2CapacityRequestPolicy instance) { + instance = instance != null ? instance : new V1beta2CapacityRequestPolicy(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withValidRange(instance.getValidRange()); + this.withValidValues(instance.getValidValues()); + } + } + + public Quantity getDefault() { + return this._default; + } + + public A withDefault(Quantity _default) { + this._default = _default; + return (A) this; + } + + public boolean hasDefault() { + return this._default != null; + } + + public A withNewDefault(String value) { + return (A) this.withDefault(new Quantity(value)); + } + + public V1beta2CapacityRequestPolicyRange buildValidRange() { + return this.validRange != null ? this.validRange.build() : null; + } + + public A withValidRange(V1beta2CapacityRequestPolicyRange validRange) { + this._visitables.remove("validRange"); + if (validRange != null) { + this.validRange = new V1beta2CapacityRequestPolicyRangeBuilder(validRange); + this._visitables.get("validRange").add(this.validRange); + } else { + this.validRange = null; + this._visitables.get("validRange").remove(this.validRange); + } + return (A) this; + } + + public boolean hasValidRange() { + return this.validRange != null; + } + + public ValidRangeNested withNewValidRange() { + return new ValidRangeNested(null); + } + + public ValidRangeNested withNewValidRangeLike(V1beta2CapacityRequestPolicyRange item) { + return new ValidRangeNested(item); + } + + public ValidRangeNested editValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); + } + + public ValidRangeNested editOrNewValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(new V1beta2CapacityRequestPolicyRangeBuilder().build())); + } + + public ValidRangeNested editOrNewValidRangeLike(V1beta2CapacityRequestPolicyRange item) { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(item)); + } + + public A addToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.add(index, item); + return (A) this; + } + + public A setToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.set(index, item); + return (A) this; + } + + public A addToValidValues(Quantity... items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A addAllToValidValues(Collection items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A removeFromValidValues(Quantity... items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public A removeAllFromValidValues(Collection items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public List getValidValues() { + return this.validValues; + } + + public Quantity getValidValue(int index) { + return this.validValues.get(index); + } + + public Quantity getFirstValidValue() { + return this.validValues.get(0); + } + + public Quantity getLastValidValue() { + return this.validValues.get(validValues.size() - 1); + } + + public Quantity getMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withValidValues(List validValues) { + if (validValues != null) { + this.validValues = new ArrayList(); + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } else { + this.validValues = null; + } + return (A) this; + } + + public A withValidValues(Quantity... validValues) { + if (this.validValues != null) { + this.validValues.clear(); + _visitables.remove("validValues"); + } + if (validValues != null) { + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } + return (A) this; + } + + public boolean hasValidValues() { + return this.validValues != null && !(this.validValues.isEmpty()); + } + + public A addNewValidValue(String value) { + return (A) this.addToValidValues(new Quantity(value)); + } + + 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; + } + V1beta2CapacityRequestPolicyFluent that = (V1beta2CapacityRequestPolicyFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(validRange, that.validRange))) { + return false; + } + if (!(Objects.equals(validValues, that.validValues))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(_default, validRange, validValues); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(_default == null)) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(validRange == null)) { + sb.append("validRange:"); + sb.append(validRange); + sb.append(","); + } + if (!(validValues == null) && !(validValues.isEmpty())) { + sb.append("validValues:"); + sb.append(validValues); + } + sb.append("}"); + return sb.toString(); + } + public class ValidRangeNested extends V1beta2CapacityRequestPolicyRangeFluent> implements Nested{ + ValidRangeNested(V1beta2CapacityRequestPolicyRange item) { + this.builder = new V1beta2CapacityRequestPolicyRangeBuilder(this, item); + } + V1beta2CapacityRequestPolicyRangeBuilder builder; + + public N and() { + return (N) V1beta2CapacityRequestPolicyFluent.this.withValidRange(builder.build()); + } + + public N endValidRange() { + return and(); + } + + + } + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..604abdfbc2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2CapacityRequestPolicyRangeBuilder extends V1beta2CapacityRequestPolicyRangeFluent implements VisitableBuilder{ + public V1beta2CapacityRequestPolicyRangeBuilder() { + this(new V1beta2CapacityRequestPolicyRange()); + } + + public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRangeFluent fluent) { + this(fluent, new V1beta2CapacityRequestPolicyRange()); + } + + public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRangeFluent fluent,V1beta2CapacityRequestPolicyRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRange instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2CapacityRequestPolicyRangeFluent fluent; + + public V1beta2CapacityRequestPolicyRange build() { + V1beta2CapacityRequestPolicyRange buildable = new V1beta2CapacityRequestPolicyRange(); + buildable.setMax(fluent.getMax()); + buildable.setMin(fluent.getMin()); + buildable.setStep(fluent.getStep()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..10d98ac968 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java @@ -0,0 +1,135 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CapacityRequestPolicyRangeFluent> extends BaseFluent{ + public V1beta2CapacityRequestPolicyRangeFluent() { + } + + public V1beta2CapacityRequestPolicyRangeFluent(V1beta2CapacityRequestPolicyRange instance) { + this.copyInstance(instance); + } + private Quantity max; + private Quantity min; + private Quantity step; + + protected void copyInstance(V1beta2CapacityRequestPolicyRange instance) { + instance = instance != null ? instance : new V1beta2CapacityRequestPolicyRange(); + if (instance != null) { + this.withMax(instance.getMax()); + this.withMin(instance.getMin()); + this.withStep(instance.getStep()); + } + } + + public Quantity getMax() { + return this.max; + } + + public A withMax(Quantity max) { + this.max = max; + return (A) this; + } + + public boolean hasMax() { + return this.max != null; + } + + public A withNewMax(String value) { + return (A) this.withMax(new Quantity(value)); + } + + public Quantity getMin() { + return this.min; + } + + public A withMin(Quantity min) { + this.min = min; + return (A) this; + } + + public boolean hasMin() { + return this.min != null; + } + + public A withNewMin(String value) { + return (A) this.withMin(new Quantity(value)); + } + + public Quantity getStep() { + return this.step; + } + + public A withStep(Quantity step) { + this.step = step; + return (A) this; + } + + public boolean hasStep() { + return this.step != null; + } + + public A withNewStep(String value) { + return (A) this.withStep(new Quantity(value)); + } + + 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; + } + V1beta2CapacityRequestPolicyRangeFluent that = (V1beta2CapacityRequestPolicyRangeFluent) o; + if (!(Objects.equals(max, that.max))) { + return false; + } + if (!(Objects.equals(min, that.min))) { + return false; + } + if (!(Objects.equals(step, that.step))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(max, min, step); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(max == null)) { + sb.append("max:"); + sb.append(max); + sb.append(","); + } + if (!(min == null)) { + sb.append("min:"); + sb.append(min); + sb.append(","); + } + if (!(step == null)) { + sb.append("step:"); + sb.append(step); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..db53e3d715 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java @@ -0,0 +1,32 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2CapacityRequirementsBuilder extends V1beta2CapacityRequirementsFluent implements VisitableBuilder{ + public V1beta2CapacityRequirementsBuilder() { + this(new V1beta2CapacityRequirements()); + } + + public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirementsFluent fluent) { + this(fluent, new V1beta2CapacityRequirements()); + } + + public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirementsFluent fluent,V1beta2CapacityRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirements instance) { + this.fluent = this; + this.copyInstance(instance); + } + V1beta2CapacityRequirementsFluent fluent; + + public V1beta2CapacityRequirements build() { + V1beta2CapacityRequirements buildable = new V1beta2CapacityRequirements(); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + + +} \ No newline at end of file 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 new file mode 100644 index 0000000000..414453fd34 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java @@ -0,0 +1,127 @@ +package io.kubernetes.client.openapi.models; + +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import io.kubernetes.client.custom.Quantity; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.LinkedHashMap; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CapacityRequirementsFluent> extends BaseFluent{ + public V1beta2CapacityRequirementsFluent() { + } + + public V1beta2CapacityRequirementsFluent(V1beta2CapacityRequirements instance) { + this.copyInstance(instance); + } + private Map requests; + + protected void copyInstance(V1beta2CapacityRequirements instance) { + instance = instance != null ? instance : new V1beta2CapacityRequirements(); + if (instance != null) { + this.withRequests(instance.getRequests()); + } + } + + public A addToRequests(String key,Quantity value) { + if (this.requests == null && key != null && value != null) { + this.requests = new LinkedHashMap(); + } + if (key != null && value != null) { + this.requests.put(key, value); + } + return (A) this; + } + + public A addToRequests(Map map) { + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); + } + if (map != null) { + this.requests.putAll(map); + } + return (A) this; + } + + public A removeFromRequests(String key) { + if (this.requests == null) { + return (A) this; + } + if (key != null && this.requests != null) { + this.requests.remove(key); + } + return (A) this; + } + + public A removeFromRequests(Map map) { + if (this.requests == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.requests != null) { + this.requests.remove(key); + } + } + } + return (A) this; + } + + public Map getRequests() { + return this.requests; + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + + public boolean hasRequests() { + return this.requests != 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; + } + V1beta2CapacityRequirementsFluent that = (V1beta2CapacityRequirementsFluent) o; + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public int hashCode() { + return Objects.hash(requests); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java index a50aac3035..45db732d03 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2CounterBuilder extends V1beta2CounterFluent implements VisitableBuilder{ public V1beta2CounterBuilder() { this(new V1beta2Counter()); 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 32764efe67..06ce86e3fd 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2CounterFluent> extends BaseFluent{ +public class V1beta2CounterFluent> extends BaseFluent{ public V1beta2CounterFluent() { } @@ -20,10 +22,10 @@ public V1beta2CounterFluent(V1beta2Counter instance) { private Quantity value; protected void copyInstance(V1beta2Counter instance) { - instance = (instance != null ? instance : new V1beta2Counter()); + instance = instance != null ? instance : new V1beta2Counter(); if (instance != null) { - this.withValue(instance.getValue()); - } + this.withValue(instance.getValue()); + } } public Quantity getValue() { @@ -40,26 +42,37 @@ public boolean hasValue() { } public A withNewValue(String value) { - return (A)withValue(new Quantity(value)); + return (A) this.withValue(new Quantity(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2CounterFluent that = (V1beta2CounterFluent) o; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(value, super.hashCode()); + return Objects.hash(value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 252f2e9daa..1837c5bf22 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2CounterSetBuilder extends V1beta2CounterSetFluent implements VisitableBuilder{ public V1beta2CounterSetBuilder() { this(new V1beta2CounterSet()); 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 39f59bbc70..b3230628cb 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2CounterSetFluent> extends BaseFluent{ +public class V1beta2CounterSetFluent> extends BaseFluent{ public V1beta2CounterSetFluent() { } @@ -22,31 +24,55 @@ public V1beta2CounterSetFluent(V1beta2CounterSet instance) { private String name; protected void copyInstance(V1beta2CounterSet instance) { - instance = (instance != null ? instance : new V1beta2CounterSet()); + instance = instance != null ? instance : new V1beta2CounterSet(); if (instance != null) { - this.withCounters(instance.getCounters()); - this.withName(instance.getName()); - } + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } } public A addToCounters(String key,V1beta2Counter value) { - if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } - if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.counters.put(key, value); + } + return (A) this; } public A addToCounters(Map map) { - if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } - if(map != null) { this.counters.putAll(map);} return (A)this; + if (this.counters == null && map != null) { + this.counters = new LinkedHashMap(); + } + if (map != null) { + this.counters.putAll(map); + } + return (A) this; } public A removeFromCounters(String key) { - if(this.counters == null) { return (A) this; } - if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + if (this.counters == null) { + return (A) this; + } + if (key != null && this.counters != null) { + this.counters.remove(key); + } + return (A) this; } public A removeFromCounters(Map map) { - if(this.counters == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + if (this.counters == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.counters != null) { + this.counters.remove(key); + } + } + } + return (A) this; } public Map getCounters() { @@ -80,24 +106,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2CounterSetFluent that = (V1beta2CounterSetFluent) o; - if (!java.util.Objects.equals(counters, that.counters)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(counters, that.counters))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(counters, name, super.hashCode()); + return Objects.hash(counters, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 5bd00a16bb..28e7fad7f5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceAllocationConfigurationBuilder extends V1beta2DeviceAllocationConfigurationFluent implements VisitableBuilder{ public V1beta2DeviceAllocationConfigurationBuilder() { this(new V1beta2DeviceAllocationConfiguration()); 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 85f7eb8ab9..03c5362ac6 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceAllocationConfigurationFluent> extends BaseFluent{ +public class V1beta2DeviceAllocationConfigurationFluent> extends BaseFluent{ public V1beta2DeviceAllocationConfigurationFluent() { } @@ -26,12 +29,12 @@ public V1beta2DeviceAllocationConfigurationFluent(V1beta2DeviceAllocationConfigu private String source; protected void copyInstance(V1beta2DeviceAllocationConfiguration instance) { - instance = (instance != null ? instance : new V1beta2DeviceAllocationConfiguration()); + instance = instance != null ? instance : new V1beta2DeviceAllocationConfiguration(); if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - this.withSource(instance.getSource()); - } + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } } public V1beta2OpaqueDeviceConfiguration buildOpaque() { @@ -63,46 +66,71 @@ public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) } public OpaqueNested editOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } public OpaqueNested editOrNewOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); } public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); } public A addToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} + if (this.requests == null) { + this.requests = new ArrayList(); + } this.requests.add(index, item); - return (A)this; + return (A) this; } public A setToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.set(index, item); return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } - public A addToRequests(java.lang.String... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } - public A removeFromRequests(java.lang.String... items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public List getRequests() { @@ -151,7 +179,7 @@ public A withRequests(List requests) { return (A) this; } - public A withRequests(java.lang.String... requests) { + public A withRequests(String... requests) { if (this.requests != null) { this.requests.clear(); _visitables.remove("requests"); @@ -165,7 +193,7 @@ public A withRequests(java.lang.String... requests) { } public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); + return this.requests != null && !(this.requests.isEmpty()); } public String getSource() { @@ -182,26 +210,49 @@ public boolean hasSource() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceAllocationConfigurationFluent that = (V1beta2DeviceAllocationConfigurationFluent) o; - if (!java.util.Objects.equals(opaque, that.opaque)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; - if (!java.util.Objects.equals(source, that.source)) return false; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(opaque, requests, source, super.hashCode()); + return Objects.hash(opaque, requests, source); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests + ","); } - if (source != null) { sb.append("source:"); sb.append(source); } + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + } sb.append("}"); return sb.toString(); } 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 f43a70ed69..a010683206 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceAllocationResultBuilder extends V1beta2DeviceAllocationResultFluent implements VisitableBuilder{ public V1beta2DeviceAllocationResultBuilder() { this(new V1beta2DeviceAllocationResult()); 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 ead0cc4a14..3dd88e854d 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceAllocationResultFluent> extends BaseFluent{ +public class V1beta2DeviceAllocationResultFluent> extends BaseFluent{ public V1beta2DeviceAllocationResultFluent() { } @@ -27,15 +29,17 @@ public V1beta2DeviceAllocationResultFluent(V1beta2DeviceAllocationResult instanc private ArrayList results; protected void copyInstance(V1beta2DeviceAllocationResult instance) { - instance = (instance != null ? instance : new V1beta2DeviceAllocationResult()); + instance = instance != null ? instance : new V1beta2DeviceAllocationResult(); if (instance != null) { - this.withConfig(instance.getConfig()); - this.withResults(instance.getResults()); - } + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } } public A addToConfig(int index,V1beta2DeviceAllocationConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -44,11 +48,13 @@ public A addToConfig(int index,V1beta2DeviceAllocationConfiguration item) { _visitables.get("config").add(builder); config.add(index, builder); } - return (A)this; + return (A) this; } public A setToConfig(int index,V1beta2DeviceAllocationConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -57,41 +63,71 @@ public A setToConfig(int index,V1beta2DeviceAllocationConfiguration item) { _visitables.get("config").add(builder); config.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration... items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + public A addToConfig(V1beta2DeviceAllocationConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta2DeviceAllocationConfiguration item : items) { + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } public A addAllToConfig(Collection items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta2DeviceAllocationConfiguration item : items) { + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } - public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration... items) { - if (this.config == null) return (A)this; - for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + public A removeFromConfig(V1beta2DeviceAllocationConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta2DeviceAllocationConfiguration item : items) { + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeAllFromConfig(Collection items) { - if (this.config == null) return (A)this; - for (V1beta2DeviceAllocationConfiguration item : items) {V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + if (this.config == null) { + return (A) this; + } + for (V1beta2DeviceAllocationConfiguration item : items) { + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) return (A) this; - final Iterator each = config.iterator(); - final List visitables = _visitables.get("config"); + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); while (each.hasNext()) { - V1beta2DeviceAllocationConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConfig() { @@ -143,7 +179,7 @@ public A withConfig(List config) { return (A) this; } - public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration... config) { + public A withConfig(V1beta2DeviceAllocationConfiguration... config) { if (this.config != null) { this.config.clear(); _visitables.remove("config"); @@ -157,7 +193,7 @@ public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceAllocationC } public boolean hasConfig() { - return this.config != null && !this.config.isEmpty(); + return this.config != null && !(this.config.isEmpty()); } public ConfigNested addNewConfig() { @@ -173,32 +209,45 @@ public ConfigNested setNewConfigLike(int index,V1beta2DeviceAllocationConfigu } public ConfigNested editConfig(int index) { - if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); - return setNewConfigLike(index, buildConfig(index)); + if (index <= config.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editFirstConfig() { - if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); - return setNewConfigLike(0, buildConfig(0)); + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); } public ConfigNested editLastConfig() { int index = config.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); - return setNewConfigLike(index, buildConfig(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.results == null) { + this.results = new ArrayList(); + } V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); @@ -207,11 +256,13 @@ public A addToResults(int index,V1beta2DeviceRequestAllocationResult item) { _visitables.get("results").add(builder); results.add(index, builder); } - return (A)this; + return (A) this; } public A setToResults(int index,V1beta2DeviceRequestAllocationResult item) { - if (this.results == null) {this.results = new ArrayList();} + if (this.results == null) { + this.results = new ArrayList(); + } V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); @@ -220,41 +271,71 @@ public A setToResults(int index,V1beta2DeviceRequestAllocationResult item) { _visitables.get("results").add(builder); results.set(index, builder); } - return (A)this; + return (A) this; } - public A addToResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult... items) { - if (this.results == null) {this.results = new ArrayList();} - for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + public A addToResults(V1beta2DeviceRequestAllocationResult... items) { + if (this.results == null) { + this.results = new ArrayList(); + } + for (V1beta2DeviceRequestAllocationResult item : items) { + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); + } + return (A) this; } public A addAllToResults(Collection items) { - if (this.results == null) {this.results = new ArrayList();} - for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; + if (this.results == null) { + this.results = new ArrayList(); + } + for (V1beta2DeviceRequestAllocationResult item : items) { + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); + } + return (A) this; } - public A removeFromResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult... items) { - if (this.results == null) return (A)this; - for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + public A removeFromResults(V1beta2DeviceRequestAllocationResult... items) { + if (this.results == null) { + return (A) this; + } + for (V1beta2DeviceRequestAllocationResult item : items) { + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").remove(builder); + this.results.remove(builder); + } + return (A) this; } public A removeAllFromResults(Collection items) { - if (this.results == null) return (A)this; - for (V1beta2DeviceRequestAllocationResult item : items) {V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item);_visitables.get("results").remove(builder); this.results.remove(builder);} return (A)this; + if (this.results == null) { + return (A) this; + } + for (V1beta2DeviceRequestAllocationResult item : items) { + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").remove(builder); + this.results.remove(builder); + } + return (A) this; } public A removeMatchingFromResults(Predicate predicate) { - if (results == null) return (A) this; - final Iterator each = results.iterator(); - final List visitables = _visitables.get("results"); + if (results == null) { + return (A) this; + } + Iterator each = results.iterator(); + List visitables = _visitables.get("results"); while (each.hasNext()) { - V1beta2DeviceRequestAllocationResultBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceRequestAllocationResultBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildResults() { @@ -306,7 +387,7 @@ public A withResults(List results) { return (A) this; } - public A withResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult... results) { + public A withResults(V1beta2DeviceRequestAllocationResult... results) { if (this.results != null) { this.results.clear(); _visitables.remove("results"); @@ -320,7 +401,7 @@ public A withResults(io.kubernetes.client.openapi.models.V1beta2DeviceRequestAll } public boolean hasResults() { - return this.results != null && !this.results.isEmpty(); + return this.results != null && !(this.results.isEmpty()); } public ResultsNested addNewResult() { @@ -336,49 +417,77 @@ public ResultsNested setNewResultLike(int index,V1beta2DeviceRequestAllocatio } public ResultsNested editResult(int index) { - if (results.size() <= index) throw new RuntimeException("Can't edit results. Index exceeds size."); - return setNewResultLike(index, buildResult(index)); + if (index <= results.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); } public ResultsNested editFirstResult() { - if (results.size() == 0) throw new RuntimeException("Can't edit first results. The list is empty."); - return setNewResultLike(0, buildResult(0)); + if (results.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); + } + return this.setNewResultLike(0, this.buildResult(0)); } public ResultsNested editLastResult() { int index = results.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last results. The list is empty."); - return setNewResultLike(index, buildResult(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); } public ResultsNested editMatchingResult(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2DeviceAllocationConfigurationFluent< int index; public N and() { - return (N) V1beta2DeviceAllocationResultFluent.this.setToConfig(index,builder.build()); + return (N) V1beta2DeviceAllocationResultFluent.this.setToConfig(index, builder.build()); } public N endConfig() { @@ -409,7 +518,7 @@ public class ResultsNested extends V1beta2DeviceRequestAllocationResultFluent int index; public N and() { - return (N) V1beta2DeviceAllocationResultFluent.this.setToResults(index,builder.build()); + return (N) V1beta2DeviceAllocationResultFluent.this.setToResults(index, builder.build()); } public N endResult() { 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 a1c46bf814..1a5d3cd84b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceAttributeBuilder extends V1beta2DeviceAttributeFluent implements VisitableBuilder{ public V1beta2DeviceAttributeBuilder() { this(new V1beta2DeviceAttribute()); 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 f1380847b3..25e278090d 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.lang.Boolean; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceAttributeFluent> extends BaseFluent{ +public class V1beta2DeviceAttributeFluent> extends BaseFluent{ public V1beta2DeviceAttributeFluent() { } @@ -24,13 +26,13 @@ public V1beta2DeviceAttributeFluent(V1beta2DeviceAttribute instance) { private String version; protected void copyInstance(V1beta2DeviceAttribute instance) { - instance = (instance != null ? instance : new V1beta2DeviceAttribute()); + instance = instance != null ? instance : new V1beta2DeviceAttribute(); if (instance != null) { - this.withBool(instance.getBool()); - this.withInt(instance.getInt()); - this.withString(instance.getString()); - this.withVersion(instance.getVersion()); - } + this.withBool(instance.getBool()); + this.withInt(instance.getInt()); + this.withString(instance.getString()); + this.withVersion(instance.getVersion()); + } } public Boolean getBool() { @@ -86,28 +88,57 @@ public boolean hasVersion() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceAttributeFluent that = (V1beta2DeviceAttributeFluent) o; - if (!java.util.Objects.equals(bool, that.bool)) return false; - if (!java.util.Objects.equals(_int, that._int)) return false; - if (!java.util.Objects.equals(string, that.string)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; + if (!(Objects.equals(bool, that.bool))) { + return false; + } + if (!(Objects.equals(_int, that._int))) { + return false; + } + if (!(Objects.equals(string, that.string))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(bool, _int, string, version, super.hashCode()); + return Objects.hash(bool, _int, string, version); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (bool != null) { sb.append("bool:"); sb.append(bool + ","); } - if (_int != null) { sb.append("_int:"); sb.append(_int + ","); } - if (string != null) { sb.append("string:"); sb.append(string + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } + if (!(bool == null)) { + sb.append("bool:"); + sb.append(bool); + sb.append(","); + } + if (!(_int == null)) { + sb.append("_int:"); + sb.append(_int); + sb.append(","); + } + if (!(string == null)) { + sb.append("string:"); + sb.append(string); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } sb.append("}"); return sb.toString(); } 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 72c14f3ce8..ad6ec4b207 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceBuilder extends V1beta2DeviceFluent implements VisitableBuilder{ public V1beta2DeviceBuilder() { this(new V1beta2Device()); @@ -24,7 +25,11 @@ public V1beta2DeviceBuilder(V1beta2Device instance) { public V1beta2Device build() { V1beta2Device buildable = new V1beta2Device(); buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAllowMultipleAllocations(fluent.getAllowMultipleAllocations()); buildable.setAttributes(fluent.getAttributes()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setBindsToNode(fluent.getBindsToNode()); buildable.setCapacity(fluent.getCapacity()); buildable.setConsumesCounters(fluent.buildConsumesCounters()); buildable.setName(fluent.getName()); 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 dfc7eff4e3..7e9b2a6a59 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceCapacityBuilder extends V1beta2DeviceCapacityFluent implements VisitableBuilder{ public V1beta2DeviceCapacityBuilder() { this(new V1beta2DeviceCapacity()); @@ -23,6 +24,7 @@ public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacity instance) { public V1beta2DeviceCapacity build() { V1beta2DeviceCapacity buildable = new V1beta2DeviceCapacity(); + buildable.setRequestPolicy(fluent.buildRequestPolicy()); buildable.setValue(fluent.getValue()); return buildable; } 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 7e278fde8c..1fee1084be 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 @@ -1,29 +1,75 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceCapacityFluent> extends BaseFluent{ +public class V1beta2DeviceCapacityFluent> extends BaseFluent{ public V1beta2DeviceCapacityFluent() { } public V1beta2DeviceCapacityFluent(V1beta2DeviceCapacity instance) { this.copyInstance(instance); } + private V1beta2CapacityRequestPolicyBuilder requestPolicy; private Quantity value; protected void copyInstance(V1beta2DeviceCapacity instance) { - instance = (instance != null ? instance : new V1beta2DeviceCapacity()); + instance = instance != null ? instance : new V1beta2DeviceCapacity(); if (instance != null) { - this.withValue(instance.getValue()); - } + this.withRequestPolicy(instance.getRequestPolicy()); + this.withValue(instance.getValue()); + } + } + + public V1beta2CapacityRequestPolicy buildRequestPolicy() { + return this.requestPolicy != null ? this.requestPolicy.build() : null; + } + + public A withRequestPolicy(V1beta2CapacityRequestPolicy requestPolicy) { + this._visitables.remove("requestPolicy"); + if (requestPolicy != null) { + this.requestPolicy = new V1beta2CapacityRequestPolicyBuilder(requestPolicy); + this._visitables.get("requestPolicy").add(this.requestPolicy); + } else { + this.requestPolicy = null; + this._visitables.get("requestPolicy").remove(this.requestPolicy); + } + return (A) this; + } + + public boolean hasRequestPolicy() { + return this.requestPolicy != null; + } + + public RequestPolicyNested withNewRequestPolicy() { + return new RequestPolicyNested(null); + } + + public RequestPolicyNested withNewRequestPolicyLike(V1beta2CapacityRequestPolicy item) { + return new RequestPolicyNested(item); + } + + public RequestPolicyNested editRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); + } + + public RequestPolicyNested editOrNewRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(new V1beta2CapacityRequestPolicyBuilder().build())); + } + + public RequestPolicyNested editOrNewRequestPolicyLike(V1beta2CapacityRequestPolicy item) { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(item)); } public Quantity getValue() { @@ -40,29 +86,63 @@ public boolean hasValue() { } public A withNewValue(String value) { - return (A)withValue(new Quantity(value)); + return (A) this.withValue(new Quantity(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceCapacityFluent that = (V1beta2DeviceCapacityFluent) o; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(requestPolicy, that.requestPolicy))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(value, super.hashCode()); + return Objects.hash(requestPolicy, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(requestPolicy == null)) { + sb.append("requestPolicy:"); + sb.append(requestPolicy); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } + public class RequestPolicyNested extends V1beta2CapacityRequestPolicyFluent> implements Nested{ + RequestPolicyNested(V1beta2CapacityRequestPolicy item) { + this.builder = new V1beta2CapacityRequestPolicyBuilder(this, item); + } + V1beta2CapacityRequestPolicyBuilder builder; + + public N and() { + return (N) V1beta2DeviceCapacityFluent.this.withRequestPolicy(builder.build()); + } + + public N endRequestPolicy() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java index b3f8ec86d7..bdd62984b6 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceClaimBuilder extends V1beta2DeviceClaimFluent implements VisitableBuilder{ public V1beta2DeviceClaimBuilder() { this(new V1beta2DeviceClaim()); 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 728e2bf90c..c129ce8e1e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceClaimConfigurationBuilder extends V1beta2DeviceClaimConfigurationFluent implements VisitableBuilder{ public V1beta2DeviceClaimConfigurationBuilder() { this(new V1beta2DeviceClaimConfiguration()); 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 62dedb1471..49a087bdfe 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 @@ -1,11 +1,14 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -14,7 +17,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceClaimConfigurationFluent> extends BaseFluent{ +public class V1beta2DeviceClaimConfigurationFluent> extends BaseFluent{ public V1beta2DeviceClaimConfigurationFluent() { } @@ -25,11 +28,11 @@ public V1beta2DeviceClaimConfigurationFluent(V1beta2DeviceClaimConfiguration ins private List requests; protected void copyInstance(V1beta2DeviceClaimConfiguration instance) { - instance = (instance != null ? instance : new V1beta2DeviceClaimConfiguration()); + instance = instance != null ? instance : new V1beta2DeviceClaimConfiguration(); if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - } + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } } public V1beta2OpaqueDeviceConfiguration buildOpaque() { @@ -61,46 +64,71 @@ public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) } public OpaqueNested editOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } public OpaqueNested editOrNewOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); } public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); } public A addToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} + if (this.requests == null) { + this.requests = new ArrayList(); + } this.requests.add(index, item); - return (A)this; + return (A) this; } public A setToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.set(index, item); return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } - public A addToRequests(java.lang.String... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } - public A removeFromRequests(java.lang.String... items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public List getRequests() { @@ -149,7 +177,7 @@ public A withRequests(List requests) { return (A) this; } - public A withRequests(java.lang.String... requests) { + public A withRequests(String... requests) { if (this.requests != null) { this.requests.clear(); _visitables.remove("requests"); @@ -163,28 +191,45 @@ public A withRequests(java.lang.String... requests) { } public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); + return this.requests != null && !(this.requests.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceClaimConfigurationFluent that = (V1beta2DeviceClaimConfigurationFluent) o; - if (!java.util.Objects.equals(opaque, that.opaque)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(opaque, requests, super.hashCode()); + return Objects.hash(opaque, requests); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (opaque != null) { sb.append("opaque:"); sb.append(opaque + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } sb.append("}"); return sb.toString(); } 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 5860c18c0d..255c80b173 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 @@ -1,14 +1,16 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +18,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceClaimFluent> extends BaseFluent{ +public class V1beta2DeviceClaimFluent> extends BaseFluent{ public V1beta2DeviceClaimFluent() { } @@ -28,16 +30,18 @@ public V1beta2DeviceClaimFluent(V1beta2DeviceClaim instance) { private ArrayList requests; protected void copyInstance(V1beta2DeviceClaim instance) { - instance = (instance != null ? instance : new V1beta2DeviceClaim()); + instance = instance != null ? instance : new V1beta2DeviceClaim(); if (instance != null) { - this.withConfig(instance.getConfig()); - this.withConstraints(instance.getConstraints()); - this.withRequests(instance.getRequests()); - } + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } } public A addToConfig(int index,V1beta2DeviceClaimConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -46,11 +50,13 @@ public A addToConfig(int index,V1beta2DeviceClaimConfiguration item) { _visitables.get("config").add(builder); config.add(index, builder); } - return (A)this; + return (A) this; } public A setToConfig(int index,V1beta2DeviceClaimConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -59,41 +65,71 @@ public A setToConfig(int index,V1beta2DeviceClaimConfiguration item) { _visitables.get("config").add(builder); config.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration... items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + public A addToConfig(V1beta2DeviceClaimConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta2DeviceClaimConfiguration item : items) { + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } public A addAllToConfig(Collection items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta2DeviceClaimConfiguration item : items) { + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } - public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration... items) { - if (this.config == null) return (A)this; - for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + public A removeFromConfig(V1beta2DeviceClaimConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta2DeviceClaimConfiguration item : items) { + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeAllFromConfig(Collection items) { - if (this.config == null) return (A)this; - for (V1beta2DeviceClaimConfiguration item : items) {V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + if (this.config == null) { + return (A) this; + } + for (V1beta2DeviceClaimConfiguration item : items) { + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) return (A) this; - final Iterator each = config.iterator(); - final List visitables = _visitables.get("config"); + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); while (each.hasNext()) { - V1beta2DeviceClaimConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceClaimConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConfig() { @@ -145,7 +181,7 @@ public A withConfig(List config) { return (A) this; } - public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration... config) { + public A withConfig(V1beta2DeviceClaimConfiguration... config) { if (this.config != null) { this.config.clear(); _visitables.remove("config"); @@ -159,7 +195,7 @@ public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfig } public boolean hasConfig() { - return this.config != null && !this.config.isEmpty(); + return this.config != null && !(this.config.isEmpty()); } public ConfigNested addNewConfig() { @@ -175,32 +211,45 @@ public ConfigNested setNewConfigLike(int index,V1beta2DeviceClaimConfiguratio } public ConfigNested editConfig(int index) { - if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); - return setNewConfigLike(index, buildConfig(index)); + if (index <= config.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editFirstConfig() { - if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); - return setNewConfigLike(0, buildConfig(0)); + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); } public ConfigNested editLastConfig() { int index = config.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); - return setNewConfigLike(index, buildConfig(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.constraints == null) { + this.constraints = new ArrayList(); + } V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); if (index < 0 || index >= constraints.size()) { _visitables.get("constraints").add(builder); @@ -209,11 +258,13 @@ public A addToConstraints(int index,V1beta2DeviceConstraint item) { _visitables.get("constraints").add(builder); constraints.add(index, builder); } - return (A)this; + return (A) this; } public A setToConstraints(int index,V1beta2DeviceConstraint item) { - if (this.constraints == null) {this.constraints = new ArrayList();} + if (this.constraints == null) { + this.constraints = new ArrayList(); + } V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); if (index < 0 || index >= constraints.size()) { _visitables.get("constraints").add(builder); @@ -222,41 +273,71 @@ public A setToConstraints(int index,V1beta2DeviceConstraint item) { _visitables.get("constraints").add(builder); constraints.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstraint... items) { - if (this.constraints == null) {this.constraints = new ArrayList();} - for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + public A addToConstraints(V1beta2DeviceConstraint... items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + for (V1beta2DeviceConstraint item : items) { + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; } public A addAllToConstraints(Collection items) { - if (this.constraints == null) {this.constraints = new ArrayList();} - for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").add(builder);this.constraints.add(builder);} return (A)this; + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + for (V1beta2DeviceConstraint item : items) { + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; } - public A removeFromConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstraint... items) { - if (this.constraints == null) return (A)this; - for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + public A removeFromConstraints(V1beta2DeviceConstraint... items) { + if (this.constraints == null) { + return (A) this; + } + for (V1beta2DeviceConstraint item : items) { + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); + } + return (A) this; } public A removeAllFromConstraints(Collection items) { - if (this.constraints == null) return (A)this; - for (V1beta2DeviceConstraint item : items) {V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item);_visitables.get("constraints").remove(builder); this.constraints.remove(builder);} return (A)this; + if (this.constraints == null) { + return (A) this; + } + for (V1beta2DeviceConstraint item : items) { + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); + } + return (A) this; } public A removeMatchingFromConstraints(Predicate predicate) { - if (constraints == null) return (A) this; - final Iterator each = constraints.iterator(); - final List visitables = _visitables.get("constraints"); + if (constraints == null) { + return (A) this; + } + Iterator each = constraints.iterator(); + List visitables = _visitables.get("constraints"); while (each.hasNext()) { - V1beta2DeviceConstraintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConstraints() { @@ -308,7 +389,7 @@ public A withConstraints(List constraints) { return (A) this; } - public A withConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstraint... constraints) { + public A withConstraints(V1beta2DeviceConstraint... constraints) { if (this.constraints != null) { this.constraints.clear(); _visitables.remove("constraints"); @@ -322,7 +403,7 @@ public A withConstraints(io.kubernetes.client.openapi.models.V1beta2DeviceConstr } public boolean hasConstraints() { - return this.constraints != null && !this.constraints.isEmpty(); + return this.constraints != null && !(this.constraints.isEmpty()); } public ConstraintsNested addNewConstraint() { @@ -338,32 +419,45 @@ public ConstraintsNested setNewConstraintLike(int index,V1beta2DeviceConstrai } public ConstraintsNested editConstraint(int index) { - if (constraints.size() <= index) throw new RuntimeException("Can't edit constraints. Index exceeds size."); - return setNewConstraintLike(index, buildConstraint(index)); + if (index <= constraints.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); } public ConstraintsNested editFirstConstraint() { - if (constraints.size() == 0) throw new RuntimeException("Can't edit first constraints. The list is empty."); - return setNewConstraintLike(0, buildConstraint(0)); + if (constraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(0, this.buildConstraint(0)); } public ConstraintsNested editLastConstraint() { int index = constraints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last constraints. The list is empty."); - return setNewConstraintLike(index, buildConstraint(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); } public ConstraintsNested editMatchingConstraint(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.requests == null) { + this.requests = new ArrayList(); + } V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); @@ -372,11 +466,13 @@ public A addToRequests(int index,V1beta2DeviceRequest item) { _visitables.get("requests").add(builder); requests.add(index, builder); } - return (A)this; + return (A) this; } public A setToRequests(int index,V1beta2DeviceRequest item) { - if (this.requests == null) {this.requests = new ArrayList();} + if (this.requests == null) { + this.requests = new ArrayList(); + } V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); @@ -385,41 +481,71 @@ public A setToRequests(int index,V1beta2DeviceRequest item) { _visitables.get("requests").add(builder); requests.set(index, builder); } - return (A)this; + return (A) this; } - public A addToRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + public A addToRequests(V1beta2DeviceRequest... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1beta2DeviceRequest item : items) { + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; } public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1beta2DeviceRequest item : items) { + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; } - public A removeFromRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest... items) { - if (this.requests == null) return (A)this; - for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + public A removeFromRequests(V1beta2DeviceRequest... items) { + if (this.requests == null) { + return (A) this; + } + for (V1beta2DeviceRequest item : items) { + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; } public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (V1beta2DeviceRequest item : items) {V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item);_visitables.get("requests").remove(builder); this.requests.remove(builder);} return (A)this; + if (this.requests == null) { + return (A) this; + } + for (V1beta2DeviceRequest item : items) { + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; } public A removeMatchingFromRequests(Predicate predicate) { - if (requests == null) return (A) this; - final Iterator each = requests.iterator(); - final List visitables = _visitables.get("requests"); + if (requests == null) { + return (A) this; + } + Iterator each = requests.iterator(); + List visitables = _visitables.get("requests"); while (each.hasNext()) { - V1beta2DeviceRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildRequests() { @@ -471,7 +597,7 @@ public A withRequests(List requests) { return (A) this; } - public A withRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest... requests) { + public A withRequests(V1beta2DeviceRequest... requests) { if (this.requests != null) { this.requests.clear(); _visitables.remove("requests"); @@ -485,7 +611,7 @@ public A withRequests(io.kubernetes.client.openapi.models.V1beta2DeviceRequest.. } public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); + return this.requests != null && !(this.requests.isEmpty()); } public RequestsNested addNewRequest() { @@ -501,51 +627,85 @@ public RequestsNested setNewRequestLike(int index,V1beta2DeviceRequest item) } public RequestsNested editRequest(int index) { - if (requests.size() <= index) throw new RuntimeException("Can't edit requests. Index exceeds size."); - return setNewRequestLike(index, buildRequest(index)); + if (index <= requests.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); } public RequestsNested editFirstRequest() { - if (requests.size() == 0) throw new RuntimeException("Can't edit first requests. The list is empty."); - return setNewRequestLike(0, buildRequest(0)); + if (requests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(0, this.buildRequest(0)); } public RequestsNested editLastRequest() { int index = requests.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last requests. The list is empty."); - return setNewRequestLike(index, buildRequest(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); } public RequestsNested editMatchingRequest(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2DeviceClaimConfigurationFluent extends V1beta2DeviceConstraintFluent extends V1beta2DeviceRequestFluent implements VisitableBuilder{ public V1beta2DeviceClassBuilder() { this(new V1beta2DeviceClass()); 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 6bdd6f1a4d..0a6ea0f7c1 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceClassConfigurationBuilder extends V1beta2DeviceClassConfigurationFluent implements VisitableBuilder{ public V1beta2DeviceClassConfigurationBuilder() { this(new V1beta2DeviceClassConfiguration()); 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 712740dd81..3d05b1b720 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceClassConfigurationFluent> extends BaseFluent{ +public class V1beta2DeviceClassConfigurationFluent> extends BaseFluent{ public V1beta2DeviceClassConfigurationFluent() { } @@ -20,10 +23,10 @@ public V1beta2DeviceClassConfigurationFluent(V1beta2DeviceClassConfiguration ins private V1beta2OpaqueDeviceConfigurationBuilder opaque; protected void copyInstance(V1beta2DeviceClassConfiguration instance) { - instance = (instance != null ? instance : new V1beta2DeviceClassConfiguration()); + instance = instance != null ? instance : new V1beta2DeviceClassConfiguration(); if (instance != null) { - this.withOpaque(instance.getOpaque()); - } + this.withOpaque(instance.getOpaque()); + } } public V1beta2OpaqueDeviceConfiguration buildOpaque() { @@ -55,34 +58,45 @@ public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) } public OpaqueNested editOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(null)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } public OpaqueNested editOrNewOpaque() { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); } public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return withNewOpaqueLike(java.util.Optional.ofNullable(buildOpaque()).orElse(item)); + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceClassConfigurationFluent that = (V1beta2DeviceClassConfigurationFluent) o; - if (!java.util.Objects.equals(opaque, that.opaque)) return false; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(opaque, super.hashCode()); + return Objects.hash(opaque); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (opaque != null) { sb.append("opaque:"); sb.append(opaque); } + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + } sb.append("}"); return sb.toString(); } 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 f89eec41d6..b07c067a2c 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceClassFluent> extends BaseFluent{ +public class V1beta2DeviceClassFluent> extends BaseFluent{ public V1beta2DeviceClassFluent() { } @@ -23,13 +26,13 @@ public V1beta2DeviceClassFluent(V1beta2DeviceClass instance) { private V1beta2DeviceClassSpecBuilder spec; protected void copyInstance(V1beta2DeviceClass instance) { - instance = (instance != null ? instance : new V1beta2DeviceClass()); + instance = instance != null ? instance : new V1beta2DeviceClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta2DeviceClassSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1beta2DeviceClassSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2DeviceClassSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2DeviceClassSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta2DeviceClassSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceClassFluent that = (V1beta2DeviceClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 757decc167..d9eb1a33e7 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceClassListBuilder extends V1beta2DeviceClassListFluent implements VisitableBuilder{ public V1beta2DeviceClassListBuilder() { this(new V1beta2DeviceClassList()); 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 d63491ba57..424f512b5b 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceClassListFluent> extends BaseFluent{ +public class V1beta2DeviceClassListFluent> extends BaseFluent{ public V1beta2DeviceClassListFluent() { } @@ -29,13 +32,13 @@ public V1beta2DeviceClassListFluent(V1beta2DeviceClassList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1beta2DeviceClassList instance) { - instance = (instance != null ? instance : new V1beta2DeviceClassList()); + instance = instance != null ? instance : new V1beta2DeviceClassList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta2DeviceClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta2DeviceClass item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta2DeviceClass item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta2DeviceClass item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta2DeviceClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2DeviceClass item : items) { + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2DeviceClass item : items) { + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... items) { - if (this.items == null) return (A)this; - for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta2DeviceClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2DeviceClass item : items) { + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta2DeviceClass item : items) {V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta2DeviceClass item : items) { + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta2DeviceClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... items) { + public A withItems(V1beta2DeviceClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta2DeviceClass... ite } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta2DeviceClass item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceClassListFluent that = (V1beta2DeviceClassListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta2DeviceClassFluent> imp int index; public N and() { - return (N) V1beta2DeviceClassListFluent.this.setToItems(index,builder.build()); + return (N) V1beta2DeviceClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 7ddbecb05a..b9e3cf2066 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceClassSpecBuilder extends V1beta2DeviceClassSpecFluent implements VisitableBuilder{ public V1beta2DeviceClassSpecBuilder() { this(new V1beta2DeviceClassSpec()); @@ -24,6 +25,7 @@ public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpec instance) { public V1beta2DeviceClassSpec build() { V1beta2DeviceClassSpec buildable = new V1beta2DeviceClassSpec(); buildable.setConfig(fluent.buildConfig()); + buildable.setExtendedResourceName(fluent.getExtendedResourceName()); buildable.setSelectors(fluent.buildSelectors()); return buildable; } 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 9d39d8da88..33b46db1ca 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 @@ -1,22 +1,24 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceClassSpecFluent> extends BaseFluent{ +public class V1beta2DeviceClassSpecFluent> extends BaseFluent{ public V1beta2DeviceClassSpecFluent() { } @@ -24,18 +26,22 @@ public V1beta2DeviceClassSpecFluent(V1beta2DeviceClassSpec instance) { this.copyInstance(instance); } private ArrayList config; + private String extendedResourceName; private ArrayList selectors; protected void copyInstance(V1beta2DeviceClassSpec instance) { - instance = (instance != null ? instance : new V1beta2DeviceClassSpec()); + instance = instance != null ? instance : new V1beta2DeviceClassSpec(); if (instance != null) { - this.withConfig(instance.getConfig()); - this.withSelectors(instance.getSelectors()); - } + this.withConfig(instance.getConfig()); + this.withExtendedResourceName(instance.getExtendedResourceName()); + this.withSelectors(instance.getSelectors()); + } } public A addToConfig(int index,V1beta2DeviceClassConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -44,11 +50,13 @@ public A addToConfig(int index,V1beta2DeviceClassConfiguration item) { _visitables.get("config").add(builder); config.add(index, builder); } - return (A)this; + return (A) this; } public A setToConfig(int index,V1beta2DeviceClassConfiguration item) { - if (this.config == null) {this.config = new ArrayList();} + if (this.config == null) { + this.config = new ArrayList(); + } V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); @@ -57,41 +65,71 @@ public A setToConfig(int index,V1beta2DeviceClassConfiguration item) { _visitables.get("config").add(builder); config.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration... items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + public A addToConfig(V1beta2DeviceClassConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta2DeviceClassConfiguration item : items) { + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } public A addAllToConfig(Collection items) { - if (this.config == null) {this.config = new ArrayList();} - for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").add(builder);this.config.add(builder);} return (A)this; + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1beta2DeviceClassConfiguration item : items) { + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; } - public A removeFromConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration... items) { - if (this.config == null) return (A)this; - for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + public A removeFromConfig(V1beta2DeviceClassConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta2DeviceClassConfiguration item : items) { + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeAllFromConfig(Collection items) { - if (this.config == null) return (A)this; - for (V1beta2DeviceClassConfiguration item : items) {V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item);_visitables.get("config").remove(builder); this.config.remove(builder);} return (A)this; + if (this.config == null) { + return (A) this; + } + for (V1beta2DeviceClassConfiguration item : items) { + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; } public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) return (A) this; - final Iterator each = config.iterator(); - final List visitables = _visitables.get("config"); + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); while (each.hasNext()) { - V1beta2DeviceClassConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConfig() { @@ -143,7 +181,7 @@ public A withConfig(List config) { return (A) this; } - public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration... config) { + public A withConfig(V1beta2DeviceClassConfiguration... config) { if (this.config != null) { this.config.clear(); _visitables.remove("config"); @@ -157,7 +195,7 @@ public A withConfig(io.kubernetes.client.openapi.models.V1beta2DeviceClassConfig } public boolean hasConfig() { - return this.config != null && !this.config.isEmpty(); + return this.config != null && !(this.config.isEmpty()); } public ConfigNested addNewConfig() { @@ -173,32 +211,58 @@ public ConfigNested setNewConfigLike(int index,V1beta2DeviceClassConfiguratio } public ConfigNested editConfig(int index) { - if (config.size() <= index) throw new RuntimeException("Can't edit config. Index exceeds size."); - return setNewConfigLike(index, buildConfig(index)); + if (index <= config.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editFirstConfig() { - if (config.size() == 0) throw new RuntimeException("Can't edit first config. The list is empty."); - return setNewConfigLike(0, buildConfig(0)); + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); } public ConfigNested editLastConfig() { int index = config.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last config. The list is empty."); - return setNewConfigLike(index, buildConfig(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); } public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -207,11 +271,13 @@ public A addToSelectors(int index,V1beta2DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.add(index, builder); } - return (A)this; + return (A) this; } public A setToSelectors(int index,V1beta2DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -220,41 +286,71 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + public A addToSelectors(V1beta2DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + public A removeFromSelectors(V1beta2DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + if (this.selectors == null) { + return (A) this; + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); while (each.hasNext()) { - V1beta2DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSelectors() { @@ -306,7 +402,7 @@ public A withSelectors(List selectors) { return (A) this; } - public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... selectors) { + public A withSelectors(V1beta2DeviceSelector... selectors) { if (this.selectors != null) { this.selectors.clear(); _visitables.remove("selectors"); @@ -320,7 +416,7 @@ public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector } public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); + return this.selectors != null && !(this.selectors.isEmpty()); } public SelectorsNested addNewSelector() { @@ -336,49 +432,85 @@ public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector ite } public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); } public SelectorsNested editLastSelector() { int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2DeviceClassConfigurationFluent extends V1beta2DeviceSelectorFluent implements VisitableBuilder{ public V1beta2DeviceConstraintBuilder() { this(new V1beta2DeviceConstraint()); @@ -23,6 +24,7 @@ public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraint instance) { public V1beta2DeviceConstraint build() { V1beta2DeviceConstraint buildable = new V1beta2DeviceConstraint(); + buildable.setDistinctAttribute(fluent.getDistinctAttribute()); buildable.setMatchAttribute(fluent.getMatchAttribute()); buildable.setRequests(fluent.getRequests()); return buildable; 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 a3af5e8a60..6bb820b832 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,22 +15,37 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceConstraintFluent> extends BaseFluent{ +public class V1beta2DeviceConstraintFluent> extends BaseFluent{ public V1beta2DeviceConstraintFluent() { } public V1beta2DeviceConstraintFluent(V1beta2DeviceConstraint instance) { this.copyInstance(instance); } + private String distinctAttribute; private String matchAttribute; private List requests; protected void copyInstance(V1beta2DeviceConstraint instance) { - instance = (instance != null ? instance : new V1beta2DeviceConstraint()); + instance = instance != null ? instance : new V1beta2DeviceConstraint(); if (instance != null) { - this.withMatchAttribute(instance.getMatchAttribute()); - this.withRequests(instance.getRequests()); - } + this.withDistinctAttribute(instance.getDistinctAttribute()); + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public String getDistinctAttribute() { + return this.distinctAttribute; + } + + public A withDistinctAttribute(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return (A) this; + } + + public boolean hasDistinctAttribute() { + return this.distinctAttribute != null; } public String getMatchAttribute() { @@ -45,34 +62,59 @@ public boolean hasMatchAttribute() { } public A addToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} + if (this.requests == null) { + this.requests = new ArrayList(); + } this.requests.add(index, item); - return (A)this; + return (A) this; } public A setToRequests(int index,String item) { - if (this.requests == null) {this.requests = new ArrayList();} - this.requests.set(index, item); return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } - public A addToRequests(java.lang.String... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } public A addAllToRequests(Collection items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (String item : items) {this.requests.add(item);} return (A)this; + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } - public A removeFromRequests(java.lang.String... items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public A removeAllFromRequests(Collection items) { - if (this.requests == null) return (A)this; - for (String item : items) { this.requests.remove(item);} return (A)this; + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; } public List getRequests() { @@ -121,7 +163,7 @@ public A withRequests(List requests) { return (A) this; } - public A withRequests(java.lang.String... requests) { + public A withRequests(String... requests) { if (this.requests != null) { this.requests.clear(); _visitables.remove("requests"); @@ -135,28 +177,53 @@ public A withRequests(java.lang.String... requests) { } public boolean hasRequests() { - return this.requests != null && !this.requests.isEmpty(); + return this.requests != null && !(this.requests.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceConstraintFluent that = (V1beta2DeviceConstraintFluent) o; - if (!java.util.Objects.equals(matchAttribute, that.matchAttribute)) return false; - if (!java.util.Objects.equals(requests, that.requests)) return false; + if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { + return false; + } + if (!(Objects.equals(matchAttribute, that.matchAttribute))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(matchAttribute, requests, super.hashCode()); + return Objects.hash(distinctAttribute, matchAttribute, requests); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (matchAttribute != null) { sb.append("matchAttribute:"); sb.append(matchAttribute + ","); } - if (requests != null && !requests.isEmpty()) { sb.append("requests:"); sb.append(requests); } + if (!(distinctAttribute == null)) { + sb.append("distinctAttribute:"); + sb.append(distinctAttribute); + sb.append(","); + } + if (!(matchAttribute == null)) { + sb.append("matchAttribute:"); + sb.append(matchAttribute); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } sb.append("}"); return sb.toString(); } 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 d41cd68d42..31c8663054 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceCounterConsumptionBuilder extends V1beta2DeviceCounterConsumptionFluent implements VisitableBuilder{ public V1beta2DeviceCounterConsumptionBuilder() { this(new V1beta2DeviceCounterConsumption()); 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 47321584a4..e35edd88d5 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceCounterConsumptionFluent> extends BaseFluent{ +public class V1beta2DeviceCounterConsumptionFluent> extends BaseFluent{ public V1beta2DeviceCounterConsumptionFluent() { } @@ -22,11 +24,11 @@ public V1beta2DeviceCounterConsumptionFluent(V1beta2DeviceCounterConsumption ins private Map counters; protected void copyInstance(V1beta2DeviceCounterConsumption instance) { - instance = (instance != null ? instance : new V1beta2DeviceCounterConsumption()); + instance = instance != null ? instance : new V1beta2DeviceCounterConsumption(); if (instance != null) { - this.withCounterSet(instance.getCounterSet()); - this.withCounters(instance.getCounters()); - } + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } } public String getCounterSet() { @@ -43,23 +45,47 @@ public boolean hasCounterSet() { } public A addToCounters(String key,V1beta2Counter value) { - if(this.counters == null && key != null && value != null) { this.counters = new LinkedHashMap(); } - if(key != null && value != null) {this.counters.put(key, value);} return (A)this; + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.counters.put(key, value); + } + return (A) this; } public A addToCounters(Map map) { - if(this.counters == null && map != null) { this.counters = new LinkedHashMap(); } - if(map != null) { this.counters.putAll(map);} return (A)this; + if (this.counters == null && map != null) { + this.counters = new LinkedHashMap(); + } + if (map != null) { + this.counters.putAll(map); + } + return (A) this; } public A removeFromCounters(String key) { - if(this.counters == null) { return (A) this; } - if(key != null && this.counters != null) {this.counters.remove(key);} return (A)this; + if (this.counters == null) { + return (A) this; + } + if (key != null && this.counters != null) { + this.counters.remove(key); + } + return (A) this; } public A removeFromCounters(Map map) { - if(this.counters == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.counters != null){this.counters.remove(key);}}} return (A)this; + if (this.counters == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.counters != null) { + this.counters.remove(key); + } + } + } + return (A) this; } public Map getCounters() { @@ -80,24 +106,41 @@ public boolean hasCounters() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceCounterConsumptionFluent that = (V1beta2DeviceCounterConsumptionFluent) o; - if (!java.util.Objects.equals(counterSet, that.counterSet)) return false; - if (!java.util.Objects.equals(counters, that.counters)) return false; + if (!(Objects.equals(counterSet, that.counterSet))) { + return false; + } + if (!(Objects.equals(counters, that.counters))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(counterSet, counters, super.hashCode()); + return Objects.hash(counterSet, counters); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (counterSet != null) { sb.append("counterSet:"); sb.append(counterSet + ","); } - if (counters != null && !counters.isEmpty()) { sb.append("counters:"); sb.append(counters); } + if (!(counterSet == null)) { + sb.append("counterSet:"); + sb.append(counterSet); + sb.append(","); + } + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + } sb.append("}"); return sb.toString(); } 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 d73ba486c6..0f41380056 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.Map; @@ -19,7 +22,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceFluent> extends BaseFluent{ +public class V1beta2DeviceFluent> extends BaseFluent{ public V1beta2DeviceFluent() { } @@ -27,7 +30,11 @@ public V1beta2DeviceFluent(V1beta2Device instance) { this.copyInstance(instance); } private Boolean allNodes; + private Boolean allowMultipleAllocations; private Map attributes; + private List bindingConditions; + private List bindingFailureConditions; + private Boolean bindsToNode; private Map capacity; private ArrayList consumesCounters; private String name; @@ -36,17 +43,21 @@ public V1beta2DeviceFluent(V1beta2Device instance) { private ArrayList taints; protected void copyInstance(V1beta2Device instance) { - instance = (instance != null ? instance : new V1beta2Device()); + instance = instance != null ? instance : new V1beta2Device(); if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withAttributes(instance.getAttributes()); - this.withCapacity(instance.getCapacity()); - this.withConsumesCounters(instance.getConsumesCounters()); - this.withName(instance.getName()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withTaints(instance.getTaints()); - } + this.withAllNodes(instance.getAllNodes()); + this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); + this.withAttributes(instance.getAttributes()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withBindsToNode(instance.getBindsToNode()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withName(instance.getName()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); + } } public Boolean getAllNodes() { @@ -62,24 +73,61 @@ public boolean hasAllNodes() { return this.allNodes != null; } + public Boolean getAllowMultipleAllocations() { + return this.allowMultipleAllocations; + } + + public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return (A) this; + } + + public boolean hasAllowMultipleAllocations() { + return this.allowMultipleAllocations != null; + } + public A addToAttributes(String key,V1beta2DeviceAttribute value) { - if(this.attributes == null && key != null && value != null) { this.attributes = new LinkedHashMap(); } - if(key != null && value != null) {this.attributes.put(key, value);} return (A)this; + if (this.attributes == null && key != null && value != null) { + this.attributes = new LinkedHashMap(); + } + if (key != null && value != null) { + this.attributes.put(key, value); + } + return (A) this; } public A addToAttributes(Map map) { - if(this.attributes == null && map != null) { this.attributes = new LinkedHashMap(); } - if(map != null) { this.attributes.putAll(map);} return (A)this; + if (this.attributes == null && map != null) { + this.attributes = new LinkedHashMap(); + } + if (map != null) { + this.attributes.putAll(map); + } + return (A) this; } public A removeFromAttributes(String key) { - if(this.attributes == null) { return (A) this; } - if(key != null && this.attributes != null) {this.attributes.remove(key);} return (A)this; + if (this.attributes == null) { + return (A) this; + } + if (key != null && this.attributes != null) { + this.attributes.remove(key); + } + return (A) this; } public A removeFromAttributes(Map map) { - if(this.attributes == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.attributes != null){this.attributes.remove(key);}}} return (A)this; + if (this.attributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attributes != null) { + this.attributes.remove(key); + } + } + } + return (A) this; } public Map getAttributes() { @@ -99,24 +147,299 @@ public boolean hasAttributes() { return this.attributes != null; } + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public Boolean getBindsToNode() { + return this.bindsToNode; + } + + public A withBindsToNode(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return (A) this; + } + + public boolean hasBindsToNode() { + return this.bindsToNode != null; + } + public A addToCapacity(String key,V1beta2DeviceCapacity value) { - if(this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } - if(key != null && value != null) {this.capacity.put(key, value);} return (A)this; + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.capacity.put(key, value); + } + return (A) this; } public A addToCapacity(Map map) { - if(this.capacity == null && map != null) { this.capacity = new LinkedHashMap(); } - if(map != null) { this.capacity.putAll(map);} return (A)this; + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); + } + return (A) this; } public A removeFromCapacity(String key) { - if(this.capacity == null) { return (A) this; } - if(key != null && this.capacity != null) {this.capacity.remove(key);} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (key != null && this.capacity != null) { + this.capacity.remove(key); + } + return (A) this; } public A removeFromCapacity(Map map) { - if(this.capacity == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.capacity != null){this.capacity.remove(key);}}} return (A)this; + if (this.capacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } + } + } + return (A) this; } public Map getCapacity() { @@ -137,7 +460,9 @@ public boolean hasCapacity() { } public A addToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= consumesCounters.size()) { _visitables.get("consumesCounters").add(builder); @@ -146,11 +471,13 @@ public A addToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { _visitables.get("consumesCounters").add(builder); consumesCounters.add(index, builder); } - return (A)this; + return (A) this; } public A setToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); if (index < 0 || index >= consumesCounters.size()) { _visitables.get("consumesCounters").add(builder); @@ -159,41 +486,71 @@ public A setToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { _visitables.get("consumesCounters").add(builder); consumesCounters.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption... items) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} - for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + public A addToConsumesCounters(V1beta2DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1beta2DeviceCounterConsumption item : items) { + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } + return (A) this; } public A addAllToConsumesCounters(Collection items) { - if (this.consumesCounters == null) {this.consumesCounters = new ArrayList();} - for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").add(builder);this.consumesCounters.add(builder);} return (A)this; + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1beta2DeviceCounterConsumption item : items) { + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } + return (A) this; } - public A removeFromConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption... items) { - if (this.consumesCounters == null) return (A)this; - for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + public A removeFromConsumesCounters(V1beta2DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + return (A) this; + } + for (V1beta2DeviceCounterConsumption item : items) { + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); + } + return (A) this; } public A removeAllFromConsumesCounters(Collection items) { - if (this.consumesCounters == null) return (A)this; - for (V1beta2DeviceCounterConsumption item : items) {V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item);_visitables.get("consumesCounters").remove(builder); this.consumesCounters.remove(builder);} return (A)this; + if (this.consumesCounters == null) { + return (A) this; + } + for (V1beta2DeviceCounterConsumption item : items) { + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); + } + return (A) this; } public A removeMatchingFromConsumesCounters(Predicate predicate) { - if (consumesCounters == null) return (A) this; - final Iterator each = consumesCounters.iterator(); - final List visitables = _visitables.get("consumesCounters"); + if (consumesCounters == null) { + return (A) this; + } + Iterator each = consumesCounters.iterator(); + List visitables = _visitables.get("consumesCounters"); while (each.hasNext()) { - V1beta2DeviceCounterConsumptionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConsumesCounters() { @@ -245,7 +602,7 @@ public A withConsumesCounters(List consumesCoun return (A) this; } - public A withConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption... consumesCounters) { + public A withConsumesCounters(V1beta2DeviceCounterConsumption... consumesCounters) { if (this.consumesCounters != null) { this.consumesCounters.clear(); _visitables.remove("consumesCounters"); @@ -259,7 +616,7 @@ public A withConsumesCounters(io.kubernetes.client.openapi.models.V1beta2DeviceC } public boolean hasConsumesCounters() { - return this.consumesCounters != null && !this.consumesCounters.isEmpty(); + return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); } public ConsumesCountersNested addNewConsumesCounter() { @@ -275,28 +632,39 @@ public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta2Devi } public ConsumesCountersNested editConsumesCounter(int index) { - if (consumesCounters.size() <= index) throw new RuntimeException("Can't edit consumesCounters. Index exceeds size."); - return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + if (index <= consumesCounters.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } public ConsumesCountersNested editFirstConsumesCounter() { - if (consumesCounters.size() == 0) throw new RuntimeException("Can't edit first consumesCounters. The list is empty."); - return setNewConsumesCounterLike(0, buildConsumesCounter(0)); + if (consumesCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); } public ConsumesCountersNested editLastConsumesCounter() { int index = consumesCounters.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last consumesCounters. The list is empty."); - return setNewConsumesCounterLike(index, buildConsumesCounter(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { int index = -1; - for (int i=0;i withNewNodeSelectorLike(V1NodeSelector item) { } public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } public A addToTaints(int index,V1beta2DeviceTaint item) { - if (this.taints == null) {this.taints = new ArrayList();} + if (this.taints == null) { + this.taints = new ArrayList(); + } V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); @@ -375,11 +745,13 @@ public A addToTaints(int index,V1beta2DeviceTaint item) { _visitables.get("taints").add(builder); taints.add(index, builder); } - return (A)this; + return (A) this; } public A setToTaints(int index,V1beta2DeviceTaint item) { - if (this.taints == null) {this.taints = new ArrayList();} + if (this.taints == null) { + this.taints = new ArrayList(); + } V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); if (index < 0 || index >= taints.size()) { _visitables.get("taints").add(builder); @@ -388,41 +760,71 @@ public A setToTaints(int index,V1beta2DeviceTaint item) { _visitables.get("taints").add(builder); taints.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + public A addToTaints(V1beta2DeviceTaint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1beta2DeviceTaint item : items) { + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } public A addAllToTaints(Collection items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1beta2DeviceTaint item : items) { + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } - public A removeFromTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... items) { - if (this.taints == null) return (A)this; - for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + public A removeFromTaints(V1beta2DeviceTaint... items) { + if (this.taints == null) { + return (A) this; + } + for (V1beta2DeviceTaint item : items) { + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } public A removeAllFromTaints(Collection items) { - if (this.taints == null) return (A)this; - for (V1beta2DeviceTaint item : items) {V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + if (this.taints == null) { + return (A) this; + } + for (V1beta2DeviceTaint item : items) { + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } public A removeMatchingFromTaints(Predicate predicate) { - if (taints == null) return (A) this; - final Iterator each = taints.iterator(); - final List visitables = _visitables.get("taints"); + if (taints == null) { + return (A) this; + } + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); while (each.hasNext()) { - V1beta2DeviceTaintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTaints() { @@ -474,7 +876,7 @@ public A withTaints(List taints) { return (A) this; } - public A withTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... taints) { + public A withTaints(V1beta2DeviceTaint... taints) { if (this.taints != null) { this.taints.clear(); _visitables.remove("taints"); @@ -488,7 +890,7 @@ public A withTaints(io.kubernetes.client.openapi.models.V1beta2DeviceTaint... ta } public boolean hasTaints() { - return this.taints != null && !this.taints.isEmpty(); + return this.taints != null && !(this.taints.isEmpty()); } public TaintsNested addNewTaint() { @@ -504,61 +906,157 @@ public TaintsNested setNewTaintLike(int index,V1beta2DeviceTaint item) { } public TaintsNested editTaint(int index) { - if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); - return setNewTaintLike(index, buildTaint(index)); + if (index <= taints.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } public TaintsNested editFirstTaint() { - if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); - return setNewTaintLike(0, buildTaint(0)); + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(0, this.buildTaint(0)); } public TaintsNested editLastTaint() { int index = taints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last taints. The list is empty."); - return setNewTaintLike(index, buildTaint(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } public TaintsNested editMatchingTaint(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2DeviceCounterConsumptionFluent> implements Nested{ ConsumesCountersNested(int index,V1beta2DeviceCounterConsumption item) { this.index = index; @@ -575,7 +1081,7 @@ public class ConsumesCountersNested extends V1beta2DeviceCounterConsumptionFl int index; public N and() { - return (N) V1beta2DeviceFluent.this.setToConsumesCounters(index,builder.build()); + return (N) V1beta2DeviceFluent.this.setToConsumesCounters(index, builder.build()); } public N endConsumesCounter() { @@ -609,7 +1115,7 @@ public class TaintsNested extends V1beta2DeviceTaintFluent> i int index; public N and() { - return (N) V1beta2DeviceFluent.this.setToTaints(index,builder.build()); + return (N) V1beta2DeviceFluent.this.setToTaints(index, builder.build()); } public N endTaint() { 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 e86132931c..769dd5c31c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceRequestAllocationResultBuilder extends V1beta2DeviceRequestAllocationResultFluent implements VisitableBuilder{ public V1beta2DeviceRequestAllocationResultBuilder() { this(new V1beta2DeviceRequestAllocationResult()); @@ -24,10 +25,14 @@ public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocatio public V1beta2DeviceRequestAllocationResult build() { V1beta2DeviceRequestAllocationResult buildable = new V1beta2DeviceRequestAllocationResult(); buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setConsumedCapacity(fluent.getConsumedCapacity()); buildable.setDevice(fluent.getDevice()); buildable.setDriver(fluent.getDriver()); buildable.setPool(fluent.getPool()); buildable.setRequest(fluent.getRequest()); + buildable.setShareID(fluent.getShareID()); 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 142dd31265..f61e399ece 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 @@ -1,23 +1,28 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; +import java.util.LinkedHashMap; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; -import java.util.Collection; -import java.lang.Object; import java.util.List; import java.lang.Boolean; +import io.kubernetes.client.custom.Quantity; +import java.util.Objects; +import java.util.Collection; +import java.lang.Object; +import java.util.Map; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceRequestAllocationResultFluent> extends BaseFluent{ +public class V1beta2DeviceRequestAllocationResultFluent> extends BaseFluent{ public V1beta2DeviceRequestAllocationResultFluent() { } @@ -25,22 +30,30 @@ public V1beta2DeviceRequestAllocationResultFluent(V1beta2DeviceRequestAllocation this.copyInstance(instance); } private Boolean adminAccess; + private List bindingConditions; + private List bindingFailureConditions; + private Map consumedCapacity; private String device; private String driver; private String pool; private String request; + private String shareID; private ArrayList tolerations; protected void copyInstance(V1beta2DeviceRequestAllocationResult instance) { - instance = (instance != null ? instance : new V1beta2DeviceRequestAllocationResult()); + instance = instance != null ? instance : new V1beta2DeviceRequestAllocationResult(); if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withPool(instance.getPool()); - this.withRequest(instance.getRequest()); - this.withTolerations(instance.getTolerations()); - } + this.withAdminAccess(instance.getAdminAccess()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withConsumedCapacity(instance.getConsumedCapacity()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withShareID(instance.getShareID()); + this.withTolerations(instance.getTolerations()); + } } public Boolean getAdminAccess() { @@ -56,6 +69,305 @@ public boolean hasAdminAccess() { return this.adminAccess != null; } + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public A addToConsumedCapacity(String key,Quantity value) { + if (this.consumedCapacity == null && key != null && value != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.consumedCapacity.put(key, value); + } + return (A) this; + } + + public A addToConsumedCapacity(Map map) { + if (this.consumedCapacity == null && map != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (map != null) { + this.consumedCapacity.putAll(map); + } + return (A) this; + } + + public A removeFromConsumedCapacity(String key) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (key != null && this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + return (A) this; + } + + public A removeFromConsumedCapacity(Map map) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + } + } + return (A) this; + } + + public Map getConsumedCapacity() { + return this.consumedCapacity; + } + + public A withConsumedCapacity(Map consumedCapacity) { + if (consumedCapacity == null) { + this.consumedCapacity = null; + } else { + this.consumedCapacity = new LinkedHashMap(consumedCapacity); + } + return (A) this; + } + + public boolean hasConsumedCapacity() { + return this.consumedCapacity != null; + } + public String getDevice() { return this.device; } @@ -108,8 +420,23 @@ public boolean hasRequest() { return this.request != null; } + public String getShareID() { + return this.shareID; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public boolean hasShareID() { + return this.shareID != null; + } + public A addToTolerations(int index,V1beta2DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -118,11 +445,13 @@ public A addToTolerations(int index,V1beta2DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.add(index, builder); } - return (A)this; + return (A) this; } public A setToTolerations(int index,V1beta2DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -131,41 +460,71 @@ public A setToTolerations(int index,V1beta2DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A addToTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { - if (this.tolerations == null) return (A)this; - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A removeFromTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - V1beta2DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTolerations() { @@ -217,7 +576,7 @@ public A withTolerations(List tolerations) { return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... tolerations) { + public A withTolerations(V1beta2DeviceToleration... tolerations) { if (this.tolerations != null) { this.tolerations.clear(); _visitables.remove("tolerations"); @@ -231,7 +590,7 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceTolera } public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + return this.tolerations != null && !(this.tolerations.isEmpty()); } public TolerationsNested addNewToleration() { @@ -247,57 +606,141 @@ public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceTolerati } public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } public TolerationsNested editLastToleration() { int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2DeviceTolerationFluent implements VisitableBuilder{ public V1beta2DeviceRequestBuilder() { this(new V1beta2DeviceRequest()); 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 a2818677d2..7576c53b21 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceRequestFluent> extends BaseFluent{ +public class V1beta2DeviceRequestFluent> extends BaseFluent{ public V1beta2DeviceRequestFluent() { } @@ -28,12 +31,12 @@ public V1beta2DeviceRequestFluent(V1beta2DeviceRequest instance) { private String name; protected void copyInstance(V1beta2DeviceRequest instance) { - instance = (instance != null ? instance : new V1beta2DeviceRequest()); + instance = instance != null ? instance : new V1beta2DeviceRequest(); if (instance != null) { - this.withExactly(instance.getExactly()); - this.withFirstAvailable(instance.getFirstAvailable()); - this.withName(instance.getName()); - } + this.withExactly(instance.getExactly()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); + } } public V1beta2ExactDeviceRequest buildExactly() { @@ -65,19 +68,21 @@ public ExactlyNested withNewExactlyLike(V1beta2ExactDeviceRequest item) { } public ExactlyNested editExactly() { - return withNewExactlyLike(java.util.Optional.ofNullable(buildExactly()).orElse(null)); + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(null)); } public ExactlyNested editOrNewExactly() { - return withNewExactlyLike(java.util.Optional.ofNullable(buildExactly()).orElse(new V1beta2ExactDeviceRequestBuilder().build())); + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(new V1beta2ExactDeviceRequestBuilder().build())); } public ExactlyNested editOrNewExactlyLike(V1beta2ExactDeviceRequest item) { - return withNewExactlyLike(java.util.Optional.ofNullable(buildExactly()).orElse(item)); + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(item)); } public A addToFirstAvailable(int index,V1beta2DeviceSubRequest item) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); if (index < 0 || index >= firstAvailable.size()) { _visitables.get("firstAvailable").add(builder); @@ -86,11 +91,13 @@ public A addToFirstAvailable(int index,V1beta2DeviceSubRequest item) { _visitables.get("firstAvailable").add(builder); firstAvailable.add(index, builder); } - return (A)this; + return (A) this; } public A setToFirstAvailable(int index,V1beta2DeviceSubRequest item) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); if (index < 0 || index >= firstAvailable.size()) { _visitables.get("firstAvailable").add(builder); @@ -99,41 +106,71 @@ public A setToFirstAvailable(int index,V1beta2DeviceSubRequest item) { _visitables.get("firstAvailable").add(builder); firstAvailable.set(index, builder); } - return (A)this; + return (A) this; } - public A addToFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest... items) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} - for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + public A addToFirstAvailable(V1beta2DeviceSubRequest... items) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + for (V1beta2DeviceSubRequest item : items) { + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); + } + return (A) this; } public A addAllToFirstAvailable(Collection items) { - if (this.firstAvailable == null) {this.firstAvailable = new ArrayList();} - for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").add(builder);this.firstAvailable.add(builder);} return (A)this; + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + for (V1beta2DeviceSubRequest item : items) { + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); + } + return (A) this; } - public A removeFromFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest... items) { - if (this.firstAvailable == null) return (A)this; - for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + public A removeFromFirstAvailable(V1beta2DeviceSubRequest... items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1beta2DeviceSubRequest item : items) { + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; } public A removeAllFromFirstAvailable(Collection items) { - if (this.firstAvailable == null) return (A)this; - for (V1beta2DeviceSubRequest item : items) {V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item);_visitables.get("firstAvailable").remove(builder); this.firstAvailable.remove(builder);} return (A)this; + if (this.firstAvailable == null) { + return (A) this; + } + for (V1beta2DeviceSubRequest item : items) { + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; } public A removeMatchingFromFirstAvailable(Predicate predicate) { - if (firstAvailable == null) return (A) this; - final Iterator each = firstAvailable.iterator(); - final List visitables = _visitables.get("firstAvailable"); + if (firstAvailable == null) { + return (A) this; + } + Iterator each = firstAvailable.iterator(); + List visitables = _visitables.get("firstAvailable"); while (each.hasNext()) { - V1beta2DeviceSubRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildFirstAvailable() { @@ -185,7 +222,7 @@ public A withFirstAvailable(List firstAvailable) { return (A) this; } - public A withFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest... firstAvailable) { + public A withFirstAvailable(V1beta2DeviceSubRequest... firstAvailable) { if (this.firstAvailable != null) { this.firstAvailable.clear(); _visitables.remove("firstAvailable"); @@ -199,7 +236,7 @@ public A withFirstAvailable(io.kubernetes.client.openapi.models.V1beta2DeviceSub } public boolean hasFirstAvailable() { - return this.firstAvailable != null && !this.firstAvailable.isEmpty(); + return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); } public FirstAvailableNested addNewFirstAvailable() { @@ -215,28 +252,39 @@ public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta2DeviceS } public FirstAvailableNested editFirstAvailable(int index) { - if (firstAvailable.size() <= index) throw new RuntimeException("Can't edit firstAvailable. Index exceeds size."); - return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + if (index <= firstAvailable.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); } public FirstAvailableNested editFirstFirstAvailable() { - if (firstAvailable.size() == 0) throw new RuntimeException("Can't edit first firstAvailable. The list is empty."); - return setNewFirstAvailableLike(0, buildFirstAvailable(0)); + if (firstAvailable.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(0, this.buildFirstAvailable(0)); } public FirstAvailableNested editLastFirstAvailable() { int index = firstAvailable.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last firstAvailable. The list is empty."); - return setNewFirstAvailableLike(index, buildFirstAvailable(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); } public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2DeviceSubRequestFluent implements VisitableBuilder{ public V1beta2DeviceSelectorBuilder() { this(new V1beta2DeviceSelector()); 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 e2ecbd8290..528a217554 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceSelectorFluent> extends BaseFluent{ +public class V1beta2DeviceSelectorFluent> extends BaseFluent{ public V1beta2DeviceSelectorFluent() { } @@ -20,10 +23,10 @@ public V1beta2DeviceSelectorFluent(V1beta2DeviceSelector instance) { private V1beta2CELDeviceSelectorBuilder cel; protected void copyInstance(V1beta2DeviceSelector instance) { - instance = (instance != null ? instance : new V1beta2DeviceSelector()); + instance = instance != null ? instance : new V1beta2DeviceSelector(); if (instance != null) { - this.withCel(instance.getCel()); - } + this.withCel(instance.getCel()); + } } public V1beta2CELDeviceSelector buildCel() { @@ -55,34 +58,45 @@ public CelNested withNewCelLike(V1beta2CELDeviceSelector item) { } public CelNested editCel() { - return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(null)); + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); } public CelNested editOrNewCel() { - return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(new V1beta2CELDeviceSelectorBuilder().build())); + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(new V1beta2CELDeviceSelectorBuilder().build())); } public CelNested editOrNewCelLike(V1beta2CELDeviceSelector item) { - return withNewCelLike(java.util.Optional.ofNullable(buildCel()).orElse(item)); + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceSelectorFluent that = (V1beta2DeviceSelectorFluent) o; - if (!java.util.Objects.equals(cel, that.cel)) return false; + if (!(Objects.equals(cel, that.cel))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(cel, super.hashCode()); + return Objects.hash(cel); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (cel != null) { sb.append("cel:"); sb.append(cel); } + if (!(cel == null)) { + sb.append("cel:"); + sb.append(cel); + } sb.append("}"); return sb.toString(); } 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 8b4163952b..43bfffea5d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceSubRequestBuilder extends V1beta2DeviceSubRequestFluent implements VisitableBuilder{ public V1beta2DeviceSubRequestBuilder() { this(new V1beta2DeviceSubRequest()); @@ -24,6 +25,7 @@ public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequest instance) { public V1beta2DeviceSubRequest build() { V1beta2DeviceSubRequest buildable = new V1beta2DeviceSubRequest(); buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setName(fluent.getName()); 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 76e2e3d552..2701aecf91 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 @@ -1,23 +1,26 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceSubRequestFluent> extends BaseFluent{ +public class V1beta2DeviceSubRequestFluent> extends BaseFluent{ public V1beta2DeviceSubRequestFluent() { } @@ -25,6 +28,7 @@ public V1beta2DeviceSubRequestFluent(V1beta2DeviceSubRequest instance) { this.copyInstance(instance); } private String allocationMode; + private V1beta2CapacityRequirementsBuilder capacity; private Long count; private String deviceClassName; private String name; @@ -32,15 +36,16 @@ public V1beta2DeviceSubRequestFluent(V1beta2DeviceSubRequest instance) { private ArrayList tolerations; protected void copyInstance(V1beta2DeviceSubRequest instance) { - instance = (instance != null ? instance : new V1beta2DeviceSubRequest()); + instance = instance != null ? instance : new V1beta2DeviceSubRequest(); if (instance != null) { - this.withAllocationMode(instance.getAllocationMode()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withName(instance.getName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } } public String getAllocationMode() { @@ -56,6 +61,46 @@ public boolean hasAllocationMode() { return this.allocationMode != null; } + public V1beta2CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public A withCapacity(V1beta2CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { + return new CapacityNested(item); + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta2CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1beta2CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + public Long getCount() { return this.count; } @@ -96,7 +141,9 @@ public boolean hasName() { } public A addToSelectors(int index,V1beta2DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -105,11 +152,13 @@ public A addToSelectors(int index,V1beta2DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.add(index, builder); } - return (A)this; + return (A) this; } public A setToSelectors(int index,V1beta2DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -118,41 +167,71 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + public A addToSelectors(V1beta2DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + public A removeFromSelectors(V1beta2DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + if (this.selectors == null) { + return (A) this; + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); while (each.hasNext()) { - V1beta2DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSelectors() { @@ -204,7 +283,7 @@ public A withSelectors(List selectors) { return (A) this; } - public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... selectors) { + public A withSelectors(V1beta2DeviceSelector... selectors) { if (this.selectors != null) { this.selectors.clear(); _visitables.remove("selectors"); @@ -218,7 +297,7 @@ public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector } public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); + return this.selectors != null && !(this.selectors.isEmpty()); } public SelectorsNested addNewSelector() { @@ -234,32 +313,45 @@ public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector ite } public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); } public SelectorsNested editLastSelector() { int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -268,11 +360,13 @@ public A addToTolerations(int index,V1beta2DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.add(index, builder); } - return (A)this; + return (A) this; } public A setToTolerations(int index,V1beta2DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -281,41 +375,71 @@ public A setToTolerations(int index,V1beta2DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A addToTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { - if (this.tolerations == null) return (A)this; - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A removeFromTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - V1beta2DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTolerations() { @@ -367,7 +491,7 @@ public A withTolerations(List tolerations) { return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... tolerations) { + public A withTolerations(V1beta2DeviceToleration... tolerations) { if (this.tolerations != null) { this.tolerations.clear(); _visitables.remove("tolerations"); @@ -381,7 +505,7 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceTolera } public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + return this.tolerations != null && !(this.tolerations.isEmpty()); } public TolerationsNested addNewToleration() { @@ -397,59 +521,135 @@ public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceTolerati } public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } public TolerationsNested editLastToleration() { int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2CapacityRequirementsFluent> implements Nested{ + CapacityNested(V1beta2CapacityRequirements item) { + this.builder = new V1beta2CapacityRequirementsBuilder(this, item); + } + V1beta2CapacityRequirementsBuilder builder; + + public N and() { + return (N) V1beta2DeviceSubRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ SelectorsNested(int index,V1beta2DeviceSelector item) { @@ -460,7 +660,7 @@ public class SelectorsNested extends V1beta2DeviceSelectorFluent extends V1beta2DeviceTolerationFluent implements VisitableBuilder{ public V1beta2DeviceTaintBuilder() { this(new V1beta2DeviceTaint()); 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 5f90839c53..6f8fe84930 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceTaintFluent> extends BaseFluent{ +public class V1beta2DeviceTaintFluent> extends BaseFluent{ public V1beta2DeviceTaintFluent() { } @@ -23,13 +25,13 @@ public V1beta2DeviceTaintFluent(V1beta2DeviceTaint instance) { private String value; protected void copyInstance(V1beta2DeviceTaint instance) { - instance = (instance != null ? instance : new V1beta2DeviceTaint()); + instance = instance != null ? instance : new V1beta2DeviceTaint(); if (instance != null) { - this.withEffect(instance.getEffect()); - this.withKey(instance.getKey()); - this.withTimeAdded(instance.getTimeAdded()); - this.withValue(instance.getValue()); - } + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } } public String getEffect() { @@ -85,28 +87,57 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceTaintFluent that = (V1beta2DeviceTaintFluent) o; - if (!java.util.Objects.equals(effect, that.effect)) return false; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(timeAdded, that.timeAdded)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); + return Objects.hash(effect, key, timeAdded, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (timeAdded != null) { sb.append("timeAdded:"); sb.append(timeAdded + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 931506af45..952891152c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2DeviceTolerationBuilder extends V1beta2DeviceTolerationFluent implements VisitableBuilder{ public V1beta2DeviceTolerationBuilder() { this(new V1beta2DeviceToleration()); 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 6017066919..e60695a5c9 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2DeviceTolerationFluent> extends BaseFluent{ +public class V1beta2DeviceTolerationFluent> extends BaseFluent{ public V1beta2DeviceTolerationFluent() { } @@ -24,14 +26,14 @@ public V1beta2DeviceTolerationFluent(V1beta2DeviceToleration instance) { private String value; protected void copyInstance(V1beta2DeviceToleration instance) { - instance = (instance != null ? instance : new V1beta2DeviceToleration()); + instance = instance != null ? instance : new V1beta2DeviceToleration(); if (instance != null) { - this.withEffect(instance.getEffect()); - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withTolerationSeconds(instance.getTolerationSeconds()); - this.withValue(instance.getValue()); - } + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } } public String getEffect() { @@ -100,30 +102,65 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2DeviceTolerationFluent that = (V1beta2DeviceTolerationFluent) o; - if (!java.util.Objects.equals(effect, that.effect)) return false; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(tolerationSeconds, that.tolerationSeconds)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(tolerationSeconds, that.tolerationSeconds))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + return Objects.hash(effect, key, operator, tolerationSeconds, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (effect != null) { sb.append("effect:"); sb.append(effect + ","); } - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (tolerationSeconds != null) { sb.append("tolerationSeconds:"); sb.append(tolerationSeconds + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(tolerationSeconds == null)) { + sb.append("tolerationSeconds:"); + sb.append(tolerationSeconds); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 1066bec0aa..e01c5a13d0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ExactDeviceRequestBuilder extends V1beta2ExactDeviceRequestFluent implements VisitableBuilder{ public V1beta2ExactDeviceRequestBuilder() { this(new V1beta2ExactDeviceRequest()); @@ -25,6 +26,7 @@ public V1beta2ExactDeviceRequest build() { V1beta2ExactDeviceRequest buildable = new V1beta2ExactDeviceRequest(); buildable.setAdminAccess(fluent.getAdminAccess()); buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); buildable.setCount(fluent.getCount()); buildable.setDeviceClassName(fluent.getDeviceClassName()); buildable.setSelectors(fluent.buildSelectors()); 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 0fb093ce8a..baa0f83b06 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -18,7 +21,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ExactDeviceRequestFluent> extends BaseFluent{ +public class V1beta2ExactDeviceRequestFluent> extends BaseFluent{ public V1beta2ExactDeviceRequestFluent() { } @@ -27,21 +30,23 @@ public V1beta2ExactDeviceRequestFluent(V1beta2ExactDeviceRequest instance) { } private Boolean adminAccess; private String allocationMode; + private V1beta2CapacityRequirementsBuilder capacity; private Long count; private String deviceClassName; private ArrayList selectors; private ArrayList tolerations; protected void copyInstance(V1beta2ExactDeviceRequest instance) { - instance = (instance != null ? instance : new V1beta2ExactDeviceRequest()); + instance = instance != null ? instance : new V1beta2ExactDeviceRequest(); if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withAllocationMode(instance.getAllocationMode()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } } public Boolean getAdminAccess() { @@ -70,6 +75,46 @@ public boolean hasAllocationMode() { return this.allocationMode != null; } + public V1beta2CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public A withCapacity(V1beta2CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { + return new CapacityNested(item); + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta2CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1beta2CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + public Long getCount() { return this.count; } @@ -97,7 +142,9 @@ public boolean hasDeviceClassName() { } public A addToSelectors(int index,V1beta2DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -106,11 +153,13 @@ public A addToSelectors(int index,V1beta2DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.add(index, builder); } - return (A)this; + return (A) this; } public A setToSelectors(int index,V1beta2DeviceSelector item) { - if (this.selectors == null) {this.selectors = new ArrayList();} + if (this.selectors == null) { + this.selectors = new ArrayList(); + } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); @@ -119,41 +168,71 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { _visitables.get("selectors").add(builder); selectors.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + public A addToSelectors(V1beta2DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } public A addAllToSelectors(Collection items) { - if (this.selectors == null) {this.selectors = new ArrayList();} - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").add(builder);this.selectors.add(builder);} return (A)this; + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; } - public A removeFromSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... items) { - if (this.selectors == null) return (A)this; - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + public A removeFromSelectors(V1beta2DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) return (A)this; - for (V1beta2DeviceSelector item : items) {V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item);_visitables.get("selectors").remove(builder); this.selectors.remove(builder);} return (A)this; + if (this.selectors == null) { + return (A) this; + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; } public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) return (A) this; - final Iterator each = selectors.iterator(); - final List visitables = _visitables.get("selectors"); + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); while (each.hasNext()) { - V1beta2DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSelectors() { @@ -205,7 +284,7 @@ public A withSelectors(List selectors) { return (A) this; } - public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector... selectors) { + public A withSelectors(V1beta2DeviceSelector... selectors) { if (this.selectors != null) { this.selectors.clear(); _visitables.remove("selectors"); @@ -219,7 +298,7 @@ public A withSelectors(io.kubernetes.client.openapi.models.V1beta2DeviceSelector } public boolean hasSelectors() { - return this.selectors != null && !this.selectors.isEmpty(); + return this.selectors != null && !(this.selectors.isEmpty()); } public SelectorsNested addNewSelector() { @@ -235,32 +314,45 @@ public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector ite } public SelectorsNested editSelector(int index) { - if (selectors.size() <= index) throw new RuntimeException("Can't edit selectors. Index exceeds size."); - return setNewSelectorLike(index, buildSelector(index)); + if (index <= selectors.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) throw new RuntimeException("Can't edit first selectors. The list is empty."); - return setNewSelectorLike(0, buildSelector(0)); + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); } public SelectorsNested editLastSelector() { int index = selectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last selectors. The list is empty."); - return setNewSelectorLike(index, buildSelector(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -269,11 +361,13 @@ public A addToTolerations(int index,V1beta2DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.add(index, builder); } - return (A)this; + return (A) this; } public A setToTolerations(int index,V1beta2DeviceToleration item) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); if (index < 0 || index >= tolerations.size()) { _visitables.get("tolerations").add(builder); @@ -282,41 +376,71 @@ public A setToTolerations(int index,V1beta2DeviceToleration item) { _visitables.get("tolerations").add(builder); tolerations.set(index, builder); } - return (A)this; + return (A) this; } - public A addToTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A addToTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... items) { - if (this.tolerations == null) return (A)this; - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A removeFromTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1beta2DeviceToleration item : items) {V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) return (A) this; - final Iterator each = tolerations.iterator(); - final List visitables = _visitables.get("tolerations"); + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - V1beta2DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildTolerations() { @@ -368,7 +492,7 @@ public A withTolerations(List tolerations) { return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceToleration... tolerations) { + public A withTolerations(V1beta2DeviceToleration... tolerations) { if (this.tolerations != null) { this.tolerations.clear(); _visitables.remove("tolerations"); @@ -382,7 +506,7 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1beta2DeviceTolera } public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + return this.tolerations != null && !(this.tolerations.isEmpty()); } public TolerationsNested addNewToleration() { @@ -398,63 +522,139 @@ public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceTolerati } public TolerationsNested editToleration(int index) { - if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); + if (index <= tolerations.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } public TolerationsNested editLastToleration() { int index = tolerations.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tolerations. The list is empty."); - return setNewTolerationLike(index, buildToleration(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editMatchingToleration(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2CapacityRequirementsFluent> implements Nested{ + CapacityNested(V1beta2CapacityRequirements item) { + this.builder = new V1beta2CapacityRequirementsBuilder(this, item); + } + V1beta2CapacityRequirementsBuilder builder; + + public N and() { + return (N) V1beta2ExactDeviceRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ SelectorsNested(int index,V1beta2DeviceSelector item) { @@ -465,7 +665,7 @@ public class SelectorsNested extends V1beta2DeviceSelectorFluent extends V1beta2DeviceTolerationFluent implements VisitableBuilder{ public V1beta2NetworkDeviceDataBuilder() { this(new V1beta2NetworkDeviceData()); 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 bda7d4cf69..b410aec9eb 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -13,7 +15,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2NetworkDeviceDataFluent> extends BaseFluent{ +public class V1beta2NetworkDeviceDataFluent> extends BaseFluent{ public V1beta2NetworkDeviceDataFluent() { } @@ -25,12 +27,12 @@ public V1beta2NetworkDeviceDataFluent(V1beta2NetworkDeviceData instance) { private List ips; protected void copyInstance(V1beta2NetworkDeviceData instance) { - instance = (instance != null ? instance : new V1beta2NetworkDeviceData()); + instance = instance != null ? instance : new V1beta2NetworkDeviceData(); if (instance != null) { - this.withHardwareAddress(instance.getHardwareAddress()); - this.withInterfaceName(instance.getInterfaceName()); - this.withIps(instance.getIps()); - } + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); + } } public String getHardwareAddress() { @@ -60,34 +62,59 @@ public boolean hasInterfaceName() { } public A addToIps(int index,String item) { - if (this.ips == null) {this.ips = new ArrayList();} + if (this.ips == null) { + this.ips = new ArrayList(); + } this.ips.add(index, item); - return (A)this; + return (A) this; } public A setToIps(int index,String item) { - if (this.ips == null) {this.ips = new ArrayList();} - this.ips.set(index, item); return (A)this; + if (this.ips == null) { + this.ips = new ArrayList(); + } + this.ips.set(index, item); + return (A) this; } - public A addToIps(java.lang.String... items) { - if (this.ips == null) {this.ips = new ArrayList();} - for (String item : items) {this.ips.add(item);} return (A)this; + public A addToIps(String... items) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + for (String item : items) { + this.ips.add(item); + } + return (A) this; } public A addAllToIps(Collection items) { - if (this.ips == null) {this.ips = new ArrayList();} - for (String item : items) {this.ips.add(item);} return (A)this; + if (this.ips == null) { + this.ips = new ArrayList(); + } + for (String item : items) { + this.ips.add(item); + } + return (A) this; } - public A removeFromIps(java.lang.String... items) { - if (this.ips == null) return (A)this; - for (String item : items) { this.ips.remove(item);} return (A)this; + public A removeFromIps(String... items) { + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(item); + } + return (A) this; } public A removeAllFromIps(Collection items) { - if (this.ips == null) return (A)this; - for (String item : items) { this.ips.remove(item);} return (A)this; + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(item); + } + return (A) this; } public List getIps() { @@ -136,7 +163,7 @@ public A withIps(List ips) { return (A) this; } - public A withIps(java.lang.String... ips) { + public A withIps(String... ips) { if (this.ips != null) { this.ips.clear(); _visitables.remove("ips"); @@ -150,30 +177,53 @@ public A withIps(java.lang.String... ips) { } public boolean hasIps() { - return this.ips != null && !this.ips.isEmpty(); + return this.ips != null && !(this.ips.isEmpty()); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2NetworkDeviceDataFluent that = (V1beta2NetworkDeviceDataFluent) o; - if (!java.util.Objects.equals(hardwareAddress, that.hardwareAddress)) return false; - if (!java.util.Objects.equals(interfaceName, that.interfaceName)) return false; - if (!java.util.Objects.equals(ips, that.ips)) return false; + if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { + return false; + } + if (!(Objects.equals(interfaceName, that.interfaceName))) { + return false; + } + if (!(Objects.equals(ips, that.ips))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(hardwareAddress, interfaceName, ips, super.hashCode()); + return Objects.hash(hardwareAddress, interfaceName, ips); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hardwareAddress != null) { sb.append("hardwareAddress:"); sb.append(hardwareAddress + ","); } - if (interfaceName != null) { sb.append("interfaceName:"); sb.append(interfaceName + ","); } - if (ips != null && !ips.isEmpty()) { sb.append("ips:"); sb.append(ips); } + if (!(hardwareAddress == null)) { + sb.append("hardwareAddress:"); + sb.append(hardwareAddress); + sb.append(","); + } + if (!(interfaceName == null)) { + sb.append("interfaceName:"); + sb.append(interfaceName); + sb.append(","); + } + if (!(ips == null) && !(ips.isEmpty())) { + sb.append("ips:"); + sb.append(ips); + } sb.append("}"); return sb.toString(); } 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 8a26b9defb..2004122767 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2OpaqueDeviceConfigurationBuilder extends V1beta2OpaqueDeviceConfigurationFluent implements VisitableBuilder{ public V1beta2OpaqueDeviceConfigurationBuilder() { this(new V1beta2OpaqueDeviceConfiguration()); 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 0fe3497c39..a4423d89f2 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2OpaqueDeviceConfigurationFluent> extends BaseFluent{ +public class V1beta2OpaqueDeviceConfigurationFluent> extends BaseFluent{ public V1beta2OpaqueDeviceConfigurationFluent() { } @@ -20,11 +22,11 @@ public V1beta2OpaqueDeviceConfigurationFluent(V1beta2OpaqueDeviceConfiguration i private Object parameters; protected void copyInstance(V1beta2OpaqueDeviceConfiguration instance) { - instance = (instance != null ? instance : new V1beta2OpaqueDeviceConfiguration()); + instance = instance != null ? instance : new V1beta2OpaqueDeviceConfiguration(); if (instance != null) { - this.withDriver(instance.getDriver()); - this.withParameters(instance.getParameters()); - } + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } } public String getDriver() { @@ -54,24 +56,41 @@ public boolean hasParameters() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2OpaqueDeviceConfigurationFluent that = (V1beta2OpaqueDeviceConfigurationFluent) o; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(driver, parameters, super.hashCode()); + return Objects.hash(driver, parameters); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(parameters == null)) { + sb.append("parameters:"); + sb.append(parameters); + } sb.append("}"); return sb.toString(); } 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 817d6655ed..60d7a15df8 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceClaimBuilder extends V1beta2ResourceClaimFluent implements VisitableBuilder{ public V1beta2ResourceClaimBuilder() { this(new V1beta2ResourceClaim()); 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 8b104bf1f3..707666c863 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceClaimConsumerReferenceBuilder extends V1beta2ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ public V1beta2ResourceClaimConsumerReferenceBuilder() { this(new V1beta2ResourceClaimConsumerReference()); 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 f3bdf6b209..616b9ca28d 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceClaimConsumerReferenceFluent> extends BaseFluent{ +public class V1beta2ResourceClaimConsumerReferenceFluent> extends BaseFluent{ public V1beta2ResourceClaimConsumerReferenceFluent() { } @@ -22,13 +24,13 @@ public V1beta2ResourceClaimConsumerReferenceFluent(V1beta2ResourceClaimConsumerR private String uid; protected void copyInstance(V1beta2ResourceClaimConsumerReference instance) { - instance = (instance != null ? instance : new V1beta2ResourceClaimConsumerReference()); + instance = instance != null ? instance : new V1beta2ResourceClaimConsumerReference(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withName(instance.getName()); - this.withResource(instance.getResource()); - this.withUid(instance.getUid()); - } + this.withApiGroup(instance.getApiGroup()); + this.withName(instance.getName()); + this.withResource(instance.getResource()); + this.withUid(instance.getUid()); + } } public String getApiGroup() { @@ -84,28 +86,57 @@ public boolean hasUid() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourceClaimConsumerReferenceFluent that = (V1beta2ResourceClaimConsumerReferenceFluent) o; - if (!java.util.Objects.equals(apiGroup, that.apiGroup)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiGroup, name, resource, uid, super.hashCode()); + return Objects.hash(apiGroup, name, resource, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiGroup != null) { sb.append("apiGroup:"); sb.append(apiGroup + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } sb.append("}"); return sb.toString(); } 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 79baaba65c..664a0f88c5 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceClaimFluent> extends BaseFluent{ +public class V1beta2ResourceClaimFluent> extends BaseFluent{ public V1beta2ResourceClaimFluent() { } @@ -24,14 +27,14 @@ public V1beta2ResourceClaimFluent(V1beta2ResourceClaim instance) { private V1beta2ResourceClaimStatusBuilder status; protected void copyInstance(V1beta2ResourceClaim instance) { - instance = (instance != null ? instance : new V1beta2ResourceClaim()); + instance = instance != null ? instance : new V1beta2ResourceClaim(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta2ResourceClaimSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V1beta2ResourceClaimStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V1beta2ResourceClaimStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V1beta2ResourceClaimStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta2ResourceClaimStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V1beta2ResourceClaimStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourceClaimFluent that = (V1beta2ResourceClaimFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 a6ff3b1c62..8c6a0707c5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceClaimListBuilder extends V1beta2ResourceClaimListFluent implements VisitableBuilder{ public V1beta2ResourceClaimListBuilder() { this(new V1beta2ResourceClaimList()); 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 97c683fc6e..a85bf7a760 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceClaimListFluent> extends BaseFluent{ +public class V1beta2ResourceClaimListFluent> extends BaseFluent{ public V1beta2ResourceClaimListFluent() { } @@ -29,13 +32,13 @@ public V1beta2ResourceClaimListFluent(V1beta2ResourceClaimList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1beta2ResourceClaimList instance) { - instance = (instance != null ? instance : new V1beta2ResourceClaimList()); + instance = instance != null ? instance : new V1beta2ResourceClaimList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta2ResourceClaim item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta2ResourceClaim item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta2ResourceClaim item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta2ResourceClaim item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta2ResourceClaim... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2ResourceClaim item : items) { + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2ResourceClaim item : items) { + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... items) { - if (this.items == null) return (A)this; - for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta2ResourceClaim... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceClaim item : items) { + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta2ResourceClaim item : items) {V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceClaim item : items) { + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta2ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... items) { + public A withItems(V1beta2ResourceClaim... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaim... i } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta2ResourceClaim item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourceClaimListFluent that = (V1beta2ResourceClaimListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta2ResourceClaimFluent> i int index; public N and() { - return (N) V1beta2ResourceClaimListFluent.this.setToItems(index,builder.build()); + return (N) V1beta2ResourceClaimListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 552bd5d926..8356a732a0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceClaimSpecBuilder extends V1beta2ResourceClaimSpecFluent implements VisitableBuilder{ public V1beta2ResourceClaimSpecBuilder() { this(new V1beta2ResourceClaimSpec()); 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 15e52c6e86..3d24b887ae 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceClaimSpecFluent> extends BaseFluent{ +public class V1beta2ResourceClaimSpecFluent> extends BaseFluent{ public V1beta2ResourceClaimSpecFluent() { } @@ -20,10 +23,10 @@ public V1beta2ResourceClaimSpecFluent(V1beta2ResourceClaimSpec instance) { private V1beta2DeviceClaimBuilder devices; protected void copyInstance(V1beta2ResourceClaimSpec instance) { - instance = (instance != null ? instance : new V1beta2ResourceClaimSpec()); + instance = instance != null ? instance : new V1beta2ResourceClaimSpec(); if (instance != null) { - this.withDevices(instance.getDevices()); - } + this.withDevices(instance.getDevices()); + } } public V1beta2DeviceClaim buildDevices() { @@ -55,34 +58,45 @@ public DevicesNested withNewDevicesLike(V1beta2DeviceClaim item) { } public DevicesNested editDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(null)); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } public DevicesNested editOrNewDevices() { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(new V1beta2DeviceClaimBuilder().build())); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta2DeviceClaimBuilder().build())); } public DevicesNested editOrNewDevicesLike(V1beta2DeviceClaim item) { - return withNewDevicesLike(java.util.Optional.ofNullable(buildDevices()).orElse(item)); + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourceClaimSpecFluent that = (V1beta2ResourceClaimSpecFluent) o; - if (!java.util.Objects.equals(devices, that.devices)) return false; + if (!(Objects.equals(devices, that.devices))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(devices, super.hashCode()); + return Objects.hash(devices); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devices != null) { sb.append("devices:"); sb.append(devices); } + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + } sb.append("}"); return sb.toString(); } 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 ff3c44b096..9a62f079e4 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceClaimStatusBuilder extends V1beta2ResourceClaimStatusFluent implements VisitableBuilder{ public V1beta2ResourceClaimStatusBuilder() { this(new V1beta2ResourceClaimStatus()); 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 38cfc687af..44f8d2d6d3 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 @@ -1,14 +1,17 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -16,7 +19,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceClaimStatusFluent> extends BaseFluent{ +public class V1beta2ResourceClaimStatusFluent> extends BaseFluent{ public V1beta2ResourceClaimStatusFluent() { } @@ -28,12 +31,12 @@ public V1beta2ResourceClaimStatusFluent(V1beta2ResourceClaimStatus instance) { private ArrayList reservedFor; protected void copyInstance(V1beta2ResourceClaimStatus instance) { - instance = (instance != null ? instance : new V1beta2ResourceClaimStatus()); + instance = instance != null ? instance : new V1beta2ResourceClaimStatus(); if (instance != null) { - this.withAllocation(instance.getAllocation()); - this.withDevices(instance.getDevices()); - this.withReservedFor(instance.getReservedFor()); - } + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } } public V1beta2AllocationResult buildAllocation() { @@ -65,19 +68,21 @@ public AllocationNested withNewAllocationLike(V1beta2AllocationResult item) { } public AllocationNested editAllocation() { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(null)); + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); } public AllocationNested editOrNewAllocation() { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(new V1beta2AllocationResultBuilder().build())); + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1beta2AllocationResultBuilder().build())); } public AllocationNested editOrNewAllocationLike(V1beta2AllocationResult item) { - return withNewAllocationLike(java.util.Optional.ofNullable(buildAllocation()).orElse(item)); + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); } public A addToDevices(int index,V1beta2AllocatedDeviceStatus item) { - if (this.devices == null) {this.devices = new ArrayList();} + if (this.devices == null) { + this.devices = new ArrayList(); + } V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); @@ -86,11 +91,13 @@ public A addToDevices(int index,V1beta2AllocatedDeviceStatus item) { _visitables.get("devices").add(builder); devices.add(index, builder); } - return (A)this; + return (A) this; } public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { - if (this.devices == null) {this.devices = new ArrayList();} + if (this.devices == null) { + this.devices = new ArrayList(); + } V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); @@ -99,41 +106,71 @@ public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { _visitables.get("devices").add(builder); devices.set(index, builder); } - return (A)this; + return (A) this; } - public A addToDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus... items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + public A addToDevices(V1beta2AllocatedDeviceStatus... items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1beta2AllocatedDeviceStatus item : items) { + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; } public A addAllToDevices(Collection items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1beta2AllocatedDeviceStatus item : items) { + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; } - public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus... items) { - if (this.devices == null) return (A)this; - for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + public A removeFromDevices(V1beta2AllocatedDeviceStatus... items) { + if (this.devices == null) { + return (A) this; + } + for (V1beta2AllocatedDeviceStatus item : items) { + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; } public A removeAllFromDevices(Collection items) { - if (this.devices == null) return (A)this; - for (V1beta2AllocatedDeviceStatus item : items) {V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + if (this.devices == null) { + return (A) this; + } + for (V1beta2AllocatedDeviceStatus item : items) { + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; } public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) return (A) this; - final Iterator each = devices.iterator(); - final List visitables = _visitables.get("devices"); + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); while (each.hasNext()) { - V1beta2AllocatedDeviceStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildDevices() { @@ -185,7 +222,7 @@ public A withDevices(List devices) { return (A) this; } - public A withDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus... devices) { + public A withDevices(V1beta2AllocatedDeviceStatus... devices) { if (this.devices != null) { this.devices.clear(); _visitables.remove("devices"); @@ -199,7 +236,7 @@ public A withDevices(io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceS } public boolean hasDevices() { - return this.devices != null && !this.devices.isEmpty(); + return this.devices != null && !(this.devices.isEmpty()); } public DevicesNested addNewDevice() { @@ -215,32 +252,45 @@ public DevicesNested setNewDeviceLike(int index,V1beta2AllocatedDeviceStatus } public DevicesNested editDevice(int index) { - if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); - return setNewDeviceLike(index, buildDevice(index)); + if (index <= devices.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); } public DevicesNested editFirstDevice() { - if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); - return setNewDeviceLike(0, buildDevice(0)); + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); } public DevicesNested editLastDevice() { int index = devices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); - return setNewDeviceLike(index, buildDevice(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); } public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; - for (int i=0;i();} + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); @@ -249,11 +299,13 @@ public A addToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) _visitables.get("reservedFor").add(builder); reservedFor.add(index, builder); } - return (A)this; + return (A) this; } public A setToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); if (index < 0 || index >= reservedFor.size()) { _visitables.get("reservedFor").add(builder); @@ -262,41 +314,71 @@ public A setToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) _visitables.get("reservedFor").add(builder); reservedFor.set(index, builder); } - return (A)this; + return (A) this; } - public A addToReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference... items) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + public A addToReservedFor(V1beta2ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1beta2ResourceClaimConsumerReference item : items) { + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; } public A addAllToReservedFor(Collection items) { - if (this.reservedFor == null) {this.reservedFor = new ArrayList();} - for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").add(builder);this.reservedFor.add(builder);} return (A)this; + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1beta2ResourceClaimConsumerReference item : items) { + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; } - public A removeFromReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference... items) { - if (this.reservedFor == null) return (A)this; - for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + public A removeFromReservedFor(V1beta2ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + return (A) this; + } + for (V1beta2ResourceClaimConsumerReference item : items) { + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); + } + return (A) this; } public A removeAllFromReservedFor(Collection items) { - if (this.reservedFor == null) return (A)this; - for (V1beta2ResourceClaimConsumerReference item : items) {V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item);_visitables.get("reservedFor").remove(builder); this.reservedFor.remove(builder);} return (A)this; + if (this.reservedFor == null) { + return (A) this; + } + for (V1beta2ResourceClaimConsumerReference item : items) { + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); + } + return (A) this; } public A removeMatchingFromReservedFor(Predicate predicate) { - if (reservedFor == null) return (A) this; - final Iterator each = reservedFor.iterator(); - final List visitables = _visitables.get("reservedFor"); + if (reservedFor == null) { + return (A) this; + } + Iterator each = reservedFor.iterator(); + List visitables = _visitables.get("reservedFor"); while (each.hasNext()) { - V1beta2ResourceClaimConsumerReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2ResourceClaimConsumerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildReservedFor() { @@ -348,7 +430,7 @@ public A withReservedFor(List reservedFor return (A) this; } - public A withReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference... reservedFor) { + public A withReservedFor(V1beta2ResourceClaimConsumerReference... reservedFor) { if (this.reservedFor != null) { this.reservedFor.clear(); _visitables.remove("reservedFor"); @@ -362,7 +444,7 @@ public A withReservedFor(io.kubernetes.client.openapi.models.V1beta2ResourceClai } public boolean hasReservedFor() { - return this.reservedFor != null && !this.reservedFor.isEmpty(); + return this.reservedFor != null && !(this.reservedFor.isEmpty()); } public ReservedForNested addNewReservedFor() { @@ -378,51 +460,85 @@ public ReservedForNested setNewReservedForLike(int index,V1beta2ResourceClaim } public ReservedForNested editReservedFor(int index) { - if (reservedFor.size() <= index) throw new RuntimeException("Can't edit reservedFor. Index exceeds size."); - return setNewReservedForLike(index, buildReservedFor(index)); + if (index <= reservedFor.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); } public ReservedForNested editFirstReservedFor() { - if (reservedFor.size() == 0) throw new RuntimeException("Can't edit first reservedFor. The list is empty."); - return setNewReservedForLike(0, buildReservedFor(0)); + if (reservedFor.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(0, this.buildReservedFor(0)); } public ReservedForNested editLastReservedFor() { int index = reservedFor.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last reservedFor. The list is empty."); - return setNewReservedForLike(index, buildReservedFor(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); } public ReservedForNested editMatchingReservedFor(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2AllocatedDeviceStatusFluent extends V1beta2ResourceClaimConsumerReferenceF int index; public N and() { - return (N) V1beta2ResourceClaimStatusFluent.this.setToReservedFor(index,builder.build()); + return (N) V1beta2ResourceClaimStatusFluent.this.setToReservedFor(index, builder.build()); } public N endReservedFor() { 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 a67ae418d8..ec0c527906 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceClaimTemplateBuilder extends V1beta2ResourceClaimTemplateFluent implements VisitableBuilder{ public V1beta2ResourceClaimTemplateBuilder() { this(new V1beta2ResourceClaimTemplate()); 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 4638927612..277f5e14bb 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceClaimTemplateFluent> extends BaseFluent{ +public class V1beta2ResourceClaimTemplateFluent> extends BaseFluent{ public V1beta2ResourceClaimTemplateFluent() { } @@ -23,13 +26,13 @@ public V1beta2ResourceClaimTemplateFluent(V1beta2ResourceClaimTemplate instance) private V1beta2ResourceClaimTemplateSpecBuilder spec; protected void copyInstance(V1beta2ResourceClaimTemplate instance) { - instance = (instance != null ? instance : new V1beta2ResourceClaimTemplate()); + instance = instance != null ? instance : new V1beta2ResourceClaimTemplate(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta2ResourceClaimTemplateSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceClaimTemplateSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceClaimTemplateSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourceClaimTemplateFluent that = (V1beta2ResourceClaimTemplateFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 9a52747f7b..f13ebf6217 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceClaimTemplateListBuilder extends V1beta2ResourceClaimTemplateListFluent implements VisitableBuilder{ public V1beta2ResourceClaimTemplateListBuilder() { this(new V1beta2ResourceClaimTemplateList()); 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 e1070eb0af..9c740d981b 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceClaimTemplateListFluent> extends BaseFluent{ +public class V1beta2ResourceClaimTemplateListFluent> extends BaseFluent{ public V1beta2ResourceClaimTemplateListFluent() { } @@ -29,13 +32,13 @@ public V1beta2ResourceClaimTemplateListFluent(V1beta2ResourceClaimTemplateList i private V1ListMetaBuilder metadata; protected void copyInstance(V1beta2ResourceClaimTemplateList instance) { - instance = (instance != null ? instance : new V1beta2ResourceClaimTemplateList()); + instance = instance != null ? instance : new V1beta2ResourceClaimTemplateList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta2ResourceClaimTemplate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta2ResourceClaimTemplate item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta2ResourceClaimTemplate item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta2ResourceClaimTemplate item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta2ResourceClaimTemplate... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2ResourceClaimTemplate item : items) { + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2ResourceClaimTemplate item : items) { + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate... items) { - if (this.items == null) return (A)this; - for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta2ResourceClaimTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceClaimTemplate item : items) { + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta2ResourceClaimTemplate item : items) {V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceClaimTemplate item : items) { + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta2ResourceClaimTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate... items) { + public A withItems(V1beta2ResourceClaimTemplate... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceClaimTempl } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta2ResourceClaimTemplate item } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourceClaimTemplateListFluent that = (V1beta2ResourceClaimTemplateListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta2ResourceClaimTemplateFluent implements VisitableBuilder{ public V1beta2ResourceClaimTemplateSpecBuilder() { this(new V1beta2ResourceClaimTemplateSpec()); 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 b72da1d860..e25d3e8fc9 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceClaimTemplateSpecFluent> extends BaseFluent{ +public class V1beta2ResourceClaimTemplateSpecFluent> extends BaseFluent{ public V1beta2ResourceClaimTemplateSpecFluent() { } @@ -21,11 +24,11 @@ public V1beta2ResourceClaimTemplateSpecFluent(V1beta2ResourceClaimTemplateSpec i private V1beta2ResourceClaimSpecBuilder spec; protected void copyInstance(V1beta2ResourceClaimTemplateSpec instance) { - instance = (instance != null ? instance : new V1beta2ResourceClaimTemplateSpec()); + instance = instance != null ? instance : new V1beta2ResourceClaimTemplateSpec(); if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public V1ObjectMeta buildMetadata() { @@ -57,15 +60,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta2ResourceClaimSpec buildSpec() { @@ -97,36 +100,53 @@ public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourceClaimTemplateSpecFluent that = (V1beta2ResourceClaimTemplateSpecFluent) o; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); + return Objects.hash(metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } sb.append("}"); return sb.toString(); } 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 d61fb867d4..7285a539e0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourcePoolBuilder extends V1beta2ResourcePoolFluent implements VisitableBuilder{ public V1beta2ResourcePoolBuilder() { this(new V1beta2ResourcePool()); 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 513bf560ba..bef5cbc062 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourcePoolFluent> extends BaseFluent{ +public class V1beta2ResourcePoolFluent> extends BaseFluent{ public V1beta2ResourcePoolFluent() { } @@ -22,12 +24,12 @@ public V1beta2ResourcePoolFluent(V1beta2ResourcePool instance) { private Long resourceSliceCount; protected void copyInstance(V1beta2ResourcePool instance) { - instance = (instance != null ? instance : new V1beta2ResourcePool()); + instance = instance != null ? instance : new V1beta2ResourcePool(); if (instance != null) { - this.withGeneration(instance.getGeneration()); - this.withName(instance.getName()); - this.withResourceSliceCount(instance.getResourceSliceCount()); - } + this.withGeneration(instance.getGeneration()); + this.withName(instance.getName()); + this.withResourceSliceCount(instance.getResourceSliceCount()); + } } public Long getGeneration() { @@ -70,26 +72,49 @@ public boolean hasResourceSliceCount() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourcePoolFluent that = (V1beta2ResourcePoolFluent) o; - if (!java.util.Objects.equals(generation, that.generation)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resourceSliceCount, that.resourceSliceCount)) return false; + if (!(Objects.equals(generation, that.generation))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceSliceCount, that.resourceSliceCount))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(generation, name, resourceSliceCount, super.hashCode()); + return Objects.hash(generation, name, resourceSliceCount); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (generation != null) { sb.append("generation:"); sb.append(generation + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (resourceSliceCount != null) { sb.append("resourceSliceCount:"); sb.append(resourceSliceCount); } + if (!(generation == null)) { + sb.append("generation:"); + sb.append(generation); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceSliceCount == null)) { + sb.append("resourceSliceCount:"); + sb.append(resourceSliceCount); + } sb.append("}"); return sb.toString(); } 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 cf3240717f..152b759a68 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceSliceBuilder extends V1beta2ResourceSliceFluent implements VisitableBuilder{ public V1beta2ResourceSliceBuilder() { this(new V1beta2ResourceSlice()); 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 079bac4042..e07cdb141b 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceSliceFluent> extends BaseFluent{ +public class V1beta2ResourceSliceFluent> extends BaseFluent{ public V1beta2ResourceSliceFluent() { } @@ -23,13 +26,13 @@ public V1beta2ResourceSliceFluent(V1beta2ResourceSlice instance) { private V1beta2ResourceSliceSpecBuilder spec; protected void copyInstance(V1beta2ResourceSlice instance) { - instance = (instance != null ? instance : new V1beta2ResourceSlice()); + instance = instance != null ? instance : new V1beta2ResourceSlice(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } public String getApiVersion() { @@ -87,15 +90,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V1beta2ResourceSliceSpec buildSpec() { @@ -127,40 +130,69 @@ public SpecNested withNewSpecLike(V1beta2ResourceSliceSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V1beta2ResourceSliceSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceSliceSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V1beta2ResourceSliceSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourceSliceFluent that = (V1beta2ResourceSliceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; + 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; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + return Objects.hash(apiVersion, kind, metadata, spec); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec); } + if (!(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("}"); return sb.toString(); } 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 3f94b7081e..edd569e41e 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceSliceListBuilder extends V1beta2ResourceSliceListFluent implements VisitableBuilder{ public V1beta2ResourceSliceListBuilder() { this(new V1beta2ResourceSliceList()); 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 b1970e9192..bd914e9ae3 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceSliceListFluent> extends BaseFluent{ +public class V1beta2ResourceSliceListFluent> extends BaseFluent{ public V1beta2ResourceSliceListFluent() { } @@ -29,13 +32,13 @@ public V1beta2ResourceSliceListFluent(V1beta2ResourceSliceList instance) { private V1ListMetaBuilder metadata; protected void copyInstance(V1beta2ResourceSliceList instance) { - instance = (instance != null ? instance : new V1beta2ResourceSliceList()); + instance = instance != null ? instance : new V1beta2ResourceSliceList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V1beta2ResourceSlice item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V1beta2ResourceSlice item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V1beta2ResourceSlice item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V1beta2ResourceSlice item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V1beta2ResourceSlice... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2ResourceSlice item : items) { + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2ResourceSlice item : items) { + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... items) { - if (this.items == null) return (A)this; - for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V1beta2ResourceSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceSlice item : items) { + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1beta2ResourceSlice item : items) {V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceSlice item : items) { + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V1beta2ResourceSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... items) { + public A withItems(V1beta2ResourceSlice... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta2ResourceSlice... i } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V1beta2ResourceSlice item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1beta2ResourceSliceListFluent that = (V1beta2ResourceSliceListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V1beta2ResourceSliceFluent> i int index; public N and() { - return (N) V1beta2ResourceSliceListFluent.this.setToItems(index,builder.build()); + return (N) V1beta2ResourceSliceListFluent.this.setToItems(index, builder.build()); } public N endItem() { 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 d3dcfeeb08..013aa208b3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta2ResourceSliceSpecBuilder extends V1beta2ResourceSliceSpecFluent implements VisitableBuilder{ public V1beta2ResourceSliceSpecBuilder() { this(new V1beta2ResourceSliceSpec()); 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 9e4c75b9f6..422e7b200b 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 @@ -1,15 +1,18 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Boolean; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1beta2ResourceSliceSpecFluent> extends BaseFluent{ +public class V1beta2ResourceSliceSpecFluent> extends BaseFluent{ public V1beta2ResourceSliceSpecFluent() { } @@ -34,17 +37,17 @@ public V1beta2ResourceSliceSpecFluent(V1beta2ResourceSliceSpec instance) { private ArrayList sharedCounters; protected void copyInstance(V1beta2ResourceSliceSpec instance) { - instance = (instance != null ? instance : new V1beta2ResourceSliceSpec()); + instance = instance != null ? instance : new V1beta2ResourceSliceSpec(); if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withDevices(instance.getDevices()); - this.withDriver(instance.getDriver()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); - this.withPool(instance.getPool()); - this.withSharedCounters(instance.getSharedCounters()); - } + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } } public Boolean getAllNodes() { @@ -61,7 +64,9 @@ public boolean hasAllNodes() { } public A addToDevices(int index,V1beta2Device item) { - if (this.devices == null) {this.devices = new ArrayList();} + if (this.devices == null) { + this.devices = new ArrayList(); + } V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); @@ -70,11 +75,13 @@ public A addToDevices(int index,V1beta2Device item) { _visitables.get("devices").add(builder); devices.add(index, builder); } - return (A)this; + return (A) this; } public A setToDevices(int index,V1beta2Device item) { - if (this.devices == null) {this.devices = new ArrayList();} + if (this.devices == null) { + this.devices = new ArrayList(); + } V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); @@ -83,41 +90,71 @@ public A setToDevices(int index,V1beta2Device item) { _visitables.get("devices").add(builder); devices.set(index, builder); } - return (A)this; + return (A) this; } - public A addToDevices(io.kubernetes.client.openapi.models.V1beta2Device... items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + public A addToDevices(V1beta2Device... items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1beta2Device item : items) { + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; } public A addAllToDevices(Collection items) { - if (this.devices == null) {this.devices = new ArrayList();} - for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").add(builder);this.devices.add(builder);} return (A)this; + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1beta2Device item : items) { + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; } - public A removeFromDevices(io.kubernetes.client.openapi.models.V1beta2Device... items) { - if (this.devices == null) return (A)this; - for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + public A removeFromDevices(V1beta2Device... items) { + if (this.devices == null) { + return (A) this; + } + for (V1beta2Device item : items) { + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; } public A removeAllFromDevices(Collection items) { - if (this.devices == null) return (A)this; - for (V1beta2Device item : items) {V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item);_visitables.get("devices").remove(builder); this.devices.remove(builder);} return (A)this; + if (this.devices == null) { + return (A) this; + } + for (V1beta2Device item : items) { + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; } public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) return (A) this; - final Iterator each = devices.iterator(); - final List visitables = _visitables.get("devices"); + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); while (each.hasNext()) { - V1beta2DeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildDevices() { @@ -169,7 +206,7 @@ public A withDevices(List devices) { return (A) this; } - public A withDevices(io.kubernetes.client.openapi.models.V1beta2Device... devices) { + public A withDevices(V1beta2Device... devices) { if (this.devices != null) { this.devices.clear(); _visitables.remove("devices"); @@ -183,7 +220,7 @@ public A withDevices(io.kubernetes.client.openapi.models.V1beta2Device... device } public boolean hasDevices() { - return this.devices != null && !this.devices.isEmpty(); + return this.devices != null && !(this.devices.isEmpty()); } public DevicesNested addNewDevice() { @@ -199,28 +236,39 @@ public DevicesNested setNewDeviceLike(int index,V1beta2Device item) { } public DevicesNested editDevice(int index) { - if (devices.size() <= index) throw new RuntimeException("Can't edit devices. Index exceeds size."); - return setNewDeviceLike(index, buildDevice(index)); + if (index <= devices.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); } public DevicesNested editFirstDevice() { - if (devices.size() == 0) throw new RuntimeException("Can't edit first devices. The list is empty."); - return setNewDeviceLike(0, buildDevice(0)); + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); } public DevicesNested editLastDevice() { int index = devices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last devices. The list is empty."); - return setNewDeviceLike(index, buildDevice(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); } public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; - for (int i=0;i withNewNodeSelectorLike(V1NodeSelector item) { } public NodeSelectorNested editNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(null)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } public NodeSelectorNested editOrNewNodeSelector() { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return withNewNodeSelectorLike(java.util.Optional.ofNullable(buildNodeSelector()).orElse(item)); + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } public Boolean getPerDeviceNodeSelection() { @@ -331,19 +379,21 @@ public PoolNested withNewPoolLike(V1beta2ResourcePool item) { } public PoolNested editPool() { - return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(null)); + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); } public PoolNested editOrNewPool() { - return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(new V1beta2ResourcePoolBuilder().build())); + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1beta2ResourcePoolBuilder().build())); } public PoolNested editOrNewPoolLike(V1beta2ResourcePool item) { - return withNewPoolLike(java.util.Optional.ofNullable(buildPool()).orElse(item)); + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); } public A addToSharedCounters(int index,V1beta2CounterSet item) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); if (index < 0 || index >= sharedCounters.size()) { _visitables.get("sharedCounters").add(builder); @@ -352,11 +402,13 @@ public A addToSharedCounters(int index,V1beta2CounterSet item) { _visitables.get("sharedCounters").add(builder); sharedCounters.add(index, builder); } - return (A)this; + return (A) this; } public A setToSharedCounters(int index,V1beta2CounterSet item) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); if (index < 0 || index >= sharedCounters.size()) { _visitables.get("sharedCounters").add(builder); @@ -365,41 +417,71 @@ public A setToSharedCounters(int index,V1beta2CounterSet item) { _visitables.get("sharedCounters").add(builder); sharedCounters.set(index, builder); } - return (A)this; + return (A) this; } - public A addToSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSet... items) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} - for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + public A addToSharedCounters(V1beta2CounterSet... items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + for (V1beta2CounterSet item : items) { + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); + } + return (A) this; } public A addAllToSharedCounters(Collection items) { - if (this.sharedCounters == null) {this.sharedCounters = new ArrayList();} - for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").add(builder);this.sharedCounters.add(builder);} return (A)this; + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + for (V1beta2CounterSet item : items) { + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); + } + return (A) this; } - public A removeFromSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSet... items) { - if (this.sharedCounters == null) return (A)this; - for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + public A removeFromSharedCounters(V1beta2CounterSet... items) { + if (this.sharedCounters == null) { + return (A) this; + } + for (V1beta2CounterSet item : items) { + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); + } + return (A) this; } public A removeAllFromSharedCounters(Collection items) { - if (this.sharedCounters == null) return (A)this; - for (V1beta2CounterSet item : items) {V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item);_visitables.get("sharedCounters").remove(builder); this.sharedCounters.remove(builder);} return (A)this; + if (this.sharedCounters == null) { + return (A) this; + } + for (V1beta2CounterSet item : items) { + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); + } + return (A) this; } public A removeMatchingFromSharedCounters(Predicate predicate) { - if (sharedCounters == null) return (A) this; - final Iterator each = sharedCounters.iterator(); - final List visitables = _visitables.get("sharedCounters"); + if (sharedCounters == null) { + return (A) this; + } + Iterator each = sharedCounters.iterator(); + List visitables = _visitables.get("sharedCounters"); while (each.hasNext()) { - V1beta2CounterSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildSharedCounters() { @@ -451,7 +533,7 @@ public A withSharedCounters(List sharedCounters) { return (A) this; } - public A withSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSet... sharedCounters) { + public A withSharedCounters(V1beta2CounterSet... sharedCounters) { if (this.sharedCounters != null) { this.sharedCounters.clear(); _visitables.remove("sharedCounters"); @@ -465,7 +547,7 @@ public A withSharedCounters(io.kubernetes.client.openapi.models.V1beta2CounterSe } public boolean hasSharedCounters() { - return this.sharedCounters != null && !this.sharedCounters.isEmpty(); + return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); } public SharedCountersNested addNewSharedCounter() { @@ -481,61 +563,125 @@ public SharedCountersNested setNewSharedCounterLike(int index,V1beta2CounterS } public SharedCountersNested editSharedCounter(int index) { - if (sharedCounters.size() <= index) throw new RuntimeException("Can't edit sharedCounters. Index exceeds size."); - return setNewSharedCounterLike(index, buildSharedCounter(index)); + if (index <= sharedCounters.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } public SharedCountersNested editFirstSharedCounter() { - if (sharedCounters.size() == 0) throw new RuntimeException("Can't edit first sharedCounters. The list is empty."); - return setNewSharedCounterLike(0, buildSharedCounter(0)); + if (sharedCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); } public SharedCountersNested editLastSharedCounter() { int index = sharedCounters.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last sharedCounters. The list is empty."); - return setNewSharedCounterLike(index, buildSharedCounter(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { int index = -1; - for (int i=0;i extends V1beta2DeviceFluent> impl int index; public N and() { - return (N) V1beta2ResourceSliceSpecFluent.this.setToDevices(index,builder.build()); + return (N) V1beta2ResourceSliceSpecFluent.this.setToDevices(index, builder.build()); } public N endDevice() { @@ -606,7 +752,7 @@ public class SharedCountersNested extends V1beta2CounterSetFluent implements VisitableBuilder{ public V2ContainerResourceMetricSourceBuilder() { this(new V2ContainerResourceMetricSource()); 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 d4c17a6d93..285430d153 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ContainerResourceMetricSourceFluent> extends BaseFluent{ +public class V2ContainerResourceMetricSourceFluent> extends BaseFluent{ public V2ContainerResourceMetricSourceFluent() { } @@ -22,12 +25,12 @@ public V2ContainerResourceMetricSourceFluent(V2ContainerResourceMetricSource ins private V2MetricTargetBuilder target; protected void copyInstance(V2ContainerResourceMetricSource instance) { - instance = (instance != null ? instance : new V2ContainerResourceMetricSource()); + instance = instance != null ? instance : new V2ContainerResourceMetricSource(); if (instance != null) { - this.withContainer(instance.getContainer()); - this.withName(instance.getName()); - this.withTarget(instance.getTarget()); - } + this.withContainer(instance.getContainer()); + this.withName(instance.getName()); + this.withTarget(instance.getTarget()); + } } public String getContainer() { @@ -85,38 +88,61 @@ public TargetNested withNewTargetLike(V2MetricTarget item) { } public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); } public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(item)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2ContainerResourceMetricSourceFluent that = (V2ContainerResourceMetricSourceFluent) o; - if (!java.util.Objects.equals(container, that.container)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; + if (!(Objects.equals(container, that.container))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(container, name, target, super.hashCode()); + return Objects.hash(container, name, target); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (container != null) { sb.append("container:"); sb.append(container + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } + if (!(container == null)) { + sb.append("container:"); + sb.append(container); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } sb.append("}"); return sb.toString(); } 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 16ed430ca0..9f6b039ad0 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ContainerResourceMetricStatusBuilder extends V2ContainerResourceMetricStatusFluent implements VisitableBuilder{ public V2ContainerResourceMetricStatusBuilder() { this(new V2ContainerResourceMetricStatus()); 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 1b1c0d53cc..2147075439 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ContainerResourceMetricStatusFluent> extends BaseFluent{ +public class V2ContainerResourceMetricStatusFluent> extends BaseFluent{ public V2ContainerResourceMetricStatusFluent() { } @@ -22,12 +25,12 @@ public V2ContainerResourceMetricStatusFluent(V2ContainerResourceMetricStatus ins private String name; protected void copyInstance(V2ContainerResourceMetricStatus instance) { - instance = (instance != null ? instance : new V2ContainerResourceMetricStatus()); + instance = instance != null ? instance : new V2ContainerResourceMetricStatus(); if (instance != null) { - this.withContainer(instance.getContainer()); - this.withCurrent(instance.getCurrent()); - this.withName(instance.getName()); - } + this.withContainer(instance.getContainer()); + this.withCurrent(instance.getCurrent()); + this.withName(instance.getName()); + } } public String getContainer() { @@ -72,15 +75,15 @@ public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { } public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(item)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } public String getName() { @@ -97,26 +100,49 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2ContainerResourceMetricStatusFluent that = (V2ContainerResourceMetricStatusFluent) o; - if (!java.util.Objects.equals(container, that.container)) return false; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(container, that.container))) { + return false; + } + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(container, current, name, super.hashCode()); + return Objects.hash(container, current, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (container != null) { sb.append("container:"); sb.append(container + ","); } - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(container == null)) { + sb.append("container:"); + sb.append(container); + sb.append(","); + } + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 367528df11..2e32717536 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2CrossVersionObjectReferenceBuilder extends V2CrossVersionObjectReferenceFluent implements VisitableBuilder{ public V2CrossVersionObjectReferenceBuilder() { this(new V2CrossVersionObjectReference()); 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 9e990e59c4..506b55a02a 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V2CrossVersionObjectReferenceFluent> extends BaseFluent{ +public class V2CrossVersionObjectReferenceFluent> extends BaseFluent{ public V2CrossVersionObjectReferenceFluent() { } @@ -21,12 +23,12 @@ public V2CrossVersionObjectReferenceFluent(V2CrossVersionObjectReference instanc private String name; protected void copyInstance(V2CrossVersionObjectReference instance) { - instance = (instance != null ? instance : new V2CrossVersionObjectReference()); + instance = instance != null ? instance : new V2CrossVersionObjectReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } } public String getApiVersion() { @@ -69,26 +71,49 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2CrossVersionObjectReferenceFluent that = (V2CrossVersionObjectReferenceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); + return Objects.hash(apiVersion, kind, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + 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(); } 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 bdf132a7f8..a43c0d11b5 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ExternalMetricSourceBuilder extends V2ExternalMetricSourceFluent implements VisitableBuilder{ public V2ExternalMetricSourceBuilder() { this(new V2ExternalMetricSource()); 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 e8661e0ec8..84664559ee 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ExternalMetricSourceFluent> extends BaseFluent{ +public class V2ExternalMetricSourceFluent> extends BaseFluent{ public V2ExternalMetricSourceFluent() { } @@ -21,11 +24,11 @@ public V2ExternalMetricSourceFluent(V2ExternalMetricSource instance) { private V2MetricTargetBuilder target; protected void copyInstance(V2ExternalMetricSource instance) { - instance = (instance != null ? instance : new V2ExternalMetricSource()); + instance = instance != null ? instance : new V2ExternalMetricSource(); if (instance != null) { - this.withMetric(instance.getMetric()); - this.withTarget(instance.getTarget()); - } + this.withMetric(instance.getMetric()); + this.withTarget(instance.getTarget()); + } } public V2MetricIdentifier buildMetric() { @@ -57,15 +60,15 @@ public MetricNested withNewMetricLike(V2MetricIdentifier item) { } public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } public V2MetricTarget buildTarget() { @@ -97,36 +100,53 @@ public TargetNested withNewTargetLike(V2MetricTarget item) { } public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); } public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(item)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2ExternalMetricSourceFluent that = (V2ExternalMetricSourceFluent) o; - if (!java.util.Objects.equals(metric, that.metric)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; + if (!(Objects.equals(metric, that.metric))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(metric, target, super.hashCode()); + return Objects.hash(metric, target); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } sb.append("}"); return sb.toString(); } 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 23ff22cb14..cee00edefc 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ExternalMetricStatusBuilder extends V2ExternalMetricStatusFluent implements VisitableBuilder{ public V2ExternalMetricStatusBuilder() { this(new V2ExternalMetricStatus()); 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 9e7c5c1f44..2913944481 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ExternalMetricStatusFluent> extends BaseFluent{ +public class V2ExternalMetricStatusFluent> extends BaseFluent{ public V2ExternalMetricStatusFluent() { } @@ -21,11 +24,11 @@ public V2ExternalMetricStatusFluent(V2ExternalMetricStatus instance) { private V2MetricIdentifierBuilder metric; protected void copyInstance(V2ExternalMetricStatus instance) { - instance = (instance != null ? instance : new V2ExternalMetricStatus()); + instance = instance != null ? instance : new V2ExternalMetricStatus(); if (instance != null) { - this.withCurrent(instance.getCurrent()); - this.withMetric(instance.getMetric()); - } + this.withCurrent(instance.getCurrent()); + this.withMetric(instance.getMetric()); + } } public V2MetricValueStatus buildCurrent() { @@ -57,15 +60,15 @@ public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { } public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(item)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } public V2MetricIdentifier buildMetric() { @@ -97,36 +100,53 @@ public MetricNested withNewMetricLike(V2MetricIdentifier item) { } public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2ExternalMetricStatusFluent that = (V2ExternalMetricStatusFluent) o; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(metric, that.metric)) return false; + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(metric, that.metric))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(current, metric, super.hashCode()); + return Objects.hash(current, metric); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (metric != null) { sb.append("metric:"); sb.append(metric); } + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + } sb.append("}"); return sb.toString(); } 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 b2fad800eb..559811a70d 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HPAScalingPolicyBuilder extends V2HPAScalingPolicyFluent implements VisitableBuilder{ public V2HPAScalingPolicyBuilder() { this(new V2HPAScalingPolicy()); 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 ba8b87646e..ec222cd878 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V2HPAScalingPolicyFluent> extends BaseFluent{ +public class V2HPAScalingPolicyFluent> extends BaseFluent{ public V2HPAScalingPolicyFluent() { } @@ -22,12 +24,12 @@ public V2HPAScalingPolicyFluent(V2HPAScalingPolicy instance) { private Integer value; protected void copyInstance(V2HPAScalingPolicy instance) { - instance = (instance != null ? instance : new V2HPAScalingPolicy()); + instance = instance != null ? instance : new V2HPAScalingPolicy(); if (instance != null) { - this.withPeriodSeconds(instance.getPeriodSeconds()); - this.withType(instance.getType()); - this.withValue(instance.getValue()); - } + this.withPeriodSeconds(instance.getPeriodSeconds()); + this.withType(instance.getType()); + this.withValue(instance.getValue()); + } } public Integer getPeriodSeconds() { @@ -70,26 +72,49 @@ public boolean hasValue() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2HPAScalingPolicyFluent that = (V2HPAScalingPolicyFluent) o; - if (!java.util.Objects.equals(periodSeconds, that.periodSeconds)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(periodSeconds, that.periodSeconds))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(periodSeconds, type, value, super.hashCode()); + return Objects.hash(periodSeconds, type, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (periodSeconds != null) { sb.append("periodSeconds:"); sb.append(periodSeconds + ","); } - if (type != null) { sb.append("type:"); sb.append(type + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(periodSeconds == null)) { + sb.append("periodSeconds:"); + sb.append(periodSeconds); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 f29e05f432..5809b3609c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HPAScalingRulesBuilder extends V2HPAScalingRulesFluent implements VisitableBuilder{ public V2HPAScalingRulesBuilder() { this(new V2HPAScalingRules()); 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 26bdb09ee3..8756f7a17f 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 @@ -1,6 +1,6 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; @@ -8,8 +8,10 @@ import java.lang.String; import java.util.function.Predicate; import java.lang.Integer; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.Objects; import java.util.Collection; import java.lang.Object; import java.util.List; @@ -18,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V2HPAScalingRulesFluent> extends BaseFluent{ +public class V2HPAScalingRulesFluent> extends BaseFluent{ public V2HPAScalingRulesFluent() { } @@ -31,17 +33,19 @@ public V2HPAScalingRulesFluent(V2HPAScalingRules instance) { private Quantity tolerance; protected void copyInstance(V2HPAScalingRules instance) { - instance = (instance != null ? instance : new V2HPAScalingRules()); + instance = instance != null ? instance : new V2HPAScalingRules(); if (instance != null) { - this.withPolicies(instance.getPolicies()); - this.withSelectPolicy(instance.getSelectPolicy()); - this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); - this.withTolerance(instance.getTolerance()); - } + this.withPolicies(instance.getPolicies()); + this.withSelectPolicy(instance.getSelectPolicy()); + this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); + this.withTolerance(instance.getTolerance()); + } } public A addToPolicies(int index,V2HPAScalingPolicy item) { - if (this.policies == null) {this.policies = new ArrayList();} + if (this.policies == null) { + this.policies = new ArrayList(); + } V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); if (index < 0 || index >= policies.size()) { _visitables.get("policies").add(builder); @@ -50,11 +54,13 @@ public A addToPolicies(int index,V2HPAScalingPolicy item) { _visitables.get("policies").add(builder); policies.add(index, builder); } - return (A)this; + return (A) this; } public A setToPolicies(int index,V2HPAScalingPolicy item) { - if (this.policies == null) {this.policies = new ArrayList();} + if (this.policies == null) { + this.policies = new ArrayList(); + } V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); if (index < 0 || index >= policies.size()) { _visitables.get("policies").add(builder); @@ -63,41 +69,71 @@ public A setToPolicies(int index,V2HPAScalingPolicy item) { _visitables.get("policies").add(builder); policies.set(index, builder); } - return (A)this; + return (A) this; } - public A addToPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items) { - if (this.policies == null) {this.policies = new ArrayList();} - for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(builder);this.policies.add(builder);} return (A)this; + public A addToPolicies(V2HPAScalingPolicy... items) { + if (this.policies == null) { + this.policies = new ArrayList(); + } + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").add(builder); + this.policies.add(builder); + } + return (A) this; } public A addAllToPolicies(Collection items) { - if (this.policies == null) {this.policies = new ArrayList();} - for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(builder);this.policies.add(builder);} return (A)this; + if (this.policies == null) { + this.policies = new ArrayList(); + } + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").add(builder); + this.policies.add(builder); + } + return (A) this; } - public A removeFromPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items) { - if (this.policies == null) return (A)this; - for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").remove(builder); this.policies.remove(builder);} return (A)this; + public A removeFromPolicies(V2HPAScalingPolicy... items) { + if (this.policies == null) { + return (A) this; + } + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").remove(builder); + this.policies.remove(builder); + } + return (A) this; } public A removeAllFromPolicies(Collection items) { - if (this.policies == null) return (A)this; - for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").remove(builder); this.policies.remove(builder);} return (A)this; + if (this.policies == null) { + return (A) this; + } + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").remove(builder); + this.policies.remove(builder); + } + return (A) this; } public A removeMatchingFromPolicies(Predicate predicate) { - if (policies == null) return (A) this; - final Iterator each = policies.iterator(); - final List visitables = _visitables.get("policies"); + if (policies == null) { + return (A) this; + } + Iterator each = policies.iterator(); + List visitables = _visitables.get("policies"); while (each.hasNext()) { - V2HPAScalingPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V2HPAScalingPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildPolicies() { @@ -149,7 +185,7 @@ public A withPolicies(List policies) { return (A) this; } - public A withPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... policies) { + public A withPolicies(V2HPAScalingPolicy... policies) { if (this.policies != null) { this.policies.clear(); _visitables.remove("policies"); @@ -163,7 +199,7 @@ public A withPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... } public boolean hasPolicies() { - return this.policies != null && !this.policies.isEmpty(); + return this.policies != null && !(this.policies.isEmpty()); } public PoliciesNested addNewPolicy() { @@ -179,28 +215,39 @@ public PoliciesNested setNewPolicyLike(int index,V2HPAScalingPolicy item) { } public PoliciesNested editPolicy(int index) { - if (policies.size() <= index) throw new RuntimeException("Can't edit policies. Index exceeds size."); - return setNewPolicyLike(index, buildPolicy(index)); + if (index <= policies.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "policies")); + } + return this.setNewPolicyLike(index, this.buildPolicy(index)); } public PoliciesNested editFirstPolicy() { - if (policies.size() == 0) throw new RuntimeException("Can't edit first policies. The list is empty."); - return setNewPolicyLike(0, buildPolicy(0)); + if (policies.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "policies")); + } + return this.setNewPolicyLike(0, this.buildPolicy(0)); } public PoliciesNested editLastPolicy() { int index = policies.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last policies. The list is empty."); - return setNewPolicyLike(index, buildPolicy(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "policies")); + } + return this.setNewPolicyLike(index, this.buildPolicy(index)); } public PoliciesNested editMatchingPolicy(Predicate predicate) { int index = -1; - for (int i=0;i extends V2HPAScalingPolicyFluent implements VisitableBuilder{ public V2HorizontalPodAutoscalerBehaviorBuilder() { this(new V2HorizontalPodAutoscalerBehavior()); 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 fd484e2f98..9ddeff932f 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerBehaviorFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerBehaviorFluent> extends BaseFluent{ public V2HorizontalPodAutoscalerBehaviorFluent() { } @@ -21,11 +24,11 @@ public V2HorizontalPodAutoscalerBehaviorFluent(V2HorizontalPodAutoscalerBehavior private V2HPAScalingRulesBuilder scaleUp; protected void copyInstance(V2HorizontalPodAutoscalerBehavior instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerBehavior()); + instance = instance != null ? instance : new V2HorizontalPodAutoscalerBehavior(); if (instance != null) { - this.withScaleDown(instance.getScaleDown()); - this.withScaleUp(instance.getScaleUp()); - } + this.withScaleDown(instance.getScaleDown()); + this.withScaleUp(instance.getScaleUp()); + } } public V2HPAScalingRules buildScaleDown() { @@ -57,15 +60,15 @@ public ScaleDownNested withNewScaleDownLike(V2HPAScalingRules item) { } public ScaleDownNested editScaleDown() { - return withNewScaleDownLike(java.util.Optional.ofNullable(buildScaleDown()).orElse(null)); + return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(null)); } public ScaleDownNested editOrNewScaleDown() { - return withNewScaleDownLike(java.util.Optional.ofNullable(buildScaleDown()).orElse(new V2HPAScalingRulesBuilder().build())); + return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(new V2HPAScalingRulesBuilder().build())); } public ScaleDownNested editOrNewScaleDownLike(V2HPAScalingRules item) { - return withNewScaleDownLike(java.util.Optional.ofNullable(buildScaleDown()).orElse(item)); + return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(item)); } public V2HPAScalingRules buildScaleUp() { @@ -97,36 +100,53 @@ public ScaleUpNested withNewScaleUpLike(V2HPAScalingRules item) { } public ScaleUpNested editScaleUp() { - return withNewScaleUpLike(java.util.Optional.ofNullable(buildScaleUp()).orElse(null)); + return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(null)); } public ScaleUpNested editOrNewScaleUp() { - return withNewScaleUpLike(java.util.Optional.ofNullable(buildScaleUp()).orElse(new V2HPAScalingRulesBuilder().build())); + return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(new V2HPAScalingRulesBuilder().build())); } public ScaleUpNested editOrNewScaleUpLike(V2HPAScalingRules item) { - return withNewScaleUpLike(java.util.Optional.ofNullable(buildScaleUp()).orElse(item)); + return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2HorizontalPodAutoscalerBehaviorFluent that = (V2HorizontalPodAutoscalerBehaviorFluent) o; - if (!java.util.Objects.equals(scaleDown, that.scaleDown)) return false; - if (!java.util.Objects.equals(scaleUp, that.scaleUp)) return false; + if (!(Objects.equals(scaleDown, that.scaleDown))) { + return false; + } + if (!(Objects.equals(scaleUp, that.scaleUp))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(scaleDown, scaleUp, super.hashCode()); + return Objects.hash(scaleDown, scaleUp); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (scaleDown != null) { sb.append("scaleDown:"); sb.append(scaleDown + ","); } - if (scaleUp != null) { sb.append("scaleUp:"); sb.append(scaleUp); } + if (!(scaleDown == null)) { + sb.append("scaleDown:"); + sb.append(scaleDown); + sb.append(","); + } + if (!(scaleUp == null)) { + sb.append("scaleUp:"); + sb.append(scaleUp); + } sb.append("}"); return sb.toString(); } 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 9c5037028e..23db8675df 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerBuilder extends V2HorizontalPodAutoscalerFluent implements VisitableBuilder{ public V2HorizontalPodAutoscalerBuilder() { this(new V2HorizontalPodAutoscaler()); 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 cc2f2b61a5..aa73afe78b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerConditionBuilder extends V2HorizontalPodAutoscalerConditionFluent implements VisitableBuilder{ public V2HorizontalPodAutoscalerConditionBuilder() { this(new V2HorizontalPodAutoscalerCondition()); 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 f817f3593a..7751f7ade2 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.time.OffsetDateTime; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -10,7 +12,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerConditionFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerConditionFluent> extends BaseFluent{ public V2HorizontalPodAutoscalerConditionFluent() { } @@ -24,14 +26,14 @@ public V2HorizontalPodAutoscalerConditionFluent(V2HorizontalPodAutoscalerConditi private String type; protected void copyInstance(V2HorizontalPodAutoscalerCondition instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerCondition()); + instance = instance != null ? instance : new V2HorizontalPodAutoscalerCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } public OffsetDateTime getLastTransitionTime() { @@ -100,30 +102,65 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2HorizontalPodAutoscalerConditionFluent that = (V2HorizontalPodAutoscalerConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + 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(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + return Objects.hash(lastTransitionTime, message, reason, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + 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 (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 70b312c08a..01984a2c8e 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerFluent> extends BaseFluent{ public V2HorizontalPodAutoscalerFluent() { } @@ -24,14 +27,14 @@ public V2HorizontalPodAutoscalerFluent(V2HorizontalPodAutoscaler instance) { private V2HorizontalPodAutoscalerStatusBuilder status; protected void copyInstance(V2HorizontalPodAutoscaler instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscaler()); + instance = instance != null ? instance : new V2HorizontalPodAutoscaler(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public String getApiVersion() { @@ -89,15 +92,15 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public V2HorizontalPodAutoscalerSpec buildSpec() { @@ -129,15 +132,15 @@ public SpecNested withNewSpecLike(V2HorizontalPodAutoscalerSpec item) { } public SpecNested editSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(null)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public SpecNested editOrNewSpec() { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(new V2HorizontalPodAutoscalerSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V2HorizontalPodAutoscalerSpecBuilder().build())); } public SpecNested editOrNewSpecLike(V2HorizontalPodAutoscalerSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } public V2HorizontalPodAutoscalerStatus buildStatus() { @@ -169,42 +172,77 @@ public StatusNested withNewStatusLike(V2HorizontalPodAutoscalerStatus item) { } public StatusNested editStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(null)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } public StatusNested editOrNewStatus() { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(new V2HorizontalPodAutoscalerStatusBuilder().build())); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V2HorizontalPodAutoscalerStatusBuilder().build())); } public StatusNested editOrNewStatusLike(V2HorizontalPodAutoscalerStatus item) { - return withNewStatusLike(java.util.Optional.ofNullable(buildStatus()).orElse(item)); + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2HorizontalPodAutoscalerFluent that = (V2HorizontalPodAutoscalerFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(spec, that.spec)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.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 + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (spec != null) { sb.append("spec:"); sb.append(spec + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + 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(); } 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 27b3eb929e..1321dffc9a 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerListBuilder extends V2HorizontalPodAutoscalerListFluent implements VisitableBuilder{ public V2HorizontalPodAutoscalerListBuilder() { this(new V2HorizontalPodAutoscalerList()); 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 dc760e2f95..b1693ea483 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 @@ -1,22 +1,25 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; +import java.util.List; +import java.util.Optional; +import java.util.Objects; import java.util.Collection; import java.lang.Object; -import java.util.List; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerListFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerListFluent> extends BaseFluent{ public V2HorizontalPodAutoscalerListFluent() { } @@ -29,13 +32,13 @@ public V2HorizontalPodAutoscalerListFluent(V2HorizontalPodAutoscalerList instanc private V1ListMetaBuilder metadata; protected void copyInstance(V2HorizontalPodAutoscalerList instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerList()); + instance = instance != null ? instance : new V2HorizontalPodAutoscalerList(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } public String getApiVersion() { @@ -52,7 +55,9 @@ public boolean hasApiVersion() { } public A addToItems(int index,V2HorizontalPodAutoscaler item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -61,11 +66,13 @@ public A addToItems(int index,V2HorizontalPodAutoscaler item) { _visitables.get("items").add(builder); items.add(index, builder); } - return (A)this; + return (A) this; } public A setToItems(int index,V2HorizontalPodAutoscaler item) { - if (this.items == null) {this.items = new ArrayList();} + if (this.items == null) { + this.items = new ArrayList(); + } V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); @@ -74,41 +81,71 @@ public A setToItems(int index,V2HorizontalPodAutoscaler item) { _visitables.get("items").add(builder); items.set(index, builder); } - return (A)this; + return (A) this; } - public A addToItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public A addToItems(V2HorizontalPodAutoscaler... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + if (this.items == null) { + this.items = new ArrayList(); + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public A removeFromItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { - if (this.items == null) return (A)this; - for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A removeFromItems(V2HorizontalPodAutoscaler... items) { + if (this.items == null) { + return (A) this; + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + if (this.items == null) { + return (A) this; + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } public A removeMatchingFromItems(Predicate predicate) { - if (items == null) return (A) this; - final Iterator each = items.iterator(); - final List visitables = _visitables.get("items"); + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); while (each.hasNext()) { - V2HorizontalPodAutoscalerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V2HorizontalPodAutoscalerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildItems() { @@ -160,7 +197,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { + public A withItems(V2HorizontalPodAutoscaler... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -174,7 +211,7 @@ public A withItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler } public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + return this.items != null && !(this.items.isEmpty()); } public ItemsNested addNewItem() { @@ -190,28 +227,39 @@ public ItemsNested setNewItemLike(int index,V2HorizontalPodAutoscaler item) { } public ItemsNested editItem(int index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); + if (index <= items.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } public ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); + 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 editLastItem() { int index = items.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last items. The list is empty."); - return setNewItemLike(index, buildItem(index)); + 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 withNewMetadataLike(V1ListMeta item) { } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ListMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ListMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2HorizontalPodAutoscalerListFluent that = (V2HorizontalPodAutoscalerListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; + 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 int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); + return Objects.hash(apiVersion, items, kind, metadata); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } + 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(); } @@ -302,7 +379,7 @@ public class ItemsNested extends V2HorizontalPodAutoscalerFluent implements VisitableBuilder{ public V2HorizontalPodAutoscalerSpecBuilder() { this(new V2HorizontalPodAutoscalerSpec()); 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 510a44a4df..1342b94880 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 @@ -1,15 +1,18 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; +import java.util.Optional; import java.lang.Integer; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -17,7 +20,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ public V2HorizontalPodAutoscalerSpecFluent() { } @@ -31,14 +34,14 @@ public V2HorizontalPodAutoscalerSpecFluent(V2HorizontalPodAutoscalerSpec instanc private V2CrossVersionObjectReferenceBuilder scaleTargetRef; protected void copyInstance(V2HorizontalPodAutoscalerSpec instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerSpec()); + instance = instance != null ? instance : new V2HorizontalPodAutoscalerSpec(); if (instance != null) { - this.withBehavior(instance.getBehavior()); - this.withMaxReplicas(instance.getMaxReplicas()); - this.withMetrics(instance.getMetrics()); - this.withMinReplicas(instance.getMinReplicas()); - this.withScaleTargetRef(instance.getScaleTargetRef()); - } + this.withBehavior(instance.getBehavior()); + this.withMaxReplicas(instance.getMaxReplicas()); + this.withMetrics(instance.getMetrics()); + this.withMinReplicas(instance.getMinReplicas()); + this.withScaleTargetRef(instance.getScaleTargetRef()); + } } public V2HorizontalPodAutoscalerBehavior buildBehavior() { @@ -70,15 +73,15 @@ public BehaviorNested withNewBehaviorLike(V2HorizontalPodAutoscalerBehavior i } public BehaviorNested editBehavior() { - return withNewBehaviorLike(java.util.Optional.ofNullable(buildBehavior()).orElse(null)); + return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(null)); } public BehaviorNested editOrNewBehavior() { - return withNewBehaviorLike(java.util.Optional.ofNullable(buildBehavior()).orElse(new V2HorizontalPodAutoscalerBehaviorBuilder().build())); + return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(new V2HorizontalPodAutoscalerBehaviorBuilder().build())); } public BehaviorNested editOrNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { - return withNewBehaviorLike(java.util.Optional.ofNullable(buildBehavior()).orElse(item)); + return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(item)); } public Integer getMaxReplicas() { @@ -95,7 +98,9 @@ public boolean hasMaxReplicas() { } public A addToMetrics(int index,V2MetricSpec item) { - if (this.metrics == null) {this.metrics = new ArrayList();} + if (this.metrics == null) { + this.metrics = new ArrayList(); + } V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); if (index < 0 || index >= metrics.size()) { _visitables.get("metrics").add(builder); @@ -104,11 +109,13 @@ public A addToMetrics(int index,V2MetricSpec item) { _visitables.get("metrics").add(builder); metrics.add(index, builder); } - return (A)this; + return (A) this; } public A setToMetrics(int index,V2MetricSpec item) { - if (this.metrics == null) {this.metrics = new ArrayList();} + if (this.metrics == null) { + this.metrics = new ArrayList(); + } V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); if (index < 0 || index >= metrics.size()) { _visitables.get("metrics").add(builder); @@ -117,41 +124,71 @@ public A setToMetrics(int index,V2MetricSpec item) { _visitables.get("metrics").add(builder); metrics.set(index, builder); } - return (A)this; + return (A) this; } - public A addToMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items) { - if (this.metrics == null) {this.metrics = new ArrayList();} - for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").add(builder);this.metrics.add(builder);} return (A)this; + public A addToMetrics(V2MetricSpec... items) { + if (this.metrics == null) { + this.metrics = new ArrayList(); + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").add(builder); + this.metrics.add(builder); + } + return (A) this; } public A addAllToMetrics(Collection items) { - if (this.metrics == null) {this.metrics = new ArrayList();} - for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").add(builder);this.metrics.add(builder);} return (A)this; + if (this.metrics == null) { + this.metrics = new ArrayList(); + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").add(builder); + this.metrics.add(builder); + } + return (A) this; } - public A removeFromMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items) { - if (this.metrics == null) return (A)this; - for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").remove(builder); this.metrics.remove(builder);} return (A)this; + public A removeFromMetrics(V2MetricSpec... items) { + if (this.metrics == null) { + return (A) this; + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").remove(builder); + this.metrics.remove(builder); + } + return (A) this; } public A removeAllFromMetrics(Collection items) { - if (this.metrics == null) return (A)this; - for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").remove(builder); this.metrics.remove(builder);} return (A)this; + if (this.metrics == null) { + return (A) this; + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").remove(builder); + this.metrics.remove(builder); + } + return (A) this; } public A removeMatchingFromMetrics(Predicate predicate) { - if (metrics == null) return (A) this; - final Iterator each = metrics.iterator(); - final List visitables = _visitables.get("metrics"); + if (metrics == null) { + return (A) this; + } + Iterator each = metrics.iterator(); + List visitables = _visitables.get("metrics"); while (each.hasNext()) { - V2MetricSpecBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V2MetricSpecBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildMetrics() { @@ -203,7 +240,7 @@ public A withMetrics(List metrics) { return (A) this; } - public A withMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... metrics) { + public A withMetrics(V2MetricSpec... metrics) { if (this.metrics != null) { this.metrics.clear(); _visitables.remove("metrics"); @@ -217,7 +254,7 @@ public A withMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... metrics } public boolean hasMetrics() { - return this.metrics != null && !this.metrics.isEmpty(); + return this.metrics != null && !(this.metrics.isEmpty()); } public MetricsNested addNewMetric() { @@ -233,28 +270,39 @@ public MetricsNested setNewMetricLike(int index,V2MetricSpec item) { } public MetricsNested editMetric(int index) { - if (metrics.size() <= index) throw new RuntimeException("Can't edit metrics. Index exceeds size."); - return setNewMetricLike(index, buildMetric(index)); + if (index <= metrics.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "metrics")); + } + return this.setNewMetricLike(index, this.buildMetric(index)); } public MetricsNested editFirstMetric() { - if (metrics.size() == 0) throw new RuntimeException("Can't edit first metrics. The list is empty."); - return setNewMetricLike(0, buildMetric(0)); + if (metrics.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "metrics")); + } + return this.setNewMetricLike(0, this.buildMetric(0)); } public MetricsNested editLastMetric() { int index = metrics.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last metrics. The list is empty."); - return setNewMetricLike(index, buildMetric(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "metrics")); + } + return this.setNewMetricLike(index, this.buildMetric(index)); } public MetricsNested editMatchingMetric(Predicate predicate) { int index = -1; - for (int i=0;i withNewScaleTargetRefLike(V2CrossVersionObjectRef } public ScaleTargetRefNested editScaleTargetRef() { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(null)); + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(null)); } public ScaleTargetRefNested editOrNewScaleTargetRef() { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); } public ScaleTargetRefNested editOrNewScaleTargetRefLike(V2CrossVersionObjectReference item) { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(item)); + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2HorizontalPodAutoscalerSpecFluent that = (V2HorizontalPodAutoscalerSpecFluent) o; - if (!java.util.Objects.equals(behavior, that.behavior)) return false; - if (!java.util.Objects.equals(maxReplicas, that.maxReplicas)) return false; - if (!java.util.Objects.equals(metrics, that.metrics)) return false; - if (!java.util.Objects.equals(minReplicas, that.minReplicas)) return false; - if (!java.util.Objects.equals(scaleTargetRef, that.scaleTargetRef)) return false; + if (!(Objects.equals(behavior, that.behavior))) { + return false; + } + if (!(Objects.equals(maxReplicas, that.maxReplicas))) { + return false; + } + if (!(Objects.equals(metrics, that.metrics))) { + return false; + } + if (!(Objects.equals(minReplicas, that.minReplicas))) { + return false; + } + if (!(Objects.equals(scaleTargetRef, that.scaleTargetRef))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(behavior, maxReplicas, metrics, minReplicas, scaleTargetRef, super.hashCode()); + return Objects.hash(behavior, maxReplicas, metrics, minReplicas, scaleTargetRef); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (behavior != null) { sb.append("behavior:"); sb.append(behavior + ","); } - if (maxReplicas != null) { sb.append("maxReplicas:"); sb.append(maxReplicas + ","); } - if (metrics != null && !metrics.isEmpty()) { sb.append("metrics:"); sb.append(metrics + ","); } - if (minReplicas != null) { sb.append("minReplicas:"); sb.append(minReplicas + ","); } - if (scaleTargetRef != null) { sb.append("scaleTargetRef:"); sb.append(scaleTargetRef); } + if (!(behavior == null)) { + sb.append("behavior:"); + sb.append(behavior); + sb.append(","); + } + if (!(maxReplicas == null)) { + sb.append("maxReplicas:"); + sb.append(maxReplicas); + sb.append(","); + } + if (!(metrics == null) && !(metrics.isEmpty())) { + sb.append("metrics:"); + sb.append(metrics); + sb.append(","); + } + if (!(minReplicas == null)) { + sb.append("minReplicas:"); + sb.append(minReplicas); + sb.append(","); + } + if (!(scaleTargetRef == null)) { + sb.append("scaleTargetRef:"); + sb.append(scaleTargetRef); + } sb.append("}"); return sb.toString(); } @@ -363,7 +446,7 @@ public class MetricsNested extends V2MetricSpecFluent> imple int index; public N and() { - return (N) V2HorizontalPodAutoscalerSpecFluent.this.setToMetrics(index,builder.build()); + return (N) V2HorizontalPodAutoscalerSpecFluent.this.setToMetrics(index, builder.build()); } public N endMetric() { 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 58f0a5d50f..765fee8694 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerStatusBuilder extends V2HorizontalPodAutoscalerStatusFluent implements VisitableBuilder{ public V2HorizontalPodAutoscalerStatusBuilder() { this(new V2HorizontalPodAutoscalerStatus()); 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 c5d3af9e39..1c0ea5d2b5 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 @@ -1,17 +1,19 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.lang.String; import java.util.function.Predicate; +import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; import java.util.Iterator; import java.util.List; import java.lang.Integer; import java.time.OffsetDateTime; import java.lang.Long; +import java.util.Objects; import java.util.Collection; import java.lang.Object; @@ -19,7 +21,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ public V2HorizontalPodAutoscalerStatusFluent() { } @@ -34,19 +36,21 @@ public V2HorizontalPodAutoscalerStatusFluent(V2HorizontalPodAutoscalerStatus ins private Long observedGeneration; protected void copyInstance(V2HorizontalPodAutoscalerStatus instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerStatus()); + instance = instance != null ? instance : new V2HorizontalPodAutoscalerStatus(); if (instance != null) { - this.withConditions(instance.getConditions()); - this.withCurrentMetrics(instance.getCurrentMetrics()); - this.withCurrentReplicas(instance.getCurrentReplicas()); - this.withDesiredReplicas(instance.getDesiredReplicas()); - this.withLastScaleTime(instance.getLastScaleTime()); - this.withObservedGeneration(instance.getObservedGeneration()); - } + this.withConditions(instance.getConditions()); + this.withCurrentMetrics(instance.getCurrentMetrics()); + this.withCurrentReplicas(instance.getCurrentReplicas()); + this.withDesiredReplicas(instance.getDesiredReplicas()); + this.withLastScaleTime(instance.getLastScaleTime()); + this.withObservedGeneration(instance.getObservedGeneration()); + } } public A addToConditions(int index,V2HorizontalPodAutoscalerCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -55,11 +59,13 @@ public A addToConditions(int index,V2HorizontalPodAutoscalerCondition item) { _visitables.get("conditions").add(builder); conditions.add(index, builder); } - return (A)this; + return (A) this; } public A setToConditions(int index,V2HorizontalPodAutoscalerCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + if (this.conditions == null) { + this.conditions = new ArrayList(); + } V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); @@ -68,41 +74,71 @@ public A setToConditions(int index,V2HorizontalPodAutoscalerCondition item) { _visitables.get("conditions").add(builder); conditions.set(index, builder); } - return (A)this; + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToConditions(V2HorizontalPodAutoscalerCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items) { - if (this.conditions == null) return (A)this; - for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A removeFromConditions(V2HorizontalPodAutoscalerCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + if (this.conditions == null) { + return (A) this; + } + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); while (each.hasNext()) { - V2HorizontalPodAutoscalerConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V2HorizontalPodAutoscalerConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildConditions() { @@ -154,7 +190,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... conditions) { + public A withConditions(V2HorizontalPodAutoscalerCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -168,7 +204,7 @@ public A withConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutos } public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + return this.conditions != null && !(this.conditions.isEmpty()); } public ConditionsNested addNewCondition() { @@ -184,32 +220,45 @@ public ConditionsNested setNewConditionLike(int index,V2HorizontalPodAutoscal } public ConditionsNested editCondition(int index) { - if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); + if (index <= conditions.size()) { + 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("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); + 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("Can't edit last conditions. The list is empty."); - return setNewConditionLike(index, buildCondition(index)); + 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();} + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); + } V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); if (index < 0 || index >= currentMetrics.size()) { _visitables.get("currentMetrics").add(builder); @@ -218,11 +267,13 @@ public A addToCurrentMetrics(int index,V2MetricStatus item) { _visitables.get("currentMetrics").add(builder); currentMetrics.add(index, builder); } - return (A)this; + return (A) this; } public A setToCurrentMetrics(int index,V2MetricStatus item) { - if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); + } V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); if (index < 0 || index >= currentMetrics.size()) { _visitables.get("currentMetrics").add(builder); @@ -231,41 +282,71 @@ public A setToCurrentMetrics(int index,V2MetricStatus item) { _visitables.get("currentMetrics").add(builder); currentMetrics.set(index, builder); } - return (A)this; + return (A) this; } - public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items) { - if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} - for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(builder);this.currentMetrics.add(builder);} return (A)this; + public A addToCurrentMetrics(V2MetricStatus... items) { + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); + } + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").add(builder); + this.currentMetrics.add(builder); + } + return (A) this; } public A addAllToCurrentMetrics(Collection items) { - if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} - for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(builder);this.currentMetrics.add(builder);} return (A)this; + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); + } + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").add(builder); + this.currentMetrics.add(builder); + } + return (A) this; } - public A removeFromCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items) { - if (this.currentMetrics == null) return (A)this; - for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").remove(builder); this.currentMetrics.remove(builder);} return (A)this; + public A removeFromCurrentMetrics(V2MetricStatus... items) { + if (this.currentMetrics == null) { + return (A) this; + } + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").remove(builder); + this.currentMetrics.remove(builder); + } + return (A) this; } public A removeAllFromCurrentMetrics(Collection items) { - if (this.currentMetrics == null) return (A)this; - for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").remove(builder); this.currentMetrics.remove(builder);} return (A)this; + if (this.currentMetrics == null) { + return (A) this; + } + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").remove(builder); + this.currentMetrics.remove(builder); + } + return (A) this; } public A removeMatchingFromCurrentMetrics(Predicate predicate) { - if (currentMetrics == null) return (A) this; - final Iterator each = currentMetrics.iterator(); - final List visitables = _visitables.get("currentMetrics"); + if (currentMetrics == null) { + return (A) this; + } + Iterator each = currentMetrics.iterator(); + List visitables = _visitables.get("currentMetrics"); while (each.hasNext()) { - V2MetricStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V2MetricStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } public List buildCurrentMetrics() { @@ -317,7 +398,7 @@ public A withCurrentMetrics(List currentMetrics) { return (A) this; } - public A withCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... currentMetrics) { + public A withCurrentMetrics(V2MetricStatus... currentMetrics) { if (this.currentMetrics != null) { this.currentMetrics.clear(); _visitables.remove("currentMetrics"); @@ -331,7 +412,7 @@ public A withCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus.. } public boolean hasCurrentMetrics() { - return this.currentMetrics != null && !this.currentMetrics.isEmpty(); + return this.currentMetrics != null && !(this.currentMetrics.isEmpty()); } public CurrentMetricsNested addNewCurrentMetric() { @@ -347,28 +428,39 @@ public CurrentMetricsNested setNewCurrentMetricLike(int index,V2MetricStatus } public CurrentMetricsNested editCurrentMetric(int index) { - if (currentMetrics.size() <= index) throw new RuntimeException("Can't edit currentMetrics. Index exceeds size."); - return setNewCurrentMetricLike(index, buildCurrentMetric(index)); + if (index <= currentMetrics.size()) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); } public CurrentMetricsNested editFirstCurrentMetric() { - if (currentMetrics.size() == 0) throw new RuntimeException("Can't edit first currentMetrics. The list is empty."); - return setNewCurrentMetricLike(0, buildCurrentMetric(0)); + if (currentMetrics.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(0, this.buildCurrentMetric(0)); } public CurrentMetricsNested editLastCurrentMetric() { int index = currentMetrics.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last currentMetrics. The list is empty."); - return setNewCurrentMetricLike(index, buildCurrentMetric(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); } public CurrentMetricsNested editMatchingCurrentMetric(Predicate predicate) { int index = -1; - for (int i=0;i extends V2HorizontalPodAutoscalerConditionFluen int index; public N and() { - return (N) V2HorizontalPodAutoscalerStatusFluent.this.setToConditions(index,builder.build()); + return (N) V2HorizontalPodAutoscalerStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { @@ -480,7 +613,7 @@ public class CurrentMetricsNested extends V2MetricStatusFluent implements VisitableBuilder{ public V2MetricIdentifierBuilder() { this(new V2MetricIdentifier()); 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 169195219c..a59c01d667 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2MetricIdentifierFluent> extends BaseFluent{ +public class V2MetricIdentifierFluent> extends BaseFluent{ public V2MetricIdentifierFluent() { } @@ -21,11 +24,11 @@ public V2MetricIdentifierFluent(V2MetricIdentifier instance) { private V1LabelSelectorBuilder selector; protected void copyInstance(V2MetricIdentifier instance) { - instance = (instance != null ? instance : new V2MetricIdentifier()); + instance = instance != null ? instance : new V2MetricIdentifier(); if (instance != null) { - this.withName(instance.getName()); - this.withSelector(instance.getSelector()); - } + this.withName(instance.getName()); + this.withSelector(instance.getSelector()); + } } public String getName() { @@ -70,36 +73,53 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { } public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2MetricIdentifierFluent that = (V2MetricIdentifierFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, selector, super.hashCode()); + return Objects.hash(name, selector); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } sb.append("}"); return sb.toString(); } 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 66dbf40191..35b414c1bf 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2MetricSpecBuilder extends V2MetricSpecFluent implements VisitableBuilder{ public V2MetricSpecBuilder() { this(new V2MetricSpec()); 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 13cc598ba3..f5065f47f2 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2MetricSpecFluent> extends BaseFluent{ +public class V2MetricSpecFluent> extends BaseFluent{ public V2MetricSpecFluent() { } @@ -25,15 +28,15 @@ public V2MetricSpecFluent(V2MetricSpec instance) { private String type; protected void copyInstance(V2MetricSpec instance) { - instance = (instance != null ? instance : new V2MetricSpec()); + instance = instance != null ? instance : new V2MetricSpec(); if (instance != null) { - this.withContainerResource(instance.getContainerResource()); - this.withExternal(instance.getExternal()); - this.withObject(instance.getObject()); - this.withPods(instance.getPods()); - this.withResource(instance.getResource()); - this.withType(instance.getType()); - } + this.withContainerResource(instance.getContainerResource()); + this.withExternal(instance.getExternal()); + this.withObject(instance.getObject()); + this.withPods(instance.getPods()); + this.withResource(instance.getResource()); + this.withType(instance.getType()); + } } public V2ContainerResourceMetricSource buildContainerResource() { @@ -65,15 +68,15 @@ public ContainerResourceNested withNewContainerResourceLike(V2ContainerResour } public ContainerResourceNested editContainerResource() { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(null)); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(null)); } public ContainerResourceNested editOrNewContainerResource() { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(new V2ContainerResourceMetricSourceBuilder().build())); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(new V2ContainerResourceMetricSourceBuilder().build())); } public ContainerResourceNested editOrNewContainerResourceLike(V2ContainerResourceMetricSource item) { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(item)); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(item)); } public V2ExternalMetricSource buildExternal() { @@ -105,15 +108,15 @@ public ExternalNested withNewExternalLike(V2ExternalMetricSource item) { } public ExternalNested editExternal() { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(null)); + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(null)); } public ExternalNested editOrNewExternal() { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(new V2ExternalMetricSourceBuilder().build())); + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(new V2ExternalMetricSourceBuilder().build())); } public ExternalNested editOrNewExternalLike(V2ExternalMetricSource item) { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(item)); + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(item)); } public V2ObjectMetricSource buildObject() { @@ -145,15 +148,15 @@ public ObjectNested withNewObjectLike(V2ObjectMetricSource item) { } public ObjectNested editObject() { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(null)); + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(null)); } public ObjectNested editOrNewObject() { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(new V2ObjectMetricSourceBuilder().build())); + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(new V2ObjectMetricSourceBuilder().build())); } public ObjectNested editOrNewObjectLike(V2ObjectMetricSource item) { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(item)); + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(item)); } public V2PodsMetricSource buildPods() { @@ -185,15 +188,15 @@ public PodsNested withNewPodsLike(V2PodsMetricSource item) { } public PodsNested editPods() { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(null)); + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(null)); } public PodsNested editOrNewPods() { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(new V2PodsMetricSourceBuilder().build())); + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(new V2PodsMetricSourceBuilder().build())); } public PodsNested editOrNewPodsLike(V2PodsMetricSource item) { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(item)); + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(item)); } public V2ResourceMetricSource buildResource() { @@ -225,15 +228,15 @@ public ResourceNested withNewResourceLike(V2ResourceMetricSource item) { } public ResourceNested editResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(null)); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); } public ResourceNested editOrNewResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(new V2ResourceMetricSourceBuilder().build())); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V2ResourceMetricSourceBuilder().build())); } public ResourceNested editOrNewResourceLike(V2ResourceMetricSource item) { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(item)); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } public String getType() { @@ -250,32 +253,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2MetricSpecFluent that = (V2MetricSpecFluent) o; - if (!java.util.Objects.equals(containerResource, that.containerResource)) return false; - if (!java.util.Objects.equals(external, that.external)) return false; - if (!java.util.Objects.equals(_object, that._object)) return false; - if (!java.util.Objects.equals(pods, that.pods)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(containerResource, that.containerResource))) { + return false; + } + if (!(Objects.equals(external, that.external))) { + return false; + } + if (!(Objects.equals(_object, that._object))) { + return false; + } + if (!(Objects.equals(pods, that.pods))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(containerResource, external, _object, pods, resource, type, super.hashCode()); + return Objects.hash(containerResource, external, _object, pods, resource, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerResource != null) { sb.append("containerResource:"); sb.append(containerResource + ","); } - if (external != null) { sb.append("external:"); sb.append(external + ","); } - if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } - if (pods != null) { sb.append("pods:"); sb.append(pods + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(containerResource == null)) { + sb.append("containerResource:"); + sb.append(containerResource); + sb.append(","); + } + if (!(external == null)) { + sb.append("external:"); + sb.append(external); + sb.append(","); + } + if (!(_object == null)) { + sb.append("_object:"); + sb.append(_object); + sb.append(","); + } + if (!(pods == null)) { + sb.append("pods:"); + sb.append(pods); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 53b73b229c..c24dbb4796 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2MetricStatusBuilder extends V2MetricStatusFluent implements VisitableBuilder{ public V2MetricStatusBuilder() { this(new V2MetricStatus()); 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 c51f29ae85..a6391e69dd 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2MetricStatusFluent> extends BaseFluent{ +public class V2MetricStatusFluent> extends BaseFluent{ public V2MetricStatusFluent() { } @@ -25,15 +28,15 @@ public V2MetricStatusFluent(V2MetricStatus instance) { private String type; protected void copyInstance(V2MetricStatus instance) { - instance = (instance != null ? instance : new V2MetricStatus()); + instance = instance != null ? instance : new V2MetricStatus(); if (instance != null) { - this.withContainerResource(instance.getContainerResource()); - this.withExternal(instance.getExternal()); - this.withObject(instance.getObject()); - this.withPods(instance.getPods()); - this.withResource(instance.getResource()); - this.withType(instance.getType()); - } + this.withContainerResource(instance.getContainerResource()); + this.withExternal(instance.getExternal()); + this.withObject(instance.getObject()); + this.withPods(instance.getPods()); + this.withResource(instance.getResource()); + this.withType(instance.getType()); + } } public V2ContainerResourceMetricStatus buildContainerResource() { @@ -65,15 +68,15 @@ public ContainerResourceNested withNewContainerResourceLike(V2ContainerResour } public ContainerResourceNested editContainerResource() { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(null)); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(null)); } public ContainerResourceNested editOrNewContainerResource() { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(new V2ContainerResourceMetricStatusBuilder().build())); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(new V2ContainerResourceMetricStatusBuilder().build())); } public ContainerResourceNested editOrNewContainerResourceLike(V2ContainerResourceMetricStatus item) { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(item)); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(item)); } public V2ExternalMetricStatus buildExternal() { @@ -105,15 +108,15 @@ public ExternalNested withNewExternalLike(V2ExternalMetricStatus item) { } public ExternalNested editExternal() { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(null)); + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(null)); } public ExternalNested editOrNewExternal() { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(new V2ExternalMetricStatusBuilder().build())); + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(new V2ExternalMetricStatusBuilder().build())); } public ExternalNested editOrNewExternalLike(V2ExternalMetricStatus item) { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(item)); + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(item)); } public V2ObjectMetricStatus buildObject() { @@ -145,15 +148,15 @@ public ObjectNested withNewObjectLike(V2ObjectMetricStatus item) { } public ObjectNested editObject() { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(null)); + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(null)); } public ObjectNested editOrNewObject() { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(new V2ObjectMetricStatusBuilder().build())); + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(new V2ObjectMetricStatusBuilder().build())); } public ObjectNested editOrNewObjectLike(V2ObjectMetricStatus item) { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(item)); + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(item)); } public V2PodsMetricStatus buildPods() { @@ -185,15 +188,15 @@ public PodsNested withNewPodsLike(V2PodsMetricStatus item) { } public PodsNested editPods() { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(null)); + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(null)); } public PodsNested editOrNewPods() { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(new V2PodsMetricStatusBuilder().build())); + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(new V2PodsMetricStatusBuilder().build())); } public PodsNested editOrNewPodsLike(V2PodsMetricStatus item) { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(item)); + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(item)); } public V2ResourceMetricStatus buildResource() { @@ -225,15 +228,15 @@ public ResourceNested withNewResourceLike(V2ResourceMetricStatus item) { } public ResourceNested editResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(null)); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); } public ResourceNested editOrNewResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(new V2ResourceMetricStatusBuilder().build())); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V2ResourceMetricStatusBuilder().build())); } public ResourceNested editOrNewResourceLike(V2ResourceMetricStatus item) { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(item)); + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } public String getType() { @@ -250,32 +253,73 @@ public boolean hasType() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2MetricStatusFluent that = (V2MetricStatusFluent) o; - if (!java.util.Objects.equals(containerResource, that.containerResource)) return false; - if (!java.util.Objects.equals(external, that.external)) return false; - if (!java.util.Objects.equals(_object, that._object)) return false; - if (!java.util.Objects.equals(pods, that.pods)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; + if (!(Objects.equals(containerResource, that.containerResource))) { + return false; + } + if (!(Objects.equals(external, that.external))) { + return false; + } + if (!(Objects.equals(_object, that._object))) { + return false; + } + if (!(Objects.equals(pods, that.pods))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(containerResource, external, _object, pods, resource, type, super.hashCode()); + return Objects.hash(containerResource, external, _object, pods, resource, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerResource != null) { sb.append("containerResource:"); sb.append(containerResource + ","); } - if (external != null) { sb.append("external:"); sb.append(external + ","); } - if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } - if (pods != null) { sb.append("pods:"); sb.append(pods + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(containerResource == null)) { + sb.append("containerResource:"); + sb.append(containerResource); + sb.append(","); + } + if (!(external == null)) { + sb.append("external:"); + sb.append(external); + sb.append(","); + } + if (!(_object == null)) { + sb.append("_object:"); + sb.append(_object); + sb.append(","); + } + if (!(pods == null)) { + sb.append("pods:"); + sb.append(pods); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } 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 562f9f7bcd..36dbf9fe56 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2MetricTargetBuilder extends V2MetricTargetFluent implements VisitableBuilder{ public V2MetricTargetBuilder() { this(new V2MetricTarget()); 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 6a33069ed0..b807b91e09 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V2MetricTargetFluent> extends BaseFluent{ +public class V2MetricTargetFluent> extends BaseFluent{ public V2MetricTargetFluent() { } @@ -24,13 +26,13 @@ public V2MetricTargetFluent(V2MetricTarget instance) { private Quantity value; protected void copyInstance(V2MetricTarget instance) { - instance = (instance != null ? instance : new V2MetricTarget()); + instance = instance != null ? instance : new V2MetricTarget(); if (instance != null) { - this.withAverageUtilization(instance.getAverageUtilization()); - this.withAverageValue(instance.getAverageValue()); - this.withType(instance.getType()); - this.withValue(instance.getValue()); - } + this.withAverageUtilization(instance.getAverageUtilization()); + this.withAverageValue(instance.getAverageValue()); + this.withType(instance.getType()); + this.withValue(instance.getValue()); + } } public Integer getAverageUtilization() { @@ -60,7 +62,7 @@ public boolean hasAverageValue() { } public A withNewAverageValue(String value) { - return (A)withAverageValue(new Quantity(value)); + return (A) this.withAverageValue(new Quantity(value)); } public String getType() { @@ -90,32 +92,61 @@ public boolean hasValue() { } public A withNewValue(String value) { - return (A)withValue(new Quantity(value)); + return (A) this.withValue(new Quantity(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2MetricTargetFluent that = (V2MetricTargetFluent) o; - if (!java.util.Objects.equals(averageUtilization, that.averageUtilization)) return false; - if (!java.util.Objects.equals(averageValue, that.averageValue)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(averageUtilization, that.averageUtilization))) { + return false; + } + if (!(Objects.equals(averageValue, that.averageValue))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(averageUtilization, averageValue, type, value, super.hashCode()); + return Objects.hash(averageUtilization, averageValue, type, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (averageUtilization != null) { sb.append("averageUtilization:"); sb.append(averageUtilization + ","); } - if (averageValue != null) { sb.append("averageValue:"); sb.append(averageValue + ","); } - if (type != null) { sb.append("type:"); sb.append(type + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(averageUtilization == null)) { + sb.append("averageUtilization:"); + sb.append(averageUtilization); + sb.append(","); + } + if (!(averageValue == null)) { + sb.append("averageValue:"); + sb.append(averageValue); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 ce0a535a58..74a0a837cc 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2MetricValueStatusBuilder extends V2MetricValueStatusFluent implements VisitableBuilder{ public V2MetricValueStatusBuilder() { this(new V2MetricValueStatus()); 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 903b0b7c64..2f2521ee8e 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 @@ -1,8 +1,10 @@ package io.kubernetes.client.openapi.models; import java.lang.Integer; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import io.kubernetes.client.custom.Quantity; import java.lang.Object; import java.lang.String; @@ -11,7 +13,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class V2MetricValueStatusFluent> extends BaseFluent{ +public class V2MetricValueStatusFluent> extends BaseFluent{ public V2MetricValueStatusFluent() { } @@ -23,12 +25,12 @@ public V2MetricValueStatusFluent(V2MetricValueStatus instance) { private Quantity value; protected void copyInstance(V2MetricValueStatus instance) { - instance = (instance != null ? instance : new V2MetricValueStatus()); + instance = instance != null ? instance : new V2MetricValueStatus(); if (instance != null) { - this.withAverageUtilization(instance.getAverageUtilization()); - this.withAverageValue(instance.getAverageValue()); - this.withValue(instance.getValue()); - } + this.withAverageUtilization(instance.getAverageUtilization()); + this.withAverageValue(instance.getAverageValue()); + this.withValue(instance.getValue()); + } } public Integer getAverageUtilization() { @@ -58,7 +60,7 @@ public boolean hasAverageValue() { } public A withNewAverageValue(String value) { - return (A)withAverageValue(new Quantity(value)); + return (A) this.withAverageValue(new Quantity(value)); } public Quantity getValue() { @@ -75,30 +77,53 @@ public boolean hasValue() { } public A withNewValue(String value) { - return (A)withValue(new Quantity(value)); + return (A) this.withValue(new Quantity(value)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2MetricValueStatusFluent that = (V2MetricValueStatusFluent) o; - if (!java.util.Objects.equals(averageUtilization, that.averageUtilization)) return false; - if (!java.util.Objects.equals(averageValue, that.averageValue)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; + if (!(Objects.equals(averageUtilization, that.averageUtilization))) { + return false; + } + if (!(Objects.equals(averageValue, that.averageValue))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(averageUtilization, averageValue, value, super.hashCode()); + return Objects.hash(averageUtilization, averageValue, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (averageUtilization != null) { sb.append("averageUtilization:"); sb.append(averageUtilization + ","); } - if (averageValue != null) { sb.append("averageValue:"); sb.append(averageValue + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(averageUtilization == null)) { + sb.append("averageUtilization:"); + sb.append(averageUtilization); + sb.append(","); + } + if (!(averageValue == null)) { + sb.append("averageValue:"); + sb.append(averageValue); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } 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 e4ba2b80de..9ce7fa32d3 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ObjectMetricSourceBuilder extends V2ObjectMetricSourceFluent implements VisitableBuilder{ public V2ObjectMetricSourceBuilder() { this(new V2ObjectMetricSource()); 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 f4e7a38d0d..59fc26d9de 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ObjectMetricSourceFluent> extends BaseFluent{ +public class V2ObjectMetricSourceFluent> extends BaseFluent{ public V2ObjectMetricSourceFluent() { } @@ -22,12 +25,12 @@ public V2ObjectMetricSourceFluent(V2ObjectMetricSource instance) { private V2MetricTargetBuilder target; protected void copyInstance(V2ObjectMetricSource instance) { - instance = (instance != null ? instance : new V2ObjectMetricSource()); + instance = instance != null ? instance : new V2ObjectMetricSource(); if (instance != null) { - this.withDescribedObject(instance.getDescribedObject()); - this.withMetric(instance.getMetric()); - this.withTarget(instance.getTarget()); - } + this.withDescribedObject(instance.getDescribedObject()); + this.withMetric(instance.getMetric()); + this.withTarget(instance.getTarget()); + } } public V2CrossVersionObjectReference buildDescribedObject() { @@ -59,15 +62,15 @@ public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectR } public DescribedObjectNested editDescribedObject() { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(null)); + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(null)); } public DescribedObjectNested editOrNewDescribedObject() { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); } public DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(item)); + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(item)); } public V2MetricIdentifier buildMetric() { @@ -99,15 +102,15 @@ public MetricNested withNewMetricLike(V2MetricIdentifier item) { } public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } public V2MetricTarget buildTarget() { @@ -139,38 +142,61 @@ public TargetNested withNewTargetLike(V2MetricTarget item) { } public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); } public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(item)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2ObjectMetricSourceFluent that = (V2ObjectMetricSourceFluent) o; - if (!java.util.Objects.equals(describedObject, that.describedObject)) return false; - if (!java.util.Objects.equals(metric, that.metric)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; + if (!(Objects.equals(describedObject, that.describedObject))) { + return false; + } + if (!(Objects.equals(metric, that.metric))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(describedObject, metric, target, super.hashCode()); + return Objects.hash(describedObject, metric, target); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (describedObject != null) { sb.append("describedObject:"); sb.append(describedObject + ","); } - if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } + if (!(describedObject == null)) { + sb.append("describedObject:"); + sb.append(describedObject); + sb.append(","); + } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } sb.append("}"); return sb.toString(); } 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 4bb4e54ec7..e78883c368 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ObjectMetricStatusBuilder extends V2ObjectMetricStatusFluent implements VisitableBuilder{ public V2ObjectMetricStatusBuilder() { this(new V2ObjectMetricStatus()); 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 f1c4bc2149..eeac60c29b 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Optional; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ObjectMetricStatusFluent> extends BaseFluent{ +public class V2ObjectMetricStatusFluent> extends BaseFluent{ public V2ObjectMetricStatusFluent() { } @@ -22,12 +25,12 @@ public V2ObjectMetricStatusFluent(V2ObjectMetricStatus instance) { private V2MetricIdentifierBuilder metric; protected void copyInstance(V2ObjectMetricStatus instance) { - instance = (instance != null ? instance : new V2ObjectMetricStatus()); + instance = instance != null ? instance : new V2ObjectMetricStatus(); if (instance != null) { - this.withCurrent(instance.getCurrent()); - this.withDescribedObject(instance.getDescribedObject()); - this.withMetric(instance.getMetric()); - } + this.withCurrent(instance.getCurrent()); + this.withDescribedObject(instance.getDescribedObject()); + this.withMetric(instance.getMetric()); + } } public V2MetricValueStatus buildCurrent() { @@ -59,15 +62,15 @@ public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { } public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(item)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } public V2CrossVersionObjectReference buildDescribedObject() { @@ -99,15 +102,15 @@ public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectR } public DescribedObjectNested editDescribedObject() { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(null)); + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(null)); } public DescribedObjectNested editOrNewDescribedObject() { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); } public DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(item)); + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(item)); } public V2MetricIdentifier buildMetric() { @@ -139,38 +142,61 @@ public MetricNested withNewMetricLike(V2MetricIdentifier item) { } public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2ObjectMetricStatusFluent that = (V2ObjectMetricStatusFluent) o; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(describedObject, that.describedObject)) return false; - if (!java.util.Objects.equals(metric, that.metric)) return false; + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(describedObject, that.describedObject))) { + return false; + } + if (!(Objects.equals(metric, that.metric))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(current, describedObject, metric, super.hashCode()); + return Objects.hash(current, describedObject, metric); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (describedObject != null) { sb.append("describedObject:"); sb.append(describedObject + ","); } - if (metric != null) { sb.append("metric:"); sb.append(metric); } + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(describedObject == null)) { + sb.append("describedObject:"); + sb.append(describedObject); + sb.append(","); + } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + } sb.append("}"); return sb.toString(); } 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 d86c0ac8fd..f4bdd9bd82 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2PodsMetricSourceBuilder extends V2PodsMetricSourceFluent implements VisitableBuilder{ public V2PodsMetricSourceBuilder() { this(new V2PodsMetricSource()); 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 a7028113b7..66620d48c9 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2PodsMetricSourceFluent> extends BaseFluent{ +public class V2PodsMetricSourceFluent> extends BaseFluent{ public V2PodsMetricSourceFluent() { } @@ -21,11 +24,11 @@ public V2PodsMetricSourceFluent(V2PodsMetricSource instance) { private V2MetricTargetBuilder target; protected void copyInstance(V2PodsMetricSource instance) { - instance = (instance != null ? instance : new V2PodsMetricSource()); + instance = instance != null ? instance : new V2PodsMetricSource(); if (instance != null) { - this.withMetric(instance.getMetric()); - this.withTarget(instance.getTarget()); - } + this.withMetric(instance.getMetric()); + this.withTarget(instance.getTarget()); + } } public V2MetricIdentifier buildMetric() { @@ -57,15 +60,15 @@ public MetricNested withNewMetricLike(V2MetricIdentifier item) { } public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } public V2MetricTarget buildTarget() { @@ -97,36 +100,53 @@ public TargetNested withNewTargetLike(V2MetricTarget item) { } public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); } public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(item)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2PodsMetricSourceFluent that = (V2PodsMetricSourceFluent) o; - if (!java.util.Objects.equals(metric, that.metric)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; + if (!(Objects.equals(metric, that.metric))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(metric, target, super.hashCode()); + return Objects.hash(metric, target); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } sb.append("}"); return sb.toString(); } 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 ea302ebfd1..644d791846 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2PodsMetricStatusBuilder extends V2PodsMetricStatusFluent implements VisitableBuilder{ public V2PodsMetricStatusBuilder() { this(new V2PodsMetricStatus()); 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 cf08d6e1a4..6445215ea9 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.Nested; import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2PodsMetricStatusFluent> extends BaseFluent{ +public class V2PodsMetricStatusFluent> extends BaseFluent{ public V2PodsMetricStatusFluent() { } @@ -21,11 +24,11 @@ public V2PodsMetricStatusFluent(V2PodsMetricStatus instance) { private V2MetricIdentifierBuilder metric; protected void copyInstance(V2PodsMetricStatus instance) { - instance = (instance != null ? instance : new V2PodsMetricStatus()); + instance = instance != null ? instance : new V2PodsMetricStatus(); if (instance != null) { - this.withCurrent(instance.getCurrent()); - this.withMetric(instance.getMetric()); - } + this.withCurrent(instance.getCurrent()); + this.withMetric(instance.getMetric()); + } } public V2MetricValueStatus buildCurrent() { @@ -57,15 +60,15 @@ public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { } public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(item)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } public V2MetricIdentifier buildMetric() { @@ -97,36 +100,53 @@ public MetricNested withNewMetricLike(V2MetricIdentifier item) { } public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2PodsMetricStatusFluent that = (V2PodsMetricStatusFluent) o; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(metric, that.metric)) return false; + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(metric, that.metric))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(current, metric, super.hashCode()); + return Objects.hash(current, metric); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (metric != null) { sb.append("metric:"); sb.append(metric); } + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + } sb.append("}"); return sb.toString(); } 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 3c8f9000ef..828ad4ce5c 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ResourceMetricSourceBuilder extends V2ResourceMetricSourceFluent implements VisitableBuilder{ public V2ResourceMetricSourceBuilder() { this(new V2ResourceMetricSource()); 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 0635239f8a..86b195abf5 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ResourceMetricSourceFluent> extends BaseFluent{ +public class V2ResourceMetricSourceFluent> extends BaseFluent{ public V2ResourceMetricSourceFluent() { } @@ -21,11 +24,11 @@ public V2ResourceMetricSourceFluent(V2ResourceMetricSource instance) { private V2MetricTargetBuilder target; protected void copyInstance(V2ResourceMetricSource instance) { - instance = (instance != null ? instance : new V2ResourceMetricSource()); + instance = instance != null ? instance : new V2ResourceMetricSource(); if (instance != null) { - this.withName(instance.getName()); - this.withTarget(instance.getTarget()); - } + this.withName(instance.getName()); + this.withTarget(instance.getTarget()); + } } public String getName() { @@ -70,36 +73,53 @@ public TargetNested withNewTargetLike(V2MetricTarget item) { } public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); } public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(item)); + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2ResourceMetricSourceFluent that = (V2ResourceMetricSourceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(name, target, super.hashCode()); + return Objects.hash(name, target); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } sb.append("}"); return sb.toString(); } 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 53ea7d421e..e254134785 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ResourceMetricStatusBuilder extends V2ResourceMetricStatusFluent implements VisitableBuilder{ public V2ResourceMetricStatusBuilder() { this(new V2ResourceMetricStatus()); 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 b25742fd69..239ac000fc 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 @@ -1,16 +1,19 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; +import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.Object; import java.lang.String; +import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; +import java.lang.Object; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ResourceMetricStatusFluent> extends BaseFluent{ +public class V2ResourceMetricStatusFluent> extends BaseFluent{ public V2ResourceMetricStatusFluent() { } @@ -21,11 +24,11 @@ public V2ResourceMetricStatusFluent(V2ResourceMetricStatus instance) { private String name; protected void copyInstance(V2ResourceMetricStatus instance) { - instance = (instance != null ? instance : new V2ResourceMetricStatus()); + instance = instance != null ? instance : new V2ResourceMetricStatus(); if (instance != null) { - this.withCurrent(instance.getCurrent()); - this.withName(instance.getName()); - } + this.withCurrent(instance.getCurrent()); + this.withName(instance.getName()); + } } public V2MetricValueStatus buildCurrent() { @@ -57,15 +60,15 @@ public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { } public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(item)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } public String getName() { @@ -82,24 +85,41 @@ public boolean hasName() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V2ResourceMetricStatusFluent that = (V2ResourceMetricStatusFluent) o; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(current, name, super.hashCode()); + return Objects.hash(current, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } 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 283ccae757..16ead3258b 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 @@ -1,6 +1,7 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class VersionInfoBuilder extends VersionInfoFluent implements VisitableBuilder{ public VersionInfoBuilder() { this(new VersionInfo()); 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 312866ab19..566f6a7fce 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 @@ -1,7 +1,9 @@ package io.kubernetes.client.openapi.models; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.util.Objects; import java.lang.Object; import java.lang.String; @@ -9,7 +11,7 @@ * Generated */ @SuppressWarnings("unchecked") -public class VersionInfoFluent> extends BaseFluent{ +public class VersionInfoFluent> extends BaseFluent{ public VersionInfoFluent() { } @@ -31,22 +33,22 @@ public VersionInfoFluent(VersionInfo instance) { private String platform; protected void copyInstance(VersionInfo instance) { - instance = (instance != null ? instance : new VersionInfo()); + instance = instance != null ? instance : new VersionInfo(); if (instance != null) { - this.withBuildDate(instance.getBuildDate()); - this.withCompiler(instance.getCompiler()); - this.withEmulationMajor(instance.getEmulationMajor()); - this.withEmulationMinor(instance.getEmulationMinor()); - this.withGitCommit(instance.getGitCommit()); - this.withGitTreeState(instance.getGitTreeState()); - this.withGitVersion(instance.getGitVersion()); - this.withGoVersion(instance.getGoVersion()); - this.withMajor(instance.getMajor()); - this.withMinCompatibilityMajor(instance.getMinCompatibilityMajor()); - this.withMinCompatibilityMinor(instance.getMinCompatibilityMinor()); - this.withMinor(instance.getMinor()); - this.withPlatform(instance.getPlatform()); - } + this.withBuildDate(instance.getBuildDate()); + this.withCompiler(instance.getCompiler()); + this.withEmulationMajor(instance.getEmulationMajor()); + this.withEmulationMinor(instance.getEmulationMinor()); + this.withGitCommit(instance.getGitCommit()); + this.withGitTreeState(instance.getGitTreeState()); + this.withGitVersion(instance.getGitVersion()); + this.withGoVersion(instance.getGoVersion()); + this.withMajor(instance.getMajor()); + this.withMinCompatibilityMajor(instance.getMinCompatibilityMajor()); + this.withMinCompatibilityMinor(instance.getMinCompatibilityMinor()); + this.withMinor(instance.getMinor()); + this.withPlatform(instance.getPlatform()); + } } public String getBuildDate() { @@ -219,46 +221,129 @@ public boolean hasPlatform() { } public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } VersionInfoFluent that = (VersionInfoFluent) o; - if (!java.util.Objects.equals(buildDate, that.buildDate)) return false; - if (!java.util.Objects.equals(compiler, that.compiler)) return false; - if (!java.util.Objects.equals(emulationMajor, that.emulationMajor)) return false; - if (!java.util.Objects.equals(emulationMinor, that.emulationMinor)) return false; - if (!java.util.Objects.equals(gitCommit, that.gitCommit)) return false; - if (!java.util.Objects.equals(gitTreeState, that.gitTreeState)) return false; - if (!java.util.Objects.equals(gitVersion, that.gitVersion)) return false; - if (!java.util.Objects.equals(goVersion, that.goVersion)) return false; - if (!java.util.Objects.equals(major, that.major)) return false; - if (!java.util.Objects.equals(minCompatibilityMajor, that.minCompatibilityMajor)) return false; - if (!java.util.Objects.equals(minCompatibilityMinor, that.minCompatibilityMinor)) return false; - if (!java.util.Objects.equals(minor, that.minor)) return false; - if (!java.util.Objects.equals(platform, that.platform)) return false; + if (!(Objects.equals(buildDate, that.buildDate))) { + return false; + } + if (!(Objects.equals(compiler, that.compiler))) { + return false; + } + if (!(Objects.equals(emulationMajor, that.emulationMajor))) { + return false; + } + if (!(Objects.equals(emulationMinor, that.emulationMinor))) { + return false; + } + if (!(Objects.equals(gitCommit, that.gitCommit))) { + return false; + } + if (!(Objects.equals(gitTreeState, that.gitTreeState))) { + return false; + } + if (!(Objects.equals(gitVersion, that.gitVersion))) { + return false; + } + if (!(Objects.equals(goVersion, that.goVersion))) { + return false; + } + if (!(Objects.equals(major, that.major))) { + return false; + } + if (!(Objects.equals(minCompatibilityMajor, that.minCompatibilityMajor))) { + return false; + } + if (!(Objects.equals(minCompatibilityMinor, that.minCompatibilityMinor))) { + return false; + } + if (!(Objects.equals(minor, that.minor))) { + return false; + } + if (!(Objects.equals(platform, that.platform))) { + return false; + } return true; } public int hashCode() { - return java.util.Objects.hash(buildDate, compiler, emulationMajor, emulationMinor, gitCommit, gitTreeState, gitVersion, goVersion, major, minCompatibilityMajor, minCompatibilityMinor, minor, platform, super.hashCode()); + return Objects.hash(buildDate, compiler, emulationMajor, emulationMinor, gitCommit, gitTreeState, gitVersion, goVersion, major, minCompatibilityMajor, minCompatibilityMinor, minor, platform); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (buildDate != null) { sb.append("buildDate:"); sb.append(buildDate + ","); } - if (compiler != null) { sb.append("compiler:"); sb.append(compiler + ","); } - if (emulationMajor != null) { sb.append("emulationMajor:"); sb.append(emulationMajor + ","); } - if (emulationMinor != null) { sb.append("emulationMinor:"); sb.append(emulationMinor + ","); } - if (gitCommit != null) { sb.append("gitCommit:"); sb.append(gitCommit + ","); } - if (gitTreeState != null) { sb.append("gitTreeState:"); sb.append(gitTreeState + ","); } - if (gitVersion != null) { sb.append("gitVersion:"); sb.append(gitVersion + ","); } - if (goVersion != null) { sb.append("goVersion:"); sb.append(goVersion + ","); } - if (major != null) { sb.append("major:"); sb.append(major + ","); } - if (minCompatibilityMajor != null) { sb.append("minCompatibilityMajor:"); sb.append(minCompatibilityMajor + ","); } - if (minCompatibilityMinor != null) { sb.append("minCompatibilityMinor:"); sb.append(minCompatibilityMinor + ","); } - if (minor != null) { sb.append("minor:"); sb.append(minor + ","); } - if (platform != null) { sb.append("platform:"); sb.append(platform); } + if (!(buildDate == null)) { + sb.append("buildDate:"); + sb.append(buildDate); + sb.append(","); + } + if (!(compiler == null)) { + sb.append("compiler:"); + sb.append(compiler); + sb.append(","); + } + if (!(emulationMajor == null)) { + sb.append("emulationMajor:"); + sb.append(emulationMajor); + sb.append(","); + } + if (!(emulationMinor == null)) { + sb.append("emulationMinor:"); + sb.append(emulationMinor); + sb.append(","); + } + if (!(gitCommit == null)) { + sb.append("gitCommit:"); + sb.append(gitCommit); + sb.append(","); + } + if (!(gitTreeState == null)) { + sb.append("gitTreeState:"); + sb.append(gitTreeState); + sb.append(","); + } + if (!(gitVersion == null)) { + sb.append("gitVersion:"); + sb.append(gitVersion); + sb.append(","); + } + if (!(goVersion == null)) { + sb.append("goVersion:"); + sb.append(goVersion); + sb.append(","); + } + if (!(major == null)) { + sb.append("major:"); + sb.append(major); + sb.append(","); + } + if (!(minCompatibilityMajor == null)) { + sb.append("minCompatibilityMajor:"); + sb.append(minCompatibilityMajor); + sb.append(","); + } + if (!(minCompatibilityMinor == null)) { + sb.append("minCompatibilityMinor:"); + sb.append(minCompatibilityMinor); + sb.append(","); + } + if (!(minor == null)) { + sb.append("minor:"); + sb.append(minor); + sb.append(","); + } + if (!(platform == null)) { + sb.append("platform:"); + sb.append(platform); + } sb.append("}"); return sb.toString(); } diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES index 03187c0f36..27d04a1d18 100644 --- a/kubernetes/.openapi-generator/FILES +++ b/kubernetes/.openapi-generator/FILES @@ -40,6 +40,7 @@ docs/CoreV1EndpointPort.md docs/CoreV1Event.md docs/CoreV1EventList.md docs/CoreV1EventSeries.md +docs/CoreV1ResourceClaim.md docs/CustomObjectsApi.md docs/DiscoveryApi.md docs/DiscoveryV1Api.md @@ -67,6 +68,8 @@ docs/RbacAuthorizationApi.md docs/RbacAuthorizationV1Api.md docs/RbacV1Subject.md docs/ResourceApi.md +docs/ResourceV1Api.md +docs/ResourceV1ResourceClaim.md docs/ResourceV1alpha3Api.md docs/ResourceV1beta1Api.md docs/ResourceV1beta2Api.md @@ -92,6 +95,8 @@ docs/V1APIVersions.md docs/V1AWSElasticBlockStoreVolumeSource.md docs/V1Affinity.md docs/V1AggregationRule.md +docs/V1AllocatedDeviceStatus.md +docs/V1AllocationResult.md docs/V1AppArmorProfile.md docs/V1AttachedVolume.md docs/V1AuditAnnotation.md @@ -100,6 +105,7 @@ docs/V1AzureFilePersistentVolumeSource.md docs/V1AzureFileVolumeSource.md docs/V1Binding.md docs/V1BoundObjectReference.md +docs/V1CELDeviceSelector.md docs/V1CSIDriver.md docs/V1CSIDriverList.md docs/V1CSIDriverSpec.md @@ -112,6 +118,9 @@ docs/V1CSIStorageCapacity.md docs/V1CSIStorageCapacityList.md docs/V1CSIVolumeSource.md docs/V1Capabilities.md +docs/V1CapacityRequestPolicy.md +docs/V1CapacityRequestPolicyRange.md +docs/V1CapacityRequirements.md docs/V1CephFSPersistentVolumeSource.md docs/V1CephFSVolumeSource.md docs/V1CertificateSigningRequest.md @@ -139,9 +148,12 @@ docs/V1ConfigMapNodeConfigSource.md docs/V1ConfigMapProjection.md docs/V1ConfigMapVolumeSource.md docs/V1Container.md +docs/V1ContainerExtendedResourceRequest.md docs/V1ContainerImage.md docs/V1ContainerPort.md docs/V1ContainerResizePolicy.md +docs/V1ContainerRestartRule.md +docs/V1ContainerRestartRuleOnExitCodes.md docs/V1ContainerState.md docs/V1ContainerStateRunning.md docs/V1ContainerStateTerminated.md @@ -150,6 +162,8 @@ docs/V1ContainerStatus.md docs/V1ContainerUser.md docs/V1ControllerRevision.md docs/V1ControllerRevisionList.md +docs/V1Counter.md +docs/V1CounterSet.md docs/V1CronJob.md docs/V1CronJobList.md docs/V1CronJobSpec.md @@ -181,6 +195,25 @@ docs/V1DeploymentList.md docs/V1DeploymentSpec.md docs/V1DeploymentStatus.md docs/V1DeploymentStrategy.md +docs/V1Device.md +docs/V1DeviceAllocationConfiguration.md +docs/V1DeviceAllocationResult.md +docs/V1DeviceAttribute.md +docs/V1DeviceCapacity.md +docs/V1DeviceClaim.md +docs/V1DeviceClaimConfiguration.md +docs/V1DeviceClass.md +docs/V1DeviceClassConfiguration.md +docs/V1DeviceClassList.md +docs/V1DeviceClassSpec.md +docs/V1DeviceConstraint.md +docs/V1DeviceCounterConsumption.md +docs/V1DeviceRequest.md +docs/V1DeviceRequestAllocationResult.md +docs/V1DeviceSelector.md +docs/V1DeviceSubRequest.md +docs/V1DeviceTaint.md +docs/V1DeviceToleration.md docs/V1DownwardAPIProjection.md docs/V1DownwardAPIVolumeFile.md docs/V1DownwardAPIVolumeSource.md @@ -201,6 +234,7 @@ docs/V1EphemeralContainer.md docs/V1EphemeralVolumeSource.md docs/V1EventSource.md docs/V1Eviction.md +docs/V1ExactDeviceRequest.md docs/V1ExecAction.md docs/V1ExemptPriorityLevelConfiguration.md docs/V1ExpressionWarning.md @@ -208,6 +242,7 @@ docs/V1ExternalDocumentation.md docs/V1FCVolumeSource.md docs/V1FieldSelectorAttributes.md docs/V1FieldSelectorRequirement.md +docs/V1FileKeySelector.md docs/V1FlexPersistentVolumeSource.md docs/V1FlexVolumeSource.md docs/V1FlockerVolumeSource.md @@ -302,6 +337,7 @@ docs/V1NamespaceCondition.md docs/V1NamespaceList.md docs/V1NamespaceSpec.md docs/V1NamespaceStatus.md +docs/V1NetworkDeviceData.md docs/V1NetworkPolicy.md docs/V1NetworkPolicyEgressRule.md docs/V1NetworkPolicyIngressRule.md @@ -333,6 +369,7 @@ docs/V1NonResourceRule.md docs/V1ObjectFieldSelector.md docs/V1ObjectMeta.md docs/V1ObjectReference.md +docs/V1OpaqueDeviceConfiguration.md docs/V1Overhead.md docs/V1OwnerReference.md docs/V1ParamKind.md @@ -354,6 +391,7 @@ docs/V1Pod.md docs/V1PodAffinity.md docs/V1PodAffinityTerm.md docs/V1PodAntiAffinity.md +docs/V1PodCertificateProjection.md docs/V1PodCondition.md docs/V1PodDNSConfig.md docs/V1PodDNSConfigOption.md @@ -361,6 +399,7 @@ docs/V1PodDisruptionBudget.md docs/V1PodDisruptionBudgetList.md docs/V1PodDisruptionBudgetSpec.md docs/V1PodDisruptionBudgetStatus.md +docs/V1PodExtendedResourceClaimStatus.md docs/V1PodFailurePolicy.md docs/V1PodFailurePolicyOnExitCodesRequirement.md docs/V1PodFailurePolicyOnPodConditionsPattern.md @@ -409,16 +448,26 @@ docs/V1ReplicationControllerList.md docs/V1ReplicationControllerSpec.md docs/V1ReplicationControllerStatus.md docs/V1ResourceAttributes.md -docs/V1ResourceClaim.md +docs/V1ResourceClaimConsumerReference.md +docs/V1ResourceClaimList.md +docs/V1ResourceClaimSpec.md +docs/V1ResourceClaimStatus.md +docs/V1ResourceClaimTemplate.md +docs/V1ResourceClaimTemplateList.md +docs/V1ResourceClaimTemplateSpec.md docs/V1ResourceFieldSelector.md docs/V1ResourceHealth.md docs/V1ResourcePolicyRule.md +docs/V1ResourcePool.md docs/V1ResourceQuota.md docs/V1ResourceQuotaList.md docs/V1ResourceQuotaSpec.md docs/V1ResourceQuotaStatus.md docs/V1ResourceRequirements.md docs/V1ResourceRule.md +docs/V1ResourceSlice.md +docs/V1ResourceSliceList.md +docs/V1ResourceSliceSpec.md docs/V1ResourceStatus.md docs/V1Role.md docs/V1RoleBinding.md @@ -531,6 +580,8 @@ docs/V1VolumeAttachmentList.md docs/V1VolumeAttachmentSource.md docs/V1VolumeAttachmentSpec.md docs/V1VolumeAttachmentStatus.md +docs/V1VolumeAttributesClass.md +docs/V1VolumeAttributesClassList.md docs/V1VolumeDevice.md docs/V1VolumeError.md docs/V1VolumeMount.md @@ -563,6 +614,10 @@ docs/V1alpha1Mutation.md docs/V1alpha1NamedRuleWithOperations.md docs/V1alpha1ParamKind.md docs/V1alpha1ParamRef.md +docs/V1alpha1PodCertificateRequest.md +docs/V1alpha1PodCertificateRequestList.md +docs/V1alpha1PodCertificateRequestSpec.md +docs/V1alpha1PodCertificateRequestStatus.md docs/V1alpha1ServerStorageVersion.md docs/V1alpha1StorageVersion.md docs/V1alpha1StorageVersionCondition.md @@ -578,53 +633,21 @@ docs/V1alpha1VolumeAttributesClassList.md docs/V1alpha2LeaseCandidate.md docs/V1alpha2LeaseCandidateList.md docs/V1alpha2LeaseCandidateSpec.md -docs/V1alpha3AllocatedDeviceStatus.md -docs/V1alpha3AllocationResult.md -docs/V1alpha3BasicDevice.md docs/V1alpha3CELDeviceSelector.md -docs/V1alpha3Counter.md -docs/V1alpha3CounterSet.md -docs/V1alpha3Device.md -docs/V1alpha3DeviceAllocationConfiguration.md -docs/V1alpha3DeviceAllocationResult.md -docs/V1alpha3DeviceAttribute.md -docs/V1alpha3DeviceClaim.md -docs/V1alpha3DeviceClaimConfiguration.md -docs/V1alpha3DeviceClass.md -docs/V1alpha3DeviceClassConfiguration.md -docs/V1alpha3DeviceClassList.md -docs/V1alpha3DeviceClassSpec.md -docs/V1alpha3DeviceConstraint.md -docs/V1alpha3DeviceCounterConsumption.md -docs/V1alpha3DeviceRequest.md -docs/V1alpha3DeviceRequestAllocationResult.md docs/V1alpha3DeviceSelector.md -docs/V1alpha3DeviceSubRequest.md docs/V1alpha3DeviceTaint.md docs/V1alpha3DeviceTaintRule.md docs/V1alpha3DeviceTaintRuleList.md docs/V1alpha3DeviceTaintRuleSpec.md docs/V1alpha3DeviceTaintSelector.md -docs/V1alpha3DeviceToleration.md -docs/V1alpha3NetworkDeviceData.md -docs/V1alpha3OpaqueDeviceConfiguration.md -docs/V1alpha3ResourceClaim.md -docs/V1alpha3ResourceClaimConsumerReference.md -docs/V1alpha3ResourceClaimList.md -docs/V1alpha3ResourceClaimSpec.md -docs/V1alpha3ResourceClaimStatus.md -docs/V1alpha3ResourceClaimTemplate.md -docs/V1alpha3ResourceClaimTemplateList.md -docs/V1alpha3ResourceClaimTemplateSpec.md -docs/V1alpha3ResourcePool.md -docs/V1alpha3ResourceSlice.md -docs/V1alpha3ResourceSliceList.md -docs/V1alpha3ResourceSliceSpec.md docs/V1beta1AllocatedDeviceStatus.md docs/V1beta1AllocationResult.md -docs/V1beta1AuditAnnotation.md +docs/V1beta1ApplyConfiguration.md docs/V1beta1BasicDevice.md docs/V1beta1CELDeviceSelector.md +docs/V1beta1CapacityRequestPolicy.md +docs/V1beta1CapacityRequestPolicyRange.md +docs/V1beta1CapacityRequirements.md docs/V1beta1ClusterTrustBundle.md docs/V1beta1ClusterTrustBundleList.md docs/V1beta1ClusterTrustBundleSpec.md @@ -649,15 +672,22 @@ docs/V1beta1DeviceSelector.md docs/V1beta1DeviceSubRequest.md docs/V1beta1DeviceTaint.md docs/V1beta1DeviceToleration.md -docs/V1beta1ExpressionWarning.md docs/V1beta1IPAddress.md docs/V1beta1IPAddressList.md docs/V1beta1IPAddressSpec.md +docs/V1beta1JSONPatch.md docs/V1beta1LeaseCandidate.md docs/V1beta1LeaseCandidateList.md docs/V1beta1LeaseCandidateSpec.md docs/V1beta1MatchCondition.md docs/V1beta1MatchResources.md +docs/V1beta1MutatingAdmissionPolicy.md +docs/V1beta1MutatingAdmissionPolicyBinding.md +docs/V1beta1MutatingAdmissionPolicyBindingList.md +docs/V1beta1MutatingAdmissionPolicyBindingSpec.md +docs/V1beta1MutatingAdmissionPolicyList.md +docs/V1beta1MutatingAdmissionPolicySpec.md +docs/V1beta1Mutation.md docs/V1beta1NamedRuleWithOperations.md docs/V1beta1NetworkDeviceData.md docs/V1beta1OpaqueDeviceConfiguration.md @@ -680,21 +710,15 @@ docs/V1beta1ServiceCIDR.md docs/V1beta1ServiceCIDRList.md docs/V1beta1ServiceCIDRSpec.md docs/V1beta1ServiceCIDRStatus.md -docs/V1beta1TypeChecking.md -docs/V1beta1ValidatingAdmissionPolicy.md -docs/V1beta1ValidatingAdmissionPolicyBinding.md -docs/V1beta1ValidatingAdmissionPolicyBindingList.md -docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md -docs/V1beta1ValidatingAdmissionPolicyList.md -docs/V1beta1ValidatingAdmissionPolicySpec.md -docs/V1beta1ValidatingAdmissionPolicyStatus.md -docs/V1beta1Validation.md docs/V1beta1Variable.md docs/V1beta1VolumeAttributesClass.md docs/V1beta1VolumeAttributesClassList.md docs/V1beta2AllocatedDeviceStatus.md docs/V1beta2AllocationResult.md docs/V1beta2CELDeviceSelector.md +docs/V1beta2CapacityRequestPolicy.md +docs/V1beta2CapacityRequestPolicyRange.md +docs/V1beta2CapacityRequirements.md docs/V1beta2Counter.md docs/V1beta2CounterSet.md docs/V1beta2Device.md @@ -825,6 +849,7 @@ src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java +src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java @@ -853,12 +878,14 @@ src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java +src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java +src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java @@ -873,6 +900,8 @@ src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java +src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java @@ -881,6 +910,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSou src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1Binding.java src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java @@ -893,6 +923,9 @@ src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java +src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java +src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java @@ -920,9 +953,12 @@ src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.ja src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1Container.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java @@ -931,6 +967,8 @@ src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java +src/main/java/io/kubernetes/client/openapi/models/V1Counter.java +src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java @@ -962,6 +1000,25 @@ src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java +src/main/java/io/kubernetes/client/openapi/models/V1Device.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java +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/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/V1DeviceToleration.java src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java @@ -982,6 +1039,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/V1ExactDeviceRequest.java src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java @@ -989,6 +1047,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java +src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java @@ -1083,6 +1142,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java @@ -1114,6 +1174,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java @@ -1135,6 +1196,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1Pod.java 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/V1PodCondition.java src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java @@ -1142,6 +1204,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java @@ -1190,16 +1253,26 @@ src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.ja src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java -src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java src/main/java/io/kubernetes/client/openapi/models/V1Role.java src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java @@ -1312,6 +1385,8 @@ src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java +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/V1VolumeMount.java @@ -1344,6 +1419,10 @@ 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/V1alpha1PodCertificateRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.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 @@ -1359,53 +1438,21 @@ src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassL 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/V1alpha3AllocatedDeviceStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceData.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfiguration.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaim.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReference.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplate.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePool.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSlice.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpec.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/V1beta1AuditAnnotation.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java @@ -1430,15 +1477,22 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java +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/V1beta1OpaqueDeviceConfiguration.java @@ -1461,21 +1515,15 @@ 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/V1beta1TypeChecking.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicy.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 index 812e69e459..815f14bf91 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -b98d39bd0c9252a7d58b83a1c37cf663edace9dfb5fae6ebf13915d2ca505eab \ No newline at end of file +2f2212d4aefec847fa2b34c2eba9e8756af4af17b5a5909e50d648eb43c49e15 \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index 7f7a659b14..d4761521d6 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.33 + version: release-1.34 servers: - url: / security: @@ -25564,10 +25564,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies: + /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies: delete: - description: delete collection of ValidatingAdmissionPolicy - operationId: deleteCollectionValidatingAdmissionPolicy + description: delete collection of MutatingAdmissionPolicy + operationId: deleteCollectionMutatingAdmissionPolicy 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\ @@ -25725,7 +25725,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -25735,8 +25735,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ValidatingAdmissionPolicy - operationId: listValidatingAdmissionPolicy + description: list or watch objects of kind MutatingAdmissionPolicy + operationId: listMutatingAdmissionPolicy 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\ @@ -25834,25 +25834,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' description: OK "401": content: {} @@ -25862,7 +25862,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-accepts: - application/cbor @@ -25873,8 +25873,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ValidatingAdmissionPolicy - operationId: createValidatingAdmissionPolicy + description: create a MutatingAdmissionPolicy + operationId: createMutatingAdmissionPolicy 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\ @@ -25919,53 +25919,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' description: Accepted "401": content: {} @@ -25975,7 +25975,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -25984,12 +25984,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}: + /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}: delete: - description: delete a ValidatingAdmissionPolicy - operationId: deleteValidatingAdmissionPolicy + description: delete a MutatingAdmissionPolicy + operationId: deleteMutatingAdmissionPolicy parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -26098,270 +26098,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - 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 ValidatingAdmissionPolicy - operationId: readValidatingAdmissionPolicy - parameters: - - description: name of the ValidatingAdmissionPolicy - 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/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified ValidatingAdmissionPolicy - operationId: patchValidatingAdmissionPolicy - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - 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 ValidatingAdmissionPolicy - operationId: replaceValidatingAdmissionPolicy - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -26370,12 +26107,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status: get: - description: read status of the specified ValidatingAdmissionPolicy - operationId: readValidatingAdmissionPolicyStatus + description: read the specified MutatingAdmissionPolicy + operationId: readMutatingAdmissionPolicy parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -26393,16 +26129,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' description: OK "401": content: {} @@ -26412,7 +26148,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-accepts: - application/cbor @@ -26420,10 +26156,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ValidatingAdmissionPolicy - operationId: patchValidatingAdmissionPolicyStatus + description: partially update the specified MutatingAdmissionPolicy + operationId: patchMutatingAdmissionPolicy parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -26488,31 +26224,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' description: Created "401": content: {} @@ -26522,7 +26258,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -26532,10 +26268,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ValidatingAdmissionPolicy - operationId: replaceValidatingAdmissionPolicyStatus + description: replace the specified MutatingAdmissionPolicy + operationId: replaceMutatingAdmissionPolicy parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -26584,38 +26320,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' description: Created "401": content: {} @@ -26625,7 +26361,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -26634,10 +26370,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings: + /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings: delete: - description: delete collection of ValidatingAdmissionPolicyBinding - operationId: deleteCollectionValidatingAdmissionPolicyBinding + description: delete collection of MutatingAdmissionPolicyBinding + operationId: deleteCollectionMutatingAdmissionPolicyBinding 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\ @@ -26795,7 +26531,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -26805,8 +26541,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ValidatingAdmissionPolicyBinding - operationId: listValidatingAdmissionPolicyBinding + description: list or watch objects of kind MutatingAdmissionPolicyBinding + operationId: listMutatingAdmissionPolicyBinding 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\ @@ -26904,25 +26640,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' description: OK "401": content: {} @@ -26932,7 +26668,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-accepts: - application/cbor @@ -26943,8 +26679,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ValidatingAdmissionPolicyBinding - operationId: createValidatingAdmissionPolicyBinding + description: create a MutatingAdmissionPolicyBinding + operationId: createMutatingAdmissionPolicyBinding 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\ @@ -26989,53 +26725,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' description: Accepted "401": content: {} @@ -27045,7 +26781,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -27054,12 +26790,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}: + /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}: delete: - description: delete a ValidatingAdmissionPolicyBinding - operationId: deleteValidatingAdmissionPolicyBinding + description: delete a MutatingAdmissionPolicyBinding + operationId: deleteMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -27168,7 +26904,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -27178,10 +26914,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ValidatingAdmissionPolicyBinding - operationId: readValidatingAdmissionPolicyBinding + description: read the specified MutatingAdmissionPolicyBinding + operationId: readMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -27199,16 +26935,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' description: OK "401": content: {} @@ -27218,7 +26954,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-accepts: - application/cbor @@ -27226,10 +26962,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ValidatingAdmissionPolicyBinding - operationId: patchValidatingAdmissionPolicyBinding + description: partially update the specified MutatingAdmissionPolicyBinding + operationId: patchMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -27294,31 +27030,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' description: Created "401": content: {} @@ -27328,7 +27064,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -27338,10 +27074,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ValidatingAdmissionPolicyBinding - operationId: replaceValidatingAdmissionPolicyBinding + description: replace the specified MutatingAdmissionPolicyBinding + operationId: replaceMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -27390,38 +27126,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' description: Created "401": content: {} @@ -27431,7 +27167,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -27440,10 +27176,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies: {} - /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies/{name}: {} - /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings: {} - /apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings/{name}: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies/{name}: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings/{name}: {} /apis/apiextensions.k8s.io/: get: description: get information of a group @@ -44934,43 +44670,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/v1alpha1/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)." @@ -45123,12 +44833,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45137,9 +44847,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)." @@ -45236,36 +44952,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -45275,9 +44991,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)." @@ -45321,64 +45043,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45386,17 +45108,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}: + /apis/certificates.k8s.io/v1alpha1/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)." @@ -45496,12 +45224,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45510,15 +45238,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)." @@ -45531,151 +45265,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1alpha1 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: "If 'true', then the output is 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.ClusterTrustBundle' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - 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 ClusterTrustBundle - operationId: replaceClusterTrustBundle - parameters: - - description: name of the ClusterTrustBundle + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -45696,7 +45324,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: @@ -45718,53 +45348,169 @@ 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/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - certificates_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified 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/v1alpha1.PodCertificateRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45772,68 +45518,292 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles: {} - /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}: {} - /apis/coordination.k8s.io/: + /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status: get: - description: get information of a group - operationId: getAPIGroup + 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.APIGroup' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' description: OK "401": content: {} description: Unauthorized tags: - - coordination + - certificates_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1alpha1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources + 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.APIResourceList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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/coordination.k8s.io/v1/leases: + 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/v1alpha1.PodCertificateRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + 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/certificates.k8s.io/v1alpha1/podcertificaterequests: get: - description: list or watch objects of kind Lease - operationId: listLeaseForAllNamespaces + 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\ @@ -45931,36 +45901,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/cbor: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -45969,17 +45939,46 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: + /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}: {} + /apis/certificates.k8s.io/v1alpha1/watch/namespaces/{namespace}/podcertificaterequests: {} + /apis/certificates.k8s.io/v1alpha1/watch/namespaces/{namespace}/podcertificaterequests/{name}: {} + /apis/certificates.k8s.io/v1alpha1/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 Lease - operationId: deleteCollectionNamespacedLease + description: delete collection of ClusterTrustBundle + operationId: deleteCollectionClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46132,12 +46131,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46146,15 +46145,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Lease - operationId: listNamespacedLease + description: list or watch objects of kind ClusterTrustBundle + operationId: listClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46251,36 +46244,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/cbor: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -46290,15 +46283,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Lease - operationId: createNamespacedLease + description: create a ClusterTrustBundle + operationId: createClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46342,64 +46329,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46407,23 +46394,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: + /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}: delete: - description: delete a Lease - operationId: deleteNamespacedLease + description: delete a ClusterTrustBundle + operationId: deleteClusterTrustBundle parameters: - - description: name of the Lease + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46523,12 +46504,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46537,21 +46518,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Lease - operationId: readNamespacedLease + description: read the specified ClusterTrustBundle + operationId: readClusterTrustBundle parameters: - - description: name of the Lease + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46564,48 +46539,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Lease - operationId: patchNamespacedLease + description: partially update the specified ClusterTrustBundle + operationId: patchClusterTrustBundle parameters: - - description: name of the Lease + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46665,42 +46634,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46709,21 +46678,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Lease - operationId: replaceNamespacedLease + description: replace the specified ClusterTrustBundle + operationId: replaceClusterTrustBundle parameters: - - description: name of the Lease + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46767,49 +46730,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -46817,10 +46780,35 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/watch/leases: {} - /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases: {} - /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}: {} - /apis/coordination.k8s.io/v1alpha2/: + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}: {} + /apis/coordination.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - coordination + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/coordination.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -46844,16 +46832,16 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1alpha2/leasecandidates: + /apis/coordination.k8s.io/v1/leases: get: - description: list or watch objects of kind LeaseCandidate - operationId: listLeaseCandidateForAllNamespaces + description: list or watch objects of kind Lease + operationId: listLeaseForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -46951,36 +46939,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -46989,10 +46977,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: delete: - description: delete collection of LeaseCandidate - operationId: deleteCollectionNamespacedLeaseCandidate + description: delete collection of Lease + operationId: deleteCollectionNamespacedLease parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -47152,12 +47140,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47166,8 +47154,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind LeaseCandidate - operationId: listNamespacedLeaseCandidate + description: list or watch objects of kind Lease + operationId: listNamespacedLease parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -47271,36 +47259,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: '#/components/schemas/v1.LeaseList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -47310,8 +47298,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a LeaseCandidate - operationId: createNamespacedLeaseCandidate + description: create a Lease + operationId: createNamespacedLease parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -47362,64 +47350,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47427,12 +47415,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: delete: - description: delete a LeaseCandidate - operationId: deleteNamespacedLeaseCandidate + description: delete a Lease + operationId: deleteNamespacedLease parameters: - - description: name of the LeaseCandidate + - description: name of the Lease in: path name: name required: true @@ -47543,12 +47531,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47557,10 +47545,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified LeaseCandidate - operationId: readNamespacedLeaseCandidate + description: read the specified Lease + operationId: readNamespacedLease parameters: - - description: name of the LeaseCandidate + - description: name of the Lease in: path name: name required: true @@ -47584,37 +47572,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified LeaseCandidate - operationId: patchNamespacedLeaseCandidate + description: partially update the specified Lease + operationId: patchNamespacedLease parameters: - - description: name of the LeaseCandidate + - description: name of the Lease in: path name: name required: true @@ -47685,42 +47673,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47729,10 +47717,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified LeaseCandidate - operationId: replaceNamespacedLeaseCandidate + description: replace the specified Lease + operationId: replaceNamespacedLease parameters: - - description: name of the LeaseCandidate + - description: name of the Lease in: path name: name required: true @@ -47787,49 +47775,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: '#/components/schemas/v1.Lease' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -47837,10 +47825,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1alpha2/watch/leasecandidates: {} - /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates: {} - /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}: {} - /apis/coordination.k8s.io/v1beta1/: + /apis/coordination.k8s.io/v1/watch/leases: {} + /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases: {} + /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}: {} + /apis/coordination.k8s.io/v1alpha2/: get: description: get available resources operationId: getAPIResources @@ -47864,13 +47852,13 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1beta1/leasecandidates: + /apis/coordination.k8s.io/v1alpha2/leasecandidates: get: description: list or watch objects of kind LeaseCandidate operationId: listLeaseCandidateForAllNamespaces @@ -47971,36 +47959,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: group: coordination.k8s.io kind: LeaseCandidate - version: v1beta1 + version: v1alpha2 x-accepts: - application/cbor - application/cbor-seq @@ -48009,7 +47997,7 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates: delete: description: delete collection of LeaseCandidate operationId: deleteCollectionNamespacedLeaseCandidate @@ -48172,12 +48160,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: coordination.k8s.io kind: LeaseCandidate - version: v1beta1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48291,36 +48279,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: group: coordination.k8s.io kind: LeaseCandidate - version: v1beta1 + version: v1alpha2 x-accepts: - application/cbor - application/cbor-seq @@ -48382,64 +48370,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: post x-kubernetes-group-version-kind: group: coordination.k8s.io kind: LeaseCandidate - version: v1beta1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48447,7 +48435,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}: delete: description: delete a LeaseCandidate operationId: deleteNamespacedLeaseCandidate @@ -48563,12 +48551,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: coordination.k8s.io kind: LeaseCandidate - version: v1beta1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48604,27 +48592,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: get x-kubernetes-group-version-kind: group: coordination.k8s.io kind: LeaseCandidate - version: v1beta1 + version: v1alpha2 x-accepts: - application/cbor - application/json @@ -48705,42 +48693,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: coordination.k8s.io kind: LeaseCandidate - version: v1beta1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48807,49 +48795,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: '#/components/schemas/v1alpha2.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: put x-kubernetes-group-version-kind: group: coordination.k8s.io kind: LeaseCandidate - version: v1beta1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48857,36 +48845,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1beta1/watch/leasecandidates: {} - /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates: {} - /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}: {} - /apis/discovery.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - discovery - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/discovery.k8s.io/v1/: + /apis/coordination.k8s.io/v1alpha2/watch/leasecandidates: {} + /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates: {} + /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}: {} + /apis/coordination.k8s.io/v1beta1/: get: description: get available resources operationId: getAPIResources @@ -48910,16 +48872,16 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/endpointslices: + /apis/coordination.k8s.io/v1beta1/leasecandidates: get: - description: list or watch objects of kind EndpointSlice - operationId: listEndpointSliceForAllNamespaces + description: list or watch objects of kind LeaseCandidate + operationId: listLeaseCandidateForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -49017,36 +48979,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -49055,10 +49017,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: + /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates: delete: - description: delete collection of EndpointSlice - operationId: deleteCollectionNamespacedEndpointSlice + description: delete collection of LeaseCandidate + operationId: deleteCollectionNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -49218,12 +49180,12 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49232,8 +49194,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind EndpointSlice - operationId: listNamespacedEndpointSlice + description: list or watch objects of kind LeaseCandidate + operationId: listNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -49337,36 +49299,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.LeaseCandidateList' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -49376,8 +49338,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an EndpointSlice - operationId: createNamespacedEndpointSlice + description: create a LeaseCandidate + operationId: createNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -49428,64 +49390,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Accepted "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49493,12 +49455,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: + /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}: delete: - description: delete an EndpointSlice - operationId: deleteNamespacedEndpointSlice + description: delete a LeaseCandidate + operationId: deleteNamespacedLeaseCandidate parameters: - - description: name of the EndpointSlice + - description: name of the LeaseCandidate in: path name: name required: true @@ -49609,12 +49571,12 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49623,10 +49585,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified EndpointSlice - operationId: readNamespacedEndpointSlice + description: read the specified LeaseCandidate + operationId: readNamespacedLeaseCandidate parameters: - - description: name of the EndpointSlice + - description: name of the LeaseCandidate in: path name: name required: true @@ -49650,37 +49612,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified EndpointSlice - operationId: patchNamespacedEndpointSlice + description: partially update the specified LeaseCandidate + operationId: patchNamespacedLeaseCandidate parameters: - - description: name of the EndpointSlice + - description: name of the LeaseCandidate in: path name: name required: true @@ -49751,42 +49713,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49795,10 +49757,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified EndpointSlice - operationId: replaceNamespacedEndpointSlice + description: replace the specified LeaseCandidate + operationId: replaceNamespacedLeaseCandidate parameters: - - description: name of the EndpointSlice + - description: name of the LeaseCandidate in: path name: name required: true @@ -49853,49 +49815,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.LeaseCandidate' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49903,10 +49865,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/watch/endpointslices: {} - /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices: {} - /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}: {} - /apis/events.k8s.io/: + /apis/coordination.k8s.io/v1beta1/watch/leasecandidates: {} + /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates: {} + /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}: {} + /apis/discovery.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -49927,12 +49889,12 @@ paths: content: {} description: Unauthorized tags: - - events + - discovery x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/: + /apis/discovery.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -49956,16 +49918,16 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/events: + /apis/discovery.k8s.io/v1/endpointslices: get: - description: list or watch objects of kind Event - operationId: listEventForAllNamespaces + description: list or watch objects of kind EndpointSlice + operationId: listEndpointSliceForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -50063,35 +50025,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/cbor: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/cbor-seq: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: - application/cbor @@ -50101,10 +50063,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/events.k8s.io/v1/namespaces/{namespace}/events: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: delete: - description: delete collection of Event - operationId: deleteCollectionNamespacedEvent + description: delete collection of EndpointSlice + operationId: deleteCollectionNamespacedEndpointSlice parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -50264,11 +50226,11 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50278,8 +50240,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Event - operationId: listNamespacedEvent + description: list or watch objects of kind EndpointSlice + operationId: listNamespacedEndpointSlice parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -50383,35 +50345,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/cbor: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/cbor-seq: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1.EndpointSliceList' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: - application/cbor @@ -50422,8 +50384,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an Event - operationId: createNamespacedEvent + description: create an EndpointSlice + operationId: createNamespacedEndpointSlice parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -50474,63 +50436,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50539,12 +50501,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: delete: - description: delete an Event - operationId: deleteNamespacedEvent + description: delete an EndpointSlice + operationId: deleteNamespacedEndpointSlice parameters: - - description: name of the Event + - description: name of the EndpointSlice in: path name: name required: true @@ -50655,11 +50617,11 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50669,10 +50631,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Event - operationId: readNamespacedEvent + description: read the specified EndpointSlice + operationId: readNamespacedEndpointSlice parameters: - - description: name of the Event + - description: name of the EndpointSlice in: path name: name required: true @@ -50696,26 +50658,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: - application/cbor @@ -50723,10 +50685,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Event - operationId: patchNamespacedEvent + description: partially update the specified EndpointSlice + operationId: patchNamespacedEndpointSlice parameters: - - description: name of the Event + - description: name of the EndpointSlice in: path name: name required: true @@ -50797,41 +50759,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50841,10 +50803,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Event - operationId: replaceNamespacedEvent + description: replace the specified EndpointSlice + operationId: replaceNamespacedEndpointSlice parameters: - - description: name of the Event + - description: name of the EndpointSlice in: path name: name required: true @@ -50899,48 +50861,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50949,10 +50911,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/watch/events: {} - /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events: {} - /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/: + /apis/discovery.k8s.io/v1/watch/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}: {} + /apis/events.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -50973,12 +50935,12 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver + - events x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/: + /apis/events.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -51002,24 +50964,27 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas: - delete: - description: delete collection of FlowSchema - operationId: deleteCollectionFlowSchema + /apis/events.k8s.io/v1/events: + get: + description: list or watch objects of kind Event + operationId: listEventForAllNamespaces 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". @@ -51028,44 +50993,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 @@ -51080,23 +51013,197 @@ 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: "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/events.v1.EventList' + application/yaml: + schema: + $ref: '#/components/schemas/events.v1.EventList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/events.v1.EventList' + application/cbor: + schema: + $ref: '#/components/schemas/events.v1.EventList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/events.v1.EventList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/events.v1.EventList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/events.v1.EventList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - events_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: events.k8s.io + kind: Event + 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/events.k8s.io/v1/namespaces/{namespace}/events: + delete: + description: delete collection of Event + operationId: deleteCollectionNamespacedEvent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + 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: |- @@ -51165,11 +51272,11 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -51179,9 +51286,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind FlowSchema - operationId: listFlowSchema + description: list or watch objects of kind Event + operationId: listNamespacedEvent parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51278,35 +51391,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/events.v1.EventList' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/events.v1.EventList' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/events.v1.EventList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/events.v1.EventList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: '#/components/schemas/events.v1.EventList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: events.k8s.io + kind: Event version: v1 x-accepts: - application/cbor @@ -51317,9 +51430,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a FlowSchema - operationId: createFlowSchema + description: create an Event + operationId: createNamespacedEvent parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51363,63 +51482,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -51428,17 +51547,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}: + /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: delete: - description: delete a FlowSchema - operationId: deleteFlowSchema + description: delete an Event + operationId: deleteNamespacedEvent parameters: - - description: name of the FlowSchema + - description: name of the Event in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51538,11 +51663,11 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -51552,15 +51677,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified FlowSchema - operationId: readFlowSchema + description: read the specified Event + operationId: readNamespacedEvent parameters: - - description: name of the FlowSchema + - description: name of the Event in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51573,26 +51704,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: events.k8s.io + kind: Event version: v1 x-accepts: - application/cbor @@ -51600,15 +51731,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified FlowSchema - operationId: patchFlowSchema + description: partially update the specified Event + operationId: patchNamespacedEvent parameters: - - description: name of the FlowSchema + - description: name of the Event in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51668,41 +51805,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -51712,15 +51849,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified FlowSchema - operationId: replaceFlowSchema + description: replace the specified Event + operationId: replaceNamespacedEvent parameters: - - description: name of the FlowSchema + - description: name of the Event in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51764,48 +51907,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/events.v1.Event' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -51814,274 +51957,69 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status: + /apis/events.k8s.io/v1/watch/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/: get: - description: read status of the specified FlowSchema - operationId: readFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/yaml: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/cbor: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified FlowSchema - operationId: patchFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/cbor: - schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIGroup' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/yaml: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/cbor: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json + - flowcontrolApiserver x-accepts: - - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified FlowSchema - operationId: replaceFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - 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.FlowSchema' - required: true + /apis/flowcontrol.apiserver.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: '#/components/schemas/v1.APIResourceList' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/yaml: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/cbor: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: Created "401": content: {} description: Unauthorized tags: - flowcontrolApiserver_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas: delete: - description: delete collection of PriorityLevelConfiguration - operationId: deleteCollectionPriorityLevelConfiguration + description: delete collection of FlowSchema + operationId: deleteCollectionFlowSchema parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -52239,7 +52177,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52249,8 +52187,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PriorityLevelConfiguration - operationId: listPriorityLevelConfiguration + description: list or watch objects of kind FlowSchema + operationId: listFlowSchema parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -52348,25 +52286,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.FlowSchemaList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.FlowSchemaList' description: OK "401": content: {} @@ -52376,7 +52314,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-accepts: - application/cbor @@ -52387,8 +52325,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PriorityLevelConfiguration - operationId: createPriorityLevelConfiguration + description: create a FlowSchema + operationId: createFlowSchema parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -52433,53 +52371,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: Accepted "401": content: {} @@ -52489,7 +52427,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52498,12 +52436,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}: delete: - description: delete a PriorityLevelConfiguration - operationId: deletePriorityLevelConfiguration + description: delete a FlowSchema + operationId: deleteFlowSchema parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -52612,7 +52550,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52622,10 +52560,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfiguration + description: read the specified FlowSchema + operationId: readFlowSchema parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -52643,16 +52581,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "401": content: {} @@ -52662,7 +52600,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-accepts: - application/cbor @@ -52670,10 +52608,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfiguration + description: partially update the specified FlowSchema + operationId: patchFlowSchema parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -52738,31 +52676,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} @@ -52772,7 +52710,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52782,10 +52720,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfiguration + description: replace the specified FlowSchema + operationId: replaceFlowSchema parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -52834,38 +52772,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} @@ -52875,7 +52813,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52884,12 +52822,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status: get: - description: read status of the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfigurationStatus + description: read status of the specified FlowSchema + operationId: readFlowSchemaStatus parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -52907,16 +52845,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "401": content: {} @@ -52926,7 +52864,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-accepts: - application/cbor @@ -52934,10 +52872,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfigurationStatus + description: partially update status of the specified FlowSchema + operationId: patchFlowSchemaStatus parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -53002,31 +52940,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} @@ -53036,7 +52974,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -53046,10 +52984,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfigurationStatus + description: replace status of the specified FlowSchema + operationId: replaceFlowSchemaStatus parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -53098,38 +53036,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.FlowSchema' description: Created "401": content: {} @@ -53139,7 +53077,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -53148,70 +53086,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas: {} - /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations: {} - /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}: {} - /apis/internal.apiserver.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - internalApiserver - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - internalApiserver_v1alpha1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations: delete: - description: delete collection of StorageVersion - operationId: deleteCollectionStorageVersion + description: delete collection of PriorityLevelConfiguration + operationId: deleteCollectionPriorityLevelConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -53365,12 +53243,12 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -53379,8 +53257,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind StorageVersion - operationId: listStorageVersion + description: list or watch objects of kind PriorityLevelConfiguration + operationId: listPriorityLevelConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -53478,36 +53356,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -53517,8 +53395,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageVersion - operationId: createStorageVersion + description: create a PriorityLevelConfiguration + operationId: createPriorityLevelConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -53563,64 +53441,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Accepted "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -53628,12 +53506,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}: delete: - description: delete a StorageVersion - operationId: deleteStorageVersion + description: delete a PriorityLevelConfiguration + operationId: deletePriorityLevelConfiguration parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -53738,12 +53616,12 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -53752,10 +53630,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageVersion - operationId: readStorageVersion + description: read the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfiguration parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -53773,37 +53651,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageVersion - operationId: patchStorageVersion + description: partially update the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfiguration parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -53868,42 +53746,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -53912,10 +53790,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageVersion - operationId: replaceStorageVersion + description: replace the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfiguration parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -53964,49 +53842,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54014,12 +53892,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status: get: - description: read status of the specified StorageVersion - operationId: readStorageVersionStatus + description: read status of the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfigurationStatus parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -54037,37 +53915,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified StorageVersion - operationId: patchStorageVersionStatus + description: partially update status of the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfigurationStatus parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -54132,42 +54010,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54176,10 +54054,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified StorageVersion - operationId: replaceStorageVersionStatus + description: replace status of the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfigurationStatus parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -54228,49 +54106,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54278,9 +54156,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} - /apis/networking.k8s.io/: + /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}: {} + /apis/internal.apiserver.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -54301,12 +54181,12 @@ paths: content: {} description: Unauthorized tags: - - networking + - internalApiserver x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/: + /apis/internal.apiserver.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -54330,16 +54210,16 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingressclasses: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: delete: - description: delete collection of IngressClass - operationId: deleteCollectionIngressClass + description: delete collection of StorageVersion + operationId: deleteCollectionStorageVersion parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -54493,12 +54373,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54507,8 +54387,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind IngressClass - operationId: listIngressClass + description: list or watch objects of kind StorageVersion + operationId: listStorageVersion 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\ @@ -54606,36 +54486,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -54645,8 +54525,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IngressClass - operationId: createIngressClass + description: create a StorageVersion + operationId: createStorageVersion 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\ @@ -54691,64 +54571,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54756,12 +54636,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingressclasses/{name}: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: delete: - description: delete an IngressClass - operationId: deleteIngressClass + description: delete a StorageVersion + operationId: deleteStorageVersion parameters: - - description: name of the IngressClass + - description: name of the StorageVersion in: path name: name required: true @@ -54866,12 +54746,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54880,10 +54760,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IngressClass - operationId: readIngressClass + description: read the specified StorageVersion + operationId: readStorageVersion parameters: - - description: name of the IngressClass + - description: name of the StorageVersion in: path name: name required: true @@ -54901,37 +54781,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IngressClass - operationId: patchIngressClass + description: partially update the specified StorageVersion + operationId: patchStorageVersion parameters: - - description: name of the IngressClass + - description: name of the StorageVersion in: path name: name required: true @@ -54996,42 +54876,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -55040,10 +54920,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IngressClass - operationId: replaceIngressClass + description: replace the specified StorageVersion + operationId: replaceStorageVersion parameters: - - description: name of the IngressClass + - description: name of the StorageVersion in: path name: name required: true @@ -55092,49 +54972,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -55142,49 +55022,177 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingresses: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: get: - description: list or watch objects of kind Ingress - operationId: listIngressForAllNamespaces + description: read status of the specified StorageVersion + operationId: readStorageVersionStatus parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, 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 StorageVersion + 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: allowWatchBookmarks + name: pretty 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. + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified StorageVersion + operationId: patchStorageVersionStatus + parameters: + - description: name of the StorageVersion + 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: continue + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. 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: fieldSelector + name: dryRun schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. 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: labelSelector + name: fieldManager 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. + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped 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: limit + name: fieldValidation schema: - type: integer + 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.StorageVersion' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: internal.apiserver.k8s.io + kind: StorageVersion + 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 StorageVersion + operationId: replaceStorageVersionStatus + parameters: + - description: name of the StorageVersion + 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)." @@ -55192,99 +55200,154 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressList' - application/json;stream=watch: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1.IngressList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' - application/cbor-seq: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1alpha1.StorageVersion' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: internal.apiserver.k8s.io + kind: StorageVersion + 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/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} + /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} + /apis/networking.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/networking.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - networking_v1 - x-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: + /apis/networking.k8s.io/v1/ingressclasses: delete: - description: delete collection of IPAddress - operationId: deleteCollectionIPAddress + description: delete collection of IngressClass + operationId: deleteCollectionIngressClass 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\ @@ -55442,7 +55505,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55452,8 +55515,8 @@ 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 IngressClass + operationId: listIngressClass 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\ @@ -55551,25 +55614,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: '#/components/schemas/v1.IngressClassList' description: OK "401": content: {} @@ -55579,7 +55642,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: IngressClass version: v1 x-accepts: - application/cbor @@ -55590,8 +55653,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IPAddress - operationId: createIPAddress + 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\ @@ -55636,53 +55699,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' description: Accepted "401": content: {} @@ -55692,7 +55755,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55701,12 +55764,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ipaddresses/{name}: + /apis/networking.k8s.io/v1/ingressclasses/{name}: delete: - description: delete an IPAddress - operationId: deleteIPAddress + description: delete an IngressClass + operationId: deleteIngressClass parameters: - - description: name of the IPAddress + - description: name of the IngressClass in: path name: name required: true @@ -55815,7 +55878,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55825,10 +55888,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IPAddress - operationId: readIPAddress + description: read the specified IngressClass + operationId: readIngressClass parameters: - - description: name of the IPAddress + - description: name of the IngressClass in: path name: name required: true @@ -55846,16 +55909,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' description: OK "401": content: {} @@ -55865,7 +55928,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: IngressClass version: v1 x-accepts: - application/cbor @@ -55873,10 +55936,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IPAddress - operationId: patchIPAddress + description: partially update the specified IngressClass + operationId: patchIngressClass parameters: - - description: name of the IPAddress + - description: name of the IngressClass in: path name: name required: true @@ -55941,31 +56004,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' description: Created "401": content: {} @@ -55975,7 +56038,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55985,10 +56048,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IPAddress - operationId: replaceIPAddress + description: replace the specified IngressClass + operationId: replaceIngressClass parameters: - - description: name of the IPAddress + - description: name of the IngressClass in: path name: name required: true @@ -56037,38 +56100,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: '#/components/schemas/v1.IngressClass' description: Created "401": content: {} @@ -56078,7 +56141,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56087,17 +56150,150 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: - delete: - description: delete collection of Ingress - operationId: deleteCollectionNamespacedIngress + /apis/networking.k8s.io/v1/ingresses: + get: + description: list or watch objects of kind Ingress + operationId: listIngressForAllNamespaces 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 + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.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)." @@ -56254,7 +56450,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56264,15 +56460,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Ingress - operationId: listNamespacedIngress + description: list or watch objects of kind IPAddress + operationId: listIPAddress 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)." @@ -56369,25 +56559,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.IPAddressList' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.IPAddressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.IPAddressList' application/cbor: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.IPAddressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.IPAddressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.IPAddressList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.IPAddressList' description: OK "401": content: {} @@ -56397,7 +56587,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IPAddress version: v1 x-accepts: - application/cbor @@ -56408,15 +56598,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an Ingress - operationId: createNamespacedIngress + description: create an IPAddress + operationId: createIPAddress 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)." @@ -56460,53 +56644,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' description: Accepted "401": content: {} @@ -56516,7 +56700,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56525,23 +56709,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: + /apis/networking.k8s.io/v1/ipaddresses/{name}: delete: - description: delete an Ingress - operationId: deleteNamespacedIngress + description: delete an IPAddress + operationId: deleteIPAddress parameters: - - description: name of the Ingress + - description: name of the IPAddress 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)." @@ -56645,288 +56823,7 @@ paths: x-kubernetes-action: delete 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 - get: - description: read the specified Ingress - operationId: readNamespacedIngress - 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 the specified Ingress - operationId: patchNamespacedIngress - 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 the specified Ingress - operationId: replaceNamespacedIngress - 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 + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56935,23 +56832,16 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: get: - description: read status of the specified Ingress - operationId: readNamespacedIngressStatus + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the Ingress + - description: name of the IPAddress 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)." @@ -56964,16 +56854,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' description: OK "401": content: {} @@ -56983,7 +56873,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IPAddress version: v1 x-accepts: - application/cbor @@ -56991,21 +56881,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified Ingress - operationId: patchNamespacedIngressStatus + description: partially update the specified IPAddress + operationId: patchIPAddress parameters: - - description: name of the Ingress + - description: name of the IPAddress 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)." @@ -57065,31 +56949,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' description: Created "401": content: {} @@ -57099,7 +56983,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -57109,21 +56993,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified Ingress - operationId: replaceNamespacedIngressStatus + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the Ingress + - description: name of the IPAddress 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)." @@ -57167,38 +57045,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.IPAddress' description: Created "401": content: {} @@ -57208,7 +57086,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -57217,10 +57095,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: delete: - description: delete collection of NetworkPolicy - operationId: deleteCollectionNamespacedNetworkPolicy + description: delete collection of Ingress + operationId: deleteCollectionNamespacedIngress parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -57384,7 +57262,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -57394,8 +57272,8 @@ 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 Ingress + operationId: listNamespacedIngress parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -57499,25 +57377,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: {} @@ -57527,7 +57405,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 @@ -57538,8 +57416,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a NetworkPolicy - operationId: createNamespacedNetworkPolicy + description: create an Ingress + operationId: createNamespacedIngress parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -57590,53 +57468,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' description: Accepted "401": content: {} @@ -57646,7 +57524,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -57655,12 +57533,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: delete: - description: delete a NetworkPolicy - operationId: deleteNamespacedNetworkPolicy + description: delete an Ingress + operationId: deleteNamespacedIngress parameters: - - description: name of the NetworkPolicy + - description: name of the Ingress in: path name: name required: true @@ -57775,7 +57653,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -57785,10 +57663,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified NetworkPolicy - operationId: readNamespacedNetworkPolicy + description: read the specified Ingress + operationId: readNamespacedIngress parameters: - - description: name of the NetworkPolicy + - description: name of the Ingress in: path name: name required: true @@ -57812,16 +57690,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' description: OK "401": content: {} @@ -57831,7 +57709,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 x-accepts: - application/cbor @@ -57839,10 +57717,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified NetworkPolicy - operationId: patchNamespacedNetworkPolicy + description: partially update the specified Ingress + operationId: patchNamespacedIngress parameters: - - description: name of the NetworkPolicy + - description: name of the Ingress in: path name: name required: true @@ -57913,31 +57791,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} @@ -57947,7 +57825,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -57957,10 +57835,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified NetworkPolicy - operationId: replaceNamespacedNetworkPolicy + description: replace the specified Ingress + operationId: replaceNamespacedIngress parameters: - - description: name of the NetworkPolicy + - description: name of the Ingress in: path name: name required: true @@ -58015,38 +57893,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} @@ -58056,7 +57934,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58065,49 +57943,77 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/networkpolicies: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: get: - description: list or watch objects of kind NetworkPolicy - operationId: listNetworkPolicyForAllNamespaces + description: read status of the specified Ingress + operationId: readNamespacedIngressStatus parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, 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 Ingress + in: path + name: name + required: true schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: fieldSelector + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.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: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked 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)." @@ -58115,100 +58021,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. + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: sendInitialEvents + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force schema: type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.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: timeoutSeconds + name: pretty schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: watch + name: dryRun schema: - type: boolean + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Ingress' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.Ingress' application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - application/json;stream=watch: + $ref: '#/components/schemas/v1.Ingress' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.Ingress' + application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - application/cbor-seq: + $ref: '#/components/schemas/v1.Ingress' + application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - description: OK + $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: list + x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/networking.k8s.io/v1/servicecidrs: + /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)." @@ -58365,7 +58392,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58375,9 +58402,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)." @@ -58474,25 +58507,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: '#/components/schemas/v1.NetworkPolicyList' description: OK "401": content: {} @@ -58502,7 +58535,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy version: v1 x-accepts: - application/cbor @@ -58513,9 +58546,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)." @@ -58559,53 +58598,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Accepted "401": content: {} @@ -58615,7 +58654,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58624,17 +58663,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/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)." @@ -58738,7 +58783,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58748,15 +58793,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)." @@ -58769,16 +58820,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "401": content: {} @@ -58788,7 +58839,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy version: v1 x-accepts: - application/cbor @@ -58796,15 +58847,21 @@ paths: - 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)." @@ -58864,31 +58921,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} @@ -58898,7 +58955,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -58908,15 +58965,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)." @@ -58960,38 +59023,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} @@ -59001,7 +59064,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -59010,177 +59073,49 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/servicecidrs/{name}/status: + /apis/networking.k8s.io/v1/networkpolicies: 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 + description: list or watch objects of kind NetworkPolicy + operationId: listNetworkPolicyForAllNamespaces 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)." + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, 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 - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + 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: dryRun + name: continue 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: A selector to restrict the list of returned objects by their + labels. Defaults to everything. in: query - name: fieldValidation + name: labelSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: force - 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 + name: limit schema: - type: string + 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)." @@ -59188,138 +59123,99 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: dryRun + name: resourceVersion schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.ServiceCIDR' - required: true + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.ServiceCIDR' - application/yaml: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' - application/cbor: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' - description: Created + $ref: '#/components/schemas/v1.NetworkPolicyList' + description: OK "401": content: {} description: Unauthorized tags: - networking_v1 - x-kubernetes-action: put + x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy 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/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/networking.k8s.io/v1beta1/ipaddresses: + /apis/networking.k8s.io/v1/servicecidrs: delete: - description: delete collection of IPAddress - operationId: deleteCollectionIPAddress + 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\ @@ -59473,12 +59369,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: ServiceCIDR + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -59487,8 +59383,8 @@ 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 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\ @@ -59586,36 +59482,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.ServiceCIDRList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: '#/components/schemas/v1.ServiceCIDRList' 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: ServiceCIDR + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -59625,8 +59521,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IPAddress - operationId: createIPAddress + 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\ @@ -59671,64 +59567,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' 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: ServiceCIDR + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -59736,12 +59632,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/ipaddresses/{name}: + /apis/networking.k8s.io/v1/servicecidrs/{name}: delete: - description: delete an IPAddress - operationId: deleteIPAddress + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the IPAddress + - description: name of the ServiceCIDR in: path name: name required: true @@ -59846,12 +59742,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: ServiceCIDR + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -59860,10 +59756,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IPAddress - operationId: readIPAddress + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the IPAddress + - description: name of the ServiceCIDR in: path name: name required: true @@ -59881,37 +59777,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' 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: ServiceCIDR + 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 ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the IPAddress + - description: name of the ServiceCIDR in: path name: name required: true @@ -59976,42 +59872,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' 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: ServiceCIDR + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60020,10 +59916,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IPAddress - operationId: replaceIPAddress + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the IPAddress + - description: name of the ServiceCIDR in: path name: name required: true @@ -60072,49 +59968,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: '#/components/schemas/v1.ServiceCIDR' 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: ServiceCIDR + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60122,10 +60018,316 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs: + /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/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 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\ @@ -60283,7 +60485,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -60293,8 +60495,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\ @@ -60392,25 +60594,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1beta1.IPAddressList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: '#/components/schemas/v1beta1.IPAddressList' description: OK "401": content: {} @@ -60420,7 +60622,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-accepts: - application/cbor @@ -60431,8 +60633,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\ @@ -60477,53 +60679,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' description: Accepted "401": content: {} @@ -60533,7 +60735,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -60542,12 +60744,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs/{name}: + /apis/networking.k8s.io/v1beta1/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 @@ -60656,7 +60858,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -60666,10 +60868,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 @@ -60687,16 +60889,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "401": content: {} @@ -60706,7 +60908,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-accepts: - application/cbor @@ -60714,10 +60916,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 @@ -60782,31 +60984,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: '#/components/schemas/v1beta1.IPAddress' description: Created "401": content: {} @@ -60816,7 +61018,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -60826,10 +61028,816 @@ 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 + schema: + type: string + - description: "If 'true', then the output is 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.IPAddress' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.IPAddress' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: IPAddress + 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/servicecidrs: + delete: + 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\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: deletecollection + 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 + get: + 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\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a 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\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: Created + "202": + 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: Accepted + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: post + 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/servicecidrs/{name}: + delete: + description: delete a ServiceCIDR + operationId: deleteServiceCIDR + 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: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, 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_v1beta1 + x-kubernetes-action: delete + 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 + get: + description: read the specified ServiceCIDR + operationId: readServiceCIDR + 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/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 the specified ServiceCIDR + operationId: patchServiceCIDR + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR + parameters: + - description: name of the ServiceCIDR in: path name: name required: true @@ -67066,7 +68074,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/: + /apis/resource.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -67090,13 +68098,13 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/deviceclasses: + /apis/resource.k8s.io/v1/deviceclasses: delete: description: delete collection of DeviceClass operationId: deleteCollectionDeviceClass @@ -67253,12 +68261,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67366,36 +68374,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.DeviceClassList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.DeviceClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.DeviceClassList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.DeviceClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.DeviceClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.DeviceClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.DeviceClassList' 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: DeviceClass - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -67451,64 +68459,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67516,7 +68524,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/deviceclasses/{name}: + /apis/resource.k8s.io/v1/deviceclasses/{name}: delete: description: delete a DeviceClass operationId: deleteDeviceClass @@ -67596,42 +68604,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io kind: DeviceClass - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67661,27 +68669,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' 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: DeviceClass - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/json @@ -67756,42 +68764,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' 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: DeviceClass - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67852,49 +68860,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' 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: DeviceClass - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -67902,11 +68910,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/devicetaintrules: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims: delete: - description: delete collection of DeviceTaintRule - operationId: deleteCollectionDeviceTaintRule + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -68059,12 +69073,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -68073,9 +69087,15 @@ 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 ResourceClaim + operationId: listNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -68172,36 +69192,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.ResourceClaimList' 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: ResourceClaim + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -68211,295 +69231,12 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - 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\ - \ 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.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)." - 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/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 - "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 - 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 - get: - description: read the specified DeviceTaintRule - operationId: readDeviceTaintRule - 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/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 - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified DeviceTaintRule - operationId: patchDeviceTaintRule + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: - - description: name of the DeviceTaintRule + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -68520,9 +69257,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: @@ -68544,601 +69279,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' - 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 - "401": - content: {} - description: Unauthorized - 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 - 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/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 - "401": - content: {} - description: Unauthorized - 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 - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims: - delete: - description: delete collection of ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim - parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." - in: query - name: propagationPolicy - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer requestBody: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Status' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Status' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Status' - application/cbor: - schema: - $ref: '#/components/schemas/v1.Status' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: list or watch objects of kind ResourceClaim - operationId: listNamespacedResourceClaim - parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace + $ref: '#/components/schemas/resource.v1.ResourceClaim' required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - application/cbor-seq: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha3 - x-accepts: - - application/cbor - - application/cbor-seq - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - post: - description: create a ResourceClaim - operationId: createNamespacedResourceClaim - parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' - application/cbor: - schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceClaim - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69146,7 +69348,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}: delete: description: delete a ResourceClaim operationId: deleteNamespacedResourceClaim @@ -69232,42 +69434,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceClaim - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69303,27 +69505,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' 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: ResourceClaim - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/json @@ -69404,42 +69606,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' 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: ResourceClaim - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69506,49 +69708,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' 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: ResourceClaim - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69556,7 +69758,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status: get: description: read status of the specified ResourceClaim operationId: readNamespacedResourceClaimStatus @@ -69585,27 +69787,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' 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: ResourceClaim - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/json @@ -69686,42 +69888,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' 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: ResourceClaim - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69788,49 +69990,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' 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: ResourceClaim - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69838,7 +70040,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates: delete: description: delete collection of ResourceClaimTemplate operationId: deleteCollectionNamespacedResourceClaimTemplate @@ -70001,12 +70203,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceClaimTemplate - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70120,36 +70322,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $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: ResourceClaimTemplate - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -70211,64 +70413,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceClaimTemplate - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70276,7 +70478,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}: delete: description: delete a ResourceClaimTemplate operationId: deleteNamespacedResourceClaimTemplate @@ -70362,42 +70564,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceClaimTemplate - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70433,27 +70635,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' 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: ResourceClaimTemplate - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/json @@ -70534,42 +70736,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' 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: ResourceClaimTemplate - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70636,49 +70838,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' 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: ResourceClaimTemplate - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70686,7 +70888,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/resourceclaims: + /apis/resource.k8s.io/v1/resourceclaims: get: description: list or watch objects of kind ResourceClaim operationId: listResourceClaimForAllNamespaces @@ -70787,36 +70989,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ResourceClaimList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimList' + $ref: '#/components/schemas/v1.ResourceClaimList' 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: ResourceClaim - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -70825,7 +71027,7 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates: + /apis/resource.k8s.io/v1/resourceclaimtemplates: get: description: list or watch objects of kind ResourceClaimTemplate operationId: listResourceClaimTemplateForAllNamespaces @@ -70926,36 +71128,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1.ResourceClaimTemplateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateList' + $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: ResourceClaimTemplate - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -70964,7 +71166,7 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1alpha3/resourceslices: + /apis/resource.k8s.io/v1/resourceslices: delete: description: delete collection of ResourceSlice operationId: deleteCollectionResourceSlice @@ -71121,12 +71323,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceSlice - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71234,36 +71436,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.ResourceSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.ResourceSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.ResourceSliceList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.ResourceSliceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.ResourceSliceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.ResourceSliceList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSliceList' + $ref: '#/components/schemas/v1.ResourceSliceList' 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: ResourceSlice - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -71319,64 +71521,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceSlice - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71384,7 +71586,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/resourceslices/{name}: + /apis/resource.k8s.io/v1/resourceslices/{name}: delete: description: delete a ResourceSlice operationId: deleteResourceSlice @@ -71464,42 +71666,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceSlice - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71529,27 +71731,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $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: ResourceSlice - version: v1alpha3 + version: v1 x-accepts: - application/cbor - application/json @@ -71624,42 +71826,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $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: ResourceSlice - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71720,49 +71922,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $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: ResourceSlice - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71770,19 +71972,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/watch/deviceclasses: {} - /apis/resource.k8s.io/v1alpha3/watch/deviceclasses/{name}: {} - /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules: {} - /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}: {} - /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims: {} - /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims/{name}: {} - /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} - /apis/resource.k8s.io/v1alpha3/watch/resourceclaims: {} - /apis/resource.k8s.io/v1alpha3/watch/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1alpha3/watch/resourceslices: {} - /apis/resource.k8s.io/v1alpha3/watch/resourceslices/{name}: {} - /apis/resource.k8s.io/v1beta1/: + /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/: get: description: get available resources operationId: getAPIResources @@ -71806,16 +72006,16 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/deviceclasses: + /apis/resource.k8s.io/v1alpha3/devicetaintrules: delete: - description: delete collection of DeviceClass - operationId: deleteCollectionDeviceClass + 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\ @@ -71969,12 +72169,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: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71983,8 +72183,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 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\ @@ -72082,36 +72282,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -72121,8 +72321,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a DeviceClass - operationId: createDeviceClass + 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\ @@ -72167,64 +72367,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72232,12 +72432,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/deviceclasses/{name}: + /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}: delete: - description: delete a DeviceClass - operationId: deleteDeviceClass + description: delete a DeviceTaintRule + operationId: deleteDeviceTaintRule parameters: - - description: name of the DeviceClass + - description: name of the DeviceTaintRule in: path name: name required: true @@ -72312,42 +72512,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72356,10 +72556,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DeviceClass - operationId: readDeviceClass + description: read the specified DeviceTaintRule + operationId: readDeviceTaintRule parameters: - - description: name of the DeviceClass + - description: name of the DeviceTaintRule in: path name: name required: true @@ -72377,37 +72577,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta1 + kind: DeviceTaintRule + 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 DeviceTaintRule + operationId: patchDeviceTaintRule parameters: - - description: name of the DeviceClass + - description: name of the DeviceTaintRule in: path name: name required: true @@ -72472,42 +72672,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72516,10 +72716,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified DeviceClass - operationId: replaceDeviceClass + description: replace the specified DeviceTaintRule + operationId: replaceDeviceTaintRule parameters: - - description: name of the DeviceClass + - description: name of the DeviceTaintRule in: path name: name required: true @@ -72568,49 +72768,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass - version: v1beta1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72618,17 +72818,43 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims: + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules: {} + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{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 ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass 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)." @@ -72785,7 +73011,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 @@ -72795,15 +73021,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)." @@ -72900,25 +73120,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: {} @@ -72928,7 +73148,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 @@ -72939,15 +73159,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)." @@ -72991,53 +73205,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: {} @@ -73047,7 +73261,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 @@ -73056,23 +73270,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)." @@ -73142,31 +73350,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: {} @@ -73176,288 +73384,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 @@ -73466,23 +73393,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)." @@ -73495,16 +73415,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: {} @@ -73514,7 +73434,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 @@ -73522,21 +73442,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)." @@ -73596,31 +73510,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: {} @@ -73630,7 +73544,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 @@ -73640,21 +73554,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)." @@ -73698,38 +73606,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: {} @@ -73739,7 +73647,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 @@ -73748,10 +73656,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 @@ -73915,7 +73823,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 @@ -73925,8 +73833,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 @@ -74030,25 +73938,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: {} @@ -74058,7 +73966,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 @@ -74069,8 +73977,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 @@ -74121,53 +74029,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: {} @@ -74177,7 +74085,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 @@ -74186,12 +74094,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 @@ -74272,31 +74180,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: {} @@ -74306,7 +74214,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 @@ -74316,10 +74224,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 @@ -74343,16 +74251,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: {} @@ -74362,7 +74270,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 @@ -74370,10 +74278,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 @@ -74444,31 +74352,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: {} @@ -74478,7 +74386,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 @@ -74488,10 +74396,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 @@ -74546,38 +74454,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: {} @@ -74587,7 +74495,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 @@ -74596,49 +74504,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)." @@ -74646,138 +74582,117 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: '#/components/schemas/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)." @@ -74785,100 +74700,103 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/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)." @@ -75035,7 +74953,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 @@ -75045,9 +74963,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)." @@ -75144,25 +75068,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: {} @@ -75172,7 +75096,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 @@ -75183,9 +75107,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)." @@ -75229,53 +75159,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: {} @@ -75285,7 +75215,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 @@ -75294,17 +75224,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)." @@ -75374,31 +75310,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: {} @@ -75408,7 +75344,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 @@ -75418,15 +75354,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)." @@ -75439,16 +75381,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: {} @@ -75458,7 +75400,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 @@ -75466,15 +75408,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)." @@ -75534,31 +75482,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: {} @@ -75568,7 +75516,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 @@ -75578,15 +75526,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)." @@ -75630,38 +75584,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: {} @@ -75671,7 +75625,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 @@ -75680,58 +75634,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". @@ -75740,44 +75657,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 @@ -75792,23 +75677,330 @@ 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: "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: "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: |- @@ -75877,12 +76069,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: @@ -75891,8 +76083,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\ @@ -75990,36 +76182,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 @@ -76029,8 +76221,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\ @@ -76075,64 +76267,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: @@ -76140,12 +76332,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 @@ -76220,42 +76412,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: @@ -76264,10 +76456,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 @@ -76285,37 +76477,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 @@ -76380,42 +76572,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: @@ -76424,10 +76616,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 @@ -76476,49 +76668,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: @@ -76526,17 +76718,51 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims: + /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 ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass 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)." @@ -76693,7 +76919,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -76703,15 +76929,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)." @@ -76808,25 +77028,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.DeviceClassList' description: OK "401": content: {} @@ -76836,7 +77056,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta2 x-accepts: - application/cbor @@ -76847,15 +77067,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)." @@ -76899,53 +77113,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Accepted "401": content: {} @@ -76955,7 +77169,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -76964,23 +77178,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}: + /apis/resource.k8s.io/v1beta2/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)." @@ -77050,31 +77258,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Accepted "401": content: {} @@ -77084,7 +77292,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -77094,21 +77302,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim + 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)." @@ -77121,16 +77323,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "401": content: {} @@ -77140,7 +77342,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta2 x-accepts: - application/cbor @@ -77148,21 +77350,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim + 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)." @@ -77222,313 +77418,31 @@ paths: 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 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/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}/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/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' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Created "401": content: {} @@ -77538,7 +77452,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -77548,21 +77462,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)." @@ -77606,38 +77514,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: '#/components/schemas/v1beta2.DeviceClass' description: Created "401": content: {} @@ -77647,7 +77555,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -77656,10 +77564,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 @@ -77823,7 +77731,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 @@ -77833,8 +77741,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 @@ -77938,25 +77846,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: {} @@ -77966,7 +77874,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 @@ -77977,8 +77885,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 @@ -78029,53 +77937,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: {} @@ -78085,7 +77993,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 @@ -78094,12 +78002,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 @@ -78180,31 +78088,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: {} @@ -78214,7 +78122,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 @@ -78224,10 +78132,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 @@ -78251,16 +78159,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: {} @@ -78270,7 +78178,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 @@ -78278,10 +78186,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 @@ -78352,31 +78260,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: {} @@ -78386,7 +78294,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 @@ -78396,10 +78304,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 @@ -78454,38 +78362,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: {} @@ -78495,7 +78403,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 @@ -78504,49 +78412,77 @@ 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." - 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/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: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked 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)." @@ -78554,138 +78490,117 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' - application/json;stream=watch: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' - application/cbor-seq: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' - description: OK + $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: list + 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/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1beta2/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)." @@ -78693,100 +78608,103 @@ paths: name: pretty schema: type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: '#/components/schemas/v1beta2.ResourceClaim' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' - application/json;stream=watch: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' - application/cbor-seq: + $ref: '#/components/schemas/v1beta2.ResourceClaim' + application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' - description: OK + $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: list + 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 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/v1beta2/resourceslices: + /apis/resource.k8s.io/v1beta2/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)." @@ -78943,7 +78861,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -78953,9 +78871,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)." @@ -79052,25 +78976,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' description: OK "401": content: {} @@ -79080,7 +79004,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta2 x-accepts: - application/cbor @@ -79091,9 +79015,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)." @@ -79137,53 +79067,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Accepted "401": content: {} @@ -79193,7 +79123,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -79202,17 +79132,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/resourceslices/{name}: + /apis/resource.k8s.io/v1beta2/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)." @@ -79282,31 +79218,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Accepted "401": content: {} @@ -79316,7 +79252,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -79326,15 +79262,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)." @@ -79347,16 +79289,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "401": content: {} @@ -79366,7 +79308,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta2 x-accepts: - application/cbor @@ -79374,15 +79316,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)." @@ -79442,31 +79390,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Created "401": content: {} @@ -79476,7 +79424,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -79486,15 +79434,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)." @@ -79538,38 +79492,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' description: Created "401": content: {} @@ -79579,7 +79533,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -79588,76 +79542,288 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/watch/deviceclasses: {} - /apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}: {} - /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims: {} - /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}: {} - /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} - /apis/resource.k8s.io/v1beta2/watch/resourceclaims: {} - /apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1beta2/watch/resourceslices: {} - /apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}: {} - /apis/scheduling.k8s.io/: + /apis/resource.k8s.io/v1beta2/resourceclaims: get: - description: get information of a group - operationId: getAPIGroup + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' description: OK "401": content: {} description: Unauthorized tags: - - scheduling + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/scheduling.k8s.io/v1/: + /apis/resource.k8s.io/v1beta2/resourceclaimtemplates: get: - description: get available resources - operationId: getAPIResources + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/scheduling.k8s.io/v1/priorityclasses: + /apis/resource.k8s.io/v1beta2/resourceslices: delete: - description: delete collection of PriorityClass - operationId: deleteCollectionPriorityClass + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -79811,12 +79977,12 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -79825,8 +79991,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PriorityClass - operationId: listPriorityClass + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -79924,36 +80090,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta2.ResourceSliceList' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-accepts: - application/cbor - application/cbor-seq @@ -79963,8 +80129,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PriorityClass - operationId: createPriorityClass + description: create a ResourceSlice + operationId: createResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -80009,64 +80175,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80074,12 +80240,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/priorityclasses/{name}: + /apis/resource.k8s.io/v1beta2/resourceslices/{name}: delete: - description: delete a PriorityClass - operationId: deletePriorityClass + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the PriorityClass + - description: name of the ResourceSlice in: path name: name required: true @@ -80154,42 +80320,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80198,10 +80364,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PriorityClass - operationId: readPriorityClass + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the PriorityClass + - description: name of the ResourceSlice in: path name: name required: true @@ -80219,37 +80385,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PriorityClass - operationId: patchPriorityClass + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the PriorityClass + - description: name of the ResourceSlice in: path name: name required: true @@ -80314,42 +80480,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80358,10 +80524,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PriorityClass - operationId: replacePriorityClass + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the PriorityClass + - description: name of the ResourceSlice in: path name: name required: true @@ -80410,49 +80576,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta2.ResourceSlice' description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80460,9 +80626,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} - /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} - /apis/storage.k8s.io/: + /apis/resource.k8s.io/v1beta2/watch/deviceclasses: {} + /apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/resourceclaims: {} + /apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta2/watch/resourceslices: {} + /apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}: {} + /apis/scheduling.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -80483,12 +80657,12 @@ paths: content: {} description: Unauthorized tags: - - storage + - scheduling x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/: + /apis/scheduling.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -80512,16 +80686,16 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csidrivers: + /apis/scheduling.k8s.io/v1/priorityclasses: delete: - description: delete collection of CSIDriver - operationId: deleteCollectionCSIDriver + description: delete collection of PriorityClass + operationId: deleteCollectionPriorityClass 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\ @@ -80675,11 +80849,11 @@ paths: content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: scheduling.k8s.io + kind: PriorityClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -80689,8 +80863,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CSIDriver - operationId: listCSIDriver + description: list or watch objects of kind PriorityClass + operationId: listPriorityClass 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\ @@ -80788,35 +80962,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.PriorityClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.PriorityClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.PriorityClassList' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.PriorityClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.PriorityClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.PriorityClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: '#/components/schemas/v1.PriorityClassList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: scheduling.k8s.io + kind: PriorityClass version: v1 x-accepts: - application/cbor @@ -80827,8 +81001,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSIDriver - operationId: createCSIDriver + description: create a PriorityClass + operationId: createPriorityClass 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\ @@ -80873,63 +81047,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: scheduling.k8s.io + kind: PriorityClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -80938,12 +81112,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csidrivers/{name}: + /apis/scheduling.k8s.io/v1/priorityclasses/{name}: delete: - description: delete a CSIDriver - operationId: deleteCSIDriver + description: delete a PriorityClass + operationId: deletePriorityClass parameters: - - description: name of the CSIDriver + - description: name of the PriorityClass in: path name: name required: true @@ -81018,41 +81192,41 @@ 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_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: scheduling.k8s.io + kind: PriorityClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -81062,10 +81236,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSIDriver - operationId: readCSIDriver + description: read the specified PriorityClass + operationId: readPriorityClass parameters: - - description: name of the CSIDriver + - description: name of the PriorityClass in: path name: name required: true @@ -81083,26 +81257,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: scheduling.k8s.io + kind: PriorityClass version: v1 x-accepts: - application/cbor @@ -81110,10 +81284,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CSIDriver - operationId: patchCSIDriver + description: partially update the specified PriorityClass + operationId: patchPriorityClass parameters: - - description: name of the CSIDriver + - description: name of the PriorityClass in: path name: name required: true @@ -81178,41 +81352,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: scheduling.k8s.io + kind: PriorityClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -81222,10 +81396,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSIDriver - operationId: replaceCSIDriver + description: replace the specified PriorityClass + operationId: replacePriorityClass parameters: - - description: name of the CSIDriver + - description: name of the PriorityClass in: path name: name required: true @@ -81274,48 +81448,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: '#/components/schemas/v1.PriorityClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - scheduling_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: scheduling.k8s.io + kind: PriorityClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -81324,10 +81498,68 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csinodes: + /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} + /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} + /apis/storage.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/: + 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 CSINode - operationId: deleteCollectionCSINode + 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\ @@ -81485,7 +81717,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSINode + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -81495,8 +81727,8 @@ 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 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\ @@ -81594,25 +81826,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1.CSIDriverList' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1.CSIDriverList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1.CSIDriverList' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1.CSIDriverList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1.CSIDriverList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1.CSIDriverList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: '#/components/schemas/v1.CSIDriverList' description: OK "401": content: {} @@ -81622,7 +81854,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSINode + kind: CSIDriver version: v1 x-accepts: - application/cbor @@ -81633,8 +81865,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSINode - operationId: createCSINode + 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\ @@ -81679,53 +81911,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: Accepted "401": content: {} @@ -81735,7 +81967,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSINode + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -81744,12 +81976,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csinodes/{name}: + /apis/storage.k8s.io/v1/csidrivers/{name}: delete: - description: delete a CSINode - operationId: deleteCSINode + description: delete a CSIDriver + operationId: deleteCSIDriver parameters: - - description: name of the CSINode + - description: name of the CSIDriver in: path name: name required: true @@ -81824,31 +82056,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: Accepted "401": content: {} @@ -81858,7 +82090,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSINode + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -81868,10 +82100,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSINode - operationId: readCSINode + description: read the specified CSIDriver + operationId: readCSIDriver parameters: - - description: name of the CSINode + - description: name of the CSIDriver in: path name: name required: true @@ -81889,16 +82121,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "401": content: {} @@ -81908,7 +82140,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSINode + kind: CSIDriver version: v1 x-accepts: - application/cbor @@ -81916,10 +82148,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CSINode - operationId: patchCSINode + description: partially update the specified CSIDriver + operationId: patchCSIDriver parameters: - - description: name of the CSINode + - description: name of the CSIDriver in: path name: name required: true @@ -81984,31 +82216,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: Created "401": content: {} @@ -82018,7 +82250,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSINode + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -82028,10 +82260,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSINode - operationId: replaceCSINode + description: replace the specified CSIDriver + operationId: replaceCSIDriver parameters: - - description: name of the CSINode + - description: name of the CSIDriver in: path name: name required: true @@ -82080,38 +82312,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: '#/components/schemas/v1.CSIDriver' description: Created "401": content: {} @@ -82121,7 +82353,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSINode + kind: CSIDriver version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -82130,156 +82362,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csistoragecapacities: - get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listCSIStorageCapacityForAllNamespaces - parameters: - - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, nor may they assume the server\ - \ will send any BOOKMARK event during a session. If this is not a watch,\ - \ this field is ignored." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.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: + /apis/storage.k8s.io/v1/csinodes: delete: - description: delete collection of CSIStorageCapacity - operationId: deleteCollectionNamespacedCSIStorageCapacity + description: delete collection of CSINode + operationId: deleteCollectionCSINode 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)." @@ -82436,7 +82523,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSIStorageCapacity + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -82446,15 +82533,9 @@ 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 CSINode + operationId: listCSINode 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)." @@ -82551,25 +82632,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1.CSINodeList' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1.CSINodeList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1.CSINodeList' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1.CSINodeList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1.CSINodeList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1.CSINodeList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: '#/components/schemas/v1.CSINodeList' description: OK "401": content: {} @@ -82579,7 +82660,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSIStorageCapacity + kind: CSINode version: v1 x-accepts: - application/cbor @@ -82590,15 +82671,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSIStorageCapacity - operationId: createNamespacedCSIStorageCapacity + description: create a CSINode + operationId: createCSINode 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)." @@ -82642,53 +82717,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' description: Accepted "401": content: {} @@ -82698,7 +82773,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSIStorageCapacity + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -82707,23 +82782,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: + /apis/storage.k8s.io/v1/csinodes/{name}: delete: - description: delete a CSIStorageCapacity - operationId: deleteNamespacedCSIStorageCapacity + description: delete a CSINode + operationId: deleteCSINode parameters: - - description: name of the CSIStorageCapacity + - description: name of the CSINode 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)." @@ -82793,31 +82862,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' description: Accepted "401": content: {} @@ -82827,7 +82896,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSIStorageCapacity + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -82837,21 +82906,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSIStorageCapacity - operationId: readNamespacedCSIStorageCapacity + description: read the specified CSINode + operationId: readCSINode parameters: - - description: name of the CSIStorageCapacity + - description: name of the CSINode 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)." @@ -82864,16 +82927,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' description: OK "401": content: {} @@ -82883,7 +82946,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSIStorageCapacity + kind: CSINode version: v1 x-accepts: - application/cbor @@ -82891,21 +82954,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CSIStorageCapacity - operationId: patchNamespacedCSIStorageCapacity + description: partially update the specified CSINode + operationId: patchCSINode parameters: - - description: name of the CSIStorageCapacity + - description: name of the CSINode 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)." @@ -82965,31 +83022,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' description: Created "401": content: {} @@ -82999,7 +83056,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSIStorageCapacity + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -83009,21 +83066,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSIStorageCapacity - operationId: replaceNamespacedCSIStorageCapacity + description: replace the specified CSINode + operationId: replaceCSINode parameters: - - description: name of the CSIStorageCapacity + - description: name of the CSINode 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)." @@ -83067,38 +83118,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: '#/components/schemas/v1.CSINode' description: Created "401": content: {} @@ -83108,7 +83159,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: CSIStorageCapacity + kind: CSINode version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -83117,11 +83168,156 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/storageclasses: + /apis/storage.k8s.io/v1/csistoragecapacities: + get: + description: list or watch objects of kind CSIStorageCapacity + operationId: listCSIStorageCapacityForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.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 StorageClass - operationId: deleteCollectionStorageClass + 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)." @@ -83278,7 +83474,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -83288,9 +83484,15 @@ 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 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)." @@ -83387,25 +83589,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' description: OK "401": content: {} @@ -83415,7 +83617,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIStorageCapacity version: v1 x-accepts: - application/cbor @@ -83426,9 +83628,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageClass - operationId: createStorageClass + 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)." @@ -83472,53 +83680,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Accepted "401": content: {} @@ -83528,7 +83736,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -83537,17 +83745,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/storageclasses/{name}: + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: delete: - description: delete a StorageClass - operationId: deleteStorageClass + description: delete a CSIStorageCapacity + operationId: deleteNamespacedCSIStorageCapacity parameters: - - description: name of the StorageClass + - 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)." @@ -83617,31 +83831,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} @@ -83651,7 +83865,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -83661,15 +83875,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageClass - operationId: readStorageClass + description: read the specified CSIStorageCapacity + operationId: readNamespacedCSIStorageCapacity parameters: - - description: name of the StorageClass + - 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)." @@ -83682,16 +83902,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "401": content: {} @@ -83701,7 +83921,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIStorageCapacity version: v1 x-accepts: - application/cbor @@ -83709,15 +83929,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageClass - operationId: patchStorageClass + description: partially update the specified CSIStorageCapacity + operationId: patchNamespacedCSIStorageCapacity parameters: - - description: name of the StorageClass + - 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)." @@ -83777,31 +84003,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Created "401": content: {} @@ -83811,7 +84037,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -83821,15 +84047,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageClass - operationId: replaceStorageClass + description: replace the specified CSIStorageCapacity + operationId: replaceNamespacedCSIStorageCapacity parameters: - - description: name of the StorageClass + - 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)." @@ -83873,38 +84105,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Created "401": content: {} @@ -83914,7 +84146,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: StorageClass + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -83923,10 +84155,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments: + /apis/storage.k8s.io/v1/storageclasses: delete: - description: delete collection of VolumeAttachment - operationId: deleteCollectionVolumeAttachment + 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\ @@ -84084,7 +84316,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: StorageClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -84094,8 +84326,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 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\ @@ -84193,25 +84425,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1.StorageClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1.StorageClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1.StorageClassList' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1.StorageClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1.StorageClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1.StorageClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: '#/components/schemas/v1.StorageClassList' description: OK "401": content: {} @@ -84221,7 +84453,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: StorageClass version: v1 x-accepts: - application/cbor @@ -84232,8 +84464,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttachment - operationId: createVolumeAttachment + 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\ @@ -84278,53 +84510,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: Accepted "401": content: {} @@ -84334,7 +84566,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: StorageClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -84343,12 +84575,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments/{name}: + /apis/storage.k8s.io/v1/storageclasses/{name}: delete: - description: delete a VolumeAttachment - operationId: deleteVolumeAttachment + description: delete a StorageClass + operationId: deleteStorageClass parameters: - - description: name of the VolumeAttachment + - description: name of the StorageClass in: path name: name required: true @@ -84423,31 +84655,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: Accepted "401": content: {} @@ -84457,7 +84689,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: StorageClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -84467,10 +84699,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified VolumeAttachment - operationId: readVolumeAttachment + description: read the specified StorageClass + operationId: readStorageClass parameters: - - description: name of the VolumeAttachment + - description: name of the StorageClass in: path name: name required: true @@ -84488,16 +84720,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: OK "401": content: {} @@ -84507,7 +84739,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: StorageClass version: v1 x-accepts: - application/cbor @@ -84515,10 +84747,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified VolumeAttachment - operationId: patchVolumeAttachment + description: partially update the specified StorageClass + operationId: patchStorageClass parameters: - - description: name of the VolumeAttachment + - description: name of the StorageClass in: path name: name required: true @@ -84583,295 +84815,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified VolumeAttachment - operationId: replaceVolumeAttachment - parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/storage.k8s.io/v1/volumeattachments/{name}/status: - get: - description: read status of the specified VolumeAttachment - operationId: readVolumeAttachmentStatus - parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/cbor: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified VolumeAttachment - operationId: patchVolumeAttachmentStatus - parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: Created "401": content: {} @@ -84881,7 +84849,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: StorageClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -84891,10 +84859,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified VolumeAttachment - operationId: replaceVolumeAttachmentStatus + description: replace the specified StorageClass + operationId: replaceStorageClass parameters: - - description: name of the VolumeAttachment + - description: name of the StorageClass in: path name: name required: true @@ -84943,38 +84911,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: '#/components/schemas/v1.StorageClass' description: Created "401": content: {} @@ -84984,7 +84952,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttachment + kind: StorageClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -84993,51 +84961,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/v1alpha1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1alpha1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/storage.k8s.io/v1alpha1/volumeattributesclasses: + /apis/storage.k8s.io/v1/volumeattachments: delete: - description: delete collection of VolumeAttributesClass - operationId: deleteCollectionVolumeAttributesClass + 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\ @@ -85191,12 +85118,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1alpha1 + - storage_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -85205,8 +85132,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 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\ @@ -85304,36 +85231,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - storage_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + kind: VolumeAttachment + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -85343,8 +85270,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttributesClass - operationId: createVolumeAttributesClass + 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\ @@ -85389,64 +85316,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - storage_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -85454,12 +85381,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}: + /apis/storage.k8s.io/v1/volumeattachments/{name}: delete: - description: delete a VolumeAttributesClass - operationId: deleteVolumeAttributesClass + description: delete a VolumeAttachment + operationId: deleteVolumeAttachment parameters: - - description: name of the VolumeAttributesClass + - description: name of the VolumeAttachment in: path name: name required: true @@ -85534,42 +85461,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - storage_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -85578,10 +85505,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified VolumeAttributesClass - operationId: readVolumeAttributesClass + description: read the specified VolumeAttachment + operationId: readVolumeAttachment parameters: - - description: name of the VolumeAttributesClass + - description: name of the VolumeAttachment in: path name: name required: true @@ -85599,37 +85526,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - storage_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + kind: VolumeAttachment + 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 VolumeAttachment + operationId: patchVolumeAttachment parameters: - - description: name of the VolumeAttributesClass + - description: name of the VolumeAttachment in: path name: name required: true @@ -85694,42 +85621,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - storage_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -85738,10 +85665,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified VolumeAttributesClass - operationId: replaceVolumeAttributesClass + description: replace the specified VolumeAttachment + operationId: replaceVolumeAttachment parameters: - - description: name of the VolumeAttributesClass + - description: name of the VolumeAttachment in: path name: name required: true @@ -85790,49 +85717,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - storage_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + kind: VolumeAttachment + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -85840,39 +85767,271 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses: {} - /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses/{name}: {} - /apis/storage.k8s.io/v1beta1/: + /apis/storage.k8s.io/v1/volumeattachments/{name}/status: get: - description: get available resources - operationId: getAPIResources + description: read status of the specified VolumeAttachment + operationId: readVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.VolumeAttachment' application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.VolumeAttachment' 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: VolumeAttachment + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1beta1/volumeattributesclasses: + patch: + description: partially update status of the specified VolumeAttachment + operationId: patchVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified VolumeAttachment + operationId: replaceVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/cbor: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/volumeattributesclasses: delete: description: delete collection of VolumeAttributesClass operationId: deleteCollectionVolumeAttributesClass @@ -86029,12 +86188,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 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -86142,36 +86301,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' 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 + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -86227,64 +86386,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -86292,7 +86451,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}: + /apis/storage.k8s.io/v1/volumeattributesclasses/{name}: delete: description: delete a VolumeAttributesClass operationId: deleteVolumeAttributesClass @@ -86372,42 +86531,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -86437,27 +86596,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-accepts: - application/cbor - application/json @@ -86532,42 +86691,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -86628,49 +86787,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -86678,35 +86837,20 @@ 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/v1alpha1/: + /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/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -86730,16 +86874,16 @@ paths: content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - storage_v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations: + /apis/storage.k8s.io/v1alpha1/volumeattributesclasses: delete: - description: delete collection of StorageVersionMigration - operationId: deleteCollectionStorageVersionMigration + description: delete collection of VolumeAttributesClass + operationId: deleteCollectionVolumeAttributesClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -86893,11 +87037,11 @@ paths: content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - storage_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration + group: storage.k8s.io + kind: VolumeAttributesClass version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json @@ -86907,8 +87051,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 VolumeAttributesClass + operationId: listVolumeAttributesClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -87006,35 +87150,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - storage_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration + group: storage.k8s.io + kind: VolumeAttributesClass version: v1alpha1 x-accepts: - application/cbor @@ -87045,8 +87189,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageVersionMigration - operationId: createStorageVersionMigration + description: create a VolumeAttributesClass + operationId: createVolumeAttributesClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -87091,63 +87235,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - storage_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration + group: storage.k8s.io + kind: VolumeAttributesClass version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json @@ -87156,12 +87300,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}: + /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}: delete: - description: delete a StorageVersionMigration - operationId: deleteStorageVersionMigration + description: delete a VolumeAttributesClass + operationId: deleteVolumeAttributesClass parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttributesClass in: path name: name required: true @@ -87236,41 +87380,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - storage_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration + group: storage.k8s.io + kind: VolumeAttributesClass version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json @@ -87280,10 +87424,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageVersionMigration - operationId: readStorageVersionMigration + description: read the specified VolumeAttributesClass + operationId: readVolumeAttributesClass parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttributesClass in: path name: name required: true @@ -87301,26 +87445,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - storage_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration + group: storage.k8s.io + kind: VolumeAttributesClass version: v1alpha1 x-accepts: - application/cbor @@ -87328,10 +87472,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageVersionMigration - operationId: patchStorageVersionMigration + description: partially update the specified VolumeAttributesClass + operationId: patchVolumeAttributesClass parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttributesClass in: path name: name required: true @@ -87396,41 +87540,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - storage_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration + group: storage.k8s.io + kind: VolumeAttributesClass version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json @@ -87440,10 +87584,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageVersionMigration - operationId: replaceStorageVersionMigration + description: replace the specified VolumeAttributesClass + operationId: replaceVolumeAttributesClass parameters: - - description: name of the StorageVersionMigration + - description: name of the VolumeAttributesClass in: path name: name required: true @@ -87492,48 +87636,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - storage_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration + group: storage.k8s.io + kind: VolumeAttributesClass version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json @@ -87542,17 +87686,43 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status: + /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses: {} + /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses/{name}: {} + /apis/storage.k8s.io/v1beta1/: get: - description: read status of the specified StorageVersionMigration - operationId: readStorageVersionMigrationStatus + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1beta1/volumeattributesclasses: + delete: + description: delete collection of VolumeAttributesClass + operationId: deleteCollectionVolumeAttributesClass parameters: - - description: name of the StorageVersionMigration - in: path - name: name - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -87560,47 +87730,306 @@ 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: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: '#/components/schemas/v1.Status' description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 - x-kubernetes-action: get + - storage_v1beta1 + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update status of the specified StorageVersionMigration - operationId: patchStorageVersionMigrationStatus + get: + description: list or watch objects of kind VolumeAttributesClass + operationId: listVolumeAttributesClass parameters: - - description: name of the StorageVersionMigration - 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: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion schema: type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a VolumeAttributesClass + operationId: createVolumeAttributesClass + parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -87618,9 +88047,1426 @@ 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: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}: + delete: + description: delete a VolumeAttributesClass + operationId: deleteVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is 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/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified VolumeAttributesClass + operationId: readVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is 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.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified VolumeAttributesClass + operationId: patchVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is 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.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified VolumeAttributesClass + operationId: replaceVolumeAttributesClass + parameters: + - description: name of the VolumeAttributesClass + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is 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.VolumeAttributesClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses: {} + /apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses/{name}: {} + /apis/storagemigration.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1alpha1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations: + delete: + description: delete collection of StorageVersionMigration + operationId: deleteCollectionStorageVersionMigration + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + application/cbor: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind StorageVersionMigration + operationId: listStorageVersionMigration + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a StorageVersionMigration + operationId: createStorageVersionMigration + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an 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.StorageVersionMigration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}: + delete: + description: delete a StorageVersionMigration + operationId: deleteStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is 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: + - storagemigration_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified StorageVersionMigration + operationId: readStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified StorageVersionMigration + operationId: patchStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is 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.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified StorageVersionMigration + operationId: replaceStorageVersionMigration + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is 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.StorageVersionMigration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status: + get: + description: read status of the specified StorageVersionMigration + operationId: readStorageVersionMigrationStatus + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is 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.StorageVersionMigration' + application/yaml: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + application/cbor: + schema: + $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified StorageVersionMigration + operationId: patchStorageVersionMigrationStatus + parameters: + - description: name of the StorageVersionMigration + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is 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: @@ -96102,380 +97948,7 @@ components: type: string type: object x-kubernetes-map-type: atomic - v1alpha1.ParamKind: - description: ParamKind is a tuple of Group Kind and Version. - example: - apiVersion: apiVersion - kind: kind - properties: - apiVersion: - description: APIVersion is the API group version the resources belong to. - In format of "group/version". Required. - type: string - kind: - description: Kind is the API kind the resources belong to. Required. - type: string - type: object - x-kubernetes-map-type: atomic - v1alpha1.ParamRef: - description: ParamRef describes how to locate the params to be used as input - to expressions of rules applied by a policy binding. - example: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - properties: - name: - description: |- - `name` is the name of the resource being referenced. - - `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. - type: string - namespace: - description: |- - namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. - - A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - - - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - - - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. - type: string - parameterNotFoundAction: - description: |- - `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. - - Allowed values are `Allow` or `Deny` Default to `Deny` - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - type: object - x-kubernetes-map-type: atomic - v1alpha1.Variable: - description: Variable is the definition of a variable that is used for composition. - example: - expression: expression - name: name - properties: - expression: - description: Expression is the expression that will be evaluated as the - value of the variable. The CEL expression has access to the same identifiers - as the CEL expressions in Validation. - type: string - name: - description: "Name is the name of the variable. The name must be a valid\ - \ CEL identifier and unique among all variables. The variable can be accessed\ - \ in other expressions through `variables` For example, if name is \"\ - foo\", the variable will be available as `variables.foo`" - type: string - required: - - expression - - name - type: object - v1beta1.AuditAnnotation: - description: AuditAnnotation describes how to produce an audit annotation for - an API request. - example: - valueExpression: valueExpression - key: key - properties: - key: - description: |- - key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. - - The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". - - If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. - - Required. - type: string - valueExpression: - description: |- - valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. - - If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. - - Required. - type: string - required: - - key - - valueExpression - type: object - v1beta1.ExpressionWarning: - description: ExpressionWarning is a warning information that targets a specific - expression. - example: - fieldRef: fieldRef - warning: warning - properties: - fieldRef: - description: "The path to the field that refers the expression. For example,\ - \ the reference to the expression of the first item of validations is\ - \ \"spec.validations[0].expression\"" - type: string - warning: - description: "The content of type checking information in a human-readable\ - \ form. Each line of the warning contains the type that the expression\ - \ is checked against, followed by the type check error from the compiler." - type: string - required: - - fieldRef - - warning - type: object - v1beta1.MatchCondition: - description: MatchCondition represents a condition which must be fulfilled for - a request to be sent to a webhook. - example: - expression: expression - name: name - properties: - expression: - description: |- - Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: - - 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - request resource. - Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ - - Required. - type: string - name: - description: |- - Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') - - Required. - type: string - required: - - expression - - name - type: object - v1beta1.MatchResources: - description: "MatchResources decides whether to run the admission control policy\ - \ on an object based on whether it meets the match criteria. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is excluded)" - example: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - excludeResourceRules: - description: "ExcludeResourceRules describes what operations on what resources/subresources\ - \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is\ - \ excluded)" - items: - $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - matchPolicy: - description: |- - matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. - - Defaults to "Equivalent" - type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - resourceRules: - description: ResourceRules describes what operations on what resources/subresources - the ValidatingAdmissionPolicy matches. The policy cares about an operation - if it matches _any_ Rule. - items: - $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - v1beta1.NamedRuleWithOperations: - description: NamedRuleWithOperations is a tuple of Operations and Resources - with ResourceNames. - example: - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: "APIGroups is the API groups the resources belong to. '*' is\ - \ all groups. If '*' is present, the length of the slice must be one.\ - \ Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - apiVersions: - description: "APIVersions is the API versions the resources belong to. '*'\ - \ is all versions. If '*' is present, the length of the slice must be\ - \ one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - operations: - description: "Operations is the operations the admission hook cares about\ - \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ - \ any future admission operations that are added. If '*' is present, the\ - \ length of the slice must be one. Required." - items: - type: string - type: array - x-kubernetes-list-type: atomic - resourceNames: - description: ResourceNames is an optional white list of names that the rule - applies to. An empty set means that everything is allowed. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resources: - description: |- - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - scope: - description: "scope specifies the scope of this rule. Valid values are \"\ - Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped\ - \ resources will match this rule. Namespace API objects are cluster-scoped.\ - \ \"Namespaced\" means that only namespaced resources will match this\ - \ rule. \"*\" means that there are no scope restrictions. Subresources\ - \ match the scope of their parent resource. Default is \"*\"." - type: string - type: object - x-kubernetes-map-type: atomic - v1beta1.ParamKind: + v1alpha1.ParamKind: description: ParamKind is a tuple of Group Kind and Version. example: apiVersion: apiVersion @@ -96490,7 +97963,7 @@ components: type: string type: object x-kubernetes-map-type: atomic - v1beta1.ParamRef: + 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: @@ -96514,11 +97987,9 @@ components: 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. + `name` is the name of the resource being referenced. - 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. + `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. type: string namespace: description: |- @@ -96534,34 +98005,291 @@ components: 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 + Allowed values are `Allow` or `Deny` Default to `Deny` type: string selector: $ref: '#/components/schemas/v1.LabelSelector' type: object x-kubernetes-map-type: atomic - v1beta1.TypeChecking: - description: TypeChecking contains results of type checking the expressions - in the ValidatingAdmissionPolicy + v1alpha1.Variable: + description: Variable is the definition of a variable that is used for composition. example: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning + expression: expression + name: name properties: - expressionWarnings: - description: The type checking warnings for each expression. + 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.ExpressionWarning' + $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' type: array x-kubernetes-list-type: atomic type: object - v1beta1.ValidatingAdmissionPolicy: - description: ValidatingAdmissionPolicy describes the definition of an admission - validation policy that accepts or rejects an object without changing it. + 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 @@ -96612,19 +98340,26 @@ components: 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 - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key matchConditions: - expression: expression name: name @@ -96726,37 +98461,7 @@ components: 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\ @@ -96771,23 +98476,21 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicySpec' - status: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyStatus' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicySpec' type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.ValidatingAdmissionPolicyBinding: + v1beta1.MutatingAdmissionPolicyBinding: description: |- - ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. + 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. + For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). - The 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. + 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 @@ -96953,9 +98656,6 @@ components: operator: operator matchLabels: key: matchLabels - validationActions: - - validationActions - - validationActions properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -96970,16 +98670,16 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingSpec' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingSpec' type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.ValidatingAdmissionPolicyBindingList: - description: ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + v1beta1.MutatingAdmissionPolicyBindingList: + description: MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. example: metadata: remainingItemCount: 1 @@ -97153,9 +98853,6 @@ components: operator: operator matchLabels: key: matchLabels - validationActions: - - validationActions - - validationActions - metadata: generation: 6 finalizers: @@ -97320,9 +99017,6 @@ components: operator: operator matchLabels: key: matchLabels - validationActions: - - validationActions - - validationActions properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -97332,7 +99026,7 @@ components: items: description: List of PolicyBinding. items: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -97346,13 +99040,13 @@ components: type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBindingList + kind: MutatingAdmissionPolicyBindingList version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.ValidatingAdmissionPolicyBindingSpec: - description: ValidatingAdmissionPolicyBindingSpec is the specification of the - ValidatingAdmissionPolicyBinding. + v1beta1.MutatingAdmissionPolicyBindingSpec: + description: MutatingAdmissionPolicyBindingSpec is the specification of the + MutatingAdmissionPolicyBinding. example: paramRef: name: name @@ -97469,48 +99163,20 @@ components: operator: operator matchLabels: key: matchLabels - validationActions: - - validationActions - - validationActions properties: matchResources: $ref: '#/components/schemas/v1beta1.MatchResources' paramRef: $ref: '#/components/schemas/v1beta1.ParamRef' policyName: - description: "PolicyName references a ValidatingAdmissionPolicy name which\ - \ the ValidatingAdmissionPolicyBinding binds to. If the referenced resource\ + 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 - validationActions: - description: |- - validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. - - Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. - - validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. - - The supported actions values are: - - "Deny" specifies that a validation failure results in a denied request. - - "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. - - "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"` - - Clients should expect to handle additional values by ignoring any values not recognized. - - "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. - - Required. - items: - type: string - type: array - x-kubernetes-list-type: set type: object - v1beta1.ValidatingAdmissionPolicyList: - description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + v1beta1.MutatingAdmissionPolicyList: + description: MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. example: metadata: remainingItemCount: 1 @@ -97569,19 +99235,26 @@ components: 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 - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key matchConditions: - expression: expression name: name @@ -97683,37 +99356,7 @@ components: 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: @@ -97763,19 +99406,26 @@ components: 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 - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key matchConditions: - expression: expression name: name @@ -97877,37 +99527,7 @@ components: 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\ @@ -97917,7 +99537,7 @@ components: items: description: List of ValidatingAdmissionPolicy. items: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -97931,27 +99551,34 @@ components: type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyList + kind: MutatingAdmissionPolicyList version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.ValidatingAdmissionPolicySpec: - description: ValidatingAdmissionPolicySpec is the specification of the desired - behavior of the AdmissionPolicy. + 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 - auditAnnotations: - - valueExpression: valueExpression - key: key - - valueExpression: valueExpression - key: key matchConditions: - expression: expression name: name @@ -98053,41 +99680,21 @@ components: operator: operator matchLabels: key: matchLabels - validations: - - reason: reason - expression: expression - messageExpression: messageExpression - message: message - - reason: reason - expression: expression - messageExpression: messageExpression - message: message failurePolicy: failurePolicy properties: - auditAnnotations: - description: auditAnnotations contains CEL expressions which are used to - produce audit annotations for the audit event of the API request. validations - and auditAnnotations may not both be empty; a least one of validations - or auditAnnotations is required. - items: - $ref: '#/components/schemas/v1beta1.AuditAnnotation' - type: array - x-kubernetes-list-type: atomic failurePolicy: description: |- failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. - A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. + 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. - 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. + 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. @@ -98107,161 +99714,200 @@ components: x-kubernetes-patch-merge-key: name matchConstraints: $ref: '#/components/schemas/v1beta1.MatchResources' - paramKind: - $ref: '#/components/schemas/v1beta1.ParamKind' - validations: - description: Validations contain CEL expressions which is used to apply - the validation. Validations and AuditAnnotations may not both be empty; - a minimum of one Validations or AuditAnnotations is required. + 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.Validation' + $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. + 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. + The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. items: $ref: '#/components/schemas/v1beta1.Variable' type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - name - x-kubernetes-patch-merge-key: name + x-kubernetes-list-type: atomic type: object - v1beta1.ValidatingAdmissionPolicyStatus: - description: ValidatingAdmissionPolicyStatus represents the status of an admission - validation policy. + v1beta1.Mutation: + description: Mutation specifies the CEL expression which is used to apply the + Mutation. 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 + patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression properties: - conditions: - description: The conditions represent the latest available observations - of a policy's current state. + 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: - $ref: '#/components/schemas/v1.Condition' + type: string type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - observedGeneration: - description: The generation observed by the controller. - format: int64 - type: integer - typeChecking: - $ref: '#/components/schemas/v1beta1.TypeChecking' + 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 - v1beta1.Validation: - description: Validation specifies the CEL expression which is used to apply - the validation. + x-kubernetes-map-type: atomic + v1beta1.ParamKind: + description: ParamKind is a tuple of Group Kind and Version. example: - reason: reason - expression: expression - messageExpression: messageExpression - message: message + apiVersion: apiVersion + kind: kind 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." + apiVersion: + description: APIVersion is the API group version the resources belong to. + In format of "group/version". Required. 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}\"." + kind: + description: Kind is the API kind the resources belong to. Required. 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: 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 - 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." + 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 - required: - - expression + 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. @@ -99083,6 +100729,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -99105,17 +100752,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -99125,8 +100772,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -99135,12 +100782,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -99160,7 +100807,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -99176,14 +100823,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -99199,7 +100846,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -99310,20 +100957,90 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - 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 + 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 @@ -99332,7 +101049,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99345,26 +101062,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -99384,9 +101108,295 @@ components: 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: + 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: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99395,7 +101405,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99408,26 +101418,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -99447,295 +101464,9 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 6 - readOnly: true - pdName: pdName - fsType: fsType - image: - reference: reference - pullPolicy: pullPolicy - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 9 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: "{}" - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - projected: - sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99744,7 +101475,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99757,89 +101488,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name - optional: true + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath signerName: signerName - - downwardAPI: - items: - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -99859,7 +101534,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -99914,9 +101589,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99925,7 +101600,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99935,7 +101610,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -99945,7 +101620,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -99970,14 +101645,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -100017,7 +101692,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -100045,11 +101720,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -100281,6 +101969,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -100299,6 +101992,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -100314,11 +102012,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -100550,6 +102261,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -100568,6 +102284,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -100579,7 +102300,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -100597,52 +102318,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -100698,43 +102391,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -100746,10 +102402,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -100765,9 +102417,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -100810,8 +102459,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -100844,7 +102491,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -100860,11 +102506,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -100894,8 +102535,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -100908,9 +102547,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -100966,43 +102682,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -101014,10 +102693,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -101033,9 +102708,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -101078,8 +102750,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -101112,7 +102782,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -101128,12 +102797,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -101163,8 +102826,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -101177,9 +102838,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -101235,43 +102974,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -101283,10 +102985,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -101302,9 +103000,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -101347,8 +103042,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -101381,7 +103074,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -101397,11 +103089,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -101431,8 +103118,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -101445,9 +103130,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -101503,43 +103265,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -101551,10 +103276,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -101570,9 +103291,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -101615,8 +103333,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -101649,7 +103365,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -101665,6 +103380,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -102305,6 +104118,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -102327,17 +104141,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -102347,8 +104161,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -102357,12 +104171,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -102382,7 +104196,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -102398,14 +104212,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -102421,7 +104235,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -102532,20 +104346,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102554,7 +104368,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102567,26 +104381,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -102608,7 +104429,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102617,7 +104438,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102630,26 +104451,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -102669,7 +104497,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -102724,9 +104552,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102735,7 +104563,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102745,7 +104573,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -102755,7 +104583,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -102780,14 +104608,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -102827,7 +104655,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -102944,20 +104772,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102966,7 +104794,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102979,26 +104807,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -103020,7 +104855,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103029,7 +104864,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103042,26 +104877,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -103081,7 +104923,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -103136,9 +104978,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103147,7 +104989,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103157,7 +104999,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -103167,7 +105009,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -103192,14 +105034,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -103239,7 +105081,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -103267,11 +105109,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -103503,6 +105358,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -103521,6 +105381,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -103536,11 +105401,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -103772,6 +105650,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -103790,6 +105673,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -103801,7 +105689,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -103819,52 +105707,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -103920,43 +105780,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -103968,10 +105791,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -103987,9 +105806,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -104032,8 +105848,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104066,7 +105880,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -104082,11 +105895,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -104116,8 +105924,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -104130,9 +105936,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -104188,43 +106071,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -104236,10 +106082,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -104255,9 +106097,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -104300,8 +106139,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104334,7 +106171,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -104350,12 +106186,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -104385,8 +106215,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -104399,9 +106227,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -104457,43 +106363,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -104505,10 +106374,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -104524,9 +106389,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -104569,8 +106431,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104603,7 +106463,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -104619,11 +106478,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -104653,8 +106507,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -104667,9 +106519,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -104725,43 +106654,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -104773,10 +106665,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -104792,9 +106680,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -104837,8 +106722,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104871,7 +106754,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -104887,6 +106769,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -105462,6 +107442,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -105484,17 +107465,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -105504,8 +107485,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -105514,12 +107495,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -105539,7 +107520,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -105555,14 +107536,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -105578,7 +107559,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -105689,20 +107670,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105711,7 +107692,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105724,26 +107705,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -105765,7 +107753,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105774,7 +107762,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105787,26 +107775,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -105826,7 +107821,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -105881,9 +107876,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105892,7 +107887,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105902,7 +107897,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -105912,7 +107907,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -105937,14 +107932,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -105984,7 +107979,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -106101,20 +108096,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106123,7 +108118,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106136,26 +108131,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -106177,7 +108179,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106186,7 +108188,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106199,26 +108201,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -106238,7 +108247,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -106293,9 +108302,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106304,7 +108313,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106314,7 +108323,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -106324,7 +108333,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -106349,14 +108358,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -106396,7 +108405,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -106424,11 +108433,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -106660,6 +108682,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -106678,6 +108705,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -106693,11 +108725,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -106929,6 +108974,316 @@ components: 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: 7 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + 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: @@ -106947,6 +109302,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -106957,71 +109317,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -107077,43 +109395,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -107125,10 +109406,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -107144,9 +109421,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -107189,8 +109463,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -107223,7 +109495,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -107239,11 +109510,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -107273,8 +109539,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -107287,9 +109551,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -107345,43 +109687,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -107393,10 +109698,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -107412,9 +109713,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -107457,8 +109755,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -107491,7 +109787,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -107507,12 +109802,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -107542,8 +109831,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -107556,9 +109843,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -107614,43 +109978,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -107662,10 +109989,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -107681,9 +110004,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -107726,8 +110046,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -107760,7 +110078,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -107776,11 +110093,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -107810,8 +110122,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -107824,64 +110134,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -107901,6 +110153,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -107919,131 +110176,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -108600,6 +110747,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -108622,17 +110770,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -108642,8 +110790,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -108652,12 +110800,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -108677,7 +110825,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -108693,14 +110841,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -108716,7 +110864,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -108827,20 +110975,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108849,7 +110997,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108862,26 +111010,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -108903,7 +111058,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108912,7 +111067,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108925,26 +111080,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -108964,7 +111126,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -109019,9 +111181,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109030,7 +111192,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109040,7 +111202,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -109050,7 +111212,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -109075,14 +111237,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -109122,7 +111284,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -109239,20 +111401,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109261,7 +111423,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109274,26 +111436,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -109315,7 +111484,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109324,7 +111493,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109337,26 +111506,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -109376,7 +111552,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -109431,9 +111607,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109442,7 +111618,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109452,7 +111628,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -109462,7 +111638,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -109487,14 +111663,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -109534,7 +111710,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -109562,11 +111738,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -109798,6 +111987,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -109816,6 +112010,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -109831,11 +112030,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -110067,6 +112279,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -110085,6 +112302,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -110096,7 +112318,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -110114,6 +112336,194 @@ components: 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: @@ -110143,8 +112553,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -110157,9 +112565,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -110215,43 +112700,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -110263,10 +112711,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -110282,9 +112726,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -110327,8 +112768,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -110361,7 +112800,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -110377,11 +112815,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -110411,8 +112844,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -110425,9 +112856,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -110483,43 +112992,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -110531,10 +113003,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -110550,9 +113018,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -110595,8 +113060,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -110629,7 +113092,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -110645,12 +113107,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -110680,8 +113136,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -110694,9 +113148,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -110752,43 +113283,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -110800,10 +113294,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -110819,9 +113309,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -110864,8 +113351,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -110898,7 +113383,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -110914,11 +113398,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -110948,8 +113427,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -110962,64 +113439,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -111039,6 +113458,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -111057,131 +113481,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -111867,6 +114181,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -111889,17 +114204,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -111909,8 +114224,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -111919,12 +114234,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -111944,7 +114259,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -111960,14 +114275,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -111983,7 +114298,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -112094,20 +114409,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112116,7 +114431,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112129,26 +114444,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -112170,7 +114492,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112179,7 +114501,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112192,26 +114514,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -112231,7 +114560,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -112286,9 +114615,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112297,7 +114626,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112307,7 +114636,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -112317,7 +114646,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -112342,14 +114671,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -112389,7 +114718,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -112506,20 +114835,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112528,7 +114857,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112541,26 +114870,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -112582,7 +114918,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112591,7 +114927,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112604,26 +114940,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -112643,7 +114986,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -112698,9 +115041,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112709,7 +115052,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112719,7 +115062,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -112729,7 +115072,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -112754,14 +115097,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -112801,7 +115144,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -112829,11 +115172,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -113065,6 +115421,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -113083,6 +115444,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -113098,11 +115464,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -113334,6 +115713,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -113352,6 +115736,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -113363,7 +115752,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -113381,52 +115770,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -113482,43 +115843,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -113530,10 +115854,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -113549,9 +115869,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -113594,8 +115911,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -113628,7 +115943,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -113644,11 +115958,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -113678,8 +115987,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -113692,9 +115999,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -113750,43 +116134,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -113798,10 +116145,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -113817,9 +116160,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -113862,8 +116202,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -113896,7 +116234,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -113912,12 +116249,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -113947,8 +116278,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -113961,9 +116290,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -114019,43 +116426,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -114067,10 +116437,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -114086,9 +116452,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -114131,8 +116494,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -114165,7 +116526,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -114181,11 +116541,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -114215,8 +116570,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -114229,9 +116582,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -114287,43 +116717,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -114335,10 +116728,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -114354,9 +116743,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -114399,8 +116785,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -114433,7 +116817,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -114449,6 +116832,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -115098,6 +117579,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -115120,17 +117602,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -115140,8 +117622,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -115150,12 +117632,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -115175,7 +117657,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -115191,14 +117673,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -115214,7 +117696,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -115325,20 +117807,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115347,7 +117829,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115360,26 +117842,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -115401,7 +117890,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115410,7 +117899,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115423,26 +117912,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -115462,7 +117958,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -115517,9 +118013,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115528,7 +118024,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115538,7 +118034,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -115548,7 +118044,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -115573,14 +118069,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -115620,7 +118116,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -115737,20 +118233,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115759,7 +118255,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115772,26 +118268,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -115813,7 +118316,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115822,7 +118325,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115835,26 +118338,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -115874,7 +118384,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -115929,9 +118439,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115940,7 +118450,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115950,7 +118460,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -115960,7 +118470,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -115985,14 +118495,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -116032,7 +118542,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -116060,11 +118570,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -116296,6 +118819,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -116314,6 +118842,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -116329,11 +118862,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -116565,6 +119111,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -116583,6 +119134,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -116594,7 +119150,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -116612,52 +119168,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -116713,43 +119241,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -116761,10 +119252,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -116780,9 +119267,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -116825,8 +119309,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -116859,7 +119341,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -116875,11 +119356,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -116909,8 +119385,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -116923,9 +119397,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -116981,43 +119532,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -117029,10 +119543,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -117048,9 +119558,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -117093,8 +119600,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -117127,7 +119632,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -117143,12 +119647,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -117178,8 +119676,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -117192,9 +119688,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -117250,43 +119824,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -117298,10 +119835,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -117317,9 +119850,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -117362,8 +119892,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -117396,7 +119924,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -117412,11 +119939,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -117446,8 +119968,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -117460,9 +119980,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -117518,43 +120115,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -117566,10 +120126,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -117585,9 +120141,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -117630,8 +120183,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -117664,7 +120215,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -117680,6 +120230,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -118259,6 +120907,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -118281,17 +120930,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -118301,8 +120950,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -118311,12 +120960,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -118336,7 +120985,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -118352,14 +121001,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -118375,7 +121024,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -118486,20 +121135,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118508,7 +121157,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118521,26 +121170,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -118562,7 +121218,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118571,7 +121227,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118584,26 +121240,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -118623,7 +121286,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -118678,9 +121341,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118689,7 +121352,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118699,7 +121362,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -118709,7 +121372,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -118734,14 +121397,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -118781,7 +121444,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -118898,20 +121561,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118920,7 +121583,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118933,26 +121596,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -118974,7 +121644,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118983,7 +121653,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118996,26 +121666,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -119035,7 +121712,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -119090,9 +121767,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119101,7 +121778,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119111,7 +121788,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -119121,7 +121798,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -119146,14 +121823,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -119193,7 +121870,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -119221,11 +121898,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -119457,6 +122147,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -119475,6 +122170,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -119490,11 +122190,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -119726,6 +122439,316 @@ components: 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: 7 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + 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: @@ -119744,6 +122767,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -119754,71 +122782,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -119874,43 +122860,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -119922,10 +122871,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -119941,9 +122886,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -119986,8 +122928,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -120020,7 +122960,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -120036,11 +122975,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -120070,8 +123004,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -120084,9 +123016,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -120142,43 +123152,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -120190,10 +123163,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -120209,9 +123178,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -120254,8 +123220,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -120288,7 +123252,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -120304,12 +123267,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -120339,8 +123296,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -120353,9 +123308,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -120411,43 +123443,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -120459,10 +123454,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -120478,9 +123469,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -120523,8 +123511,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -120557,7 +123543,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -120573,11 +123558,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -120607,8 +123587,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -120621,64 +123599,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -120698,6 +123618,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -120716,131 +123641,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -121402,6 +124217,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -121424,17 +124240,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -121444,8 +124260,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -121454,12 +124270,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -121479,7 +124295,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -121495,14 +124311,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -121518,7 +124334,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -121629,20 +124445,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121651,7 +124467,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121664,26 +124480,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -121705,7 +124528,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121714,7 +124537,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121727,26 +124550,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -121766,7 +124596,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -121821,9 +124651,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121832,7 +124662,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121842,7 +124672,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -121852,7 +124682,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -121877,14 +124707,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -121924,7 +124754,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -122041,20 +124871,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122063,7 +124893,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122076,26 +124906,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -122117,7 +124954,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122126,7 +124963,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122139,26 +124976,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -122178,7 +125022,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -122233,9 +125077,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122244,7 +125088,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122254,7 +125098,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -122264,7 +125108,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -122289,14 +125133,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -122336,7 +125180,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -122364,11 +125208,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -122600,6 +125457,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -122618,6 +125480,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -122633,11 +125500,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -122869,6 +125749,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -122887,6 +125772,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -122898,7 +125788,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -122916,6 +125806,194 @@ components: 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: @@ -122945,8 +126023,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -122959,9 +126035,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -123017,43 +126170,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -123065,10 +126181,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -123084,9 +126196,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -123129,8 +126238,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -123163,7 +126270,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -123179,11 +126285,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -123213,8 +126314,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -123227,9 +126326,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -123285,43 +126462,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -123333,10 +126473,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -123352,9 +126488,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -123397,8 +126530,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -123431,7 +126562,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -123447,12 +126577,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -123482,8 +126606,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -123496,9 +126618,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -123554,43 +126753,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -123602,10 +126764,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -123621,9 +126779,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -123666,8 +126821,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -123700,7 +126853,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -123716,11 +126868,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -123750,8 +126897,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -123764,64 +126909,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -123841,6 +126928,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -123859,131 +126951,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -124682,6 +127664,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -124704,17 +127687,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -124724,8 +127707,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -124734,12 +127717,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -124759,7 +127742,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -124775,14 +127758,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -124798,7 +127781,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -124909,20 +127892,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124931,7 +127914,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124944,26 +127927,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -124985,7 +127975,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124994,7 +127984,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125007,26 +127997,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -125046,7 +128043,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -125101,9 +128098,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125112,7 +128109,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125122,7 +128119,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -125132,7 +128129,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -125157,14 +128154,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -125204,7 +128201,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -125321,20 +128318,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125343,7 +128340,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125356,26 +128353,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -125397,7 +128401,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125406,7 +128410,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125419,26 +128423,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -125458,7 +128469,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -125513,9 +128524,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125524,7 +128535,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125534,7 +128545,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -125544,7 +128555,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -125569,14 +128580,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -125616,7 +128627,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -125644,11 +128655,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -125880,6 +128904,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -125898,6 +128927,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -125913,11 +128947,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -126149,6 +129196,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -126167,6 +129219,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -126178,7 +129235,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -126196,52 +129253,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -126297,43 +129326,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -126345,10 +129337,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -126364,9 +129352,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -126409,8 +129394,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -126443,7 +129426,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -126459,11 +129441,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -126493,8 +129470,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -126507,9 +129482,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -126565,43 +129617,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -126613,10 +129628,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -126632,9 +129643,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -126677,8 +129685,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -126711,7 +129717,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -126727,12 +129732,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -126762,8 +129761,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -126776,9 +129773,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -126834,43 +129909,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -126882,10 +129920,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -126901,9 +129935,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -126946,8 +129977,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -126980,7 +130009,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -126996,11 +130024,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -127030,8 +130053,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -127044,9 +130065,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -127102,43 +130200,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -127150,10 +130211,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -127169,9 +130226,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -127214,8 +130268,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -127248,7 +130300,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -127264,6 +130315,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -127897,6 +131046,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -127919,17 +131069,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -127939,8 +131089,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -127949,12 +131099,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -127974,7 +131124,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -127990,14 +131140,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -128013,7 +131163,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -128124,20 +131274,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128146,7 +131296,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128159,26 +131309,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -128200,7 +131357,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128209,7 +131366,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128222,26 +131379,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -128261,7 +131425,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -128316,9 +131480,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128327,7 +131491,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128337,7 +131501,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -128347,7 +131511,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -128372,14 +131536,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -128419,7 +131583,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -128536,20 +131700,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128558,7 +131722,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128571,26 +131735,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -128612,7 +131783,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128621,7 +131792,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128634,26 +131805,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -128673,7 +131851,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -128728,9 +131906,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128739,7 +131917,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128749,7 +131927,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -128759,7 +131937,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -128784,14 +131962,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -128831,7 +132009,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -128859,11 +132037,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -129095,6 +132286,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -129113,6 +132309,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -129128,11 +132329,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -129364,6 +132578,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -129382,6 +132601,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -129393,7 +132617,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -129411,52 +132635,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -129512,43 +132708,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -129560,10 +132719,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -129579,9 +132734,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -129624,8 +132776,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -129658,7 +132808,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -129674,11 +132823,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -129708,8 +132852,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -129722,9 +132864,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -129780,43 +132999,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -129828,10 +133010,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -129847,9 +133025,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -129892,8 +133067,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -129926,7 +133099,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -129942,12 +133114,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -129977,8 +133143,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -129991,9 +133155,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -130049,43 +133291,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -130097,10 +133302,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -130116,9 +133317,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -130161,8 +133359,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -130195,7 +133391,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -130211,11 +133406,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -130245,8 +133435,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -130259,9 +133447,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -130317,43 +133582,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -130365,10 +133593,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -130384,9 +133608,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -130429,8 +133650,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -130463,7 +133682,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -130479,6 +133697,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -131046,6 +134362,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -131068,17 +134385,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -131088,8 +134405,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -131098,12 +134415,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -131123,7 +134440,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -131139,14 +134456,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -131162,7 +134479,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -131273,20 +134590,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131295,7 +134612,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131308,26 +134625,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -131349,7 +134673,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131358,7 +134682,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131371,26 +134695,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -131410,7 +134741,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -131465,9 +134796,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131476,7 +134807,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131486,7 +134817,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -131496,7 +134827,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -131521,14 +134852,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -131568,7 +134899,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -131685,20 +135016,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131707,7 +135038,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131720,26 +135051,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -131761,7 +135099,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131770,7 +135108,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131783,26 +135121,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -131822,7 +135167,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -131877,9 +135222,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131888,7 +135233,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131898,7 +135243,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -131908,7 +135253,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -131933,14 +135278,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -131980,7 +135325,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -132008,11 +135353,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -132244,6 +135602,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -132262,6 +135625,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -132277,11 +135645,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -132513,6 +135894,316 @@ components: 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: 7 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + 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: @@ -132531,6 +136222,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -132541,71 +136237,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -132661,43 +136315,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -132709,10 +136326,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -132728,9 +136341,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -132773,8 +136383,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -132807,7 +136415,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -132823,11 +136430,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -132857,8 +136459,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -132871,9 +136471,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -132929,43 +136607,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -132977,10 +136618,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -132996,9 +136633,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -133041,8 +136675,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -133075,7 +136707,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -133091,12 +136722,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -133126,8 +136751,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -133140,9 +136763,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -133198,43 +136898,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -133246,10 +136909,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -133265,9 +136924,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -133310,8 +136966,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -133344,7 +136998,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -133360,11 +137013,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -133394,8 +137042,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -133408,64 +137054,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -133485,6 +137073,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -133503,131 +137096,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -134176,6 +137659,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -134198,17 +137682,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -134218,8 +137702,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -134228,12 +137712,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -134253,7 +137737,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -134269,14 +137753,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -134292,7 +137776,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -134403,20 +137887,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134425,7 +137909,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134438,26 +137922,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -134479,7 +137970,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134488,7 +137979,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134501,26 +137992,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -134540,7 +138038,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -134595,9 +138093,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134606,7 +138104,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134616,7 +138114,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -134626,7 +138124,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -134651,14 +138149,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -134698,7 +138196,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -134815,20 +138313,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134837,7 +138335,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134850,26 +138348,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -134891,7 +138396,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134900,7 +138405,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134913,26 +138418,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -134952,7 +138464,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -135007,9 +138519,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -135018,7 +138530,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -135028,7 +138540,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -135038,7 +138550,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -135063,14 +138575,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -135110,7 +138622,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -135138,11 +138650,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -135374,6 +138899,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -135392,6 +138922,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -135407,11 +138942,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -135643,6 +139191,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -135661,6 +139214,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -135672,7 +139230,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -135690,6 +139248,194 @@ components: 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: @@ -135719,8 +139465,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -135733,9 +139477,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -135791,43 +139612,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -135839,10 +139623,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -135858,9 +139638,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -135903,8 +139680,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -135937,7 +139712,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -135953,11 +139727,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -135987,8 +139756,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -136001,9 +139768,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -136059,43 +139904,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -136107,10 +139915,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -136126,9 +139930,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -136171,8 +139972,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -136205,7 +140004,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -136221,12 +140019,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -136256,8 +140048,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -136270,9 +140060,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -136328,43 +140195,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -136376,10 +140206,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -136395,9 +140221,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -136440,8 +140263,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -136474,7 +140295,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -136490,11 +140310,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -136524,8 +140339,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -136538,64 +140351,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -136615,6 +140370,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -136633,131 +140393,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -137468,6 +141118,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -137490,17 +141141,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -137510,8 +141161,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -137520,12 +141171,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -137545,7 +141196,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -137561,14 +141212,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -137584,7 +141235,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -137695,20 +141346,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137717,7 +141368,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137730,26 +141381,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -137771,7 +141429,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137780,7 +141438,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137793,26 +141451,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -137832,7 +141497,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -137887,9 +141552,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137898,7 +141563,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137908,7 +141573,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -137918,7 +141583,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -137943,14 +141608,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -137990,7 +141655,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -138107,20 +141772,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -138129,7 +141794,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -138142,26 +141807,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -138183,7 +141855,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -138192,7 +141864,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -138205,26 +141877,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -138244,7 +141923,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -138299,9 +141978,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -138310,7 +141989,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -138320,7 +141999,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -138330,7 +142009,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -138355,14 +142034,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -138402,7 +142081,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -138430,11 +142109,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -138666,6 +142358,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -138684,6 +142381,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -138699,11 +142401,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -138935,6 +142650,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -138953,6 +142673,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -138964,7 +142689,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -138982,52 +142707,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -139083,43 +142780,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -139131,10 +142791,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -139150,9 +142806,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -139195,8 +142848,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -139229,7 +142880,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -139245,11 +142895,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -139279,8 +142924,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -139293,9 +142936,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -139351,43 +143071,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -139399,10 +143082,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -139418,9 +143097,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -139463,8 +143139,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -139497,7 +143171,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -139513,12 +143186,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -139548,8 +143215,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -139562,9 +143227,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -139620,43 +143363,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -139668,10 +143374,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -139687,9 +143389,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -139732,8 +143431,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -139766,7 +143463,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -139782,11 +143478,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -139816,8 +143507,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -139830,9 +143519,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -139888,43 +143654,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -139936,10 +143665,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -139955,9 +143680,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -140000,8 +143722,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -140034,7 +143754,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -140050,6 +143769,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -140923,6 +144740,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -140945,17 +144763,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -140965,8 +144783,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -140975,12 +144793,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -141000,7 +144818,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -141016,14 +144834,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -141039,7 +144857,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -141150,20 +144968,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141172,7 +144990,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141185,26 +145003,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -141226,7 +145051,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141235,7 +145060,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141248,26 +145073,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -141287,7 +145119,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -141342,9 +145174,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141353,7 +145185,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141363,7 +145195,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -141373,7 +145205,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -141398,14 +145230,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -141445,7 +145277,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -141562,20 +145394,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141584,7 +145416,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141597,26 +145429,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -141638,7 +145477,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141647,7 +145486,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141660,26 +145499,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -141699,7 +145545,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -141754,9 +145600,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141765,7 +145611,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141775,7 +145621,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -141785,7 +145631,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -141810,14 +145656,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -141857,7 +145703,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -141885,11 +145731,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -142121,6 +145980,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -142139,6 +146003,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -142154,11 +146023,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -142390,6 +146272,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -142408,6 +146295,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -142419,7 +146311,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -142437,52 +146329,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -142538,43 +146402,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -142586,10 +146413,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -142605,9 +146428,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -142650,8 +146470,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -142684,7 +146502,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -142700,11 +146517,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -142734,8 +146546,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -142748,9 +146558,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -142806,43 +146693,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -142854,10 +146704,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -142873,9 +146719,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -142918,8 +146761,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -142952,7 +146793,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -142968,12 +146808,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -143003,8 +146837,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -143017,9 +146849,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -143075,43 +146985,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -143123,10 +146996,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -143142,9 +147011,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -143187,8 +147053,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -143221,7 +147085,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -143237,11 +147100,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -143271,8 +147129,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -143285,9 +147141,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -143343,43 +147276,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -143391,10 +147287,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -143410,9 +147302,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -143455,8 +147344,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -143489,7 +147376,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -143505,6 +147391,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -144313,6 +148297,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -144335,17 +148320,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -144355,8 +148340,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -144365,12 +148350,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -144390,7 +148375,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -144406,14 +148391,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -144429,7 +148414,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -144540,20 +148525,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144562,7 +148547,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144575,26 +148560,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -144616,7 +148608,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144625,7 +148617,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144638,26 +148630,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -144677,7 +148676,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -144732,9 +148731,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144743,7 +148742,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144753,7 +148752,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -144763,7 +148762,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -144788,14 +148787,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -144835,7 +148834,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -144952,20 +148951,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144974,7 +148973,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144987,26 +148986,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -145028,7 +149034,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -145037,7 +149043,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -145050,26 +149056,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -145089,7 +149102,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -145144,9 +149157,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -145155,7 +149168,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -145165,7 +149178,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -145175,7 +149188,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -145200,14 +149213,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -145247,7 +149260,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -145275,11 +149288,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -145511,6 +149537,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -145529,6 +149560,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -145544,11 +149580,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -145780,6 +149829,316 @@ components: 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: 7 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + 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: @@ -145798,6 +150157,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -145808,71 +150172,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -145928,43 +150250,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -145976,10 +150261,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -145995,9 +150276,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -146040,8 +150318,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -146074,7 +150350,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -146090,11 +150365,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -146124,8 +150394,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -146138,9 +150406,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -146196,43 +150542,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -146244,10 +150553,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -146263,9 +150568,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -146308,8 +150610,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -146342,7 +150642,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -146358,12 +150657,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -146393,8 +150686,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -146407,9 +150698,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -146465,43 +150833,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -146513,10 +150844,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -146532,9 +150859,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -146577,8 +150901,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -146611,7 +150933,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -146627,11 +150948,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -146661,8 +150977,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -146675,64 +150989,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -146752,6 +151008,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -146770,131 +151031,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -147720,6 +151871,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -147742,17 +151894,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -147762,8 +151914,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -147772,12 +151924,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -147797,7 +151949,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -147813,14 +151965,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -147836,7 +151988,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -147947,20 +152099,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147969,7 +152121,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147982,26 +152134,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -148023,7 +152182,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148032,7 +152191,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148045,26 +152204,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -148084,7 +152250,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -148139,9 +152305,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148150,7 +152316,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148160,7 +152326,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -148170,7 +152336,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -148195,14 +152361,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -148242,7 +152408,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -148359,20 +152525,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148381,7 +152547,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148394,26 +152560,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -148435,7 +152608,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148444,7 +152617,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148457,26 +152630,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -148496,7 +152676,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -148551,9 +152731,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148562,7 +152742,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -148572,7 +152752,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -148582,7 +152762,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -148607,14 +152787,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -148654,7 +152834,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -148682,11 +152862,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -148918,6 +153111,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -148936,6 +153134,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -148951,11 +153154,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -149187,6 +153403,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -149205,6 +153426,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -149216,7 +153442,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -149234,6 +153460,194 @@ components: 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: @@ -149263,8 +153677,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -149277,9 +153689,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -149335,43 +153824,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -149383,10 +153835,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -149402,9 +153850,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -149447,8 +153892,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -149481,7 +153924,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -149497,11 +153939,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -149531,8 +153968,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -149545,9 +153980,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -149603,43 +154116,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -149651,10 +154127,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -149670,9 +154142,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -149715,8 +154184,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -149749,7 +154216,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -149765,12 +154231,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -149800,8 +154260,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -149814,9 +154272,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -149872,43 +154407,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -149920,10 +154418,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -149939,9 +154433,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -149984,8 +154475,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -150018,7 +154507,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -150034,11 +154522,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -150068,8 +154551,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -150082,64 +154563,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -150159,6 +154582,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -150177,131 +154605,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -156036,6 +160354,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -156058,17 +160377,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -156078,8 +160397,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -156088,12 +160407,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -156113,7 +160432,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -156129,14 +160448,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -156152,7 +160471,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -156263,20 +160582,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156285,7 +160604,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156298,26 +160617,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -156339,7 +160665,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156348,7 +160674,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156361,26 +160687,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -156400,7 +160733,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -156455,9 +160788,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156466,7 +160799,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156476,7 +160809,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -156486,7 +160819,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -156511,14 +160844,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -156558,7 +160891,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -156675,20 +161008,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156697,7 +161030,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156710,26 +161043,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -156751,7 +161091,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156760,7 +161100,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156773,26 +161113,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -156812,7 +161159,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -156867,9 +161214,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156878,7 +161225,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156888,7 +161235,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -156898,7 +161245,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -156923,14 +161270,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -156970,7 +161317,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -156998,11 +161345,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -157234,6 +161594,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -157252,6 +161617,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -157267,11 +161637,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -157503,6 +161886,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -157521,6 +161909,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -157532,7 +161925,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -157550,52 +161943,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -157651,43 +162016,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -157699,10 +162027,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -157718,9 +162042,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -157763,8 +162084,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -157797,7 +162116,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -157813,11 +162131,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -157847,8 +162160,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -157861,9 +162172,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -157919,43 +162307,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -157967,10 +162318,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -157986,9 +162333,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -158031,8 +162375,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -158065,7 +162407,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -158081,12 +162422,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -158116,8 +162451,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -158130,9 +162463,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -158188,43 +162599,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -158236,10 +162610,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -158255,9 +162625,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -158300,8 +162667,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -158334,7 +162699,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -158350,11 +162714,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -158384,8 +162743,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -158398,9 +162755,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -158456,43 +162890,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -158504,10 +162901,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -158523,9 +162916,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -158568,8 +162958,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -158602,7 +162990,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -158618,6 +163005,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -159317,6 +163802,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -159339,17 +163825,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -159359,8 +163845,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -159369,12 +163855,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -159394,7 +163880,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -159410,14 +163896,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -159433,7 +163919,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -159544,20 +164030,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159566,7 +164052,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159579,26 +164065,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -159620,7 +164113,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159629,7 +164122,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159642,26 +164135,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -159681,7 +164181,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -159736,9 +164236,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159747,7 +164247,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159757,7 +164257,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -159767,7 +164267,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -159792,14 +164292,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -159839,7 +164339,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -159956,20 +164456,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159978,7 +164478,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159991,26 +164491,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -160032,7 +164539,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160041,7 +164548,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160054,26 +164561,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -160093,7 +164607,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -160148,9 +164662,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160159,7 +164673,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160169,7 +164683,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -160179,7 +164693,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -160204,14 +164718,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -160251,7 +164765,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -160279,11 +164793,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -160515,6 +165042,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -160533,6 +165065,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -160548,11 +165085,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -160784,6 +165334,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -160802,6 +165357,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -160813,7 +165373,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -160831,52 +165391,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -160932,43 +165464,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -160980,10 +165475,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -160999,9 +165490,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -161044,8 +165532,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -161078,7 +165564,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -161094,11 +165579,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -161128,8 +165608,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -161142,9 +165620,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -161200,43 +165755,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -161248,10 +165766,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -161267,9 +165781,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -161312,8 +165823,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -161346,7 +165855,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -161362,12 +165870,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -161397,8 +165899,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -161411,9 +165911,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -161469,43 +166047,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -161517,10 +166058,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -161536,9 +166073,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -161581,8 +166115,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -161615,7 +166147,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -161631,11 +166162,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -161665,8 +166191,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -161679,9 +166203,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -161737,43 +166338,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -161785,10 +166349,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -161804,9 +166364,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -161849,8 +166406,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -161883,7 +166438,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -161899,6 +166453,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -162563,6 +167215,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -162585,17 +167238,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -162605,8 +167258,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -162615,12 +167268,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -162640,7 +167293,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -162656,14 +167309,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -162679,7 +167332,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -162790,20 +167443,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162812,7 +167465,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162825,26 +167478,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -162866,7 +167526,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162875,7 +167535,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162888,26 +167548,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -162927,7 +167594,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -162982,9 +167649,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162993,7 +167660,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163003,7 +167670,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -163013,7 +167680,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -163038,14 +167705,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -163085,7 +167752,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -163202,20 +167869,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163224,7 +167891,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163237,26 +167904,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -163278,7 +167952,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163287,7 +167961,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163300,26 +167974,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -163339,7 +168020,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -163394,9 +168075,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163405,7 +168086,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163415,7 +168096,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -163425,7 +168106,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -163450,14 +168131,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -163497,7 +168178,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -163525,11 +168206,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -163761,6 +168455,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -163779,6 +168478,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -163794,11 +168498,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -164030,6 +168747,316 @@ components: 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: 7 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + 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: @@ -164048,6 +169075,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -164058,71 +169090,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -164178,43 +169168,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -164226,10 +169179,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -164245,9 +169194,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -164290,8 +169236,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -164324,7 +169268,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -164340,11 +169283,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -164374,8 +169312,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -164388,9 +169324,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -164446,43 +169460,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -164494,10 +169471,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -164513,9 +169486,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -164558,8 +169528,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -164592,7 +169560,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -164608,12 +169575,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -164643,8 +169604,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -164657,9 +169616,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -164715,43 +169751,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -164763,10 +169762,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -164782,9 +169777,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -164827,8 +169819,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -164861,7 +169851,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -164877,11 +169866,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -164911,8 +169895,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -164925,64 +169907,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -165002,6 +169926,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -165020,131 +169949,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -165791,6 +170610,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -165813,17 +170633,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -165833,8 +170653,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -165843,12 +170663,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -165868,7 +170688,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -165884,14 +170704,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -165907,7 +170727,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -166018,20 +170838,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166040,7 +170860,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166053,26 +170873,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -166094,7 +170921,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166103,7 +170930,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166116,26 +170943,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -166155,7 +170989,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -166210,9 +171044,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166221,7 +171055,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166231,7 +171065,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -166241,7 +171075,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -166266,14 +171100,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -166313,7 +171147,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -166430,20 +171264,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166452,7 +171286,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166465,26 +171299,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -166506,7 +171347,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166515,7 +171356,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166528,26 +171369,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -166567,7 +171415,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -166622,9 +171470,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166633,7 +171481,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166643,7 +171491,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -166653,7 +171501,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -166678,14 +171526,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -166725,7 +171573,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -166753,11 +171601,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -166989,6 +171850,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -167007,6 +171873,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -167022,11 +171893,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -167258,6 +172142,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -167276,6 +172165,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -167287,7 +172181,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -167305,6 +172199,194 @@ components: 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: @@ -167334,8 +172416,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -167348,9 +172428,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -167406,43 +172563,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -167454,10 +172574,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -167473,9 +172589,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -167518,8 +172631,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -167552,7 +172663,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -167568,11 +172678,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -167602,8 +172707,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -167616,9 +172719,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -167674,43 +172855,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -167722,10 +172866,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -167741,9 +172881,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -167786,8 +172923,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -167820,7 +172955,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -167836,12 +172970,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -167871,8 +172999,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -167885,9 +173011,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -167943,43 +173146,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -167991,10 +173157,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -168010,9 +173172,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -168055,8 +173214,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -168089,7 +173246,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -168105,11 +173261,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -168139,8 +173290,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -168153,64 +173302,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -168230,6 +173321,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -168248,131 +173344,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -169058,6 +174044,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -169080,17 +174067,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -169100,8 +174087,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -169110,12 +174097,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -169135,7 +174122,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -169151,14 +174138,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -169174,7 +174161,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -169285,20 +174272,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169307,7 +174294,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169320,26 +174307,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -169361,7 +174355,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169370,7 +174364,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169383,26 +174377,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -169422,7 +174423,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -169477,9 +174478,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169488,7 +174489,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169498,7 +174499,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -169508,7 +174509,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -169533,14 +174534,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -169580,7 +174581,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -169697,20 +174698,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169719,7 +174720,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169732,26 +174733,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -169773,7 +174781,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169782,7 +174790,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169795,26 +174803,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -169834,7 +174849,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -169889,9 +174904,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169900,7 +174915,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -169910,7 +174925,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -169920,7 +174935,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -169945,14 +174960,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -169992,7 +175007,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -170020,11 +175035,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -170256,6 +175284,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -170274,6 +175307,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -170289,11 +175327,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -170525,6 +175576,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -170543,6 +175599,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -170554,7 +175615,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -170572,52 +175633,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -170673,43 +175706,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -170721,10 +175717,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -170740,9 +175732,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -170785,8 +175774,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -170819,7 +175806,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -170835,11 +175821,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -170869,8 +175850,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -170883,9 +175862,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -170941,43 +175997,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -170989,10 +176008,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -171008,9 +176023,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -171053,8 +176065,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -171087,7 +176097,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -171103,12 +176112,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -171138,8 +176141,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -171152,9 +176153,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -171210,43 +176289,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -171258,10 +176300,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -171277,9 +176315,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -171322,8 +176357,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -171356,7 +176389,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -171372,11 +176404,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -171406,8 +176433,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -171420,9 +176445,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -171478,43 +176580,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -171526,10 +176591,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -171545,9 +176606,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -171590,8 +176648,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -171624,7 +176680,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -171640,6 +176695,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -172330,6 +177483,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -172352,17 +177506,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -172372,8 +177526,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -172382,12 +177536,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -172407,7 +177561,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -172423,14 +177577,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -172446,7 +177600,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -172557,20 +177711,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172579,7 +177733,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172592,26 +177746,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -172633,7 +177794,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172642,7 +177803,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172655,26 +177816,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -172694,7 +177862,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -172749,9 +177917,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172760,7 +177928,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172770,7 +177938,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -172780,7 +177948,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -172805,14 +177973,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -172852,7 +178020,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -172969,20 +178137,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172991,7 +178159,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -173004,26 +178172,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -173045,7 +178220,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -173054,7 +178229,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -173067,26 +178242,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -173106,7 +178288,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -173161,9 +178343,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -173172,7 +178354,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -173182,7 +178364,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -173192,7 +178374,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -173217,14 +178399,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -173264,7 +178446,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -173292,11 +178474,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -173528,6 +178723,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -173546,6 +178746,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -173561,11 +178766,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -173797,6 +179015,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -173815,6 +179038,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -173826,7 +179054,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -173844,52 +179072,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -173945,43 +179145,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -173993,10 +179156,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -174012,9 +179171,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -174057,8 +179213,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -174091,7 +179245,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -174107,11 +179260,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -174141,8 +179289,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -174155,9 +179301,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -174213,43 +179436,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -174261,10 +179447,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -174280,9 +179462,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -174325,8 +179504,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -174359,7 +179536,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -174375,12 +179551,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -174410,8 +179580,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -174424,9 +179592,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -174482,43 +179728,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -174530,10 +179739,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -174549,9 +179754,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -174594,8 +179796,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -174628,7 +179828,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -174644,11 +179843,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -174678,8 +179872,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -174692,9 +179884,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -174750,43 +180019,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -174798,10 +180030,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -174817,9 +180045,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -174862,8 +180087,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -174896,7 +180119,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -174912,6 +180134,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -175533,6 +180853,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -175555,17 +180876,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -175575,8 +180896,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -175585,12 +180906,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -175610,7 +180931,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -175626,14 +180947,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -175649,7 +180970,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -175760,20 +181081,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175782,7 +181103,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175795,26 +181116,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -175836,7 +181164,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175845,7 +181173,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175858,26 +181186,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -175897,7 +181232,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -175952,9 +181287,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175963,7 +181298,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175973,7 +181308,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -175983,7 +181318,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -176008,14 +181343,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -176055,7 +181390,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -176172,20 +181507,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -176194,7 +181529,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -176207,26 +181542,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -176248,7 +181590,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -176257,7 +181599,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -176270,26 +181612,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -176309,7 +181658,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -176364,9 +181713,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -176375,7 +181724,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -176385,7 +181734,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -176395,7 +181744,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -176420,14 +181769,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -176467,7 +181816,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -176495,11 +181844,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -176731,6 +182093,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -176749,6 +182116,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -176764,11 +182136,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -177000,6 +182385,316 @@ components: 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: 7 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + 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: @@ -177018,6 +182713,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -177028,71 +182728,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -177148,43 +182806,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -177196,10 +182817,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -177215,9 +182832,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -177260,8 +182874,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -177294,7 +182906,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -177310,11 +182921,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -177344,8 +182950,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -177358,9 +182962,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -177416,43 +183098,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -177464,10 +183109,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -177483,9 +183124,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -177528,8 +183166,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -177562,7 +183198,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -177578,12 +183213,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -177613,8 +183242,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -177627,9 +183254,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -177685,43 +183389,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -177733,10 +183400,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -177752,9 +183415,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -177797,8 +183457,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -177831,7 +183489,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -177847,11 +183504,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -177881,8 +183533,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -177895,64 +183545,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -177972,6 +183564,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -177990,131 +183587,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -178717,6 +184204,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -178739,17 +184227,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -178759,8 +184247,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -178769,12 +184257,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -178794,7 +184282,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -178810,14 +184298,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -178833,7 +184321,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -178944,20 +184432,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178966,7 +184454,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178979,26 +184467,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -179020,7 +184515,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179029,7 +184524,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179042,26 +184537,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -179081,7 +184583,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -179136,9 +184638,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179147,7 +184649,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179157,7 +184659,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -179167,7 +184669,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -179192,14 +184694,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -179239,7 +184741,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -179356,20 +184858,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179378,7 +184880,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179391,26 +184893,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -179432,7 +184941,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179441,7 +184950,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179454,26 +184963,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -179493,7 +185009,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -179548,9 +185064,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179559,7 +185075,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179569,7 +185085,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -179579,7 +185095,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -179604,14 +185120,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -179651,7 +185167,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -179679,11 +185195,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -179915,6 +185444,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -179933,6 +185467,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -179948,11 +185487,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -180184,6 +185736,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -180202,6 +185759,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -180213,7 +185775,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -180231,6 +185793,194 @@ components: 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: @@ -180260,8 +186010,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -180274,9 +186022,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -180332,43 +186157,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -180380,10 +186168,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -180399,9 +186183,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -180444,8 +186225,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -180478,7 +186257,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -180494,11 +186272,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -180528,8 +186301,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -180542,9 +186313,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -180600,43 +186449,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -180648,10 +186460,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -180667,9 +186475,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -180712,8 +186517,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -180746,7 +186549,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -180762,12 +186564,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -180797,8 +186593,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -180811,9 +186605,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -180869,43 +186740,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -180917,10 +186751,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -180936,9 +186766,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -180981,8 +186808,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -181015,7 +186840,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -181031,11 +186855,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -181065,8 +186884,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -181079,64 +186896,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -181156,6 +186915,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -181174,131 +186938,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -181782,8 +187436,9 @@ components: format: int64 type: integer backoffLimit: - description: Specifies the number of retries before marking this job failed. - Defaults to 6 + description: "Specifies the number of retries before marking this job failed.\ + \ Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified.\ + \ When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647." format: int32 type: integer backoffLimitPerIndex: @@ -181857,7 +187512,7 @@ components: - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. - When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. + When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. type: string selector: $ref: '#/components/schemas/v1.LabelSelector' @@ -182121,6 +187776,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -182143,17 +187799,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -182163,8 +187819,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -182173,12 +187829,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -182198,7 +187854,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -182214,14 +187870,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -182237,7 +187893,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -182348,20 +188004,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182370,7 +188026,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182383,26 +188039,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -182424,7 +188087,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182433,7 +188096,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182446,26 +188109,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -182485,7 +188155,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -182540,9 +188210,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182551,7 +188221,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182561,7 +188231,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -182571,7 +188241,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -182596,14 +188266,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -182643,7 +188313,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -182760,20 +188430,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182782,7 +188452,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182795,26 +188465,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -182836,7 +188513,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182845,7 +188522,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182858,26 +188535,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -182897,7 +188581,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -182952,9 +188636,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182963,7 +188647,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -182973,7 +188657,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -182983,7 +188667,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -183008,14 +188692,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -183055,7 +188739,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -183083,11 +188767,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -183319,6 +189016,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -183337,6 +189039,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -183352,11 +189059,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -183588,6 +189308,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -183606,6 +189331,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -183617,7 +189347,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -183635,52 +189365,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -183736,43 +189438,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -183784,10 +189449,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -183803,9 +189464,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -183848,8 +189506,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -183882,7 +189538,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -183898,11 +189553,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -183932,8 +189582,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -183946,9 +189594,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -184004,43 +189729,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -184052,10 +189740,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -184071,9 +189755,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -184116,8 +189797,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -184150,7 +189829,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -184166,12 +189844,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -184201,8 +189873,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -184215,9 +189885,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -184273,43 +190021,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -184321,10 +190032,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -184340,9 +190047,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -184385,8 +190089,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -184419,7 +190121,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -184435,11 +190136,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -184469,8 +190165,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -184483,9 +190177,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -184541,43 +190312,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -184589,10 +190323,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -184608,9 +190338,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -184653,8 +190380,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -184687,7 +190412,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -184703,6 +190427,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -185351,7 +191173,7 @@ components: rules: description: "rules represents the list of alternative rules for the declaring\ \ the Jobs as successful before `.status.succeeded >= .spec.completions`.\ - \ Once any of the rules are met, the \"SucceededCriteriaMet\" condition\ + \ Once any of the rules are met, the \"SuccessCriteriaMet\" condition\ \ is added, and the lingering pods are removed. The terminal state for\ \ such a Job has the \"Complete\" condition. Additionally, these rules\ \ are evaluated in order; Once the Job meets one of the rules, other rules\ @@ -186151,8 +191973,339 @@ 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/v1alpha1.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: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.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 + v1alpha1.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 + pkixPublicKey: pkixPublicKey + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + proofOfPossession: proofOfPossession + 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/v1alpha1.PodCertificateRequestSpec' + status: + $ref: '#/components/schemas/v1alpha1.PodCertificateRequestStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: PodCertificateRequest + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.PodCertificateRequestList: + description: PodCertificateRequestList is a collection of PodCertificateRequest + objects + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + nodeName: nodeName + pkixPublicKey: pkixPublicKey + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + proofOfPossession: proofOfPossession + 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 + pkixPublicKey: pkixPublicKey + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + proofOfPossession: proofOfPossession + 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\ @@ -186160,9 +192313,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/v1alpha1.PodCertificateRequest' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -186176,38 +192329,172 @@ components: type: object x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundleList + kind: PodCertificateRequestList version: v1alpha1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha1.ClusterTrustBundleSpec: - description: ClusterTrustBundleSpec contains the signer and trust anchors. + v1alpha1.PodCertificateRequestSpec: + description: PodCertificateRequestSpec describes the certificate request. All + fields are immutable after creation. example: - trustBundle: trustBundle + nodeName: nodeName + pkixPublicKey: pkixPublicKey + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + proofOfPossession: proofOfPossession + serviceAccountUID: serviceAccountUID signerName: signerName properties: - signerName: + maxExpirationSeconds: description: |- - signerName indicates the associated signer, if any. + maxExpirationSeconds is the maximum lifetime permitted for the certificate. - 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 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). - 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`. + 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 + pkixPublicKey: + description: |- + pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. - If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. + The 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: + 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 + proofOfPossession: description: |- - trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. + proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. - 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. + It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. - 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. + kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. + + If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). + + If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) + + If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). + format: byte + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + 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. + + 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 required: - - trustBundle + - nodeName + - nodeUID + - pkixPublicKey + - podName + - podUID + - proofOfPossession + - serviceAccountName + - serviceAccountUID + - signerName + type: object + v1alpha1.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: |- @@ -187312,7 +193599,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: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -188917,10 +195204,10 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key properties: @@ -188953,14 +195240,14 @@ 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: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key properties: @@ -189005,52 +195292,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -189106,6 +195365,162 @@ components: 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 @@ -189125,6 +195540,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -189143,131 +195563,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true properties: args: description: "Arguments to the entrypoint. The container image's CMD is\ @@ -189308,11 +195618,10 @@ components: x-kubernetes-patch-merge-key: name envFrom: description: "List of sources to populate environment variables in the container.\ - \ The keys defined within a source must be a C_IDENTIFIER. All invalid\ - \ keys will be reported as an event when the container is starting. When\ - \ a key exists in multiple sources, the value associated with the last\ - \ source will take precedence. Values defined by an Env with a duplicate\ - \ key will take precedence. Cannot be updated." + \ The keys defined within a source may consist of any printable ASCII\ + \ characters except '='. When a key exists in multiple sources, the value\ + \ associated with the last source will take precedence. Values defined\ + \ by an Env with a duplicate key will take precedence. Cannot be updated." items: $ref: '#/components/schemas/v1.EnvFromSource' type: array @@ -189364,21 +195673,34 @@ components: $ref: '#/components/schemas/v1.ResourceRequirements' restartPolicy: description: "RestartPolicy defines the restart behavior of individual containers\ - \ in a pod. This field may only be set for init containers, and the only\ - \ allowed value is \"Always\". For non-init containers or when this field\ + \ in a pod. This overrides the pod-level restart policy. When this field\ \ is not specified, the restart behavior is defined by the Pod's restart\ - \ policy and the container type. Setting the RestartPolicy as \"Always\"\ - \ for the init container will have the following effect: this init container\ - \ will be continually restarted on exit until all regular containers have\ - \ terminated. Once all regular containers have completed, all init containers\ - \ with restartPolicy \"Always\" will be shut down. This lifecycle differs\ - \ from normal init containers and is often referred to as a \"sidecar\"\ - \ container. Although this init container still starts in the init container\ - \ sequence, it does not wait for the container to complete before proceeding\ - \ to the next init container. Instead, the next init container starts\ - \ immediately after this init container is started, or after any startupProbe\ - \ has successfully completed." - type: string + \ policy and the container type. Additionally, setting the RestartPolicy\ + \ as \"Always\" for the init container will have the following effect:\ + \ this init container will be continually restarted on exit until all\ + \ regular containers have terminated. Once all regular containers have\ + \ completed, all init containers with restartPolicy \"Always\" will be\ + \ shut down. This lifecycle differs from normal init containers and is\ + \ often referred to as a \"sidecar\" container. Although this init container\ + \ still starts in the init container sequence, it does not wait for the\ + \ container to complete before proceeding to the next init container.\ + \ Instead, the next init container starts immediately after this init\ + \ container is started, or after any startupProbe has successfully completed." + type: string + restartPolicyRules: + description: "Represents a list of rules to be checked to determine if the\ + \ container should be restarted on exit. The rules are evaluated in order.\ + \ Once a rule matches a container exit condition, the remaining rules\ + \ are ignored. If no rule matches the container exit condition, the Container-level\ + \ restart policy determines the whether the container is restarted or\ + \ not. Constraints on the rules: - At most 20 rules are allowed. - Rules\ + \ can have the same action. - Identical rules are not forbidden in validations.\ + \ When rules are specified, container MUST set RestartPolicy explicitly\ + \ even it if matches the Pod's RestartPolicy." + items: + $ref: '#/components/schemas/v1.ContainerRestartRule' + type: array + x-kubernetes-list-type: atomic securityContext: $ref: '#/components/schemas/v1.SecurityContext' startupProbe: @@ -189450,6 +195772,30 @@ components: required: - name type: object + v1.ContainerExtendedResourceRequest: + description: "ContainerExtendedResourceRequest has the mapping of container\ + \ name, extended resource name to the device request name." + example: + requestName: requestName + containerName: containerName + resourceName: resourceName + properties: + containerName: + description: The name of the container requesting resources. + type: string + requestName: + description: The name of the request in the special ResourceClaim which + corresponds to the extended resource. + type: string + resourceName: + description: The name of the extended resource in that container which gets + backed by DRA. + type: string + required: + - containerName + - requestName + - resourceName + type: object v1.ContainerImage: description: Describe a container image example: @@ -189524,6 +195870,52 @@ components: - resourceName - restartPolicy type: object + v1.ContainerRestartRule: + description: ContainerRestartRule describes how a container exit is handled. + example: + action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + properties: + action: + description: Specifies the action taken on a container exit if the requirements + are satisfied. The only possible value is "Restart" to restart the container. + type: string + exitCodes: + $ref: '#/components/schemas/v1.ContainerRestartRuleOnExitCodes' + required: + - action + type: object + v1.ContainerRestartRuleOnExitCodes: + description: ContainerRestartRuleOnExitCodes describes the condition for handling + an exited container based on its exit codes. + example: + values: + - 1 + - 1 + operator: operator + properties: + operator: + description: |- + Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the + set of specified values. + - NotIn: the requirement is satisfied if the container exit code is + not in the set of specified values. + type: string + values: + description: Specifies the set of values to check for container exit codes. + At most 255 elements are allowed. + items: + format: int32 + type: integer + type: array + x-kubernetes-list-type: set + required: + - operator + type: object v1.ContainerState: description: "ContainerState holds a possible state of container. Only one of\ \ its members may be specified. If none of them is specified, the default\ @@ -189540,7 +195932,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 properties: running: @@ -189568,7 +195960,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 properties: containerID: @@ -189631,7 +196023,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -189655,7 +196047,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -189682,17 +196074,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 properties: allocatedResources: additionalProperties: @@ -189787,11 +196179,11 @@ components: description: ContainerUser represents user identity information example: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 properties: linux: $ref: '#/components/schemas/v1.LinuxContainerUser' @@ -189814,7 +196206,7 @@ components: mode. example: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -189823,7 +196215,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -189844,7 +196236,7 @@ components: description: DownwardAPIVolumeFile represents information to create the file containing the pod field example: - mode: 1 + mode: 2 path: path resourceFieldRef: divisor: divisor @@ -189879,9 +196271,9 @@ components: description: DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. example: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -189890,7 +196282,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -190705,7 +197097,7 @@ components: $ref: '#/components/schemas/v1.ConfigMapEnvSource' prefix: description: Optional text to prepend to the name of each environment variable. - Must be a C_IDENTIFIER. + May consist of any printable ASCII characters except '='. type: string secretRef: $ref: '#/components/schemas/v1.SecretEnvSource' @@ -190731,9 +197123,15 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key properties: name: - description: Name of the environment variable. Must be a C_IDENTIFIER. + description: Name of the environment variable. May consist of any printable + ASCII characters except '='. type: string value: description: "Variable references $(VAR_NAME) are expanded using the previously\ @@ -190768,11 +197166,18 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key properties: configMapKeyRef: $ref: '#/components/schemas/v1.ConfigMapKeySelector' fieldRef: $ref: '#/components/schemas/v1.ObjectFieldSelector' + fileKeyRef: + $ref: '#/components/schemas/v1.FileKeySelector' resourceFieldRef: $ref: '#/components/schemas/v1.ResourceFieldSelector' secretKeyRef: @@ -190789,11 +197194,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -191025,6 +197443,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -191043,6 +197466,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -191093,11 +197521,10 @@ components: x-kubernetes-patch-merge-key: name envFrom: description: "List of sources to populate environment variables in the container.\ - \ The keys defined within a source must be a C_IDENTIFIER. All invalid\ - \ keys will be reported as an event when the container is starting. When\ - \ a key exists in multiple sources, the value associated with the last\ - \ source will take precedence. Values defined by an Env with a duplicate\ - \ key will take precedence. Cannot be updated." + \ The keys defined within a source may consist of any printable ASCII\ + \ characters except '='. When a key exists in multiple sources, the value\ + \ associated with the last source will take precedence. Values defined\ + \ by an Env with a duplicate key will take precedence. Cannot be updated." items: $ref: '#/components/schemas/v1.EnvFromSource' type: array @@ -191142,9 +197569,17 @@ components: $ref: '#/components/schemas/v1.ResourceRequirements' restartPolicy: description: Restart policy for the container to manage the restart behavior - of each container within a pod. This may only be set for init containers. - You cannot set this field on ephemeral containers. + of each container within a pod. You cannot set this field on ephemeral + containers. type: string + restartPolicyRules: + description: Represents a list of rules to be checked to determine if the + container should be restarted on exit. You cannot set this field on ephemeral + containers. + items: + $ref: '#/components/schemas/v1.ContainerRestartRule' + type: array + x-kubernetes-list-type: atomic securityContext: $ref: '#/components/schemas/v1.SecurityContext' startupProbe: @@ -191722,7 +198157,7 @@ components: be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. example: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -191760,6 +198195,39 @@ components: type: array x-kubernetes-list-type: atomic type: object + v1.FileKeySelector: + description: FileKeySelector selects a key of the env file. + example: + path: path + volumeName: volumeName + optional: true + key: key + properties: + key: + description: "The key within the env file. An invalid key will prevent the\ + \ pod from starting. The keys defined within a source may consist of any\ + \ printable ASCII characters except '='. During Alpha stage of the EnvFiles\ + \ feature gate, the key size is limited to 128 characters." + type: string + optional: + description: |- + Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. + + If optional is set to false and the specified key does not exist, an error will be returned during Pod creation. + type: boolean + path: + description: The path within the volume from which to select the file. Must + be relative and may not contain the '..' path or start with '..'. + type: string + volumeName: + description: The name of the volume mount containing the env file. + type: string + required: + - key + - path + - volumeName + type: object + x-kubernetes-map-type: atomic v1.FlexPersistentVolumeSource: description: FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. @@ -191967,8 +198435,7 @@ components: readOnly: true properties: endpoints: - description: "endpoints is the endpoint name that details Glusterfs topology.\ - \ More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod" + description: endpoints is the endpoint name that details Glusterfs topology. type: string path: description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod" @@ -192168,7 +198635,7 @@ components: example: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -192265,7 +198732,7 @@ components: v1.KeyToPath: description: Maps a string key to a path within a volume. example: - mode: 3 + mode: 6 path: path key: key properties: @@ -192758,11 +199225,11 @@ components: description: LinuxContainerUser represents user identity information in Linux containers example: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 properties: gid: description: GID is the primary gid initially attached to the first process @@ -194769,7 +201236,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -194904,7 +201371,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -195452,16 +201919,13 @@ components: \ used by this claim. If specified, the CSI driver will create or update\ \ the volume with the attributes defined in the corresponding VolumeAttributesClass.\ \ This has a different purpose than storageClassName, it can be changed\ - \ after the claim is created. An empty string value means that no VolumeAttributesClass\ - \ will be applied to the claim but it's not allowed to reset this field\ - \ to empty string once it is set. If unspecified and the PersistentVolumeClaim\ - \ is unbound, the default VolumeAttributesClass will be set by the persistentvolume\ - \ controller if it exists. If the resource referred to by volumeAttributesClass\ - \ does not exist, this PersistentVolumeClaim will be set to a Pending\ - \ state, as reflected by the modifyVolumeStatus field, until such as a\ - \ resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\ - \ (Beta) Using this field requires the VolumeAttributesClass feature gate\ - \ to be enabled (off by default)." + \ after the claim is created. An empty string or nil value indicates that\ + \ no VolumeAttributesClass will be applied to the claim. If the claim\ + \ enters an Infeasible error state, this field can be reset to its previous\ + \ value (including nil) to cancel the modification. If the resource referred\ + \ to by volumeAttributesClass does not exist, this PersistentVolumeClaim\ + \ will be set to a Pending state, as reflected by the modifyVolumeStatus\ + \ field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/" type: string volumeMode: description: volumeMode defines what type of volume is required by the claim. @@ -195591,8 +202055,7 @@ components: currentVolumeAttributesClassName: description: "currentVolumeAttributesClassName is the current name of the\ \ VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass\ - \ applied to this PersistentVolumeClaim This is a beta field and requires\ - \ enabling VolumeAttributesClass feature (off by default)." + \ applied to this PersistentVolumeClaim" type: string modifyVolumeStatus: $ref: '#/components/schemas/v1.ModifyVolumeStatus' @@ -195867,7 +202330,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -196002,7 +202465,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -196161,7 +202624,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -196296,7 +202759,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -196436,7 +202899,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -196571,7 +203034,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -196671,8 +203134,7 @@ components: \ This field is mutable and can be changed by the CSI driver after a volume\ \ has been updated successfully to a new class. For an unbound PersistentVolume,\ \ the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims\ - \ during the binding process. This is a beta field and requires enabling\ - \ VolumeAttributesClass feature (off by default)." + \ during the binding process." type: string volumeMode: description: volumeMode defines if a volume is intended to be used with @@ -196800,6 +203262,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -196822,17 +203285,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -196842,8 +203305,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -196852,12 +203315,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -196877,7 +203340,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -196893,14 +203356,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -196916,7 +203379,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -197027,20 +203490,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197049,7 +203512,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197062,26 +203525,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -197103,7 +203573,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197112,7 +203582,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197125,26 +203595,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -197164,7 +203641,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -197219,9 +203696,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197230,7 +203707,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197240,7 +203717,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -197250,7 +203727,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -197275,14 +203752,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -197322,7 +203799,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -197439,20 +203916,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197461,7 +203938,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197474,26 +203951,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -197515,7 +203999,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197524,7 +204008,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197537,26 +204021,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -197576,7 +204067,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -197631,9 +204122,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197642,7 +204133,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197652,7 +204143,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -197662,7 +204153,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -197687,14 +204178,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -197734,7 +204225,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -197762,11 +204253,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -197998,6 +204502,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -198016,6 +204525,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -198031,11 +204545,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -198267,6 +204794,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -198285,6 +204817,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -198296,7 +204833,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -198314,6 +204851,194 @@ components: 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: @@ -198343,8 +205068,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -198357,9 +205080,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -198415,43 +205215,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -198463,10 +205226,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -198482,9 +205241,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -198527,8 +205283,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -198561,7 +205315,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -198577,11 +205330,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -198611,8 +205359,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -198625,9 +205371,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -198683,43 +205507,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -198731,10 +205518,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -198750,9 +205533,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -198795,8 +205575,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -198829,7 +205607,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -198845,12 +205622,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -198880,8 +205651,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -198894,9 +205663,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -198952,43 +205798,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -199000,10 +205809,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -199019,9 +205824,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -199064,8 +205866,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -199098,7 +205898,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -199114,11 +205913,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -199148,8 +205942,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -199162,64 +205954,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -199239,6 +205973,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -199257,131 +205996,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -199822,7 +206451,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -199846,7 +206475,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -199873,17 +206502,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -199899,7 +206528,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -199923,7 +206552,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -199950,18 +206579,27 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 hostIP: hostIP + extendedResourceClaimStatus: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName nominatedNodeName: nominatedNodeName message: message podIPs: @@ -199984,7 +206622,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -200008,7 +206646,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -200035,17 +206673,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -200061,7 +206699,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -200085,7 +206723,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -200112,17 +206750,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 hostIPs: - ip: ip - ip: ip @@ -200134,14 +206772,14 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 3 + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 3 + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: @@ -200160,7 +206798,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -200184,7 +206822,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -200211,17 +206849,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -200237,7 +206875,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -200261,7 +206899,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -200288,18 +206926,18 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 - observedGeneration: 8 + - 8 + - 8 + observedGeneration: 3 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -200781,9 +207419,9 @@ components: \ most preferred is the one with the greatest sum of weights, i.e. for\ \ each node that meets all of the scheduling requirements (resource request,\ \ requiredDuringScheduling anti-affinity expressions, etc.), compute a\ - \ sum by iterating through the elements of this field and adding \"weight\"\ - \ to the sum if the node has pods which matches the corresponding podAffinityTerm;\ - \ the node(s) with the highest sum are the most preferred." + \ sum by iterating through the elements of this field and subtracting\ + \ \"weight\" from the sum if the node has pods which matches the corresponding\ + \ podAffinityTerm; the node(s) with the highest sum are the most preferred." items: $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' type: array @@ -200801,6 +207439,63 @@ components: type: array x-kubernetes-list-type: atomic type: object + v1.PodCertificateProjection: + description: PodCertificateProjection provides a private key and X.509 certificate + in the pod filesystem. + example: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + properties: + certificateChainPath: + description: |- + Write the certificate chain at this path in the projected volume. + + Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. + type: string + credentialBundlePath: + description: |- + Write the credential bundle at this path in the projected volume. + + The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. + + The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). + + Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key. + type: string + keyPath: + description: |- + Write the key at this path in the projected volume. + + Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. + type: string + keyType: + description: |- + The type of keypair Kubelet will generate for the pod. + + Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384", "ECDSAP521", and "ED25519". + type: string + maxExpirationSeconds: + description: |- + 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. + format: int32 + type: integer + signerName: + description: Kubelet's generated CSRs will be addressed to this signer. + type: string + required: + - keyType + - signerName + type: object v1.PodCondition: description: PodCondition contains details for the current condition of this pod. @@ -200809,7 +207504,7 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 3 + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status properties: @@ -200900,6 +207595,35 @@ components: description: Value is this DNS resolver option's value. type: string type: object + v1.PodExtendedResourceClaimStatus: + 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. + example: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName + properties: + requestMappings: + description: "RequestMappings identifies the mapping of to device request in the generated ResourceClaim." + items: + $ref: '#/components/schemas/v1.ContainerExtendedResourceRequest' + type: array + x-kubernetes-list-type: atomic + resourceClaimName: + description: ResourceClaimName is the name of the ResourceClaim that was + generated for the Pod in the namespace of the Pod. + type: string + required: + - requestMappings + - resourceClaimName + type: object v1.PodIP: description: PodIP represents a single IP address allocated to the pod. example: @@ -200991,6 +207715,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -201013,17 +207738,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -201033,8 +207758,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -201043,12 +207768,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -201068,7 +207793,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -201084,14 +207809,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -201107,7 +207832,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -201218,20 +207943,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201240,7 +207965,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201253,26 +207978,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -201294,7 +208026,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201303,7 +208035,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201316,26 +208048,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -201355,7 +208094,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -201410,9 +208149,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201421,7 +208160,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201431,7 +208170,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -201441,7 +208180,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -201466,14 +208205,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -201513,7 +208252,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -201630,20 +208369,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201652,7 +208391,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201665,26 +208404,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -201706,7 +208452,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201715,7 +208461,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201728,26 +208474,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -201767,7 +208520,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -201822,9 +208575,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201833,7 +208586,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201843,7 +208596,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -201853,7 +208606,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -201878,14 +208631,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -201925,7 +208678,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -201953,11 +208706,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -202189,6 +208955,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -202207,6 +208978,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -202222,11 +208998,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -202458,6 +209247,316 @@ components: 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: 7 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + 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: @@ -202476,6 +209575,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -202486,71 +209590,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -202606,43 +209668,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -202654,10 +209679,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -202673,9 +209694,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -202718,8 +209736,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -202752,7 +209768,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -202768,11 +209783,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -202802,8 +209812,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -202816,9 +209824,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -202874,43 +209960,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -202922,10 +209971,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -202941,9 +209986,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -202986,8 +210028,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -203020,7 +210060,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -203036,12 +210075,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -203071,8 +210104,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -203085,9 +210116,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -203143,43 +210251,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -203191,10 +210262,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -203210,9 +210277,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -203255,8 +210319,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -203289,7 +210351,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -203305,11 +210366,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -203339,8 +210395,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -203353,64 +210407,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -203430,6 +210426,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -203448,131 +210449,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -204013,7 +210904,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -204037,7 +210928,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -204064,17 +210955,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -204090,7 +210981,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -204114,7 +211005,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -204141,18 +211032,27 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 hostIP: hostIP + extendedResourceClaimStatus: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName nominatedNodeName: nominatedNodeName message: message podIPs: @@ -204175,7 +211075,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -204199,7 +211099,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -204226,17 +211126,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -204252,7 +211152,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -204276,7 +211176,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -204303,17 +211203,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 hostIPs: - ip: ip - ip: ip @@ -204325,14 +211225,14 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 3 + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 3 + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: @@ -204351,7 +211251,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -204375,7 +211275,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -204402,17 +211302,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -204428,7 +211328,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -204452,7 +211352,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -204479,18 +211379,18 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 - observedGeneration: 8 + - 8 + - 8 + observedGeneration: 3 - metadata: generation: 6 finalizers: @@ -204560,6 +211460,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -204582,17 +211483,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -204602,8 +211503,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -204612,12 +211513,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -204637,7 +211538,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -204653,14 +211554,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -204676,7 +211577,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -204787,20 +211688,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204809,7 +211710,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204822,26 +211723,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -204863,7 +211771,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204872,7 +211780,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204885,26 +211793,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -204924,7 +211839,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -204979,9 +211894,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204990,7 +211905,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -205000,7 +211915,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -205010,7 +211925,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -205035,14 +211950,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -205082,7 +211997,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -205199,20 +212114,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -205221,7 +212136,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -205234,26 +212149,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -205275,7 +212197,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -205284,7 +212206,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -205297,26 +212219,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -205336,7 +212265,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -205391,9 +212320,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -205402,7 +212331,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -205412,7 +212341,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -205422,7 +212351,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -205447,14 +212376,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -205494,7 +212423,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -205522,11 +212451,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -205758,6 +212700,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -205776,6 +212723,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -205791,11 +212743,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -206027,6 +212992,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -206045,6 +213015,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -206056,7 +213031,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -206074,6 +213049,194 @@ components: 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: @@ -206103,8 +213266,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -206117,9 +213278,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -206175,43 +213413,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -206223,10 +213424,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -206242,9 +213439,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -206287,8 +213481,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -206321,7 +213513,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -206337,11 +213528,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -206371,8 +213557,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -206385,9 +213569,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -206443,43 +213705,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -206491,10 +213716,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -206510,9 +213731,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -206555,8 +213773,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -206589,7 +213805,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -206605,12 +213820,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -206640,8 +213849,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -206654,9 +213861,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -206712,43 +213996,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -206760,10 +214007,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -206779,9 +214022,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -206824,8 +214064,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -206858,7 +214096,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -206874,11 +214111,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -206908,8 +214140,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -206922,64 +214152,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -206999,6 +214171,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -207017,131 +214194,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -207582,7 +214649,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207606,7 +214673,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -207633,17 +214700,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -207659,7 +214726,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207683,7 +214750,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -207710,18 +214777,27 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 hostIP: hostIP + extendedResourceClaimStatus: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName nominatedNodeName: nominatedNodeName message: message podIPs: @@ -207744,7 +214820,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207768,7 +214844,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -207795,17 +214871,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -207821,7 +214897,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207845,7 +214921,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -207872,17 +214948,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 hostIPs: - ip: ip - ip: ip @@ -207894,14 +214970,14 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 3 + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 3 + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: @@ -207920,7 +214996,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207944,7 +215020,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -207971,17 +215047,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -207997,7 +215073,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -208021,7 +215097,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -208048,18 +215124,18 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 - observedGeneration: 8 + - 8 + - 8 + observedGeneration: 3 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -208194,17 +215270,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -208214,8 +215290,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy properties: appArmorProfile: @@ -208336,6 +215412,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -208358,17 +215435,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -208378,8 +215455,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -208388,12 +215465,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -208413,7 +215490,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -208429,14 +215506,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -208452,7 +215529,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -208563,20 +215640,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208585,7 +215662,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208598,26 +215675,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -208639,7 +215723,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208648,7 +215732,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208661,26 +215745,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -208700,7 +215791,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -208755,9 +215846,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208766,7 +215857,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208776,7 +215867,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -208786,7 +215877,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -208811,14 +215902,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -208858,7 +215949,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -208975,20 +216066,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208997,7 +216088,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -209010,26 +216101,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -209051,7 +216149,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -209060,7 +216158,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -209073,26 +216171,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -209112,7 +216217,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -209167,9 +216272,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -209178,7 +216283,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -209188,7 +216293,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -209198,7 +216303,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -209223,14 +216328,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -209270,7 +216375,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -209298,11 +216403,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -209534,6 +216652,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -209552,6 +216675,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -209567,11 +216695,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -209803,6 +216944,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -209821,6 +216967,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -209832,7 +216983,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -209850,52 +217001,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -209951,43 +217074,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -209999,10 +217085,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -210018,9 +217100,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -210063,8 +217142,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -210097,7 +217174,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -210113,11 +217189,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -210147,8 +217218,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -210161,9 +217230,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -210219,43 +217365,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -210267,10 +217376,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -210286,9 +217391,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -210331,8 +217433,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -210365,7 +217465,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -210381,12 +217480,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -210416,8 +217509,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -210430,9 +217521,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -210488,43 +217657,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -210536,10 +217668,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -210555,9 +217683,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -210600,8 +217725,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -210634,7 +217757,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -210650,11 +217772,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -210684,8 +217801,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -210698,9 +217813,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -210756,43 +217948,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -210804,10 +217959,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -210823,9 +217974,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -210868,8 +218016,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -210902,7 +218048,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -210918,6 +218063,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -211403,8 +218646,11 @@ components: type: boolean hostNetwork: description: "Host networking requested for this pod. Use the host's network\ - \ namespace. If this option is set, the ports that will be used must be\ - \ specified. Default to false." + \ 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." type: boolean hostPID: description: "Use the host's pid namespace. Optional: Default to false." @@ -211424,6 +218670,12 @@ components: description: "Specifies the hostname of the Pod If not specified, the pod's\ \ hostname will be set to a system-defined value." 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. + + 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. + type: string imagePullSecrets: description: "ImagePullSecrets is an optional list of references to secrets\ \ in the same namespace to use for pulling any of the images used by this\ @@ -211670,7 +218922,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -211694,7 +218946,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -211721,17 +218973,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -211747,7 +218999,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -211771,7 +219023,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -211798,18 +219050,27 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 hostIP: hostIP + extendedResourceClaimStatus: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName nominatedNodeName: nominatedNodeName message: message podIPs: @@ -211832,7 +219093,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -211856,7 +219117,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -211883,17 +219144,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -211909,7 +219170,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -211933,7 +219194,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -211960,17 +219221,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 hostIPs: - ip: ip - ip: ip @@ -211982,14 +219243,14 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 3 + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - observedGeneration: 3 + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: @@ -212008,7 +219269,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -212032,7 +219293,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -212059,17 +219320,17 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 + - 8 + - 8 - allocatedResourcesStatus: - name: name resources: @@ -212085,7 +219346,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -212109,7 +219370,7 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -212136,18 +219397,18 @@ components: startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 0 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID stopSignal: stopSignal user: linux: - uid: 4 - gid: 6 + uid: 7 + gid: 4 supplementalGroups: - - 0 - - 0 - observedGeneration: 8 + - 8 + - 8 + observedGeneration: 3 properties: conditions: description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions" @@ -212182,6 +219443,8 @@ components: $ref: '#/components/schemas/v1.ContainerStatus' type: array x-kubernetes-list-type: atomic + extendedResourceClaimStatus: + $ref: '#/components/schemas/v1.PodExtendedResourceClaimStatus' hostIP: description: hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned @@ -212366,6 +219629,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -212388,17 +219652,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -212408,8 +219672,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -212418,12 +219682,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -212443,7 +219707,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -212459,14 +219723,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -212482,7 +219746,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -212593,20 +219857,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -212615,7 +219879,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -212628,26 +219892,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -212669,7 +219940,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -212678,7 +219949,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -212691,26 +219962,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -212730,7 +220008,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -212785,9 +220063,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -212796,7 +220074,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -212806,7 +220084,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -212816,7 +220094,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -212841,14 +220119,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -212888,7 +220166,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -213005,20 +220283,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -213027,7 +220305,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -213040,26 +220318,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -213081,7 +220366,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -213090,7 +220375,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -213103,26 +220388,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -213142,7 +220434,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -213197,9 +220489,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -213208,7 +220500,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -213218,7 +220510,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -213228,7 +220520,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -213253,14 +220545,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -213300,7 +220592,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -213328,11 +220620,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -213564,6 +220869,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -213582,6 +220892,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -213597,11 +220912,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -213833,6 +221161,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -213851,6 +221184,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -213862,7 +221200,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -213880,6 +221218,194 @@ components: 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: @@ -213909,8 +221435,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -213923,9 +221447,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -213981,43 +221582,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -214029,10 +221593,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -214048,9 +221608,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -214093,8 +221650,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -214127,7 +221682,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -214143,11 +221697,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -214177,8 +221726,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -214191,9 +221738,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -214249,43 +221874,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -214297,10 +221885,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -214316,9 +221900,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -214361,8 +221942,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -214395,7 +221974,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -214411,12 +221989,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -214446,8 +222018,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -214460,9 +222030,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -214518,43 +222165,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -214566,10 +222176,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -214585,9 +222191,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -214630,8 +222233,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -214664,7 +222265,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -214680,11 +222280,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -214714,8 +222309,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -214728,64 +222321,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -214805,6 +222340,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -214823,131 +222363,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -215513,6 +222943,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -215535,17 +222966,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -215555,8 +222986,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -215565,12 +222996,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -215590,7 +223021,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -215606,14 +223037,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -215629,7 +223060,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -215740,20 +223171,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -215762,7 +223193,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -215775,26 +223206,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -215816,7 +223254,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -215825,7 +223263,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -215838,26 +223276,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -215877,7 +223322,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -215932,9 +223377,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -215943,7 +223388,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -215953,7 +223398,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -215963,7 +223408,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -215988,14 +223433,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -216035,7 +223480,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -216152,20 +223597,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -216174,7 +223619,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -216187,26 +223632,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -216228,7 +223680,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -216237,7 +223689,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -216250,26 +223702,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -216289,7 +223748,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -216344,9 +223803,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -216355,7 +223814,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -216365,7 +223824,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -216375,7 +223834,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -216400,14 +223859,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -216447,7 +223906,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -216475,11 +223934,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -216711,6 +224183,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -216729,6 +224206,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -216744,11 +224226,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -216980,6 +224475,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -216998,6 +224498,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -217009,7 +224514,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -217027,52 +224532,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -217128,43 +224605,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -217176,10 +224616,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -217195,9 +224631,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -217240,8 +224673,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -217274,7 +224705,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -217290,11 +224720,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -217324,8 +224749,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -217338,9 +224761,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -217396,43 +224896,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -217444,10 +224907,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -217463,9 +224922,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -217508,8 +224964,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -217542,7 +224996,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -217558,12 +225011,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -217593,8 +225040,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -217607,9 +225052,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -217665,43 +225188,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -217713,10 +225199,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -217732,9 +225214,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -217777,8 +225256,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -217811,7 +225288,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -217827,11 +225303,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -217861,8 +225332,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -217875,9 +225344,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -217933,43 +225479,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -217981,10 +225490,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -218000,9 +225505,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -218045,8 +225547,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -218079,7 +225579,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -218095,6 +225594,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -218627,6 +226224,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -218649,17 +226247,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -218669,8 +226267,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -218679,12 +226277,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -218704,7 +226302,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -218720,14 +226318,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -218743,7 +226341,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -218854,20 +226452,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -218876,7 +226474,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -218889,26 +226487,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -218930,7 +226535,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -218939,7 +226544,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -218952,26 +226557,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -218991,7 +226603,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -219046,9 +226658,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -219057,7 +226669,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -219067,7 +226679,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -219077,7 +226689,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -219102,14 +226714,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -219149,7 +226761,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -219266,20 +226878,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -219288,7 +226900,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -219301,26 +226913,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -219342,7 +226961,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -219351,7 +226970,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -219364,26 +226983,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -219403,7 +227029,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -219458,9 +227084,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -219469,7 +227095,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -219479,7 +227105,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -219489,7 +227115,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -219514,14 +227140,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -219561,7 +227187,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -219589,11 +227215,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -219825,6 +227464,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -219843,6 +227487,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -219858,11 +227507,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -220094,6 +227756,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -220112,6 +227779,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -220123,7 +227795,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -220141,52 +227813,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -220242,43 +227886,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -220290,10 +227897,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -220309,9 +227912,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -220354,8 +227954,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -220388,7 +227986,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -220404,11 +228001,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -220438,8 +228030,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -220452,9 +228042,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -220510,43 +228177,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -220558,10 +228188,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -220577,9 +228203,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -220622,8 +228245,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -220656,7 +228277,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -220672,12 +228292,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -220707,8 +228321,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -220721,9 +228333,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -220779,43 +228469,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -220827,10 +228480,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -220846,9 +228495,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -220891,8 +228537,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -220925,7 +228569,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -220941,11 +228584,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -220975,8 +228613,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -220989,9 +228625,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -221047,43 +228760,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -221095,10 +228771,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -221114,9 +228786,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -221159,8 +228828,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -221193,7 +228860,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -221209,6 +228875,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -221771,6 +229535,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -221793,17 +229558,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -221813,8 +229578,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -221823,12 +229588,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -221848,7 +229613,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -221864,14 +229629,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -221887,7 +229652,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -221998,20 +229763,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222020,7 +229785,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222033,26 +229798,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -222074,7 +229846,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222083,7 +229855,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222096,26 +229868,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -222135,7 +229914,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -222190,9 +229969,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222201,7 +229980,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222211,7 +229990,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -222221,7 +230000,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -222246,14 +230025,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -222293,7 +230072,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -222410,20 +230189,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222432,7 +230211,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222445,26 +230224,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -222486,7 +230272,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222495,7 +230281,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222508,26 +230294,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -222547,7 +230340,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -222602,9 +230395,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222613,7 +230406,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -222623,7 +230416,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -222633,7 +230426,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -222658,14 +230451,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -222705,7 +230498,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -222733,11 +230526,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -222969,6 +230775,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -222987,6 +230798,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -223002,11 +230818,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -223238,6 +231067,316 @@ components: 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: 7 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + 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: @@ -223256,6 +231395,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -223266,71 +231410,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -223386,43 +231488,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -223434,10 +231499,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -223453,9 +231514,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -223498,8 +231556,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -223532,7 +231588,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -223548,11 +231603,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -223582,8 +231632,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -223596,9 +231644,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -223654,43 +231780,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -223702,10 +231791,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -223721,9 +231806,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -223766,8 +231848,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -223800,7 +231880,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -223816,12 +231895,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -223851,8 +231924,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -223865,9 +231936,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -223923,43 +232071,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -223971,10 +232082,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -223990,9 +232097,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -224035,8 +232139,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -224069,7 +232171,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -224085,11 +232186,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -224119,8 +232215,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -224133,64 +232227,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -224210,6 +232246,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -224228,131 +232269,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -224951,7 +232882,7 @@ components: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224960,7 +232891,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224973,26 +232904,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -225014,7 +232952,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -225023,7 +232961,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -225036,26 +232974,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -225075,7 +233020,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 properties: defaultMode: description: "defaultMode are the mode bits used to set permissions on created\ @@ -225359,6 +233304,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -225381,17 +233327,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -225401,8 +233347,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -225411,12 +233357,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -225436,7 +233382,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -225452,14 +233398,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -225475,7 +233421,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -225586,20 +233532,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -225608,7 +233554,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -225621,26 +233567,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -225662,7 +233615,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -225671,7 +233624,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -225684,26 +233637,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -225723,7 +233683,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -225778,9 +233738,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -225789,7 +233749,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -225799,7 +233759,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -225809,7 +233769,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -225834,14 +233794,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -225881,7 +233841,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -225998,20 +233958,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -226020,7 +233980,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -226033,26 +233993,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -226074,7 +234041,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -226083,7 +234050,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -226096,26 +234063,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -226135,7 +234109,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -226190,9 +234164,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -226201,7 +234175,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -226211,7 +234185,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -226221,7 +234195,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -226246,14 +234220,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -226293,7 +234267,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -226321,11 +234295,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -226557,6 +234544,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -226575,6 +234567,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -226590,11 +234587,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -226826,6 +234836,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -226844,6 +234859,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -226855,7 +234875,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -226873,6 +234893,194 @@ components: 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: @@ -226902,8 +235110,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -226916,9 +235122,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -226974,43 +235257,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -227022,10 +235268,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -227041,9 +235283,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -227086,8 +235325,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -227120,7 +235357,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -227136,11 +235372,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -227170,8 +235401,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -227184,9 +235413,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -227242,43 +235549,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -227290,10 +235560,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -227309,9 +235575,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -227354,8 +235617,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -227388,7 +235649,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -227404,12 +235664,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -227439,8 +235693,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -227453,9 +235705,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -227511,43 +235840,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -227559,10 +235851,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -227578,9 +235866,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -227623,8 +235908,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -227657,7 +235940,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -227673,11 +235955,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -227707,8 +235984,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -227721,64 +235996,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -227798,6 +236015,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -227816,131 +236038,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -228561,6 +236673,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -228583,17 +236696,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -228603,8 +236716,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -228613,12 +236726,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -228638,7 +236751,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -228654,14 +236767,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -228677,7 +236790,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -228788,20 +236901,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -228810,7 +236923,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -228823,26 +236936,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -228864,7 +236984,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -228873,7 +236993,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -228886,26 +237006,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -228925,7 +237052,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -228980,9 +237107,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -228991,7 +237118,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -229001,7 +237128,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -229011,7 +237138,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -229036,14 +237163,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -229083,7 +237210,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -229200,20 +237327,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -229222,7 +237349,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -229235,26 +237362,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -229276,7 +237410,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -229285,7 +237419,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -229298,26 +237432,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -229337,7 +237478,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -229392,9 +237533,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -229403,7 +237544,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -229413,7 +237554,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -229423,7 +237564,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -229448,14 +237589,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -229495,7 +237636,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -229523,11 +237664,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -229759,6 +237913,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -229777,6 +237936,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -229792,11 +237956,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -230028,6 +238205,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -230046,6 +238228,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -230057,7 +238244,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -230075,52 +238262,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -230176,43 +238335,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -230224,10 +238346,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -230243,9 +238361,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -230288,8 +238403,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -230322,7 +238435,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -230338,11 +238450,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -230372,8 +238479,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -230386,9 +238491,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -230444,43 +238626,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -230492,10 +238637,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -230511,9 +238652,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -230556,8 +238694,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -230590,7 +238726,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -230606,12 +238741,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -230641,8 +238770,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -230655,9 +238782,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -230713,43 +238918,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -230761,10 +238929,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -230780,9 +238944,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -230825,8 +238986,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -230859,7 +239018,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -230875,11 +239033,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -230909,8 +239062,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -230923,9 +239074,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -230981,43 +239209,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -231029,10 +239220,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -231048,9 +239235,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -231093,8 +239277,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -231127,7 +239309,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -231143,6 +239324,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -231697,6 +239976,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -231719,17 +239999,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -231739,8 +240019,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -231749,12 +240029,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -231774,7 +240054,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -231790,14 +240070,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -231813,7 +240093,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -231924,20 +240204,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -231946,7 +240226,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -231959,26 +240239,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -232000,7 +240287,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232009,7 +240296,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232022,26 +240309,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -232061,7 +240355,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -232116,9 +240410,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232127,7 +240421,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232137,7 +240431,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -232147,7 +240441,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -232172,14 +240466,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -232219,7 +240513,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -232336,20 +240630,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232358,7 +240652,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232371,26 +240665,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -232412,7 +240713,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232421,7 +240722,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232434,26 +240735,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -232473,7 +240781,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -232528,9 +240836,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232539,7 +240847,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -232549,7 +240857,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -232559,7 +240867,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -232584,14 +240892,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -232631,7 +240939,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -232659,11 +240967,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -232895,6 +241216,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -232913,6 +241239,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -232928,11 +241259,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -233164,6 +241508,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -233182,6 +241531,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -233193,7 +241547,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -233211,52 +241565,24 @@ components: name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -233312,43 +241638,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -233360,10 +241649,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -233379,9 +241664,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -233424,8 +241706,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -233458,7 +241738,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -233474,11 +241753,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -233508,8 +241782,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -233522,9 +241794,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -233580,43 +241929,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -233628,10 +241940,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -233647,9 +241955,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -233692,8 +241997,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -233726,7 +242029,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -233742,12 +242044,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -233777,8 +242073,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -233791,9 +242085,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -233849,43 +242221,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -233897,10 +242232,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -233916,9 +242247,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -233961,8 +242289,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -233995,7 +242321,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -234011,11 +242336,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -234045,8 +242365,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -234059,9 +242377,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -234117,43 +242512,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -234165,10 +242523,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -234184,9 +242538,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -234229,8 +242580,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -234263,7 +242612,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -234279,6 +242627,104 @@ components: 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 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -234815,6 +243261,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -234837,17 +243284,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 fsGroupChangePolicy: fsGroupChangePolicy seLinuxChangePolicy: seLinuxChangePolicy - runAsGroup: 1 + runAsGroup: 4 runAsNonRoot: true sysctls: - name: name value: value - name: name value: value - runAsUser: 4 + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -234857,8 +243304,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -234867,12 +243314,12 @@ components: runtimeClassName: runtimeClassName tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -234892,7 +243339,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -234908,14 +243355,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -234931,7 +243378,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -235042,20 +243489,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235064,7 +243511,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235077,26 +243524,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -235118,7 +243572,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235127,7 +243581,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235140,26 +243594,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -235179,7 +243640,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -235234,9 +243695,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235245,7 +243706,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235255,7 +243716,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -235265,7 +243726,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -235290,14 +243751,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -235337,7 +243798,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -235454,20 +243915,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235476,7 +243937,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235489,26 +243950,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -235530,7 +243998,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235539,7 +244007,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235552,26 +244020,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -235591,7 +244066,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -235646,9 +244121,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235657,7 +244132,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -235667,7 +244142,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -235677,7 +244152,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -235702,14 +244177,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -235749,7 +244224,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -235777,11 +244252,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -236013,6 +244501,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -236031,6 +244524,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -236046,11 +244544,24 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -236282,6 +244793,316 @@ components: 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: 7 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + 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: @@ -236300,6 +245121,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -236310,71 +245136,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - restartPolicy: restartPolicy - shareProcessNamespace: true - hostUsers: true - resourceClaims: - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - - resourceClaimName: resourceClaimName - name: name - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -236430,43 +245214,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -236478,10 +245225,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -236497,9 +245240,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -236542,8 +245282,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -236576,7 +245314,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -236592,11 +245329,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -236626,8 +245358,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -236640,9 +245370,87 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -236698,43 +245506,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -236746,10 +245517,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -236765,9 +245532,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -236810,8 +245574,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -236844,7 +245606,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -236860,12 +245621,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -236895,8 +245650,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -236909,9 +245662,86 @@ components: 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: 1 + runAsUser: 6 capabilities: add: - add @@ -236967,43 +245797,6 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath ports: - protocol: protocol hostIP: hostIP @@ -237015,10 +245808,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -237034,9 +245823,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -237079,8 +245865,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -237113,7 +245897,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -237129,11 +245912,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -237163,8 +245941,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -237177,64 +245953,6 @@ components: key: null limits: key: null - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value env: - name: name value: value @@ -237254,6 +245972,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -237272,131 +245995,21 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr args: - args - args - lifecycle: - postStart: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - sleep: - seconds: 5 - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stopSignal: stopSignal name: name tty: true - readinessProbe: - terminationGracePeriodSeconds: 2 - failureThreshold: 5 - periodSeconds: 9 - tcpSocket: - port: port - host: host - timeoutSeconds: 4 - successThreshold: 3 - initialDelaySeconds: 7 - exec: - command: - - command - - command - grpc: - port: 2 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - resizePolicy: - - resourceName: resourceName - restartPolicy: restartPolicy - - resourceName: resourceName - restartPolicy: restartPolicy stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -237903,7 +246516,7 @@ components: required: - replicas type: object - v1.ResourceClaim: + core.v1.ResourceClaim: description: ResourceClaim references one entry in PodSpec.ResourceClaims. example: request: request @@ -238359,11 +246972,11 @@ components: description: |- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. - This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + This field depends on the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. items: - $ref: '#/components/schemas/v1.ResourceClaim' + $ref: '#/components/schemas/core.v1.ResourceClaim' type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -238940,10 +247553,10 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key properties: @@ -238993,13 +247606,13 @@ components: The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. example: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key properties: @@ -239040,7 +247653,7 @@ components: \ When both are set, the values in SecurityContext take precedence." example: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -239592,7 +248205,7 @@ components: example: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 properties: audience: description: "audience is the intended audience of the token. A recipient\ @@ -240423,7 +249036,6 @@ components: type: string timeAdded: description: TimeAdded represents the time at which the taint was added. - It is only written for NoExecute taints. format: date-time type: string value: @@ -240438,7 +249050,7 @@ components: \ matches the triple using the matching operator ." example: effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -240526,7 +249138,7 @@ components: example: nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -240542,7 +249154,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -240783,20 +249395,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -240805,7 +249417,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -240818,26 +249430,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -240859,7 +249478,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -240868,7 +249487,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -240881,26 +249500,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -240920,7 +249546,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -240975,9 +249601,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -240986,7 +249612,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -240996,7 +249622,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -241006,7 +249632,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -241031,14 +249657,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -241078,7 +249704,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -241318,7 +249944,7 @@ components: example: downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -241327,7 +249953,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -241340,26 +249966,33 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -241386,6 +250019,8 @@ components: $ref: '#/components/schemas/v1.ConfigMapProjection' downwardAPI: $ref: '#/components/schemas/v1.DownwardAPIProjection' + podCertificate: + $ref: '#/components/schemas/v1.PodCertificateProjection' secret: $ref: '#/components/schemas/v1.SecretProjection' serviceAccountToken: @@ -247495,8 +256130,6 @@ components: type: string type: array x-kubernetes-list-type: atomic - required: - - podSelector type: object v1.ParentReference: description: ParentReference describes a reference to a parent object. @@ -248508,12 +257141,12 @@ components: scheduling: tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -248622,12 +257255,12 @@ components: scheduling: tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -248688,12 +257321,12 @@ components: scheduling: tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -248732,12 +257365,12 @@ components: example: tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -250692,9 +259325,11 @@ components: - name type: object x-kubernetes-map-type: atomic - v1alpha3.AllocatedDeviceStatus: - description: "AllocatedDeviceStatus contains the status of an allocated device,\ - \ if the driver chooses to report it. This may include driver-specific information." + 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 @@ -250705,6 +259340,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -250749,21 +259385,26 @@ components: Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. type: string networkData: - $ref: '#/components/schemas/v1alpha3.NetworkDeviceData' + $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 - v1alpha3.AllocationResult: + v1.AllocationResult: description: AllocationResult contains attributes of an allocated resource. example: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -250785,34 +259426,52 @@ components: adminAccess: true tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: @@ -250860,15 +259519,367 @@ components: 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + format: date-time + type: string devices: - $ref: '#/components/schemas/v1alpha3.DeviceAllocationResult' + $ref: '#/components/schemas/v1.DeviceAllocationResult' nodeSelector: $ref: '#/components/schemas/v1.NodeSelector' type: object - v1alpha3.BasicDevice: - description: BasicDevice defines one device instance. + 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. + + For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: + + cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool) + + The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + type: string + required: + - expression + type: object + 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 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 + required: + - min + type: object + v1.CapacityRequirements: + description: CapacityRequirements defines the capacity requirements for a specific + device request. + example: + requests: + key: null + properties: + 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: + - value + type: object + v1.CounterSet: + description: |- + CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. + + The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. + example: + counters: + key: + value: value + name: name + properties: + counters: + additionalProperties: + $ref: '#/components/schemas/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 in all sets is 32. + type: object + name: + description: Name defines the name of the counter set. It must be a DNS + label. + type: string + required: + - counters + - name + type: object + 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: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -250878,6 +259889,10 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name attributes: key: bool: true @@ -250894,8 +259909,22 @@ components: value: value key: key allNodes: true + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions capacity: - key: null + key: + value: value + requestPolicy: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - null nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -250949,17 +259978,55 @@ components: 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/v1alpha3.DeviceAttribute' + $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 an alpha 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + bindsToNode: description: |- - Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. + 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. - The maximum number of attributes and capacities combined is 32. - type: object + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + type: boolean capacity: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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. @@ -250973,9 +260040,13 @@ components: The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). items: - $ref: '#/components/schemas/v1alpha3.DeviceCounterConsumption' + $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 nodeName: description: |- NodeName identifies the node where the device is available. @@ -250992,217 +260063,13 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1alpha3.DeviceTaint' + $ref: '#/components/schemas/v1.DeviceTaint' type: array x-kubernetes-list-type: atomic - type: object - v1alpha3.CELDeviceSelector: - description: CELDeviceSelector contains a CEL expression for selecting a device. - example: - expression: expression - properties: - expression: - description: |- - Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. - - The expression's input is an object named "device", which carries the following properties: - - driver (string): the name of the driver which defines this device. - - attributes (map[string]object): the device's attributes, grouped by prefix - (e.g. device.attributes["dra.example.com"] evaluates to an object with all - of the attributes which were prefixed by "dra.example.com". - - capacity (map[string]object): the device's capacities, grouped by prefix. - - Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields: - - device.driver - device.attributes["dra.example.com"].model - device.attributes["ext.example.com"].family - device.capacity["dra.example.com"].modules - - The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. - - The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. - - If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. - - A robust expression should check for the existence of attributes before referencing them. - - For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: - - cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool) - - The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. - type: string - required: - - expression - type: object - v1alpha3.Counter: - description: Counter describes a quantity associated with a device. - example: - value: value - properties: - value: - description: "Quantity is a fixed-point representation of a number. It provides\ - \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ - \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ - ``` ::= \n\n\t(Note that \ - \ may be empty, from the \"\" case in .)\n\n \ - \ ::= 0 | 1 | ... | 9 ::= | \ - \ ::= | . | . | .\ - \ ::= \"+\" | \"-\" ::= |\ - \ ::= | \ - \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ - (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ - \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ - \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ - \ ::= \"e\" | \"E\" ```\n\nNo matter which\ - \ of the three exponent forms is used, no quantity may represent a number\ - \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ - \ places. Numbers larger or more precise will be capped or rounded up.\ - \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ - \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ - \ from a string, it will remember the type of suffix it had, and will\ - \ use the same type again when it is serialized.\n\nBefore serializing,\ - \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ - \ will be adjusted up or down (with a corresponding increase or decrease\ - \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ - \ will be emitted - The exponent (or suffix) is as large as possible.\n\ - \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ - \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ - \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ - \ by a floating point number. That is the whole point of this exercise.\n\ - \nNon-canonical values will still parse as long as they are well formed,\ - \ but will be re-emitted in their canonical form. (So always use canonical\ - \ form, or don't diff.)\n\nThis format is intended to make it difficult\ - \ to use these numbers without writing some sort of special handling code\ - \ in the hopes that that will cause implementors to also use a fixed point\ - \ implementation." - format: quantity - type: string - required: - - value - type: object - v1alpha3.CounterSet: - description: |- - CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. - - The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. - example: - counters: - key: - value: value - name: name - properties: - counters: - additionalProperties: - $ref: '#/components/schemas/v1alpha3.Counter' - description: |- - Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. - - To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. - - The maximum number of counters is 32. - type: object - name: - description: CounterSet is the name of the set from which the counters defined - will be consumed. - type: string - required: - - counters - - name - type: object - v1alpha3.Device: - description: "Device represents one individual hardware instance that can be\ - \ selected based on its attributes. Besides the name, exactly one field must\ - \ be set." - example: - name: name - basic: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: - key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - allNodes: true - capacity: - key: null - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - 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: - basic: - $ref: '#/components/schemas/v1alpha3.BasicDevice' - name: - description: Name is unique identifier among all devices managed by the - driver in the pool. It must be a DNS label. - type: string required: - name type: object - v1alpha3.DeviceAllocationConfiguration: + v1.DeviceAllocationConfiguration: description: DeviceAllocationConfiguration gets embedded in an AllocationResult. example: opaque: @@ -251214,7 +260081,7 @@ components: source: source properties: opaque: - $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + $ref: '#/components/schemas/v1.OpaqueDeviceConfiguration' requests: description: |- Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. @@ -251232,7 +260099,7 @@ components: required: - source type: object - v1alpha3.DeviceAllocationResult: + v1.DeviceAllocationResult: description: DeviceAllocationResult is the result of allocating devices. example: config: @@ -251255,34 +260122,52 @@ components: adminAccess: true tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: |- @@ -251290,17 +260175,17 @@ components: This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. items: - $ref: '#/components/schemas/v1alpha3.DeviceAllocationConfiguration' + $ref: '#/components/schemas/v1.DeviceAllocationConfiguration' type: array x-kubernetes-list-type: atomic results: description: Results lists all allocated devices. items: - $ref: '#/components/schemas/v1alpha3.DeviceRequestAllocationResult' + $ref: '#/components/schemas/v1.DeviceRequestAllocationResult' type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceAttribute: + v1.DeviceAttribute: description: DeviceAttribute must have exactly one field set. example: bool: true @@ -251323,134 +260208,211 @@ components: spec 2.0.0. Must not be longer than 64 characters. type: string type: object - v1alpha3.DeviceClaim: + 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: 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: + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: + 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 + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -251465,11 +260427,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -251479,25 +260443,25 @@ components: which could satisfy requests in this claim. It is ignored while allocating the claim. items: - $ref: '#/components/schemas/v1alpha3.DeviceClaimConfiguration' + $ref: '#/components/schemas/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/v1alpha3.DeviceConstraint' + $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/v1alpha3.DeviceRequest' + $ref: '#/components/schemas/v1.DeviceRequest' type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceClaimConfiguration: + v1.DeviceClaimConfiguration: description: DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. example: @@ -251509,7 +260473,7 @@ components: - requests properties: opaque: - $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + $ref: '#/components/schemas/v1.OpaqueDeviceConfiguration' requests: description: |- Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. @@ -251520,7 +260484,7 @@ components: type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceClass: + 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. @@ -251575,6 +260539,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -251601,17 +260566,17 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1alpha3.DeviceClassSpec' + $ref: '#/components/schemas/v1.DeviceClassSpec' required: - spec type: object x-kubernetes-group-version-kind: - group: resource.k8s.io kind: DeviceClass - version: v1alpha3 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha3.DeviceClassConfiguration: + v1.DeviceClassConfiguration: description: DeviceClassConfiguration is used in DeviceClass. example: opaque: @@ -251619,9 +260584,9 @@ components: parameters: "{}" properties: opaque: - $ref: '#/components/schemas/v1alpha3.OpaqueDeviceConfiguration' + $ref: '#/components/schemas/v1.OpaqueDeviceConfiguration' type: object - v1alpha3.DeviceClassList: + v1.DeviceClassList: description: DeviceClassList is a collection of classes. example: metadata: @@ -251681,6 +260646,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -251742,6 +260708,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -251763,7 +260730,7 @@ components: items: description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.DeviceClass' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -251778,13 +260745,14 @@ components: x-kubernetes-group-version-kind: - group: resource.k8s.io kind: DeviceClassList - version: v1alpha3 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha3.DeviceClassSpec: + 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 @@ -251804,25 +260772,42 @@ components: They are passed to the driver, but are not considered while allocating the claim. items: - $ref: '#/components/schemas/v1alpha3.DeviceClassConfiguration' + $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 an alpha field. + type: string selectors: description: Each selector must be satisfied by a device which is claimed via this class. items: - $ref: '#/components/schemas/v1alpha3.DeviceSelector' + $ref: '#/components/schemas/v1.DeviceSelector' type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceConstraint: + 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. + + 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. @@ -251841,7 +260826,7 @@ components: type: array x-kubernetes-list-type: atomic type: object - v1alpha3.DeviceCounterConsumption: + v1.DeviceCounterConsumption: description: DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. example: @@ -251851,14 +260836,14 @@ components: counterSet: counterSet properties: counterSet: - description: CounterSet defines the set from which the counters defined + description: CounterSet is the name of the set from which the counters defined will be consumed. type: string counters: additionalProperties: - $ref: '#/components/schemas/v1alpha3.Counter' + $ref: '#/components/schemas/v1.Counter' description: |- - Counters defines the Counter that will be consumed by the device. + Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). type: object @@ -251866,163 +260851,108 @@ components: - counterSet - counters type: object - v1alpha3.DeviceRequest: + 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." + \ ask for several identical devices. With FirstAvailable it is also possible\ + \ to provide a prioritized list of requests." 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 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + 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 - 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 + exactly: + $ref: '#/components/schemas/v1.ExactDeviceRequest' 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. + 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/v1alpha3.DeviceSubRequest' + $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 - selectors: - description: |- - Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. - - This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. - items: - $ref: '#/components/schemas/v1alpha3.DeviceSelector' - type: array - x-kubernetes-list-type: atomic - tolerations: - description: |- - If specified, the request's tolerations. - - Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. - - In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. - - The maximum number of tolerations is 16. - - This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. - - This is an alpha field and requires enabling the DRADeviceTaints feature gate. - items: - $ref: '#/components/schemas/v1alpha3.DeviceToleration' - type: array - x-kubernetes-list-type: atomic required: - name type: object - v1alpha3.DeviceRequestAllocationResult: + v1.DeviceRequestAllocationResult: description: DeviceRequestAllocationResult contains the allocation result for one request. example: @@ -252030,18 +260960,27 @@ components: adminAccess: true tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: |- @@ -252049,6 +260988,34 @@ components: 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 an alpha 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 an alpha 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. @@ -252071,6 +261038,12 @@ components: 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. @@ -252079,7 +261052,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1alpha3.DeviceToleration' + $ref: '#/components/schemas/v1.DeviceToleration' type: array x-kubernetes-list-type: atomic required: @@ -252088,58 +261061,63 @@ components: - pool - request type: object - v1alpha3.DeviceSelector: + v1.DeviceSelector: description: DeviceSelector must have exactly one field set. example: cel: expression: expression properties: cel: - $ref: '#/components/schemas/v1alpha3.CELDeviceSelector' + $ref: '#/components/schemas/v1.CELDeviceSelector' type: object - v1alpha3.DeviceSubRequest: + 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 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. + 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: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + 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 request. Supported values are: + AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - - All: This request is for all of the matching devices in a pool. + - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. - If 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. + 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\ @@ -252162,10 +261140,10 @@ components: type: string selectors: description: Selectors define criteria which must be satisfied by a specific - device in order for that device to be considered for this request. All - selectors must be satisfied for a device to be considered. + device in order for that device to be considered for this subrequest. + All selectors must be satisfied for a device to be considered. items: - $ref: '#/components/schemas/v1alpha3.DeviceSelector' + $ref: '#/components/schemas/v1.DeviceSelector' type: array x-kubernetes-list-type: atomic tolerations: @@ -252180,14 +261158,14 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1alpha3.DeviceToleration' + $ref: '#/components/schemas/v1.DeviceToleration' type: array x-kubernetes-list-type: atomic required: - deviceClassName - name type: object - v1alpha3.DeviceTaint: + 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." @@ -252219,342 +261197,13 @@ components: - effect - key 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. - 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: - deviceClassName: deviceClassName - driver: driver - pool: pool - selectors: - - cel: - expression: expression - - cel: - expression: expression - device: device - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - 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' - 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 - 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: - deviceClassName: deviceClassName - driver: driver - pool: pool - selectors: - - cel: - expression: expression - - cel: - expression: expression - 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: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - deviceSelector: - deviceClassName: deviceClassName - driver: driver - pool: pool - selectors: - - cel: - expression: expression - - cel: - expression: expression - device: device - properties: - apiVersion: - description: "APIVersion defines the versioned schema of this representation\ - \ of an object. Servers should convert recognized schemas to the latest\ - \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" - type: string - items: - description: Items is the list of DeviceTaintRules. - items: - $ref: '#/components/schemas/v1alpha3.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: v1alpha3 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha3.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: - deviceClassName: deviceClassName - driver: driver - pool: pool - selectors: - - cel: - expression: expression - - cel: - expression: expression - device: device - properties: - deviceSelector: - $ref: '#/components/schemas/v1alpha3.DeviceTaintSelector' - taint: - $ref: '#/components/schemas/v1alpha3.DeviceTaint' - required: - - taint - type: object - v1alpha3.DeviceTaintSelector: - description: "DeviceTaintSelector defines which device(s) a DeviceTaintRule\ - \ applies to. The empty selector matches all devices. Without a selector,\ - \ no devices are matched." - example: - deviceClassName: deviceClassName - driver: driver - pool: pool - selectors: - - cel: - expression: expression - - cel: - expression: expression - device: device - properties: - device: - description: |- - If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. - - Setting also driver and pool may be required to avoid ambiguity, but is not required. - type: string - deviceClassName: - description: "If DeviceClassName is set, the selectors defined there must\ - \ be satisfied by a device to be selected. This field corresponds to class.metadata.name." - type: string - driver: - description: "If driver is set, only devices from that driver are selected.\ - \ This fields corresponds to slice.spec.driver." - type: string - pool: - description: |- - If pool is set, only devices in that pool are selected. - - Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. - type: string - selectors: - description: "Selectors contains the same selection criteria as a ResourceClaim.\ - \ Currently, CEL expressions are supported. All of these selectors must\ - \ be satisfied." - items: - $ref: '#/components/schemas/v1alpha3.DeviceSelector' - type: array - x-kubernetes-list-type: atomic - type: object - v1alpha3.DeviceToleration: + 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: 1 + tolerationSeconds: 6 value: value key: key operator: operator @@ -252592,7 +261241,99 @@ components: \ string. Must be a label value." type: string type: object - v1alpha3.NetworkDeviceData: + v1.ExactDeviceRequest: + description: ExactDeviceRequest is a request for one or more identical devices. + example: + 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: + adminAccess: + description: |- + AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. + + This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + type: boolean + allocationMode: + description: |- + AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: + + - 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. + 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 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. + type: string + selectors: + description: Selectors define criteria which must be satisfied by a specific + device in order for that device to be considered for this request. All + selectors must be satisfied for a device to be considered. + items: + $ref: '#/components/schemas/v1.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + tolerations: + description: |- + If specified, the request's tolerations. + + Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. + + In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. + + The maximum number of tolerations is 16. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1.DeviceToleration' + type: array + x-kubernetes-list-type: atomic + required: + - deviceClassName + type: object + v1.NetworkDeviceData: 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. @@ -252616,16 +261357,17 @@ components: Must not be longer than 256 characters. type: string ips: - description: |- - IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6. - - Must not contain more than 16 entries. + description: "IPs lists the network addresses assigned to the device's network\ + \ interface. This can include both IPv4 and IPv6 addresses. The IPs are\ + \ in the CIDR notation, which includes both the address and the associated\ + \ subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\"\ + \ for IPv6." items: type: string type: array x-kubernetes-list-type: atomic type: object - v1alpha3.OpaqueDeviceConfiguration: + v1.OpaqueDeviceConfiguration: description: OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. example: @@ -252651,7 +261393,7 @@ components: - driver - parameters type: object - v1alpha3.ResourceClaim: + resource.v1.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. @@ -252708,130 +261450,150 @@ components: 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: + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: + 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 + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -252846,16 +261608,19 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests status: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -252877,34 +261642,52 @@ components: adminAccess: true tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: @@ -252970,6 +261753,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -252993,6 +261777,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -253021,19 +261806,19 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1alpha3.ResourceClaimSpec' + $ref: '#/components/schemas/v1.ResourceClaimSpec' status: - $ref: '#/components/schemas/v1alpha3.ResourceClaimStatus' + $ref: '#/components/schemas/v1.ResourceClaimStatus' required: - spec type: object x-kubernetes-group-version-kind: - group: resource.k8s.io kind: ResourceClaim - version: v1alpha3 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha3.ResourceClaimConsumerReference: + v1.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. @@ -253063,7 +261848,7 @@ components: - resource - uid type: object - v1alpha3.ResourceClaimList: + v1.ResourceClaimList: description: ResourceClaimList is a collection of claims. example: metadata: @@ -253125,130 +261910,150 @@ components: 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: + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: + 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 + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -253263,16 +262068,19 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests status: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -253294,34 +262102,52 @@ components: adminAccess: true tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: @@ -253387,6 +262213,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -253410,6 +262237,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -253475,130 +262303,150 @@ components: 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: + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: + 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 + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -253613,16 +262461,19 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests status: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -253644,34 +262495,52 @@ components: adminAccess: true tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: @@ -253737,6 +262606,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -253760,6 +262630,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -253783,7 +262654,7 @@ components: items: description: Items is the list of resource claims. items: - $ref: '#/components/schemas/v1alpha3.ResourceClaim' + $ref: '#/components/schemas/resource.v1.ResourceClaim' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -253798,139 +262669,159 @@ components: x-kubernetes-group-version-kind: - group: resource.k8s.io kind: ResourceClaimList - version: v1alpha3 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha3.ResourceClaimSpec: + v1.ResourceClaimSpec: description: ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. example: 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: + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: + 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 + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -253945,23 +262836,26 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests properties: devices: - $ref: '#/components/schemas/v1alpha3.DeviceClaim' + $ref: '#/components/schemas/v1.DeviceClaim' type: object - v1alpha3.ResourceClaimStatus: + 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: @@ -253983,34 +262877,52 @@ components: adminAccess: true tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + 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: @@ -254076,6 +262988,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -254099,6 +263012,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -254115,19 +263029,20 @@ components: device: device properties: allocation: - $ref: '#/components/schemas/v1alpha3.AllocationResult' + $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/v1alpha3.AllocatedDeviceStatus' + $ref: '#/components/schemas/v1.AllocatedDeviceStatus' type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: - driver - device - pool + - shareID reservedFor: description: |- 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. @@ -254138,7 +263053,7 @@ components: There can be at most 256 such reservations. This may get increased in the future, but not reduced. items: - $ref: '#/components/schemas/v1alpha3.ResourceClaimConsumerReference' + $ref: '#/components/schemas/v1.ResourceClaimConsumerReference' type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -254146,7 +263061,7 @@ components: - uid x-kubernetes-patch-merge-key: uid type: object - v1alpha3.ResourceClaimTemplate: + v1.ResourceClaimTemplate: description: |- ResourceClaimTemplate is used to produce ResourceClaim objects. @@ -254250,130 +263165,150 @@ components: 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: + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + 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 + - 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 - count: 0 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - - allocationMode: allocationMode + capacity: + requests: + key: null + name: name + exactly: + allocationMode: allocationMode deviceClassName: deviceClassName + adminAccess: true tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 - name: name + count: 0 selectors: - cel: expression: expression - cel: expression: expression - count: 0 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -254388,11 +263323,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -254410,17 +263347,17 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplateSpec' + $ref: '#/components/schemas/v1.ResourceClaimTemplateSpec' required: - spec type: object x-kubernetes-group-version-kind: - group: resource.k8s.io kind: ResourceClaimTemplate - version: v1alpha3 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha3.ResourceClaimTemplateList: + v1.ResourceClaimTemplateList: description: ResourceClaimTemplateList is a collection of claim templates. example: metadata: @@ -254529,130 +263466,150 @@ components: 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: + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: + 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 + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -254667,11 +263624,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -254773,130 +263732,150 @@ components: 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: + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: + 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 + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -254911,11 +263890,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -254928,7 +263909,7 @@ components: items: description: Items is the list of resource claim templates. items: - $ref: '#/components/schemas/v1alpha3.ResourceClaimTemplate' + $ref: '#/components/schemas/v1.ResourceClaimTemplate' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -254943,10 +263924,10 @@ components: x-kubernetes-group-version-kind: - group: resource.k8s.io kind: ResourceClaimTemplateList - version: v1alpha3 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha3.ResourceClaimTemplateSpec: + v1.ResourceClaimTemplateSpec: description: ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. example: @@ -254999,130 +263980,150 @@ components: 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: + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: + 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 + - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 1 + tolerationSeconds: 6 value: value key: key operator: operator - count: 6 + count: 1 name: name selectors: - cel: expression: expression - cel: expression: expression - count: 0 + capacity: + requests: + key: null name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + exactly: + allocationMode: allocationMode + deviceClassName: deviceClassName + adminAccess: true + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + count: 0 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -255137,11 +264138,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -255149,11 +264152,11 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1alpha3.ResourceClaimSpec' + $ref: '#/components/schemas/v1.ResourceClaimSpec' required: - spec type: object - v1alpha3.ResourcePool: + v1.ResourcePool: description: ResourcePool describes the pool that ResourceSlices belong to. example: generation: 6 @@ -255185,7 +264188,7 @@ components: - name - resourceSliceCount type: object - v1alpha3.ResourceSlice: + v1.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. @@ -255252,158 +264255,192 @@ components: driver: driver perDeviceNodeSelection: true devices: - - name: name - basic: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: + - nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - allNodes: true - capacity: - key: null - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - name: name - basic: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: + value: value + counterSet: counterSet + - counters: key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + value: value + counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + 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 + - nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: + key: + value: value + counterSet: counterSet + - counters: + key: + value: value + counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: value: value - key: key - allNodes: true - capacity: - key: null - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator + 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: 6 resourceSliceCount: 1 @@ -255478,17 +264515,17 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1alpha3.ResourceSliceSpec' + $ref: '#/components/schemas/v1.ResourceSliceSpec' required: - spec type: object x-kubernetes-group-version-kind: - group: resource.k8s.io kind: ResourceSlice - version: v1alpha3 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha3.ResourceSliceList: + v1.ResourceSliceList: description: ResourceSliceList is a collection of ResourceSlices. example: metadata: @@ -255552,158 +264589,192 @@ components: driver: driver perDeviceNodeSelection: true devices: - - name: name - basic: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: + - nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - allNodes: true - capacity: - key: null - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - name: name - basic: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: + value: value + counterSet: counterSet + - counters: key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + value: value + counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + 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 + - nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: + key: + value: value + counterSet: counterSet + - counters: + key: + value: value + counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: value: value - key: key - allNodes: true - capacity: - key: null - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator + 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: 6 resourceSliceCount: 1 @@ -255817,158 +264888,192 @@ components: driver: driver perDeviceNodeSelection: true devices: - - name: name - basic: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: + - nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - allNodes: true - capacity: - key: null - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - name: name - basic: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: + value: value + counterSet: counterSet + - counters: key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + value: value + counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + 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 + - nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: + key: + value: value + counterSet: counterSet + - counters: + key: + value: value + counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: value: value - key: key - allNodes: true - capacity: - key: null - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator + 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: 6 resourceSliceCount: 1 @@ -256038,7 +265143,7 @@ components: items: description: Items is the list of resource ResourceSlices. items: - $ref: '#/components/schemas/v1alpha3.ResourceSlice' + $ref: '#/components/schemas/v1.ResourceSlice' type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -256053,10 +265158,10 @@ components: x-kubernetes-group-version-kind: - group: resource.k8s.io kind: ResourceSliceList - version: v1alpha3 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha3.ResourceSliceSpec: + v1.ResourceSliceSpec: description: ResourceSliceSpec contains the information published by the driver in one ResourceSlice. example: @@ -256064,158 +265169,192 @@ components: driver: driver perDeviceNodeSelection: true devices: - - name: name - basic: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: + - nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - allNodes: true - capacity: - key: null - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - name: name - basic: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: + value: value + counterSet: counterSet + - counters: key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + value: value + counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect + 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 + - nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: + key: + value: value + counterSet: counterSet + - counters: + key: + value: value + counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bool: true + string: string + version: version + int: 0 + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + allNodes: true + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: value: value - key: key - allNodes: true - capacity: - key: null - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator + 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: 6 resourceSliceCount: 1 @@ -256289,7 +265428,7 @@ components: Must not have more than 128 entries. items: - $ref: '#/components/schemas/v1alpha3.Device' + $ref: '#/components/schemas/v1.Device' type: array x-kubernetes-list-type: atomic driver: @@ -256315,25 +265454,437 @@ components: Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. type: boolean pool: - $ref: '#/components/schemas/v1alpha3.ResourcePool' + $ref: '#/components/schemas/v1.ResourcePool' sharedCounters: description: |- SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. - The maximum number of SharedCounters is 32. + The maximum number of counters in all sets is 32. items: - $ref: '#/components/schemas/v1alpha3.CounterSet' + $ref: '#/components/schemas/v1.CounterSet' type: array x-kubernetes-list-type: atomic required: - driver - pool type: object + v1alpha3.CELDeviceSelector: + description: CELDeviceSelector contains a CEL expression for selecting a device. + example: + expression: expression + properties: + expression: + description: |- + Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. + + The expression's input is an object named "device", which carries the following properties: + - driver (string): the name of the driver which defines this device. + - attributes (map[string]object): the device's attributes, grouped by prefix + (e.g. device.attributes["dra.example.com"] evaluates to an object with all + of the attributes which were prefixed by "dra.example.com". + - capacity (map[string]object): the device's capacities, grouped by prefix. + + Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields: + + device.driver + device.attributes["dra.example.com"].model + device.attributes["ext.example.com"].family + device.capacity["dra.example.com"].modules + + The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. + + The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. + + If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. + + A robust expression should check for the existence of attributes before referencing them. + + For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: + + cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool) + + The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + type: string + required: + - expression + type: object + v1alpha3.DeviceSelector: + description: DeviceSelector must have exactly one field set. + example: + cel: + expression: expression + properties: + cel: + $ref: '#/components/schemas/v1alpha3.CELDeviceSelector' + 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." + example: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + properties: + effect: + description: The effect of the taint on claims that do not tolerate the + taint and through such claims on the pods using them. Valid effects are + NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid + here. + type: string + key: + description: The taint key to be applied to a device. Must be a label name. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + Added automatically during create or update if not set. + format: date-time + type: string + value: + description: The taint value corresponding to the taint key. Must be a label + value. + type: string + required: + - effect + - key + type: object + v1alpha3.DeviceTaintRule: + description: DeviceTaintRule adds one taint to all devices which match the selector. + This has the same effect as if the taint was specified directly in the ResourceSlice + by the DRA driver. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-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: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + 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' + 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 + 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: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + 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: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + description: Items is the list of DeviceTaintRules. + items: + $ref: '#/components/schemas/v1alpha3.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: v1alpha3 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha3.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: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device + properties: + deviceSelector: + $ref: '#/components/schemas/v1alpha3.DeviceTaintSelector' + taint: + $ref: '#/components/schemas/v1alpha3.DeviceTaint' + required: + - taint + type: object + v1alpha3.DeviceTaintSelector: + description: "DeviceTaintSelector defines which device(s) a DeviceTaintRule\ + \ applies to. The empty selector matches all devices. Without a selector,\ + \ no devices are matched." + example: + deviceClassName: deviceClassName + driver: driver + pool: pool + selectors: + - cel: + expression: expression + - cel: + expression: expression + device: device + properties: + device: + description: |- + If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. + + Setting also driver and pool may be required to avoid ambiguity, but is not required. + type: string + deviceClassName: + description: "If DeviceClassName is set, the selectors defined there must\ + \ be satisfied by a device to be selected. This field corresponds to class.metadata.name." + type: string + driver: + description: "If driver is set, only devices from that driver are selected.\ + \ This fields corresponds to slice.spec.driver." + type: string + pool: + description: |- + If pool is set, only devices in that pool are selected. + + Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. + type: string + selectors: + description: "Selectors contains the same selection criteria as a ResourceClaim.\ + \ Currently, CEL expressions are supported. All of these selectors must\ + \ be satisfied." + items: + $ref: '#/components/schemas/v1alpha3.DeviceSelector' + type: array + x-kubernetes-list-type: atomic + 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." + 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 @@ -256344,6 +265895,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -256395,6 +265947,10 @@ components: 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 @@ -256403,6 +265959,7 @@ components: v1beta1.AllocationResult: description: AllocationResult contains attributes of an allocated resource. example: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -256434,8 +265991,17 @@ components: 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: @@ -256450,8 +266016,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -256499,6 +266074,13 @@ components: 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + format: date-time + type: string devices: $ref: '#/components/schemas/v1beta1.DeviceAllocationResult' nodeSelector: @@ -256508,6 +266090,7 @@ components: description: BasicDevice defines one device instance. example: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -256517,6 +266100,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -256533,9 +266119,22 @@ components: 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: @@ -256589,6 +266188,12 @@ components: 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/v1beta1.DeviceAttribute' @@ -256597,6 +266202,38 @@ components: 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 an alpha 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 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 an alpha 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + type: boolean capacity: additionalProperties: $ref: '#/components/schemas/v1beta1.DeviceCapacity' @@ -256651,6 +266288,8 @@ components: (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: @@ -256676,6 +266315,233 @@ components: required: - expression type: object + v1beta1.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/v1beta1.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 + v1beta1.CapacityRequestPolicyRange: + 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. + 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 + required: + - min + type: object + v1beta1.CapacityRequirements: + description: CapacityRequirements defines the capacity requirements for a specific + device request. + example: + requests: + key: null + properties: + 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 v1beta1.Counter: description: Counter describes a quantity associated with a device. example: @@ -256757,6 +266623,7 @@ components: name: name basic: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -256766,6 +266633,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -256782,9 +266652,22 @@ components: 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: @@ -256904,8 +266787,17 @@ components: 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: @@ -256920,8 +266812,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions properties: config: description: |- @@ -256966,7 +266867,18 @@ components: 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\ @@ -257047,6 +266959,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -257067,6 +266982,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -257074,6 +266992,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true @@ -257109,6 +267030,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -257129,6 +267053,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -257136,6 +267063,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -257150,11 +267080,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -257260,6 +267192,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -257366,6 +267299,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -257427,6 +267361,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -257470,6 +267405,7 @@ components: 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 @@ -257492,6 +267428,12 @@ components: $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 an alpha field. + type: string selectors: description: Each selector must be satisfied by a device which is claimed via this class. @@ -257503,11 +267445,22 @@ components: 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. + + 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. @@ -257591,6 +267544,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -257611,6 +267567,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -257618,6 +267577,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null properties: adminAccess: description: |- @@ -257646,6 +267608,8 @@ components: 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. @@ -257725,8 +267689,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions properties: adminAccess: description: |- @@ -257734,6 +267707,34 @@ components: 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 an alpha 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 an alpha 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. @@ -257756,6 +267757,12 @@ components: 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. @@ -257808,6 +267815,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null properties: allocationMode: description: |- @@ -257825,6 +267835,8 @@ components: 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\ @@ -258099,6 +268111,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -258119,6 +268134,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -258126,6 +268144,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true @@ -258161,6 +268182,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -258181,6 +268205,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -258188,6 +268215,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -258202,16 +268232,19 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests status: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -258243,8 +268276,17 @@ components: 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: @@ -258259,8 +268301,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -258326,6 +268377,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -258349,6 +268401,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -258516,6 +268569,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -258536,6 +268592,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -258543,6 +268602,329 @@ components: 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 + 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 + 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: + 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: - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true @@ -258578,6 +268960,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -258598,6 +268983,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -258605,294 +268993,9 @@ components: expression: expression - cel: expression: expression - config: - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - constraints: - - matchAttribute: matchAttribute - requests: - - requests - - requests - - matchAttribute: matchAttribute - requests: - - requests - - requests - status: - allocation: - devices: - config: - - opaque: - driver: driver - parameters: "{}" - requests: - - requests - - requests - source: source - - opaque: - driver: driver - parameters: "{}" + 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 - pool: pool - device: device - - request: request - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - driver: driver - pool: pool - device: device - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - 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 - 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 - 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: - - allocationMode: allocationMode - deviceClassName: deviceClassName - adminAccess: true - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - firstAvailable: - - allocationMode: allocationMode - deviceClassName: deviceClassName - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - count: 6 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - - allocationMode: allocationMode - deviceClassName: deviceClassName - tolerations: - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - count: 6 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression - count: 0 - name: name - selectors: - - cel: - expression: expression - - cel: - expression: expression + key: null - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true @@ -258928,6 +269031,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -258948,6 +269054,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -258955,6 +269064,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -258969,16 +269081,19 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests status: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -259010,8 +269125,17 @@ components: 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: @@ -259026,8 +269150,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -259093,6 +269226,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -259116,6 +269250,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -259198,6 +269333,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -259218,6 +269356,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -259225,6 +269366,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true @@ -259260,6 +269404,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -259280,6 +269427,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -259287,6 +269437,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -259301,11 +269454,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -259318,6 +269473,7 @@ components: and what the result of that was. example: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -259349,8 +269505,17 @@ components: 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: @@ -259365,8 +269530,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -259432,6 +269606,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -259455,6 +269630,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -259484,6 +269660,7 @@ components: - driver - device - pool + - shareID reservedFor: description: |- 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. @@ -259641,6 +269818,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -259661,6 +269841,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -259668,6 +269851,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true @@ -259703,6 +269889,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -259723,6 +269912,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -259730,6 +269922,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -259744,11 +269939,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -259920,6 +270117,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -259940,6 +270140,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -259947,6 +270150,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true @@ -259982,6 +270188,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -260002,6 +270211,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -260009,6 +270221,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -260023,11 +270238,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -260164,6 +270381,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -260184,6 +270404,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -260191,6 +270414,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true @@ -260226,6 +270452,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -260246,6 +270475,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -260253,6 +270485,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -260267,11 +270502,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -260390,6 +270627,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -260410,6 +270650,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -260417,6 +270660,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName adminAccess: true @@ -260452,6 +270698,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -260472,6 +270721,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null count: 0 name: name selectors: @@ -260479,6 +270731,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -260493,11 +270748,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -260611,6 +270868,7 @@ components: - name: name basic: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -260620,6 +270878,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -260636,9 +270897,22 @@ components: 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: @@ -260688,6 +270962,7 @@ components: - name: name basic: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -260697,6 +270972,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -260713,9 +270991,22 @@ components: 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: @@ -260913,6 +271204,7 @@ components: - name: name basic: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -260922,6 +271214,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -260938,9 +271233,22 @@ components: 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: @@ -260990,6 +271298,7 @@ components: - name: name basic: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -260999,6 +271308,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -261015,9 +271327,22 @@ components: 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: @@ -261180,6 +271505,7 @@ components: - name: name basic: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -261189,6 +271515,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -261205,9 +271534,22 @@ components: 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: @@ -261257,6 +271599,7 @@ components: - name: name basic: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -261266,6 +271609,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -261282,9 +271628,22 @@ components: 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: @@ -261429,6 +271788,7 @@ components: - name: name basic: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -261438,6 +271798,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -261454,9 +271817,22 @@ components: 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: @@ -261506,6 +271882,7 @@ components: - name: name basic: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -261515,6 +271892,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions attributes: key: bool: true @@ -261531,9 +271911,22 @@ components: 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: @@ -261696,8 +272089,10 @@ components: - pool type: object v1beta2.AllocatedDeviceStatus: - description: "AllocatedDeviceStatus contains the status of an allocated device,\ - \ if the driver chooses to report it. This may include driver-specific information." + 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 @@ -261708,6 +272103,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -261759,6 +272155,10 @@ components: 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 @@ -261767,6 +272167,7 @@ components: v1beta2.AllocationResult: description: AllocationResult contains attributes of an allocated resource. example: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -261798,8 +272199,17 @@ components: 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: @@ -261814,8 +272224,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -261863,6 +272282,13 @@ components: 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + format: date-time + type: string devices: $ref: '#/components/schemas/v1beta2.DeviceAllocationResult' nodeSelector: @@ -261883,6 +272309,8 @@ components: (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: @@ -261908,6 +272336,233 @@ components: required: - expression type: object + v1beta2.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/v1beta2.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 + v1beta2.CapacityRequestPolicyRange: + 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. + 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 + required: + - min + type: object + v1beta2.CapacityRequirements: + description: CapacityRequirements defines the capacity requirements for a specific + device request. + example: + requests: + key: null + properties: + 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 v1beta2.Counter: description: Counter describes a quantity associated with a device. example: @@ -261987,6 +272642,7 @@ components: \ be set." example: nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -261996,6 +272652,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name attributes: key: @@ -262013,9 +272672,22 @@ components: 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: @@ -262069,6 +272741,12 @@ components: 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/v1beta2.DeviceAttribute' @@ -262077,6 +272755,38 @@ components: 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 an alpha 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 an alpha 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + type: boolean capacity: additionalProperties: $ref: '#/components/schemas/v1beta2.DeviceCapacity' @@ -262185,8 +272895,17 @@ components: 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: @@ -262201,8 +272920,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions properties: config: description: |- @@ -262247,7 +272975,18 @@ components: 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\ @@ -262314,6 +273053,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -262334,6 +273076,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -262356,6 +273101,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName @@ -262377,6 +273125,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -262397,6 +273148,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -262419,6 +273173,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -262433,11 +273190,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -262543,6 +273302,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -262649,6 +273409,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -262710,6 +273471,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -262753,6 +273515,7 @@ components: 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 @@ -262775,6 +273538,12 @@ components: $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 an alpha field. + type: string selectors: description: Each selector must be satisfied by a device which is claimed via this class. @@ -262786,11 +273555,22 @@ components: 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. + + 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. @@ -262861,6 +273641,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -262881,6 +273664,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -262903,6 +273689,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null properties: exactly: $ref: '#/components/schemas/v1beta2.ExactDeviceRequest' @@ -262944,8 +273733,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions properties: adminAccess: description: |- @@ -262953,6 +273751,34 @@ components: 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 an alpha 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 an alpha 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. @@ -262975,6 +273801,12 @@ components: 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. @@ -263027,6 +273859,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null properties: allocationMode: description: |- @@ -263044,6 +273879,8 @@ components: 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\ @@ -263190,6 +274027,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null properties: adminAccess: description: |- @@ -263214,6 +274054,8 @@ components: 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\ @@ -263392,6 +274234,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -263412,6 +274257,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -263434,6 +274282,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName @@ -263455,6 +274306,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -263475,6 +274329,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -263497,6 +274354,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -263511,16 +274371,19 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests status: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -263552,8 +274415,17 @@ components: 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: @@ -263568,8 +274440,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -263635,6 +274516,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -263658,6 +274540,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -263811,6 +274694,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -263831,6 +274717,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -263853,6 +274742,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName @@ -263874,6 +274766,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -263894,6 +274789,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -263916,6 +274814,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -263930,16 +274831,19 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests status: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -263971,8 +274875,17 @@ components: 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: @@ -263987,8 +274900,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -264054,6 +274976,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -264077,6 +275000,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -264163,6 +275087,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -264183,6 +275110,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -264205,6 +275135,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName @@ -264226,6 +275159,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -264246,6 +275182,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -264268,6 +275207,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -264282,16 +275224,19 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests status: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -264323,8 +275268,17 @@ components: 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: @@ -264339,8 +275293,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -264406,6 +275369,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -264429,6 +275393,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -264497,6 +275462,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -264517,6 +275485,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -264539,6 +275510,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName @@ -264560,6 +275534,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -264580,6 +275557,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -264602,6 +275582,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -264616,11 +275599,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -264633,6 +275618,7 @@ components: and what the result of that was. example: allocation: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 devices: config: - opaque: @@ -264664,8 +275650,17 @@ components: 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: @@ -264680,8 +275675,17 @@ components: key: key operator: operator driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions pool: pool + shareID: shareID + consumedCapacity: + key: null device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -264747,6 +275751,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -264770,6 +275775,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -264799,6 +275805,7 @@ components: - driver - device - pool + - shareID reservedFor: description: |- 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. @@ -264942,6 +275949,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -264962,6 +275972,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -264984,6 +275997,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName @@ -265005,6 +276021,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -265025,6 +276044,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -265047,6 +276069,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -265061,11 +276086,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -265223,6 +276250,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -265243,6 +276273,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -265265,6 +276298,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName @@ -265286,6 +276322,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -265306,6 +276345,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -265328,6 +276370,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -265342,11 +276387,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -265469,6 +276516,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -265489,6 +276539,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -265511,6 +276564,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName @@ -265532,6 +276588,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -265552,6 +276611,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -265574,6 +276636,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -265588,11 +276653,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -265697,6 +276764,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -265717,6 +276787,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -265739,6 +276812,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - firstAvailable: - allocationMode: allocationMode deviceClassName: deviceClassName @@ -265760,6 +276836,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null - allocationMode: allocationMode deviceClassName: deviceClassName tolerations: @@ -265780,6 +276859,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null name: name exactly: allocationMode: allocationMode @@ -265802,6 +276884,9 @@ components: expression: expression - cel: expression: expression + capacity: + requests: + key: null config: - opaque: driver: driver @@ -265816,11 +276901,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -265932,6 +277019,7 @@ components: perDeviceNodeSelection: true devices: - nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -265941,6 +277029,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name attributes: key: @@ -265958,9 +277049,22 @@ components: 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: @@ -266008,6 +277112,7 @@ components: key: key operator: operator - nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -266017,6 +277122,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name attributes: key: @@ -266034,9 +277142,22 @@ components: 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: @@ -266232,6 +277353,7 @@ components: perDeviceNodeSelection: true devices: - nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -266241,6 +277363,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name attributes: key: @@ -266258,9 +277383,22 @@ components: 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: @@ -266308,6 +277446,7 @@ components: key: key operator: operator - nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -266317,6 +277456,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name attributes: key: @@ -266334,9 +277476,22 @@ components: 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: @@ -266497,6 +277652,7 @@ components: perDeviceNodeSelection: true devices: - nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -266506,6 +277662,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name attributes: key: @@ -266523,9 +277682,22 @@ components: 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: @@ -266573,6 +277745,7 @@ components: key: key operator: operator - nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -266582,6 +277755,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name attributes: key: @@ -266599,9 +277775,22 @@ components: 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: @@ -266744,6 +277933,7 @@ components: perDeviceNodeSelection: true devices: - nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -266753,6 +277943,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name attributes: key: @@ -266770,9 +277963,22 @@ components: 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: @@ -266820,6 +278026,7 @@ components: key: key operator: operator - nodeName: nodeName + allowMultipleAllocations: true consumesCounters: - counters: key: @@ -266829,6 +278036,9 @@ components: key: value: value counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name attributes: key: @@ -266846,9 +278056,22 @@ components: 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: @@ -267535,7 +278758,7 @@ components: 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 CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + 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. This field is immutable. type: boolean @@ -267551,7 +278774,7 @@ components: 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. - This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. + This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. format: int64 @@ -268830,7 +280053,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -268965,7 +280188,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -269173,7 +280396,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -269308,7 +280531,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -269479,7 +280702,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -269614,7 +280837,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -269767,7 +280990,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -269902,7 +281125,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -270023,7 +281246,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -270158,7 +281381,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -270222,6 +281445,237 @@ components: required: - attached 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." + 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 + driverName: driverName + parameters: + key: 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 + 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: '#/components/schemas/v1.ObjectMeta' + 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. + + 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. + type: object + 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. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + driverName: driverName + parameters: + key: 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 + apiVersion: apiVersion + kind: kind + driverName: driverName + parameters: + key: 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 VolumeAttributesClass objects. + items: + $ref: '#/components/schemas/v1.VolumeAttributesClass' + 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: 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. example: @@ -270233,7 +281687,7 @@ components: description: |- errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. - This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. + This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. format: int32 type: integer message: @@ -274067,9 +285521,6 @@ components: - group: networking.k8s.io kind: DeleteOptions version: v1 - - group: networking.k8s.io - kind: DeleteOptions - version: v1alpha1 - group: networking.k8s.io kind: DeleteOptions version: v1beta1 @@ -274097,6 +285548,9 @@ components: - group: rbac.authorization.k8s.io kind: DeleteOptions version: v1beta1 + - group: resource.k8s.io + kind: DeleteOptions + version: v1 - group: resource.k8s.io kind: DeleteOptions version: v1alpha3 @@ -274878,9 +286332,6 @@ components: - group: networking.k8s.io kind: WatchEvent version: v1 - - group: networking.k8s.io - kind: WatchEvent - version: v1alpha1 - group: networking.k8s.io kind: WatchEvent version: v1beta1 @@ -274908,6 +286359,9 @@ components: - group: rbac.authorization.k8s.io kind: WatchEvent version: v1beta1 + - group: resource.k8s.io + kind: WatchEvent + version: v1 - group: resource.k8s.io kind: WatchEvent version: v1alpha3 diff --git a/kubernetes/docs/AdmissionregistrationV1beta1Api.md b/kubernetes/docs/AdmissionregistrationV1beta1Api.md index e007506667..1137db74cd 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1Api.md @@ -4,33 +4,30 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | | -| [**createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | | -| [**deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | | -| [**deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | | -| [**deleteValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | | -| [**deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | | +| [**createMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | | +| [**createMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | | +| [**deleteCollectionMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | | +| [**deleteCollectionMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | | +| [**deleteMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | | +| [**deleteMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | | | [**getAPIResources**](AdmissionregistrationV1beta1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1beta1/ | | -| [**listValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | | -| [**listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | | -| [**patchValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | | -| [**patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | | -| [**patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | | -| [**readValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | | -| [**readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | | -| [**readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | | -| [**replaceValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | | -| [**replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | | -| [**replaceValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | | +| [**listMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | | +| [**listMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | | +| [**patchMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | | +| [**patchMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | | +| [**readMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | | +| [**readMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | | +| [**replaceMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | | +| [**replaceMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | | - -# **createValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **createMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy createMutatingAdmissionPolicy(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -create a ValidatingAdmissionPolicy +create a MutatingAdmissionPolicy ### Example ```java @@ -54,13 +51,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - V1beta1ValidatingAdmissionPolicy body = new V1beta1ValidatingAdmissionPolicy(); // V1beta1ValidatingAdmissionPolicy | + V1beta1MutatingAdmissionPolicy body = new V1beta1MutatingAdmissionPolicy(); // V1beta1MutatingAdmissionPolicy | 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.createValidatingAdmissionPolicy(body) + V1beta1MutatingAdmissionPolicy result = apiInstance.createMutatingAdmissionPolicy(body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -68,7 +65,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -82,7 +79,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | [**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md)| | | +| **body** | [**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.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 +87,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -109,13 +106,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **createValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **createMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -create a ValidatingAdmissionPolicyBinding +create a MutatingAdmissionPolicyBinding ### Example ```java @@ -139,13 +136,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - V1beta1ValidatingAdmissionPolicyBinding body = new V1beta1ValidatingAdmissionPolicyBinding(); // V1beta1ValidatingAdmissionPolicyBinding | + V1beta1MutatingAdmissionPolicyBinding body = new V1beta1MutatingAdmissionPolicyBinding(); // V1beta1MutatingAdmissionPolicyBinding | 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 { - V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.createValidatingAdmissionPolicyBinding(body) + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.createMutatingAdmissionPolicyBinding(body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -153,7 +150,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -167,7 +164,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | [**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md)| | | +| **body** | [**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.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 +172,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -194,13 +191,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionMutatingAdmissionPolicy** +> V1Status deleteCollectionMutatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ValidatingAdmissionPolicy +delete collection of MutatingAdmissionPolicy ### Example ```java @@ -240,7 +237,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.deleteCollectionValidatingAdmissionPolicy() + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicy() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -259,7 +256,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -308,13 +305,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionMutatingAdmissionPolicyBinding** +> V1Status deleteCollectionMutatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ValidatingAdmissionPolicyBinding +delete collection of MutatingAdmissionPolicyBinding ### Example ```java @@ -354,7 +351,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.deleteCollectionValidatingAdmissionPolicyBinding() + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicyBinding() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -373,7 +370,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -422,13 +419,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteMutatingAdmissionPolicy** +> V1Status deleteMutatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ValidatingAdmissionPolicy +delete a MutatingAdmissionPolicy ### Example ```java @@ -452,7 +449,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + String name = "name_example"; // String | name of the MutatingAdmissionPolicy 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. @@ -461,7 +458,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.deleteValidatingAdmissionPolicy(name) + V1Status result = apiInstance.deleteMutatingAdmissionPolicy(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -472,7 +469,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -486,7 +483,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **name** | **String**| name of the MutatingAdmissionPolicy | | | **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] | @@ -515,13 +512,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteMutatingAdmissionPolicyBinding** +> V1Status deleteMutatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ValidatingAdmissionPolicyBinding +delete a MutatingAdmissionPolicyBinding ### Example ```java @@ -545,7 +542,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding 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. @@ -554,7 +551,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.deleteValidatingAdmissionPolicyBinding(name) + V1Status result = apiInstance.deleteMutatingAdmissionPolicyBinding(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -565,7 +562,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -579,7 +576,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **name** | **String**| name of the MutatingAdmissionPolicyBinding | | | **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] | @@ -675,13 +672,13 @@ This endpoint does not need any parameter. | **200** | OK | - | | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicyList listMutatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ValidatingAdmissionPolicy +list or watch objects of kind MutatingAdmissionPolicy ### Example ```java @@ -717,7 +714,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 { - V1beta1ValidatingAdmissionPolicyList result = apiInstance.listValidatingAdmissionPolicy() + V1beta1MutatingAdmissionPolicyList result = apiInstance.listMutatingAdmissionPolicy() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -732,7 +729,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -760,7 +757,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyList**](V1beta1ValidatingAdmissionPolicyList.md) +[**V1beta1MutatingAdmissionPolicyList**](V1beta1MutatingAdmissionPolicyList.md) ### Authorization @@ -777,13 +774,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ValidatingAdmissionPolicyBinding +list or watch objects of kind MutatingAdmissionPolicyBinding ### Example ```java @@ -819,7 +816,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 { - V1beta1ValidatingAdmissionPolicyBindingList result = apiInstance.listValidatingAdmissionPolicyBinding() + V1beta1MutatingAdmissionPolicyBindingList result = apiInstance.listMutatingAdmissionPolicyBinding() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -834,7 +831,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -862,7 +859,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyBindingList**](V1beta1ValidatingAdmissionPolicyBindingList.md) +[**V1beta1MutatingAdmissionPolicyBindingList**](V1beta1MutatingAdmissionPolicyBindingList.md) ### Authorization @@ -879,13 +876,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ValidatingAdmissionPolicy +partially update the specified MutatingAdmissionPolicy ### Example ```java @@ -909,7 +906,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + String name = "name_example"; // String | name of the MutatingAdmissionPolicy 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 @@ -917,7 +914,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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicy(name, body) + V1beta1MutatingAdmissionPolicy result = apiInstance.patchMutatingAdmissionPolicy(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -926,7 +923,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -940,7 +937,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **name** | **String**| name of the MutatingAdmissionPolicy | | | **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] | @@ -950,7 +947,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -968,13 +965,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ValidatingAdmissionPolicyBinding +partially update the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -998,7 +995,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding 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 @@ -1006,7 +1003,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 { - V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.patchValidatingAdmissionPolicyBinding(name, body) + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.patchMutatingAdmissionPolicyBinding(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1015,7 +1012,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1029,7 +1026,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **name** | **String**| name of the MutatingAdmissionPolicyBinding | | | **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] | @@ -1039,7 +1036,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1057,13 +1054,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy readMutatingAdmissionPolicy(name).pretty(pretty).execute(); -partially update status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicy ### Example ```java @@ -1087,178 +1084,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicyStatus(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 AdmissionregistrationV1beta1Api#patchValidatingAdmissionPolicyStatus"); - 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 ValidatingAdmissionPolicy | | -| **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 - -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.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 | - | - - -# **readValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(name).pretty(pretty).execute(); - - - -read the specified ValidatingAdmissionPolicy - -### 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.AdmissionregistrationV1beta1Api; - -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"); - - AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicy(name) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingAdmissionPolicy"); - 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 ValidatingAdmissionPolicy | | -| **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 - -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.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 | - | - - -# **readValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(name).pretty(pretty).execute(); - - - -read the specified ValidatingAdmissionPolicyBinding - -### 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.AdmissionregistrationV1beta1Api; - -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"); - - AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + String name = "name_example"; // String | name of the MutatingAdmissionPolicy 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 { - V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.readValidatingAdmissionPolicyBinding(name) + V1beta1MutatingAdmissionPolicy result = apiInstance.readMutatingAdmissionPolicy(name) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1272,12 +1106,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **name** | **String**| name of the MutatingAdmissionPolicy | | | **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 -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -1294,13 +1128,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **readValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(name).pretty(pretty).execute(); + +# **readMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding(name).pretty(pretty).execute(); -read status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1324,15 +1158,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicyStatus(name) + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.readMutatingAdmissionPolicyBinding(name) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingAdmissionPolicyStatus"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1346,12 +1180,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **name** | **String**| name of the MutatingAdmissionPolicyBinding | | | **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 -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1368,99 +1202,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **replaceValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -replace the specified ValidatingAdmissionPolicy - -### 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.AdmissionregistrationV1beta1Api; - -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"); - - AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - V1beta1ValidatingAdmissionPolicy body = new V1beta1ValidatingAdmissionPolicy(); // V1beta1ValidatingAdmissionPolicy | - 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.replaceValidatingAdmissionPolicy(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceValidatingAdmissionPolicy"); - 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 ValidatingAdmissionPolicy | | -| **body** | [**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.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 - -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.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 | - | - - -# **replaceValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified ValidatingAdmissionPolicyBinding +replace the specified MutatingAdmissionPolicy ### Example ```java @@ -1484,14 +1232,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding - V1beta1ValidatingAdmissionPolicyBinding body = new V1beta1ValidatingAdmissionPolicyBinding(); // V1beta1ValidatingAdmissionPolicyBinding | + String name = "name_example"; // String | name of the MutatingAdmissionPolicy + V1beta1MutatingAdmissionPolicy body = new V1beta1MutatingAdmissionPolicy(); // V1beta1MutatingAdmissionPolicy | 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 { - V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.replaceValidatingAdmissionPolicyBinding(name, body) + V1beta1MutatingAdmissionPolicy result = apiInstance.replaceMutatingAdmissionPolicy(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1499,7 +1247,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1513,8 +1261,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | -| **body** | [**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md)| | | +| **name** | **String**| name of the MutatingAdmissionPolicy | | +| **body** | [**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.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] | @@ -1522,7 +1270,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -1540,13 +1288,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace status of the specified ValidatingAdmissionPolicy +replace the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1570,14 +1318,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - V1beta1ValidatingAdmissionPolicy body = new V1beta1ValidatingAdmissionPolicy(); // V1beta1ValidatingAdmissionPolicy | + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding + V1beta1MutatingAdmissionPolicyBinding body = new V1beta1MutatingAdmissionPolicyBinding(); // V1beta1MutatingAdmissionPolicyBinding | 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.replaceValidatingAdmissionPolicyStatus(name, body) + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.replaceMutatingAdmissionPolicyBinding(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1585,7 +1333,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceValidatingAdmissionPolicyStatus"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1599,8 +1347,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | -| **body** | [**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md)| | | +| **name** | **String**| name of the MutatingAdmissionPolicyBinding | | +| **body** | [**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.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] | @@ -1608,7 +1356,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization diff --git a/kubernetes/docs/CertificatesV1alpha1Api.md b/kubernetes/docs/CertificatesV1alpha1Api.md index 8c9b1dd003..cc7059739d 100644 --- a/kubernetes/docs/CertificatesV1alpha1Api.md +++ b/kubernetes/docs/CertificatesV1alpha1Api.md @@ -5,13 +5,24 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**createClusterTrustBundle**](CertificatesV1alpha1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | | +| [**createNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#createNamespacedPodCertificateRequest) | **POST** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | | | [**deleteClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | | [**deleteCollectionClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | | +| [**deleteCollectionNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#deleteCollectionNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | | +| [**deleteNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#deleteNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | | | [**getAPIResources**](CertificatesV1alpha1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | | | [**listClusterTrustBundle**](CertificatesV1alpha1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | | +| [**listNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#listNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | | +| [**listPodCertificateRequestForAllNamespaces**](CertificatesV1alpha1Api.md#listPodCertificateRequestForAllNamespaces) | **GET** /apis/certificates.k8s.io/v1alpha1/podcertificaterequests | | | [**patchClusterTrustBundle**](CertificatesV1alpha1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | +| [**patchNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#patchNamespacedPodCertificateRequest) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | | +| [**patchNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#patchNamespacedPodCertificateRequestStatus) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | | | [**readClusterTrustBundle**](CertificatesV1alpha1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | +| [**readNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#readNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | | +| [**readNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#readNamespacedPodCertificateRequestStatus) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | | | [**replaceClusterTrustBundle**](CertificatesV1alpha1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | | +| [**replaceNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#replaceNamespacedPodCertificateRequest) | **PUT** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | | +| [**replaceNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#replaceNamespacedPodCertificateRequestStatus) | **PUT** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | | @@ -99,13 +110,1073 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | + +# **createNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest createNamespacedPodCertificateRequest(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create 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.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1PodCertificateRequest body = new V1alpha1PodCertificateRequest(); // V1alpha1PodCertificateRequest | + 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 { + V1alpha1PodCertificateRequest result = apiInstance.createNamespacedPodCertificateRequest(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1alpha1Api#createNamespacedPodCertificateRequest"); + 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** | [**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.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 + +[**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + # **deleteClusterTrustBundle** > V1Status deleteClusterTrustBundle(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ClusterTrustBundle +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.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(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 CertificatesV1alpha1Api#deleteClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ClusterTrustBundle | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionClusterTrustBundle** +> V1Status deleteCollectionClusterTrustBundle().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionClusterTrustBundle() + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1alpha1Api#deleteCollectionClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **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).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.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.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) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1alpha1Api#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] | +| **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.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(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 CertificatesV1alpha1Api#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.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(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("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listClusterTrustBundle** +> V1alpha1ClusterTrustBundleList listClusterTrustBundle().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1ClusterTrustBundleList result = apiInstance.listClusterTrustBundle() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1alpha1Api#listClusterTrustBundle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1alpha1ClusterTrustBundleList**](V1alpha1ClusterTrustBundleList.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** +> V1alpha1PodCertificateRequestList listNamespacedPodCertificateRequest(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind 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.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1PodCertificateRequestList result = apiInstance.listNamespacedPodCertificateRequest(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1alpha1Api#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] | +| **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 + +[**V1alpha1PodCertificateRequestList**](V1alpha1PodCertificateRequestList.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** +> V1alpha1PodCertificateRequestList listPodCertificateRequestForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind 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.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1PodCertificateRequestList result = apiInstance.listPodCertificateRequestForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1alpha1Api#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] | +| **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 + +[**V1alpha1PodCertificateRequestList**](V1alpha1PodCertificateRequestList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchClusterTrustBundle** +> V1alpha1ClusterTrustBundle 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.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(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 { + V1alpha1ClusterTrustBundle 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 CertificatesV1alpha1Api#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 + +[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.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** +> V1alpha1PodCertificateRequest 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.CertificatesV1alpha1Api; + +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"); + + CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(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 { + V1alpha1PodCertificateRequest 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 CertificatesV1alpha1Api#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 + +[**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.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** +> V1alpha1PodCertificateRequest patchNamespacedPodCertificateRequestStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified PodCertificateRequest ### Example ```java @@ -129,27 +1200,25 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterTrustBundle + 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 - 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 | + 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 { - V1Status result = apiInstance.deleteClusterTrustBundle(name) + V1alpha1PodCertificateRequest result = apiInstance.patchNamespacedPodCertificateRequestStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#deleteClusterTrustBundle"); + System.err.println("Exception when calling CertificatesV1alpha1Api#patchNamespacedPodCertificateRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -163,18 +1232,18 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ClusterTrustBundle | | +| **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] | -| **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] | +| **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 -[**V1Status**](V1Status.md) +[**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.md) ### Authorization @@ -189,16 +1258,16 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **202** | Accepted | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **deleteCollectionClusterTrustBundle** -> V1Status deleteCollectionClusterTrustBundle().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **readClusterTrustBundle** +> V1alpha1ClusterTrustBundle readClusterTrustBundle(name).pretty(pretty).execute(); -delete collection of ClusterTrustBundle +read the specified ClusterTrustBundle ### Example ```java @@ -222,42 +1291,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(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 _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionClusterTrustBundle() + V1alpha1ClusterTrustBundle result = apiInstance.readClusterTrustBundle(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) - .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 CertificatesV1alpha1Api#readClusterTrustBundle"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -271,25 +1313,12 @@ 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] | -| **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) +[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) ### Authorization @@ -297,7 +1326,7 @@ 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 @@ -306,13 +1335,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); + +# **readNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequest(name, namespace).pretty(pretty).execute(); -get available resources +read the specified PodCertificateRequest ### Example ```java @@ -336,12 +1365,16 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(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). try { - V1APIResourceList result = apiInstance.getAPIResources() + V1alpha1PodCertificateRequest result = apiInstance.readNamespacedPodCertificateRequest(name, namespace) + .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#getAPIResources"); + System.err.println("Exception when calling CertificatesV1alpha1Api#readNamespacedPodCertificateRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -352,11 +1385,16 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| 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] | ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.md) ### Authorization @@ -373,13 +1411,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).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **readNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequestStatus(name, namespace).pretty(pretty).execute(); -list or watch objects of kind ClusterTrustBundle +read status of the specified PodCertificateRequest ### Example ```java @@ -403,34 +1441,16 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(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). - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1alpha1ClusterTrustBundleList result = apiInstance.listClusterTrustBundle() + V1alpha1PodCertificateRequest result = apiInstance.readNamespacedPodCertificateRequestStatus(name, namespace) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#listClusterTrustBundle"); + System.err.println("Exception when calling CertificatesV1alpha1Api#readNamespacedPodCertificateRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -444,21 +1464,13 @@ public class Example { | 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] | -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1alpha1ClusterTrustBundleList**](V1alpha1ClusterTrustBundleList.md) +[**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.md) ### Authorization @@ -467,7 +1479,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 | @@ -475,13 +1487,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchClusterTrustBundle** -> V1alpha1ClusterTrustBundle patchClusterTrustBundle(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **replaceClusterTrustBundle** +> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -partially update the specified ClusterTrustBundle +replace the specified ClusterTrustBundle ### Example ```java @@ -506,23 +1518,21 @@ public class Example { CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); String name = "name_example"; // String | name of the ClusterTrustBundle - V1Patch body = new V1Patch(); // V1Patch | + V1alpha1ClusterTrustBundle body = new V1alpha1ClusterTrustBundle(); // V1alpha1ClusterTrustBundle | 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 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. - 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) + V1alpha1ClusterTrustBundle result = apiInstance.replaceClusterTrustBundle(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 CertificatesV1alpha1Api#patchClusterTrustBundle"); + System.err.println("Exception when calling CertificatesV1alpha1Api#replaceClusterTrustBundle"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -537,12 +1547,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the ClusterTrustBundle | | -| **body** | **V1Patch**| | | +| **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [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] | -| **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 @@ -564,13 +1573,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **readClusterTrustBundle** -> V1alpha1ClusterTrustBundle readClusterTrustBundle(name).pretty(pretty).execute(); + +# **replaceNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequest(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read the specified ClusterTrustBundle +replace the specified PodCertificateRequest ### Example ```java @@ -594,15 +1603,23 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterTrustBundle + 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 + V1alpha1PodCertificateRequest body = new V1alpha1PodCertificateRequest(); // V1alpha1PodCertificateRequest | 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.readClusterTrustBundle(name) + V1alpha1PodCertificateRequest result = apiInstance.replaceNamespacedPodCertificateRequest(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 CertificatesV1alpha1Api#readClusterTrustBundle"); + System.err.println("Exception when calling CertificatesV1alpha1Api#replaceNamespacedPodCertificateRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -616,12 +1633,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ClusterTrustBundle | | +| **name** | **String**| name of the PodCertificateRequest | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.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 -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.md) ### Authorization @@ -629,22 +1651,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 | - | - -# **replaceClusterTrustBundle** -> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequestStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified ClusterTrustBundle +replace status of the specified PodCertificateRequest ### Example ```java @@ -668,14 +1691,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); CertificatesV1alpha1Api apiInstance = new CertificatesV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the ClusterTrustBundle - V1alpha1ClusterTrustBundle body = new V1alpha1ClusterTrustBundle(); // V1alpha1ClusterTrustBundle | + 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 + V1alpha1PodCertificateRequest body = new V1alpha1PodCertificateRequest(); // V1alpha1PodCertificateRequest | 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) + V1alpha1PodCertificateRequest result = apiInstance.replaceNamespacedPodCertificateRequestStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -683,7 +1707,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 CertificatesV1alpha1Api#replaceNamespacedPodCertificateRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -697,8 +1721,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ClusterTrustBundle | | -| **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | | +| **name** | **String**| name of the PodCertificateRequest | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.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] | @@ -706,7 +1731,7 @@ public class Example { ### Return type -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.md) ### Authorization diff --git a/kubernetes/docs/V1ResourceClaim.md b/kubernetes/docs/CoreV1ResourceClaim.md similarity index 96% rename from kubernetes/docs/V1ResourceClaim.md rename to kubernetes/docs/CoreV1ResourceClaim.md index 6eea081fca..fe9cb3704a 100644 --- a/kubernetes/docs/V1ResourceClaim.md +++ b/kubernetes/docs/CoreV1ResourceClaim.md @@ -1,6 +1,6 @@ -# V1ResourceClaim +# CoreV1ResourceClaim ResourceClaim references one entry in PodSpec.ResourceClaims. diff --git a/kubernetes/docs/ResourceV1Api.md b/kubernetes/docs/ResourceV1Api.md new file mode 100644 index 0000000000..fc6c55f177 --- /dev/null +++ b/kubernetes/docs/ResourceV1Api.md @@ -0,0 +1,3168 @@ +# ResourceV1Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createDeviceClass**](ResourceV1Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1/deviceclasses | | +| [**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 | | +| [**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} | | +| [**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 | | +| [**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} | | +| [**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} | | +| [**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} | | +| [**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} | | +| [**replaceResourceSlice**](ResourceV1Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1/resourceslices/{name} | | + + + +# **createDeviceClass** +> V1DeviceClass createDeviceClass(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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); + V1DeviceClass body = new V1DeviceClass(); // V1DeviceClass | + 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 { + V1DeviceClass result = apiInstance.createDeviceClass(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#createDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1DeviceClass**](V1DeviceClass.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 + +[**V1DeviceClass**](V1DeviceClass.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(); + + + +create a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ResourceV1ResourceClaim body = new ResourceV1ResourceClaim(); // ResourceV1ResourceClaim | + 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 { + ResourceV1ResourceClaim result = apiInstance.createNamespacedResourceClaim(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#createNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **createNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate createNamespacedResourceClaimTemplate(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ResourceClaimTemplate body = new V1ResourceClaimTemplate(); // V1ResourceClaimTemplate | + 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 { + V1ResourceClaimTemplate result = apiInstance.createNamespacedResourceClaimTemplate(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#createNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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 + +[**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 | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **createResourceSlice** +> V1ResourceSlice createResourceSlice(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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); + V1ResourceSlice body = new V1ResourceSlice(); // V1ResourceSlice | + 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 { + V1ResourceSlice result = apiInstance.createResourceSlice(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#createResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1ResourceSlice**](V1ResourceSlice.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 + +[**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 | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionDeviceClass** +> V1Status deleteCollectionDeviceClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionDeviceClass() + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#deleteCollectionDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaim(namespace) + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#deleteCollectionNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaimTemplate(namespace) + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#deleteCollectionNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionResourceSlice() + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#deleteCollectionResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteDeviceClass** +> V1DeviceClass deleteDeviceClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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). + 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 { + V1DeviceClass result = apiInstance.deleteDeviceClass(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#deleteDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1DeviceClass**](V1DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaim** +> ResourceV1ResourceClaim deleteNamespacedResourceClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + ResourceV1ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#deleteNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#deleteNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**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 | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteResourceSlice** +> V1ResourceSlice deleteResourceSlice(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 + 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 { + 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()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listDeviceClass** +> V1DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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. + 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 { + V1DeviceClassList result = apiInstance.listDeviceClass() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#listDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1DeviceClassList**](V1DeviceClassList.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).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#listNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1ResourceClaimList**](V1ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#listNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1ResourceClaimTemplateList**](V1ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listResourceClaimForAllNamespaces** +> V1ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#listResourceClaimForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1ResourceClaimList**](V1ResourceClaimList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listResourceClaimTemplateForAllNamespaces** +> V1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#listResourceClaimTemplateForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1ResourceClaimTemplateList**](V1ResourceClaimTemplateList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listResourceSlice** +> V1ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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. + 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 { + V1ResourceSliceList result = apiInstance.listResourceSlice() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#listResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1ResourceSliceList**](V1ResourceSliceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchDeviceClass** +> V1DeviceClass patchDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 + 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 { + V1DeviceClass result = apiInstance.patchDeviceClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#patchDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceClass | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1DeviceClass**](V1DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedResourceClaim** +> ResourceV1ResourceClaim patchNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ResourceV1ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#patchNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ResourceV1ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#patchNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 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) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#readDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceClass | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1DeviceClass**](V1DeviceClass.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(); + + + +read the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + ResourceV1ResourceClaim result = apiInstance.readNamespacedResourceClaim(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#readNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim readNamespacedResourceClaimStatus(name, namespace).pretty(pretty).execute(); + + + +read status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + ResourceV1ResourceClaim result = apiInstance.readNamespacedResourceClaimStatus(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#readNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate readNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).execute(); + + + +read the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1ResourceClaimTemplate result = apiInstance.readNamespacedResourceClaimTemplate(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#readNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readResourceSlice** +> V1ResourceSlice readResourceSlice(name).pretty(pretty).execute(); + + + +read the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 + 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 { + V1ResourceSlice result = apiInstance.readResourceSlice(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#readResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceSlice | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1ResourceSlice**](V1ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **replaceDeviceClass** +> V1DeviceClass replaceDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 + V1DeviceClass body = new V1DeviceClass(); // V1DeviceClass | + 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 { + V1DeviceClass result = apiInstance.replaceDeviceClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#replaceDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceClass | | +| **body** | [**V1DeviceClass**](V1DeviceClass.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 + +[**V1DeviceClass**](V1DeviceClass.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(); + + + +replace the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ResourceV1ResourceClaim body = new ResourceV1ResourceClaim(); // ResourceV1ResourceClaim | + 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 { + ResourceV1ResourceClaim result = apiInstance.replaceNamespacedResourceClaim(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#replaceNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim replaceNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ResourceV1ResourceClaim body = new ResourceV1ResourceClaim(); // ResourceV1ResourceClaim | + 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 { + ResourceV1ResourceClaim result = apiInstance.replaceNamespacedResourceClaimStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#replaceNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified ResourceClaimTemplate + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ResourceClaimTemplate body = new V1ResourceClaimTemplate(); // V1ResourceClaimTemplate | + 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 { + V1ResourceClaimTemplate result = apiInstance.replaceNamespacedResourceClaimTemplate(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#replaceNamespacedResourceClaimTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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 + +[**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 | - | + + +# **replaceResourceSlice** +> V1ResourceSlice replaceResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 + V1ResourceSlice body = new V1ResourceSlice(); // V1ResourceSlice | + 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 { + V1ResourceSlice result = apiInstance.replaceResourceSlice(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#replaceResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceSlice | | +| **body** | [**V1ResourceSlice**](V1ResourceSlice.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 + +[**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 | - | + diff --git a/kubernetes/docs/V1alpha3ResourceClaim.md b/kubernetes/docs/ResourceV1ResourceClaim.md similarity index 86% rename from kubernetes/docs/V1alpha3ResourceClaim.md rename to kubernetes/docs/ResourceV1ResourceClaim.md index e5b91a541d..d2516991af 100644 --- a/kubernetes/docs/V1alpha3ResourceClaim.md +++ b/kubernetes/docs/ResourceV1ResourceClaim.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceClaim +# ResourceV1ResourceClaim 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. @@ -11,8 +11,8 @@ 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** | [**V1alpha3ResourceClaimSpec**](V1alpha3ResourceClaimSpec.md) | | | -|**status** | [**V1alpha3ResourceClaimStatus**](V1alpha3ResourceClaimStatus.md) | | [optional] | +|**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | | +|**status** | [**V1ResourceClaimStatus**](V1ResourceClaimStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/ResourceV1alpha3Api.md b/kubernetes/docs/ResourceV1alpha3Api.md index 59e277670a..2f6d70ecc3 100644 --- a/kubernetes/docs/ResourceV1alpha3Api.md +++ b/kubernetes/docs/ResourceV1alpha3Api.md @@ -4,3153 +4,23 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createDeviceClass**](ResourceV1alpha3Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1alpha3/deviceclasses | | | [**createDeviceTaintRule**](ResourceV1alpha3Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | -| [**createNamespacedResourceClaim**](ResourceV1alpha3Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | | -| [**createNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | | -| [**createResourceSlice**](ResourceV1alpha3Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1alpha3/resourceslices | | -| [**deleteCollectionDeviceClass**](ResourceV1alpha3Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses | | | [**deleteCollectionDeviceTaintRule**](ResourceV1alpha3Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | -| [**deleteCollectionNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | | -| [**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | | -| [**deleteCollectionResourceSlice**](ResourceV1alpha3Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices | | -| [**deleteDeviceClass**](ResourceV1alpha3Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | | | [**deleteDeviceTaintRule**](ResourceV1alpha3Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | -| [**deleteNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | | -| [**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | | -| [**deleteResourceSlice**](ResourceV1alpha3Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | | | [**getAPIResources**](ResourceV1alpha3Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha3/ | | -| [**listDeviceClass**](ResourceV1alpha3Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses | | | [**listDeviceTaintRule**](ResourceV1alpha3Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | -| [**listNamespacedResourceClaim**](ResourceV1alpha3Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | | -| [**listNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | | -| [**listResourceClaimForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaims | | -| [**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates | | -| [**listResourceSlice**](ResourceV1alpha3Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices | | -| [**patchDeviceClass**](ResourceV1alpha3Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | | | [**patchDeviceTaintRule**](ResourceV1alpha3Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | -| [**patchNamespacedResourceClaim**](ResourceV1alpha3Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | | -| [**patchNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | | -| [**patchNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | | -| [**patchResourceSlice**](ResourceV1alpha3Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | | -| [**readDeviceClass**](ResourceV1alpha3Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | | | [**readDeviceTaintRule**](ResourceV1alpha3Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | -| [**readNamespacedResourceClaim**](ResourceV1alpha3Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | | -| [**readNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | | -| [**readNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | | -| [**readResourceSlice**](ResourceV1alpha3Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | | -| [**replaceDeviceClass**](ResourceV1alpha3Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | | | [**replaceDeviceTaintRule**](ResourceV1alpha3Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | -| [**replaceNamespacedResourceClaim**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | | -| [**replaceNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | | -| [**replaceNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | | -| [**replaceResourceSlice**](ResourceV1alpha3Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | | - -# **createDeviceClass** -> V1alpha3DeviceClass createDeviceClass(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create a DeviceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - V1alpha3DeviceClass body = new V1alpha3DeviceClass(); // V1alpha3DeviceClass | - 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 { - V1alpha3DeviceClass result = apiInstance.createDeviceClass(body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#createDeviceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [**V1alpha3DeviceClass**](V1alpha3DeviceClass.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 - -[**V1alpha3DeviceClass**](V1alpha3DeviceClass.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 | - | - - -# **createDeviceTaintRule** -> V1alpha3DeviceTaintRule createDeviceTaintRule(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create a DeviceTaintRule - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha3DeviceTaintRule result = apiInstance.createDeviceTaintRule(body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#createDeviceTaintRule"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | - -### Return type - -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **createNamespacedResourceClaim** -> V1alpha3ResourceClaim createNamespacedResourceClaim(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create a ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha3ResourceClaim body = new V1alpha3ResourceClaim(); // V1alpha3ResourceClaim | - 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 { - V1alpha3ResourceClaim result = apiInstance.createNamespacedResourceClaim(namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#createNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.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 - -[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **createNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate createNamespacedResourceClaimTemplate(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create a ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha3ResourceClaimTemplate body = new V1alpha3ResourceClaimTemplate(); // V1alpha3ResourceClaimTemplate | - 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 { - V1alpha3ResourceClaimTemplate result = apiInstance.createNamespacedResourceClaimTemplate(namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#createNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.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 - -[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **createResourceSlice** -> V1alpha3ResourceSlice createResourceSlice(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create a ResourceSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - V1alpha3ResourceSlice body = new V1alpha3ResourceSlice(); // V1alpha3ResourceSlice | - 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 { - V1alpha3ResourceSlice result = apiInstance.createResourceSlice(body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#createResourceSlice"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **body** | [**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.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 - -[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **deleteCollectionDeviceClass** -> V1Status deleteCollectionDeviceClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -delete collection of DeviceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionDeviceClass() - .pretty(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionDeviceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **deleteCollectionDeviceTaintRule** -> V1Status deleteCollectionDeviceTaintRule().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -delete collection of DeviceTaintRule - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionDeviceTaintRule() - .pretty(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionDeviceTaintRule"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **deleteCollectionNamespacedResourceClaim** -> V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -delete collection of ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionNamespacedResourceClaim(namespace) - .pretty(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **deleteCollectionNamespacedResourceClaimTemplate** -> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -delete collection of ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionNamespacedResourceClaimTemplate(namespace) - .pretty(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **deleteCollectionResourceSlice** -> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -delete collection of ResourceSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionResourceSlice() - .pretty(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionResourceSlice"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **deleteDeviceClass** -> V1alpha3DeviceClass deleteDeviceClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -delete a DeviceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceClass - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1alpha3DeviceClass result = apiInstance.deleteDeviceClass(name) - .pretty(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteDeviceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceClass | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1alpha3DeviceClass**](V1alpha3DeviceClass.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 | - | - - -# **deleteDeviceTaintRule** -> V1alpha3DeviceTaintRule deleteDeviceTaintRule(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -delete a DeviceTaintRule - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceTaintRule - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1alpha3DeviceTaintRule result = apiInstance.deleteDeviceTaintRule(name) - .pretty(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteDeviceTaintRule"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceTaintRule | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **deleteNamespacedResourceClaim** -> V1alpha3ResourceClaim deleteNamespacedResourceClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -delete a ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1alpha3ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace) - .pretty(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **deleteNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -delete a ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1alpha3ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace) - .pretty(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaimTemplate | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **deleteResourceSlice** -> V1alpha3ResourceSlice deleteResourceSlice(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -delete a ResourceSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the 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 { - V1alpha3ResourceSlice 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 ResourceV1alpha3Api#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 - -[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.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.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources() - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#getAPIResources"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **listDeviceClass** -> V1alpha3DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind DeviceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - try { - V1alpha3DeviceClassList result = apiInstance.listDeviceClass() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#listDeviceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | - -### Return type - -[**V1alpha3DeviceClassList**](V1alpha3DeviceClassList.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 | - | - - -# **listDeviceTaintRule** -> V1alpha3DeviceTaintRuleList listDeviceTaintRule().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind DeviceTaintRule - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - try { - V1alpha3DeviceTaintRuleList result = apiInstance.listDeviceTaintRule() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#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] | -| **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 - -[**V1alpha3DeviceTaintRuleList**](V1alpha3DeviceTaintRuleList.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** -> V1alpha3ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - try { - V1alpha3ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace) - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#listNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | - -### Return type - -[**V1alpha3ResourceClaimList**](V1alpha3ResourceClaimList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **listNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - try { - V1alpha3ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace) - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#listNamespacedResourceClaimTemplate"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | - -### Return type - -[**V1alpha3ResourceClaimTemplateList**](V1alpha3ResourceClaimTemplateList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **listResourceClaimForAllNamespaces** -> V1alpha3ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - try { - V1alpha3ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#listResourceClaimForAllNamespaces"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | - -### Return type - -[**V1alpha3ResourceClaimList**](V1alpha3ResourceClaimList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **listResourceClaimTemplateForAllNamespaces** -> V1alpha3ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - try { - V1alpha3ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#listResourceClaimTemplateForAllNamespaces"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | - -### Return type - -[**V1alpha3ResourceClaimTemplateList**](V1alpha3ResourceClaimTemplateList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **listResourceSlice** -> V1alpha3ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind ResourceSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - try { - V1alpha3ResourceSliceList result = apiInstance.listResourceSlice() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#listResourceSlice"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | -| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | -| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | - -### Return type - -[**V1alpha3ResourceSliceList**](V1alpha3ResourceSliceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **patchDeviceClass** -> V1alpha3DeviceClass patchDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -partially update the specified DeviceClass - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceClass - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha3DeviceClass result = apiInstance.patchDeviceClass(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceClass | | -| **body** | **V1Patch**| | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | - -### Return type - -[**V1alpha3DeviceClass**](V1alpha3DeviceClass.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 | - | - - -# **patchDeviceTaintRule** -> V1alpha3DeviceTaintRule patchDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -partially update the specified DeviceTaintRule - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceTaintRule - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha3DeviceTaintRule result = apiInstance.patchDeviceTaintRule(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceTaintRule"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceTaintRule | | -| **body** | **V1Patch**| | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | - -### Return type - -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - - -# **patchNamespacedResourceClaim** -> V1alpha3ResourceClaim patchNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -partially update the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha3ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#patchNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | **V1Patch**| | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | - -### Return type - -[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - - -# **patchNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -partially update status of the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha3ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#patchNamespacedResourceClaimStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | **V1Patch**| | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | - -### Return type - -[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - - -# **patchNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -partially update the specified ResourceClaimTemplate - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the 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 { - V1alpha3ResourceClaimTemplate 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 ResourceV1alpha3Api#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 - -[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.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** -> V1alpha3ResourceSlice 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.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the 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 { - V1alpha3ResourceSlice 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 ResourceV1alpha3Api#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 - -[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.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** -> V1alpha3DeviceClass 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.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the 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 { - V1alpha3DeviceClass result = apiInstance.readDeviceClass(name) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceClass"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceClass | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | - -### Return type - -[**V1alpha3DeviceClass**](V1alpha3DeviceClass.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 | - | - - -# **readDeviceTaintRule** -> V1alpha3DeviceTaintRule readDeviceTaintRule(name).pretty(pretty).execute(); - - - -read the specified DeviceTaintRule - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceTaintRule - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha3DeviceTaintRule result = apiInstance.readDeviceTaintRule(name) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceTaintRule"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceTaintRule | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | - -### Return type - -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **readNamespacedResourceClaim** -> V1alpha3ResourceClaim readNamespacedResourceClaim(name, namespace).pretty(pretty).execute(); - - - -read the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha3ResourceClaim result = apiInstance.readNamespacedResourceClaim(name, namespace) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#readNamespacedResourceClaim"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | - -### Return type - -[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **readNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim readNamespacedResourceClaimStatus(name, namespace).pretty(pretty).execute(); - - - -read status of the specified ResourceClaim - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost/"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha3ResourceClaim result = apiInstance.readNamespacedResourceClaimStatus(name, namespace) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#readNamespacedResourceClaimStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | - -### Return type - -[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **readNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate readNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).execute(); + +# **createDeviceTaintRule** +> V1alpha3DeviceTaintRule createDeviceTaintRule(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read the specified ResourceClaimTemplate +create a DeviceTaintRule ### Example ```java @@ -3174,16 +44,21 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha3ResourceClaimTemplate result = apiInstance.readNamespacedResourceClaimTemplate(name, namespace) + V1alpha3DeviceTaintRule result = apiInstance.createDeviceTaintRule(body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#readNamespacedResourceClaimTemplate"); + System.err.println("Exception when calling ResourceV1alpha3Api#createDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3197,13 +72,15 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaimTemplate | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type -[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md) +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) ### Authorization @@ -3211,22 +88,24 @@ 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 | - | +| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **readResourceSlice** -> V1alpha3ResourceSlice readResourceSlice(name).pretty(pretty).execute(); + +# **deleteCollectionDeviceTaintRule** +> V1Status deleteCollectionDeviceTaintRule().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -read the specified ResourceSlice +delete collection of DeviceTaintRule ### Example ```java @@ -3250,15 +129,42 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(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 _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1alpha3ResourceSlice result = apiInstance.readResourceSlice(name) + V1Status result = apiInstance.deleteCollectionDeviceTaintRule() .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#readResourceSlice"); + System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3272,12 +178,25 @@ public class Example { | 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] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type -[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md) +[**V1Status**](V1Status.md) ### Authorization @@ -3285,7 +204,7 @@ 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 @@ -3294,13 +213,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **replaceDeviceClass** -> V1alpha3DeviceClass replaceDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **deleteDeviceTaintRule** +> V1alpha3DeviceTaintRule deleteDeviceTaintRule(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -replace the specified DeviceClass +delete a DeviceTaintRule ### Example ```java @@ -3324,22 +243,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceClass - V1alpha3DeviceClass body = new V1alpha3DeviceClass(); // V1alpha3DeviceClass | + 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 - 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. + 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 { - V1alpha3DeviceClass result = apiInstance.replaceDeviceClass(name, body) + V1alpha3DeviceTaintRule result = apiInstance.deleteDeviceTaintRule(name) .pretty(pretty) .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceClass"); + System.err.println("Exception when calling ResourceV1alpha3Api#deleteDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3353,16 +277,18 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceClass | | -| **body** | [**V1alpha3DeviceClass**](V1alpha3DeviceClass.md)| | | +| **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] | -| **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] | +| **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 -[**V1alpha3DeviceClass**](V1alpha3DeviceClass.md) +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) ### Authorization @@ -3377,16 +303,16 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | +| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **replaceDeviceTaintRule** -> V1alpha3DeviceTaintRule replaceDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); -replace the specified DeviceTaintRule +get available resources ### Example ```java @@ -3410,22 +336,12 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceTaintRule - V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha3DeviceTaintRule result = apiInstance.replaceDeviceTaintRule(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) + V1APIResourceList result = apiInstance.getAPIResources() .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceTaintRule"); + System.err.println("Exception when calling ResourceV1alpha3Api#getAPIResources"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3436,19 +352,11 @@ public class Example { ``` ### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceTaintRule | | -| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +This endpoint does not need any parameter. ### Return type -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -3456,23 +364,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 | - | - -# **replaceNamespacedResourceClaim** -> V1alpha3ResourceClaim replaceNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **listDeviceTaintRule** +> V1alpha3DeviceTaintRuleList listDeviceTaintRule().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -replace the specified ResourceClaim +list or watch objects of kind DeviceTaintRule ### Example ```java @@ -3496,23 +403,34 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(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 - V1alpha3ResourceClaim body = new V1alpha3ResourceClaim(); // V1alpha3ResourceClaim | 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. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1alpha3ResourceClaim result = apiInstance.replaceNamespacedResourceClaim(name, namespace, body) + V1alpha3DeviceTaintRuleList result = apiInstance.listDeviceTaintRule() .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#replaceNamespacedResourceClaim"); + System.err.println("Exception when calling ResourceV1alpha3Api#listDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3526,17 +444,21 @@ 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 | | -| **body** | [**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.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] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) +[**V1alpha3DeviceTaintRuleList**](V1alpha3DeviceTaintRuleList.md) ### Authorization @@ -3544,23 +466,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + - **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 | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim replaceNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **patchDeviceTaintRule** +> V1alpha3DeviceTaintRule patchDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -replace status of the specified ResourceClaim +partially update the specified DeviceTaintRule ### Example ```java @@ -3584,23 +505,24 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(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 - V1alpha3ResourceClaim body = new V1alpha3ResourceClaim(); // V1alpha3ResourceClaim | + String name = "name_example"; // String | name of the DeviceTaintRule + V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + 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 { - V1alpha3ResourceClaim result = apiInstance.replaceNamespacedResourceClaimStatus(name, namespace, body) + V1alpha3DeviceTaintRule result = apiInstance.patchDeviceTaintRule(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) .fieldValidation(fieldValidation) + .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#replaceNamespacedResourceClaimStatus"); + System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3614,17 +536,17 @@ 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 | | -| **body** | [**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md)| | | +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [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 -[**V1alpha3ResourceClaim**](V1alpha3ResourceClaim.md) +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) ### Authorization @@ -3642,13 +564,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **readDeviceTaintRule** +> V1alpha3DeviceTaintRule readDeviceTaintRule(name).pretty(pretty).execute(); -replace the specified ResourceClaimTemplate +read the specified DeviceTaintRule ### Example ```java @@ -3672,23 +594,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha3ResourceClaimTemplate body = new V1alpha3ResourceClaimTemplate(); // V1alpha3ResourceClaimTemplate | + 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 - 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 { - V1alpha3ResourceClaimTemplate result = apiInstance.replaceNamespacedResourceClaimTemplate(name, namespace, body) + V1alpha3DeviceTaintRule result = apiInstance.readDeviceTaintRule(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#replaceNamespacedResourceClaimTemplate"); + System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3702,17 +616,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaimTemplate | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md)| | | +| **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] | -| **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 -[**V1alpha3ResourceClaimTemplate**](V1alpha3ResourceClaimTemplate.md) +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) ### Authorization @@ -3720,23 +629,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 | - | - -# **replaceResourceSlice** -> V1alpha3ResourceSlice replaceResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceDeviceTaintRule** +> V1alpha3DeviceTaintRule replaceDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified ResourceSlice +replace the specified DeviceTaintRule ### Example ```java @@ -3760,14 +668,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the ResourceSlice - V1alpha3ResourceSlice body = new V1alpha3ResourceSlice(); // V1alpha3ResourceSlice | + String name = "name_example"; // String | name of the DeviceTaintRule + V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha3ResourceSlice result = apiInstance.replaceResourceSlice(name, body) + V1alpha3DeviceTaintRule result = apiInstance.replaceDeviceTaintRule(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -3775,7 +683,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#replaceResourceSlice"); + System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -3789,8 +697,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceSlice | | -| **body** | [**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md)| | | +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | @@ -3798,7 +706,7 @@ public class Example { ### Return type -[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md) +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) ### Authorization diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index ed4fc0a54a..f193345630 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -9,6 +9,7 @@ All URIs are relative to *http://localhost* | [**createNamespacedCSIStorageCapacity**](StorageV1Api.md#createNamespacedCSIStorageCapacity) | **POST** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | | | [**createStorageClass**](StorageV1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1/storageclasses | | | [**createVolumeAttachment**](StorageV1Api.md#createVolumeAttachment) | **POST** /apis/storage.k8s.io/v1/volumeattachments | | +| [**createVolumeAttributesClass**](StorageV1Api.md#createVolumeAttributesClass) | **POST** /apis/storage.k8s.io/v1/volumeattributesclasses | | | [**deleteCSIDriver**](StorageV1Api.md#deleteCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers/{name} | | | [**deleteCSINode**](StorageV1Api.md#deleteCSINode) | **DELETE** /apis/storage.k8s.io/v1/csinodes/{name} | | | [**deleteCollectionCSIDriver**](StorageV1Api.md#deleteCollectionCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers | | @@ -16,9 +17,11 @@ All URIs are relative to *http://localhost* | [**deleteCollectionNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteCollectionNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | | | [**deleteCollectionStorageClass**](StorageV1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | | | [**deleteCollectionVolumeAttachment**](StorageV1Api.md#deleteCollectionVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments | | +| [**deleteCollectionVolumeAttributesClass**](StorageV1Api.md#deleteCollectionVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses | | | [**deleteNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | | [**deleteStorageClass**](StorageV1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | | | [**deleteVolumeAttachment**](StorageV1Api.md#deleteVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments/{name} | | +| [**deleteVolumeAttributesClass**](StorageV1Api.md#deleteVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | | | [**getAPIResources**](StorageV1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1/ | | | [**listCSIDriver**](StorageV1Api.md#listCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers | | | [**listCSINode**](StorageV1Api.md#listCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes | | @@ -26,24 +29,28 @@ All URIs are relative to *http://localhost* | [**listNamespacedCSIStorageCapacity**](StorageV1Api.md#listNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | | | [**listStorageClass**](StorageV1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses | | | [**listVolumeAttachment**](StorageV1Api.md#listVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments | | +| [**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} | | | [**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} | | | [**patchVolumeAttachmentStatus**](StorageV1Api.md#patchVolumeAttachmentStatus) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | | +| [**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} | | | [**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} | | | [**readVolumeAttachmentStatus**](StorageV1Api.md#readVolumeAttachmentStatus) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | | +| [**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} | | | [**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} | | | [**replaceVolumeAttachmentStatus**](StorageV1Api.md#replaceVolumeAttachmentStatus) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | | +| [**replaceVolumeAttributesClass**](StorageV1Api.md#replaceVolumeAttributesClass) | **PUT** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | | @@ -473,6 +480,91 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | + +# **createVolumeAttributesClass** +> V1VolumeAttributesClass 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.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); + V1VolumeAttributesClass body = new V1VolumeAttributesClass(); // V1VolumeAttributesClass | + 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 { + V1VolumeAttributesClass 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 StorageV1Api#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** | [**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 | - | + # **deleteCSIDriver** > V1CSIDriver deleteCSIDriver(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1231,6 +1323,120 @@ public class Example { | **200** | OK | - | | **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).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.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 pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.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) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#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] | +| **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 | - | + # **deleteNamespacedCSIStorageCapacity** > V1Status deleteNamespacedCSIStorageCapacity(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1512,6 +1718,99 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | + +# **deleteVolumeAttributesClass** +> V1VolumeAttributesClass 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.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 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 { + V1VolumeAttributesClass 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 StorageV1Api#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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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(); @@ -1891,7 +2190,111 @@ public class Example { -list or watch objects of kind CSIStorageCapacity +list or watch objects of kind CSIStorageCapacity + +### 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 namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + String resourceVersionMatch = "resourceVersionMatch_example"; // String | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1CSIStorageCapacityList result = apiInstance.listNamespacedCSIStorageCapacity(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#listNamespacedCSIStorageCapacity"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] | +| **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] | +| **resourceVersion** | **String**| resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **resourceVersionMatch** | **String**| resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1CSIStorageCapacityList**](V1CSIStorageCapacityList.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 | - | + + +# **listStorageClass** +> V1StorageClassList listStorageClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind StorageClass ### Example ```java @@ -1915,7 +2318,6 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); StorageV1Api apiInstance = new StorageV1Api(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. @@ -1928,7 +2330,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 { - V1CSIStorageCapacityList result = apiInstance.listNamespacedCSIStorageCapacity(namespace) + V1StorageClassList result = apiInstance.listStorageClass() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -1943,7 +2345,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#listNamespacedCSIStorageCapacity"); + System.err.println("Exception when calling StorageV1Api#listStorageClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1957,7 +2359,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **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] | @@ -1972,7 +2373,7 @@ public class Example { ### Return type -[**V1CSIStorageCapacityList**](V1CSIStorageCapacityList.md) +[**V1StorageClassList**](V1StorageClassList.md) ### Authorization @@ -1989,13 +2390,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listStorageClass** -> V1StorageClassList listStorageClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listVolumeAttachment** +> V1VolumeAttachmentList listVolumeAttachment().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind StorageClass +list or watch objects of kind VolumeAttachment ### Example ```java @@ -2031,7 +2432,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 { - V1StorageClassList result = apiInstance.listStorageClass() + V1VolumeAttachmentList result = apiInstance.listVolumeAttachment() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -2046,7 +2447,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#listStorageClass"); + System.err.println("Exception when calling StorageV1Api#listVolumeAttachment"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2074,7 +2475,7 @@ public class Example { ### Return type -[**V1StorageClassList**](V1StorageClassList.md) +[**V1VolumeAttachmentList**](V1VolumeAttachmentList.md) ### Authorization @@ -2091,13 +2492,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listVolumeAttachment** -> V1VolumeAttachmentList listVolumeAttachment().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listVolumeAttributesClass** +> V1VolumeAttributesClassList listVolumeAttributesClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind VolumeAttachment +list or watch objects of kind VolumeAttributesClass ### Example ```java @@ -2133,7 +2534,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 { - V1VolumeAttachmentList result = apiInstance.listVolumeAttachment() + V1VolumeAttributesClassList result = apiInstance.listVolumeAttributesClass() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -2148,7 +2549,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#listVolumeAttachment"); + System.err.println("Exception when calling StorageV1Api#listVolumeAttributesClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2176,7 +2577,7 @@ public class Example { ### Return type -[**V1VolumeAttachmentList**](V1VolumeAttachmentList.md) +[**V1VolumeAttributesClassList**](V1VolumeAttributesClassList.md) ### Authorization @@ -2729,6 +3130,95 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | + +# **patchVolumeAttributesClass** +> V1VolumeAttributesClass 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.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 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 { + V1VolumeAttributesClass 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 StorageV1Api#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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 | - | + # **readCSIDriver** > V1CSIDriver readCSIDriver(name).pretty(pretty).execute(); @@ -3175,6 +3665,80 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | + +# **readVolumeAttributesClass** +> V1VolumeAttributesClass 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.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 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 { + V1VolumeAttributesClass result = apiInstance.readVolumeAttributesClass(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 | - | + # **replaceCSIDriver** > V1CSIDriver replaceCSIDriver(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -3693,3 +4257,89 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | + +# **replaceVolumeAttributesClass** +> V1VolumeAttributesClass 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.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 VolumeAttributesClass + V1VolumeAttributesClass body = new V1VolumeAttributesClass(); // V1VolumeAttributesClass | + 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 { + V1VolumeAttributesClass 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 StorageV1Api#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** | [**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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/V1alpha3AllocatedDeviceStatus.md b/kubernetes/docs/V1AllocatedDeviceStatus.md similarity index 79% rename from kubernetes/docs/V1alpha3AllocatedDeviceStatus.md rename to kubernetes/docs/V1AllocatedDeviceStatus.md index 149891005e..6e6434290a 100644 --- a/kubernetes/docs/V1alpha3AllocatedDeviceStatus.md +++ b/kubernetes/docs/V1AllocatedDeviceStatus.md @@ -1,8 +1,8 @@ -# V1alpha3AllocatedDeviceStatus +# V1AllocatedDeviceStatus -AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. +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. ## Properties @@ -12,8 +12,9 @@ AllocatedDeviceStatus contains the status of an allocated device, if the driver |**data** | **Object** | Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. | [optional] | |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | -|**networkData** | [**V1alpha3NetworkDeviceData**](V1alpha3NetworkDeviceData.md) | | [optional] | +|**networkData** | [**V1NetworkDeviceData**](V1NetworkDeviceData.md) | | [optional] | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | +|**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device. | [optional] | diff --git a/kubernetes/docs/V1AllocationResult.md b/kubernetes/docs/V1AllocationResult.md new file mode 100644 index 0000000000..7eeca9404e --- /dev/null +++ b/kubernetes/docs/V1AllocationResult.md @@ -0,0 +1,16 @@ + + +# V1AllocationResult + +AllocationResult contains attributes of an allocated resource. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationTimestamp** | **OffsetDateTime** | 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | +|**devices** | [**V1DeviceAllocationResult**](V1DeviceAllocationResult.md) | | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1CELDeviceSelector.md b/kubernetes/docs/V1CELDeviceSelector.md new file mode 100644 index 0000000000..4d042a1aad --- /dev/null +++ b/kubernetes/docs/V1CELDeviceSelector.md @@ -0,0 +1,14 @@ + + +# V1CELDeviceSelector + +CELDeviceSelector contains a CEL expression for selecting a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - 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) 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 d75dc6aae7..35bf0ae695 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -8,9 +8,9 @@ CSIDriverSpec is the specification of a CSIDriver. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**attachRequired** | **Boolean** | attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. | [optional] | +|**attachRequired** | **Boolean** | attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. | [optional] | |**fsGroupPolicy** | **String** | fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field was immutable in Kubernetes < 1.29 and now is mutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. | [optional] | -|**nodeAllocatableUpdatePeriodSeconds** | **Long** | nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. | [optional] | +|**nodeAllocatableUpdatePeriodSeconds** | **Long** | nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. | [optional] | |**podInfoOnMount** | **Boolean** | podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \"false\" \"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. This field was immutable in Kubernetes < 1.29 and now is mutable. | [optional] | |**requiresRepublish** | **Boolean** | requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. | [optional] | |**seLinuxMount** | **Boolean** | seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\". | [optional] | diff --git a/kubernetes/docs/V1CapacityRequestPolicy.md b/kubernetes/docs/V1CapacityRequestPolicy.md new file mode 100644 index 0000000000..07e155fba1 --- /dev/null +++ b/kubernetes/docs/V1CapacityRequestPolicy.md @@ -0,0 +1,16 @@ + + +# V1CapacityRequestPolicy + +CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_default** | **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] | +|**validRange** | [**V1CapacityRequestPolicyRange**](V1CapacityRequestPolicyRange.md) | | [optional] | +|**validValues** | **List<Quantity>** | 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. | [optional] | + + + diff --git a/kubernetes/docs/V1CapacityRequestPolicyRange.md b/kubernetes/docs/V1CapacityRequestPolicyRange.md new file mode 100644 index 0000000000..a2a3e4bad5 --- /dev/null +++ b/kubernetes/docs/V1CapacityRequestPolicyRange.md @@ -0,0 +1,16 @@ + + +# 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. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**max** | **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] | +|**min** | **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. | | +|**step** | **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/V1CapacityRequirements.md b/kubernetes/docs/V1CapacityRequirements.md new file mode 100644 index 0000000000..c0bb2e4fad --- /dev/null +++ b/kubernetes/docs/V1CapacityRequirements.md @@ -0,0 +1,14 @@ + + +# V1CapacityRequirements + +CapacityRequirements defines the capacity requirements for a specific device request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requests** | **Map<String, Quantity>** | 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[<domain>].<name>.compareTo(quantity(<request 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. | [optional] | + + + diff --git a/kubernetes/docs/V1Container.md b/kubernetes/docs/V1Container.md index 51c0b52cab..0567441623 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -11,7 +11,7 @@ A single application container that you want to run within a pod. |**args** | **List<String>** | Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell | [optional] | |**command** | **List<String>** | Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell | [optional] | |**env** | [**List<V1EnvVar>**](V1EnvVar.md) | List of environment variables to set in the container. Cannot be updated. | [optional] | -|**envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. | [optional] | +|**envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. | [optional] | |**image** | **String** | Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. | [optional] | |**imagePullPolicy** | **String** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] | |**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | | [optional] | @@ -21,7 +21,8 @@ A single application container that you want to run within a pod. |**readinessProbe** | [**V1Probe**](V1Probe.md) | | [optional] | |**resizePolicy** | [**List<V1ContainerResizePolicy>**](V1ContainerResizePolicy.md) | Resources resize policy for the container. | [optional] | |**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] | -|**restartPolicy** | **String** | RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. | [optional] | +|**restartPolicy** | **String** | RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. | [optional] | +|**restartPolicyRules** | [**List<V1ContainerRestartRule>**](V1ContainerRestartRule.md) | Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy. | [optional] | |**securityContext** | [**V1SecurityContext**](V1SecurityContext.md) | | [optional] | |**startupProbe** | [**V1Probe**](V1Probe.md) | | [optional] | |**stdin** | **Boolean** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. | [optional] | diff --git a/kubernetes/docs/V1ContainerExtendedResourceRequest.md b/kubernetes/docs/V1ContainerExtendedResourceRequest.md new file mode 100644 index 0000000000..f3ab5ddaa8 --- /dev/null +++ b/kubernetes/docs/V1ContainerExtendedResourceRequest.md @@ -0,0 +1,16 @@ + + +# V1ContainerExtendedResourceRequest + +ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**containerName** | **String** | The name of the container requesting resources. | | +|**requestName** | **String** | The name of the request in the special ResourceClaim which corresponds to the extended resource. | | +|**resourceName** | **String** | The name of the extended resource in that container which gets backed by DRA. | | + + + diff --git a/kubernetes/docs/V1ContainerRestartRule.md b/kubernetes/docs/V1ContainerRestartRule.md new file mode 100644 index 0000000000..ff742a82ef --- /dev/null +++ b/kubernetes/docs/V1ContainerRestartRule.md @@ -0,0 +1,15 @@ + + +# V1ContainerRestartRule + +ContainerRestartRule describes how a container exit is handled. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. | | +|**exitCodes** | [**V1ContainerRestartRuleOnExitCodes**](V1ContainerRestartRuleOnExitCodes.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1ContainerRestartRuleOnExitCodes.md b/kubernetes/docs/V1ContainerRestartRuleOnExitCodes.md new file mode 100644 index 0000000000..6dcf1c926a --- /dev/null +++ b/kubernetes/docs/V1ContainerRestartRuleOnExitCodes.md @@ -0,0 +1,15 @@ + + +# V1ContainerRestartRuleOnExitCodes + +ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**operator** | **String** | Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. | | +|**values** | **List<Integer>** | Specifies the set of values to check for container exit codes. At most 255 elements are allowed. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3Counter.md b/kubernetes/docs/V1Counter.md similarity index 99% rename from kubernetes/docs/V1alpha3Counter.md rename to kubernetes/docs/V1Counter.md index 7094abaa34..f432977a47 100644 --- a/kubernetes/docs/V1alpha3Counter.md +++ b/kubernetes/docs/V1Counter.md @@ -1,6 +1,6 @@ -# V1alpha3Counter +# V1Counter Counter describes a quantity associated with a device. diff --git a/kubernetes/docs/V1CounterSet.md b/kubernetes/docs/V1CounterSet.md new file mode 100644 index 0000000000..98b6b26ed0 --- /dev/null +++ b/kubernetes/docs/V1CounterSet.md @@ -0,0 +1,15 @@ + + +# V1CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**counters** | [**Map<String, V1Counter>**](V1Counter.md) | Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. | | +|**name** | **String** | Name defines the name of the counter set. It must be a DNS label. | | + + + diff --git a/kubernetes/docs/V1Device.md b/kubernetes/docs/V1Device.md new file mode 100644 index 0000000000..cce4149294 --- /dev/null +++ b/kubernetes/docs/V1Device.md @@ -0,0 +1,25 @@ + + +# V1Device + +Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | +|**allowMultipleAllocations** | **Boolean** | 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. | [optional] | +|**attributes** | [**Map<String, V1DeviceAttribute>**](V1DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | +|**bindingConditions** | **List<String>** | 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**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 total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] | +|**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | | +|**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | +|**taints** | [**List<V1DeviceTaint>**](V1DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md b/kubernetes/docs/V1DeviceAllocationConfiguration.md similarity index 83% rename from kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md rename to kubernetes/docs/V1DeviceAllocationConfiguration.md index cff2be4e90..fcd158bd92 100644 --- a/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md +++ b/kubernetes/docs/V1DeviceAllocationConfiguration.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceAllocationConfiguration +# V1DeviceAllocationConfiguration DeviceAllocationConfiguration gets embedded in an AllocationResult. @@ -8,7 +8,7 @@ DeviceAllocationConfiguration gets embedded in an AllocationResult. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**opaque** | [**V1alpha3OpaqueDeviceConfiguration**](V1alpha3OpaqueDeviceConfiguration.md) | | [optional] | +|**opaque** | [**V1OpaqueDeviceConfiguration**](V1OpaqueDeviceConfiguration.md) | | [optional] | |**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] | |**source** | **String** | Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. | | diff --git a/kubernetes/docs/V1DeviceAllocationResult.md b/kubernetes/docs/V1DeviceAllocationResult.md new file mode 100644 index 0000000000..3208ed73da --- /dev/null +++ b/kubernetes/docs/V1DeviceAllocationResult.md @@ -0,0 +1,15 @@ + + +# V1DeviceAllocationResult + +DeviceAllocationResult is the result of allocating devices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**List<V1DeviceAllocationConfiguration>**](V1DeviceAllocationConfiguration.md) | This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. | [optional] | +|**results** | [**List<V1DeviceRequestAllocationResult>**](V1DeviceRequestAllocationResult.md) | Results lists all allocated devices. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3DeviceAttribute.md b/kubernetes/docs/V1DeviceAttribute.md similarity index 95% rename from kubernetes/docs/V1alpha3DeviceAttribute.md rename to kubernetes/docs/V1DeviceAttribute.md index 59c1d41390..4547b8c079 100644 --- a/kubernetes/docs/V1alpha3DeviceAttribute.md +++ b/kubernetes/docs/V1DeviceAttribute.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceAttribute +# V1DeviceAttribute DeviceAttribute must have exactly one field set. diff --git a/kubernetes/docs/V1DeviceCapacity.md b/kubernetes/docs/V1DeviceCapacity.md new file mode 100644 index 0000000000..b9325fda91 --- /dev/null +++ b/kubernetes/docs/V1DeviceCapacity.md @@ -0,0 +1,15 @@ + + +# V1DeviceCapacity + +DeviceCapacity describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requestPolicy** | [**V1CapacityRequestPolicy**](V1CapacityRequestPolicy.md) | | [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. | | + + + diff --git a/kubernetes/docs/V1DeviceClaim.md b/kubernetes/docs/V1DeviceClaim.md new file mode 100644 index 0000000000..7faa441fa8 --- /dev/null +++ b/kubernetes/docs/V1DeviceClaim.md @@ -0,0 +1,16 @@ + + +# V1DeviceClaim + +DeviceClaim defines how to request devices with a ResourceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**List<V1DeviceClaimConfiguration>**](V1DeviceClaimConfiguration.md) | This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. | [optional] | +|**constraints** | [**List<V1DeviceConstraint>**](V1DeviceConstraint.md) | These constraints must be satisfied by the set of devices that get allocated for the claim. | [optional] | +|**requests** | [**List<V1DeviceRequest>**](V1DeviceRequest.md) | Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md b/kubernetes/docs/V1DeviceClaimConfiguration.md similarity index 80% rename from kubernetes/docs/V1alpha3DeviceClaimConfiguration.md rename to kubernetes/docs/V1DeviceClaimConfiguration.md index c0706cb1bb..fec6444c00 100644 --- a/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md +++ b/kubernetes/docs/V1DeviceClaimConfiguration.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceClaimConfiguration +# V1DeviceClaimConfiguration DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. @@ -8,7 +8,7 @@ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**opaque** | [**V1alpha3OpaqueDeviceConfiguration**](V1alpha3OpaqueDeviceConfiguration.md) | | [optional] | +|**opaque** | [**V1OpaqueDeviceConfiguration**](V1OpaqueDeviceConfiguration.md) | | [optional] | |**requests** | **List<String>** | Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1alpha3DeviceClass.md b/kubernetes/docs/V1DeviceClass.md similarity index 92% rename from kubernetes/docs/V1alpha3DeviceClass.md rename to kubernetes/docs/V1DeviceClass.md index 4ffce8f3ac..f0ffa5ee67 100644 --- a/kubernetes/docs/V1alpha3DeviceClass.md +++ b/kubernetes/docs/V1DeviceClass.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceClass +# V1DeviceClass 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. @@ -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** | [**V1alpha3DeviceClassSpec**](V1alpha3DeviceClassSpec.md) | | | +|**spec** | [**V1DeviceClassSpec**](V1DeviceClassSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha3DeviceClassConfiguration.md b/kubernetes/docs/V1DeviceClassConfiguration.md similarity index 54% rename from kubernetes/docs/V1alpha3DeviceClassConfiguration.md rename to kubernetes/docs/V1DeviceClassConfiguration.md index 9e77fc2fe5..618512ba04 100644 --- a/kubernetes/docs/V1alpha3DeviceClassConfiguration.md +++ b/kubernetes/docs/V1DeviceClassConfiguration.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceClassConfiguration +# V1DeviceClassConfiguration DeviceClassConfiguration is used in DeviceClass. @@ -8,7 +8,7 @@ DeviceClassConfiguration is used in DeviceClass. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**opaque** | [**V1alpha3OpaqueDeviceConfiguration**](V1alpha3OpaqueDeviceConfiguration.md) | | [optional] | +|**opaque** | [**V1OpaqueDeviceConfiguration**](V1OpaqueDeviceConfiguration.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha3DeviceClassList.md b/kubernetes/docs/V1DeviceClassList.md similarity index 86% rename from kubernetes/docs/V1alpha3DeviceClassList.md rename to kubernetes/docs/V1DeviceClassList.md index 6da83c989a..5a488af757 100644 --- a/kubernetes/docs/V1alpha3DeviceClassList.md +++ b/kubernetes/docs/V1DeviceClassList.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceClassList +# V1DeviceClassList DeviceClassList is a collection of classes. @@ -9,7 +9,7 @@ DeviceClassList is a collection of classes. | 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<V1alpha3DeviceClass>**](V1alpha3DeviceClass.md) | Items is the list of resource classes. | | +|**items** | [**List<V1DeviceClass>**](V1DeviceClass.md) | Items is the list of resource classes. | | |**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | |**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | diff --git a/kubernetes/docs/V1DeviceClassSpec.md b/kubernetes/docs/V1DeviceClassSpec.md new file mode 100644 index 0000000000..0cc21347f6 --- /dev/null +++ b/kubernetes/docs/V1DeviceClassSpec.md @@ -0,0 +1,16 @@ + + +# V1DeviceClassSpec + +DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. + +## Properties + +| 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 an alpha field. | [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/V1alpha3DeviceConstraint.md b/kubernetes/docs/V1DeviceConstraint.md similarity index 69% rename from kubernetes/docs/V1alpha3DeviceConstraint.md rename to kubernetes/docs/V1DeviceConstraint.md index b82f9b7f55..e6f4be0393 100644 --- a/kubernetes/docs/V1alpha3DeviceConstraint.md +++ b/kubernetes/docs/V1DeviceConstraint.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceConstraint +# V1DeviceConstraint DeviceConstraint must have exactly one field set besides Requests. @@ -8,6 +8,7 @@ DeviceConstraint must have exactly one field set besides Requests. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. 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. | [optional] | |**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. | [optional] | |**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1DeviceCounterConsumption.md b/kubernetes/docs/V1DeviceCounterConsumption.md new file mode 100644 index 0000000000..c858604124 --- /dev/null +++ b/kubernetes/docs/V1DeviceCounterConsumption.md @@ -0,0 +1,15 @@ + + +# V1DeviceCounterConsumption + +DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**counterSet** | **String** | CounterSet is the name of the set from which the counters defined will be consumed. | | +|**counters** | [**Map<String, V1Counter>**](V1Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). | | + + + diff --git a/kubernetes/docs/V1DeviceRequest.md b/kubernetes/docs/V1DeviceRequest.md new file mode 100644 index 0000000000..8f79dbc9b8 --- /dev/null +++ b/kubernetes/docs/V1DeviceRequest.md @@ -0,0 +1,16 @@ + + +# V1DeviceRequest + +DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**exactly** | [**V1ExactDeviceRequest**](V1ExactDeviceRequest.md) | | [optional] | +|**firstAvailable** | [**List<V1DeviceSubRequest>**](V1DeviceSubRequest.md) | FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. | [optional] | +|**name** | **String** | Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. | | + + + diff --git a/kubernetes/docs/V1DeviceRequestAllocationResult.md b/kubernetes/docs/V1DeviceRequestAllocationResult.md new file mode 100644 index 0000000000..a5af6fd611 --- /dev/null +++ b/kubernetes/docs/V1DeviceRequestAllocationResult.md @@ -0,0 +1,23 @@ + + +# V1DeviceRequestAllocationResult + +DeviceRequestAllocationResult contains the allocation result for one request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**consumedCapacity** | **Map<String, Quantity>** | 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. | [optional] | +|**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | +|**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | +|**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | +|**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | +|**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] | +|**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 an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1DeviceSelector.md b/kubernetes/docs/V1DeviceSelector.md new file mode 100644 index 0000000000..deb374209b --- /dev/null +++ b/kubernetes/docs/V1DeviceSelector.md @@ -0,0 +1,14 @@ + + +# V1DeviceSelector + +DeviceSelector must have exactly one field set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cel** | [**V1CELDeviceSelector**](V1CELDeviceSelector.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1DeviceSubRequest.md b/kubernetes/docs/V1DeviceSubRequest.md new file mode 100644 index 0000000000..6a273e1a47 --- /dev/null +++ b/kubernetes/docs/V1DeviceSubRequest.md @@ -0,0 +1,20 @@ + + +# V1DeviceSubRequest + +DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**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] | +|**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] | +|**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 an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1DeviceTaint.md b/kubernetes/docs/V1DeviceTaint.md new file mode 100644 index 0000000000..d7eeed55dd --- /dev/null +++ b/kubernetes/docs/V1DeviceTaint.md @@ -0,0 +1,17 @@ + + +# V1DeviceTaint + +The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. | | +|**key** | **String** | The taint key to be applied to a device. Must be a label name. | | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] | +|**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3DeviceToleration.md b/kubernetes/docs/V1DeviceToleration.md similarity index 98% rename from kubernetes/docs/V1alpha3DeviceToleration.md rename to kubernetes/docs/V1DeviceToleration.md index 41d2484404..ee244bcb8a 100644 --- a/kubernetes/docs/V1alpha3DeviceToleration.md +++ b/kubernetes/docs/V1DeviceToleration.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceToleration +# V1DeviceToleration The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md index b4bd750ab8..31bd2fe641 100644 --- a/kubernetes/docs/V1EnvFromSource.md +++ b/kubernetes/docs/V1EnvFromSource.md @@ -9,7 +9,7 @@ EnvFromSource represents the source of a set of ConfigMaps or Secrets | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**configMapRef** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | | [optional] | -|**prefix** | **String** | Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. | [optional] | +|**prefix** | **String** | Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='. | [optional] | |**secretRef** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | | [optional] | diff --git a/kubernetes/docs/V1EnvVar.md b/kubernetes/docs/V1EnvVar.md index 79a982c0c5..456183171c 100644 --- a/kubernetes/docs/V1EnvVar.md +++ b/kubernetes/docs/V1EnvVar.md @@ -8,7 +8,7 @@ EnvVar represents an environment variable present in a Container. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name of the environment variable. Must be a C_IDENTIFIER. | | +|**name** | **String** | Name of the environment variable. May consist of any printable ASCII characters except '='. | | |**value** | **String** | Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". | [optional] | |**valueFrom** | [**V1EnvVarSource**](V1EnvVarSource.md) | | [optional] | diff --git a/kubernetes/docs/V1EnvVarSource.md b/kubernetes/docs/V1EnvVarSource.md index ddd859842f..c0415528ea 100644 --- a/kubernetes/docs/V1EnvVarSource.md +++ b/kubernetes/docs/V1EnvVarSource.md @@ -10,6 +10,7 @@ EnvVarSource represents a source for the value of an EnvVar. |------------ | ------------- | ------------- | -------------| |**configMapKeyRef** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | | [optional] | |**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] | +|**fileKeyRef** | [**V1FileKeySelector**](V1FileKeySelector.md) | | [optional] | |**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] | |**secretKeyRef** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | | [optional] | diff --git a/kubernetes/docs/V1EphemeralContainer.md b/kubernetes/docs/V1EphemeralContainer.md index 1e93bcb95c..3185b2af82 100644 --- a/kubernetes/docs/V1EphemeralContainer.md +++ b/kubernetes/docs/V1EphemeralContainer.md @@ -11,7 +11,7 @@ An EphemeralContainer is a temporary container that you may add to an existing P |**args** | **List<String>** | Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell | [optional] | |**command** | **List<String>** | Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell | [optional] | |**env** | [**List<V1EnvVar>**](V1EnvVar.md) | List of environment variables to set in the container. Cannot be updated. | [optional] | -|**envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. | [optional] | +|**envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. | [optional] | |**image** | **String** | Container image name. More info: https://kubernetes.io/docs/concepts/containers/images | [optional] | |**imagePullPolicy** | **String** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] | |**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | | [optional] | @@ -21,7 +21,8 @@ An EphemeralContainer is a temporary container that you may add to an existing P |**readinessProbe** | [**V1Probe**](V1Probe.md) | | [optional] | |**resizePolicy** | [**List<V1ContainerResizePolicy>**](V1ContainerResizePolicy.md) | Resources resize policy for the container. | [optional] | |**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] | -|**restartPolicy** | **String** | Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. | [optional] | +|**restartPolicy** | **String** | Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers. | [optional] | +|**restartPolicyRules** | [**List<V1ContainerRestartRule>**](V1ContainerRestartRule.md) | Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers. | [optional] | |**securityContext** | [**V1SecurityContext**](V1SecurityContext.md) | | [optional] | |**startupProbe** | [**V1Probe**](V1Probe.md) | | [optional] | |**stdin** | **Boolean** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. | [optional] | diff --git a/kubernetes/docs/V1ExactDeviceRequest.md b/kubernetes/docs/V1ExactDeviceRequest.md new file mode 100644 index 0000000000..51adf6d6af --- /dev/null +++ b/kubernetes/docs/V1ExactDeviceRequest.md @@ -0,0 +1,20 @@ + + +# V1ExactDeviceRequest + +ExactDeviceRequest is a request for one or more identical devices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**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] | +|**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 an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1FileKeySelector.md b/kubernetes/docs/V1FileKeySelector.md new file mode 100644 index 0000000000..d87803aa82 --- /dev/null +++ b/kubernetes/docs/V1FileKeySelector.md @@ -0,0 +1,17 @@ + + +# V1FileKeySelector + +FileKeySelector selects a key of the env file. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters. | | +|**optional** | **Boolean** | Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. If optional is set to false and the specified key does not exist, an error will be returned during Pod creation. | [optional] | +|**path** | **String** | The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'. | | +|**volumeName** | **String** | The name of the volume mount containing the env file. | | + + + diff --git a/kubernetes/docs/V1GlusterfsVolumeSource.md b/kubernetes/docs/V1GlusterfsVolumeSource.md index 46fc1a64f3..147bace76c 100644 --- a/kubernetes/docs/V1GlusterfsVolumeSource.md +++ b/kubernetes/docs/V1GlusterfsVolumeSource.md @@ -8,7 +8,7 @@ Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**endpoints** | **String** | endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | +|**endpoints** | **String** | endpoints is the endpoint name that details Glusterfs topology. | | |**path** | **String** | path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | |**readOnly** | **Boolean** | readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | [optional] | diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index c90953b7ff..8f6f8dcd8c 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -9,7 +9,7 @@ JobSpec describes how the job execution will look like. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**activeDeadlineSeconds** | **Long** | Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. | [optional] | -|**backoffLimit** | **Integer** | Specifies the number of retries before marking this job failed. Defaults to 6 | [optional] | +|**backoffLimit** | **Integer** | Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647. | [optional] | |**backoffLimitPerIndex** | **Integer** | Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. | [optional] | |**completionMode** | **String** | completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. | [optional] | |**completions** | **Integer** | Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] | @@ -18,7 +18,7 @@ JobSpec describes how the job execution will look like. |**maxFailedIndexes** | **Integer** | Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. | [optional] | |**parallelism** | **Integer** | Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] | |**podFailurePolicy** | [**V1PodFailurePolicy**](V1PodFailurePolicy.md) | | [optional] | -|**podReplacementPolicy** | **String** | podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. | [optional] | +|**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] | |**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/V1alpha3NetworkDeviceData.md b/kubernetes/docs/V1NetworkDeviceData.md similarity index 91% rename from kubernetes/docs/V1alpha3NetworkDeviceData.md rename to kubernetes/docs/V1NetworkDeviceData.md index 765a521302..615c19bdf8 100644 --- a/kubernetes/docs/V1alpha3NetworkDeviceData.md +++ b/kubernetes/docs/V1NetworkDeviceData.md @@ -1,6 +1,6 @@ -# V1alpha3NetworkDeviceData +# V1NetworkDeviceData 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. @@ -10,7 +10,7 @@ NetworkDeviceData provides network-related details for the allocated device. Thi |------------ | ------------- | ------------- | -------------| |**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] | |**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] | -|**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries. | [optional] | +|**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. | [optional] | diff --git a/kubernetes/docs/V1NetworkPolicySpec.md b/kubernetes/docs/V1NetworkPolicySpec.md index 5bea94c9d0..3fa6356894 100644 --- a/kubernetes/docs/V1NetworkPolicySpec.md +++ b/kubernetes/docs/V1NetworkPolicySpec.md @@ -10,7 +10,7 @@ NetworkPolicySpec provides the specification of a NetworkPolicy |------------ | ------------- | ------------- | -------------| |**egress** | [**List<V1NetworkPolicyEgressRule>**](V1NetworkPolicyEgressRule.md) | 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 | [optional] | |**ingress** | [**List<V1NetworkPolicyIngressRule>**](V1NetworkPolicyIngressRule.md) | 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) | [optional] | -|**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | | +|**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**policyTypes** | **List<String>** | 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 | [optional] | diff --git a/kubernetes/docs/V1alpha3OpaqueDeviceConfiguration.md b/kubernetes/docs/V1OpaqueDeviceConfiguration.md similarity index 96% rename from kubernetes/docs/V1alpha3OpaqueDeviceConfiguration.md rename to kubernetes/docs/V1OpaqueDeviceConfiguration.md index d6c15ce679..a39075262e 100644 --- a/kubernetes/docs/V1alpha3OpaqueDeviceConfiguration.md +++ b/kubernetes/docs/V1OpaqueDeviceConfiguration.md @@ -1,6 +1,6 @@ -# V1alpha3OpaqueDeviceConfiguration +# V1OpaqueDeviceConfiguration OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. diff --git a/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md index af7afd635e..cd400138d4 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -14,7 +14,7 @@ PersistentVolumeClaimSpec describes the common attributes of storage devices and |**resources** | [**V1VolumeResourceRequirements**](V1VolumeResourceRequirements.md) | | [optional] | |**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**storageClassName** | **String** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] | -|**volumeAttributesClassName** | **String** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). | [optional] | +|**volumeAttributesClassName** | **String** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ | [optional] | |**volumeMode** | **String** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. | [optional] | |**volumeName** | **String** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] | diff --git a/kubernetes/docs/V1PersistentVolumeClaimStatus.md b/kubernetes/docs/V1PersistentVolumeClaimStatus.md index 74fe0c15c2..c7e9241e7f 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -13,7 +13,7 @@ PersistentVolumeClaimStatus is the current status of a persistent volume claim. |**allocatedResources** | **Map<String, Quantity>** | allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. | [optional] | |**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 This is a beta field and requires enabling VolumeAttributesClass feature (off by default). | [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] | |**modifyVolumeStatus** | [**V1ModifyVolumeStatus**](V1ModifyVolumeStatus.md) | | [optional] | |**phase** | **String** | phase represents the current phase of PersistentVolumeClaim. | [optional] | diff --git a/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md index df770c1a74..6c0a5fcad5 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -36,7 +36,7 @@ PersistentVolumeSpec is the specification of a persistent volume. |**scaleIO** | [**V1ScaleIOPersistentVolumeSource**](V1ScaleIOPersistentVolumeSource.md) | | [optional] | |**storageClassName** | **String** | storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] | |**storageos** | [**V1StorageOSPersistentVolumeSource**](V1StorageOSPersistentVolumeSource.md) | | [optional] | -|**volumeAttributesClassName** | **String** | Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). | [optional] | +|**volumeAttributesClassName** | **String** | Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. | [optional] | |**volumeMode** | **String** | volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. | [optional] | |**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] | diff --git a/kubernetes/docs/V1PodAntiAffinity.md b/kubernetes/docs/V1PodAntiAffinity.md index c329dadf0a..ad3360a0b1 100644 --- a/kubernetes/docs/V1PodAntiAffinity.md +++ b/kubernetes/docs/V1PodAntiAffinity.md @@ -8,7 +8,7 @@ Pod anti affinity is a group of inter pod anti affinity scheduling rules. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] | +|**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] | |**requiredDuringSchedulingIgnoredDuringExecution** | [**List<V1PodAffinityTerm>**](V1PodAffinityTerm.md) | If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] | diff --git a/kubernetes/docs/V1PodCertificateProjection.md b/kubernetes/docs/V1PodCertificateProjection.md new file mode 100644 index 0000000000..1596eb36e0 --- /dev/null +++ b/kubernetes/docs/V1PodCertificateProjection.md @@ -0,0 +1,19 @@ + + +# V1PodCertificateProjection + +PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**certificateChainPath** | **String** | Write the certificate chain at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. | [optional] | +|**credentialBundlePath** | **String** | Write the credential bundle at this path in the projected volume. The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key. | [optional] | +|**keyPath** | **String** | Write the key at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. | [optional] | +|**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. | | + + + diff --git a/kubernetes/docs/V1PodExtendedResourceClaimStatus.md b/kubernetes/docs/V1PodExtendedResourceClaimStatus.md new file mode 100644 index 0000000000..0d32720007 --- /dev/null +++ b/kubernetes/docs/V1PodExtendedResourceClaimStatus.md @@ -0,0 +1,15 @@ + + +# V1PodExtendedResourceClaimStatus + +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. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requestMappings** | [**List<V1ContainerExtendedResourceRequest>**](V1ContainerExtendedResourceRequest.md) | RequestMappings identifies the mapping of <container, extended resource backed by DRA> to device request in the generated ResourceClaim. | | +|**resourceClaimName** | **String** | ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. | | + + + diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index e6dcd7ef92..133397b42b 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -18,10 +18,11 @@ PodSpec is a description of a pod. |**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] | |**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. If this option is set, the ports that will be used must be specified. 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. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. | [optional] | |**hostname** | **String** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] | +|**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] | |**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] | diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index eb34c71eda..2462578de6 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -11,6 +11,7 @@ PodStatus represents information about the status of a pod. Status may trail the |**conditions** | [**List<V1PodCondition>**](V1PodCondition.md) | Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | [optional] | |**containerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional] | |**ephemeralContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional] | +|**extendedResourceClaimStatus** | [**V1PodExtendedResourceClaimStatus**](V1PodExtendedResourceClaimStatus.md) | | [optional] | |**hostIP** | **String** | hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod | [optional] | |**hostIPs** | [**List<V1HostIP>**](V1HostIP.md) | hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. | [optional] | |**initContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status | [optional] | diff --git a/kubernetes/docs/V1alpha3ResourceClaimConsumerReference.md b/kubernetes/docs/V1ResourceClaimConsumerReference.md similarity index 95% rename from kubernetes/docs/V1alpha3ResourceClaimConsumerReference.md rename to kubernetes/docs/V1ResourceClaimConsumerReference.md index 5ff8fc07e4..e6f512c271 100644 --- a/kubernetes/docs/V1alpha3ResourceClaimConsumerReference.md +++ b/kubernetes/docs/V1ResourceClaimConsumerReference.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceClaimConsumerReference +# V1ResourceClaimConsumerReference 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. diff --git a/kubernetes/docs/V1alpha3ResourceClaimList.md b/kubernetes/docs/V1ResourceClaimList.md similarity index 86% rename from kubernetes/docs/V1alpha3ResourceClaimList.md rename to kubernetes/docs/V1ResourceClaimList.md index 68e9813504..6522197cc0 100644 --- a/kubernetes/docs/V1alpha3ResourceClaimList.md +++ b/kubernetes/docs/V1ResourceClaimList.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceClaimList +# V1ResourceClaimList ResourceClaimList is a collection of claims. @@ -9,7 +9,7 @@ ResourceClaimList is a collection of claims. | 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<V1alpha3ResourceClaim>**](V1alpha3ResourceClaim.md) | Items is the list of resource claims. | | +|**items** | [**List<ResourceV1ResourceClaim>**](ResourceV1ResourceClaim.md) | Items is the list of resource claims. | | |**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | |**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha3ResourceClaimSpec.md b/kubernetes/docs/V1ResourceClaimSpec.md similarity index 65% rename from kubernetes/docs/V1alpha3ResourceClaimSpec.md rename to kubernetes/docs/V1ResourceClaimSpec.md index e9fb49a5ba..d13f78224d 100644 --- a/kubernetes/docs/V1alpha3ResourceClaimSpec.md +++ b/kubernetes/docs/V1ResourceClaimSpec.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceClaimSpec +# V1ResourceClaimSpec ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. @@ -8,7 +8,7 @@ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**devices** | [**V1alpha3DeviceClaim**](V1alpha3DeviceClaim.md) | | [optional] | +|**devices** | [**V1DeviceClaim**](V1DeviceClaim.md) | | [optional] | diff --git a/kubernetes/docs/V1ResourceClaimStatus.md b/kubernetes/docs/V1ResourceClaimStatus.md new file mode 100644 index 0000000000..0cf08f1641 --- /dev/null +++ b/kubernetes/docs/V1ResourceClaimStatus.md @@ -0,0 +1,16 @@ + + +# V1ResourceClaimStatus + +ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocation** | [**V1AllocationResult**](V1AllocationResult.md) | | [optional] | +|**devices** | [**List<V1AllocatedDeviceStatus>**](V1AllocatedDeviceStatus.md) | Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. | [optional] | +|**reservedFor** | [**List<V1ResourceClaimConsumerReference>**](V1ResourceClaimConsumerReference.md) | ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 256 such reservations. This may get increased in the future, but not reduced. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3ResourceClaimTemplate.md b/kubernetes/docs/V1ResourceClaimTemplate.md similarity index 89% rename from kubernetes/docs/V1alpha3ResourceClaimTemplate.md rename to kubernetes/docs/V1ResourceClaimTemplate.md index 5032dcb47d..8657b2e719 100644 --- a/kubernetes/docs/V1alpha3ResourceClaimTemplate.md +++ b/kubernetes/docs/V1ResourceClaimTemplate.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceClaimTemplate +# V1ResourceClaimTemplate ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. @@ -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** | [**V1alpha3ResourceClaimTemplateSpec**](V1alpha3ResourceClaimTemplateSpec.md) | | | +|**spec** | [**V1ResourceClaimTemplateSpec**](V1ResourceClaimTemplateSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha3ResourceClaimTemplateList.md b/kubernetes/docs/V1ResourceClaimTemplateList.md similarity index 84% rename from kubernetes/docs/V1alpha3ResourceClaimTemplateList.md rename to kubernetes/docs/V1ResourceClaimTemplateList.md index e1899dac1f..08808e82d1 100644 --- a/kubernetes/docs/V1alpha3ResourceClaimTemplateList.md +++ b/kubernetes/docs/V1ResourceClaimTemplateList.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceClaimTemplateList +# V1ResourceClaimTemplateList ResourceClaimTemplateList is a collection of claim templates. @@ -9,7 +9,7 @@ ResourceClaimTemplateList is a collection of claim templates. | 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<V1alpha3ResourceClaimTemplate>**](V1alpha3ResourceClaimTemplate.md) | Items is the list of resource claim templates. | | +|**items** | [**List<V1ResourceClaimTemplate>**](V1ResourceClaimTemplate.md) | Items is the list of resource claim templates. | | |**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | |**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha3ResourceClaimTemplateSpec.md b/kubernetes/docs/V1ResourceClaimTemplateSpec.md similarity index 69% rename from kubernetes/docs/V1alpha3ResourceClaimTemplateSpec.md rename to kubernetes/docs/V1ResourceClaimTemplateSpec.md index 94d02c8ad7..7919a13bdf 100644 --- a/kubernetes/docs/V1alpha3ResourceClaimTemplateSpec.md +++ b/kubernetes/docs/V1ResourceClaimTemplateSpec.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceClaimTemplateSpec +# V1ResourceClaimTemplateSpec ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. @@ -9,7 +9,7 @@ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1alpha3ResourceClaimSpec**](V1alpha3ResourceClaimSpec.md) | | | +|**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | | diff --git a/kubernetes/docs/V1alpha3ResourcePool.md b/kubernetes/docs/V1ResourcePool.md similarity index 98% rename from kubernetes/docs/V1alpha3ResourcePool.md rename to kubernetes/docs/V1ResourcePool.md index b68a11602b..bab3e82ed5 100644 --- a/kubernetes/docs/V1alpha3ResourcePool.md +++ b/kubernetes/docs/V1ResourcePool.md @@ -1,6 +1,6 @@ -# V1alpha3ResourcePool +# V1ResourcePool ResourcePool describes the pool that ResourceSlices belong to. diff --git a/kubernetes/docs/V1ResourceRequirements.md b/kubernetes/docs/V1ResourceRequirements.md index 29f077e454..53ec2ee6c8 100644 --- a/kubernetes/docs/V1ResourceRequirements.md +++ b/kubernetes/docs/V1ResourceRequirements.md @@ -8,7 +8,7 @@ ResourceRequirements describes the compute resource requirements. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**claims** | [**List<V1ResourceClaim>**](V1ResourceClaim.md) | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. | [optional] | +|**claims** | [**List<CoreV1ResourceClaim>**](CoreV1ResourceClaim.md) | 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. | [optional] | |**limits** | **Map<String, Quantity>** | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | |**requests** | **Map<String, Quantity>** | 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/ | [optional] | diff --git a/kubernetes/docs/V1alpha3ResourceSlice.md b/kubernetes/docs/V1ResourceSlice.md similarity index 95% rename from kubernetes/docs/V1alpha3ResourceSlice.md rename to kubernetes/docs/V1ResourceSlice.md index 3194708af2..79f8b3293f 100644 --- a/kubernetes/docs/V1alpha3ResourceSlice.md +++ b/kubernetes/docs/V1ResourceSlice.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceSlice +# V1ResourceSlice 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. @@ -11,7 +11,7 @@ ResourceSlice represents one or more resources in a pool of similar resources, 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** | [**V1alpha3ResourceSliceSpec**](V1alpha3ResourceSliceSpec.md) | | | +|**spec** | [**V1ResourceSliceSpec**](V1ResourceSliceSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha3ResourceSliceList.md b/kubernetes/docs/V1ResourceSliceList.md similarity index 86% rename from kubernetes/docs/V1alpha3ResourceSliceList.md rename to kubernetes/docs/V1ResourceSliceList.md index 717f435446..0fc73ddad3 100644 --- a/kubernetes/docs/V1alpha3ResourceSliceList.md +++ b/kubernetes/docs/V1ResourceSliceList.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceSliceList +# V1ResourceSliceList ResourceSliceList is a collection of ResourceSlices. @@ -9,7 +9,7 @@ ResourceSliceList is a collection of ResourceSlices. | 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<V1alpha3ResourceSlice>**](V1alpha3ResourceSlice.md) | Items is the list of resource ResourceSlices. | | +|**items** | [**List<V1ResourceSlice>**](V1ResourceSlice.md) | Items is the list of resource ResourceSlices. | | |**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | |**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha3ResourceSliceSpec.md b/kubernetes/docs/V1ResourceSliceSpec.md similarity index 74% rename from kubernetes/docs/V1alpha3ResourceSliceSpec.md rename to kubernetes/docs/V1ResourceSliceSpec.md index c7a291c06a..dfd97fb6db 100644 --- a/kubernetes/docs/V1alpha3ResourceSliceSpec.md +++ b/kubernetes/docs/V1ResourceSliceSpec.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceSliceSpec +# V1ResourceSliceSpec ResourceSliceSpec contains the information published by the driver in one ResourceSlice. @@ -9,13 +9,13 @@ ResourceSliceSpec contains the information published by the driver in one Resour | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] | -|**devices** | [**List<V1alpha3Device>**](V1alpha3Device.md) | Devices lists some or all of the devices in this pool. Must not have more than 128 entries. | [optional] | +|**devices** | [**List<V1Device>**](V1Device.md) | Devices lists some or all of the devices in this pool. Must not have more than 128 entries. | [optional] | |**driver** | **String** | Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable. | | |**nodeName** | **String** | NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | |**perDeviceNodeSelection** | **Boolean** | PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. | [optional] | -|**pool** | [**V1alpha3ResourcePool**](V1alpha3ResourcePool.md) | | | -|**sharedCounters** | [**List<V1alpha3CounterSet>**](V1alpha3CounterSet.md) | SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32. | [optional] | +|**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 SharedCounters must be unique in the ResourceSlice. The maximum number of counters in all sets is 32. | [optional] | diff --git a/kubernetes/docs/V1SuccessPolicy.md b/kubernetes/docs/V1SuccessPolicy.md index 2a69aa79b0..603e12e4e7 100644 --- a/kubernetes/docs/V1SuccessPolicy.md +++ b/kubernetes/docs/V1SuccessPolicy.md @@ -8,7 +8,7 @@ SuccessPolicy describes when a Job can be declared as succeeded based on the suc | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**rules** | [**List<V1SuccessPolicyRule>**](V1SuccessPolicyRule.md) | rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. | | +|**rules** | [**List<V1SuccessPolicyRule>**](V1SuccessPolicyRule.md) | rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. | | diff --git a/kubernetes/docs/V1Taint.md b/kubernetes/docs/V1Taint.md index d6606eea07..25d9db0e29 100644 --- a/kubernetes/docs/V1Taint.md +++ b/kubernetes/docs/V1Taint.md @@ -10,7 +10,7 @@ The node this Taint is attached to has the \"effect\" on any pod that does not t |------------ | ------------- | ------------- | -------------| |**effect** | **String** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | | |**key** | **String** | Required. The taint key to be applied to a node. | | -|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. | [optional] | |**value** | **String** | The taint value corresponding to the taint key. | [optional] | diff --git a/kubernetes/docs/V1VolumeAttributesClass.md b/kubernetes/docs/V1VolumeAttributesClass.md new file mode 100644 index 0000000000..a5fb09699a --- /dev/null +++ b/kubernetes/docs/V1VolumeAttributesClass.md @@ -0,0 +1,22 @@ + + +# V1VolumeAttributesClass + +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/V1VolumeAttributesClassList.md b/kubernetes/docs/V1VolumeAttributesClassList.md new file mode 100644 index 0000000000..9154b12f02 --- /dev/null +++ b/kubernetes/docs/V1VolumeAttributesClassList.md @@ -0,0 +1,21 @@ + + +# V1VolumeAttributesClassList + +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<V1VolumeAttributesClass>**](V1VolumeAttributesClass.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/V1VolumeError.md b/kubernetes/docs/V1VolumeError.md index bdd6ca7306..72838aef5f 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -8,7 +8,7 @@ VolumeError captures an error encountered during a volume operation. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**errorCode** | **Integer** | errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. | [optional] | +|**errorCode** | **Integer** | errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. | [optional] | |**message** | **String** | message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] | |**time** | **OffsetDateTime** | time represents the time the error was encountered. | [optional] | diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md index 4d73128d80..4fba00b3d2 100644 --- a/kubernetes/docs/V1VolumeProjection.md +++ b/kubernetes/docs/V1VolumeProjection.md @@ -11,6 +11,7 @@ Projection that may be projected along with other supported volume types. Exactl |**clusterTrustBundle** | [**V1ClusterTrustBundleProjection**](V1ClusterTrustBundleProjection.md) | | [optional] | |**configMap** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | | [optional] | |**downwardAPI** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | | [optional] | +|**podCertificate** | [**V1PodCertificateProjection**](V1PodCertificateProjection.md) | | [optional] | |**secret** | [**V1SecretProjection**](V1SecretProjection.md) | | [optional] | |**serviceAccountToken** | [**V1ServiceAccountTokenProjection**](V1ServiceAccountTokenProjection.md) | | [optional] | diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicy.md b/kubernetes/docs/V1alpha1PodCertificateRequest.md similarity index 69% rename from kubernetes/docs/V1beta1ValidatingAdmissionPolicy.md rename to kubernetes/docs/V1alpha1PodCertificateRequest.md index 29f16dc432..673e7cd0c1 100644 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicy.md +++ b/kubernetes/docs/V1alpha1PodCertificateRequest.md @@ -1,8 +1,8 @@ -# V1beta1ValidatingAdmissionPolicy +# V1alpha1PodCertificateRequest -ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. +PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes ## Properties @@ -11,8 +11,8 @@ ValidatingAdmissionPolicy describes the definition of an admission validation po |**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** | [**V1beta1ValidatingAdmissionPolicySpec**](V1beta1ValidatingAdmissionPolicySpec.md) | | [optional] | -|**status** | [**V1beta1ValidatingAdmissionPolicyStatus**](V1beta1ValidatingAdmissionPolicyStatus.md) | | [optional] | +|**spec** | [**V1alpha1PodCertificateRequestSpec**](V1alpha1PodCertificateRequestSpec.md) | | | +|**status** | [**V1alpha1PodCertificateRequestStatus**](V1alpha1PodCertificateRequestStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1PodCertificateRequestList.md b/kubernetes/docs/V1alpha1PodCertificateRequestList.md new file mode 100644 index 0000000000..e4a336f1bc --- /dev/null +++ b/kubernetes/docs/V1alpha1PodCertificateRequestList.md @@ -0,0 +1,21 @@ + + +# V1alpha1PodCertificateRequestList + +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<V1alpha1PodCertificateRequest>**](V1alpha1PodCertificateRequest.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/V1alpha1PodCertificateRequestSpec.md b/kubernetes/docs/V1alpha1PodCertificateRequestSpec.md new file mode 100644 index 0000000000..016a71fe8c --- /dev/null +++ b/kubernetes/docs/V1alpha1PodCertificateRequestSpec.md @@ -0,0 +1,23 @@ + + +# V1alpha1PodCertificateRequestSpec + +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. | | +|**pkixPublicKey** | **byte[]** | pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. The 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. | | +|**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. | | +|**proofOfPossession** | **byte[]** | proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). | | +|**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. | | + + + diff --git a/kubernetes/docs/V1alpha1PodCertificateRequestStatus.md b/kubernetes/docs/V1alpha1PodCertificateRequestStatus.md new file mode 100644 index 0000000000..ea98b03ffd --- /dev/null +++ b/kubernetes/docs/V1alpha1PodCertificateRequestStatus.md @@ -0,0 +1,18 @@ + + +# V1alpha1PodCertificateRequestStatus + +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/V1alpha3AllocationResult.md b/kubernetes/docs/V1alpha3AllocationResult.md deleted file mode 100644 index ed2dda5703..0000000000 --- a/kubernetes/docs/V1alpha3AllocationResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha3AllocationResult - -AllocationResult contains attributes of an allocated resource. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**devices** | [**V1alpha3DeviceAllocationResult**](V1alpha3DeviceAllocationResult.md) | | [optional] | -|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | - - - diff --git a/kubernetes/docs/V1alpha3BasicDevice.md b/kubernetes/docs/V1alpha3BasicDevice.md deleted file mode 100644 index 270679641a..0000000000 --- a/kubernetes/docs/V1alpha3BasicDevice.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1alpha3BasicDevice - -BasicDevice defines one device instance. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | -|**attributes** | [**Map<String, V1alpha3DeviceAttribute>**](V1alpha3DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | -|**capacity** | **Map<String, Quantity>** | Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | -|**consumesCounters** | [**List<V1alpha3DeviceCounterConsumption>**](V1alpha3DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] | -|**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | -|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | -|**taints** | [**List<V1alpha3DeviceTaint>**](V1alpha3DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha3CounterSet.md b/kubernetes/docs/V1alpha3CounterSet.md deleted file mode 100644 index 58effdda48..0000000000 --- a/kubernetes/docs/V1alpha3CounterSet.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha3CounterSet - -CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**counters** | [**Map<String, V1alpha3Counter>**](V1alpha3Counter.md) | Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. | | -|**name** | **String** | CounterSet is the name of the set from which the counters defined will be consumed. | | - - - diff --git a/kubernetes/docs/V1alpha3Device.md b/kubernetes/docs/V1alpha3Device.md deleted file mode 100644 index 2396043b0c..0000000000 --- a/kubernetes/docs/V1alpha3Device.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha3Device - -Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**basic** | [**V1alpha3BasicDevice**](V1alpha3BasicDevice.md) | | [optional] | -|**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | | - - - diff --git a/kubernetes/docs/V1alpha3DeviceAllocationResult.md b/kubernetes/docs/V1alpha3DeviceAllocationResult.md deleted file mode 100644 index 9dede565a8..0000000000 --- a/kubernetes/docs/V1alpha3DeviceAllocationResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha3DeviceAllocationResult - -DeviceAllocationResult is the result of allocating devices. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**config** | [**List<V1alpha3DeviceAllocationConfiguration>**](V1alpha3DeviceAllocationConfiguration.md) | This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. | [optional] | -|**results** | [**List<V1alpha3DeviceRequestAllocationResult>**](V1alpha3DeviceRequestAllocationResult.md) | Results lists all allocated devices. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha3DeviceClaim.md b/kubernetes/docs/V1alpha3DeviceClaim.md deleted file mode 100644 index f4bceb223f..0000000000 --- a/kubernetes/docs/V1alpha3DeviceClaim.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1alpha3DeviceClaim - -DeviceClaim defines how to request devices with a ResourceClaim. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**config** | [**List<V1alpha3DeviceClaimConfiguration>**](V1alpha3DeviceClaimConfiguration.md) | This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. | [optional] | -|**constraints** | [**List<V1alpha3DeviceConstraint>**](V1alpha3DeviceConstraint.md) | These constraints must be satisfied by the set of devices that get allocated for the claim. | [optional] | -|**requests** | [**List<V1alpha3DeviceRequest>**](V1alpha3DeviceRequest.md) | Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha3DeviceClassSpec.md b/kubernetes/docs/V1alpha3DeviceClassSpec.md deleted file mode 100644 index 0743dc4c9a..0000000000 --- a/kubernetes/docs/V1alpha3DeviceClassSpec.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha3DeviceClassSpec - -DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**config** | [**List<V1alpha3DeviceClassConfiguration>**](V1alpha3DeviceClassConfiguration.md) | Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. | [optional] | -|**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha3DeviceCounterConsumption.md b/kubernetes/docs/V1alpha3DeviceCounterConsumption.md deleted file mode 100644 index 0b1650560f..0000000000 --- a/kubernetes/docs/V1alpha3DeviceCounterConsumption.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha3DeviceCounterConsumption - -DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**counterSet** | **String** | CounterSet defines the set from which the counters defined will be consumed. | | -|**counters** | [**Map<String, V1alpha3Counter>**](V1alpha3Counter.md) | Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). | | - - - diff --git a/kubernetes/docs/V1alpha3DeviceRequest.md b/kubernetes/docs/V1alpha3DeviceRequest.md deleted file mode 100644 index d9465c3d49..0000000000 --- a/kubernetes/docs/V1alpha3DeviceRequest.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1alpha3DeviceRequest - -DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | -|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | -|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] | -|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | [optional] | -|**firstAvailable** | [**List<V1alpha3DeviceSubRequest>**](V1alpha3DeviceSubRequest.md) | FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. | [optional] | -|**name** | **String** | Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label. | | -|**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] | -|**tolerations** | [**List<V1alpha3DeviceToleration>**](V1alpha3DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md b/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md deleted file mode 100644 index 1d5cbcc561..0000000000 --- a/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# V1alpha3DeviceRequestAllocationResult - -DeviceRequestAllocationResult contains the allocation result for one request. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | -|**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | -|**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | -|**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | -|**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | -|**tolerations** | [**List<V1alpha3DeviceToleration>**](V1alpha3DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha3DeviceSubRequest.md b/kubernetes/docs/V1alpha3DeviceSubRequest.md deleted file mode 100644 index 7a82b83764..0000000000 --- a/kubernetes/docs/V1alpha3DeviceSubRequest.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# V1alpha3DeviceSubRequest - -DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | -|**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. | [optional] | -|**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | -|**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | | -|**selectors** | [**List<V1alpha3DeviceSelector>**](V1alpha3DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. | [optional] | -|**tolerations** | [**List<V1alpha3DeviceToleration>**](V1alpha3DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha3ResourceClaimStatus.md b/kubernetes/docs/V1alpha3ResourceClaimStatus.md deleted file mode 100644 index 6f1542048b..0000000000 --- a/kubernetes/docs/V1alpha3ResourceClaimStatus.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1alpha3ResourceClaimStatus - -ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**allocation** | [**V1alpha3AllocationResult**](V1alpha3AllocationResult.md) | | [optional] | -|**devices** | [**List<V1alpha3AllocatedDeviceStatus>**](V1alpha3AllocatedDeviceStatus.md) | Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. | [optional] | -|**reservedFor** | [**List<V1alpha3ResourceClaimConsumerReference>**](V1alpha3ResourceClaimConsumerReference.md) | ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 256 such reservations. This may get increased in the future, but not reduced. | [optional] | - - - diff --git a/kubernetes/docs/V1beta1AllocatedDeviceStatus.md b/kubernetes/docs/V1beta1AllocatedDeviceStatus.md index c6409f2801..86688c2a89 100644 --- a/kubernetes/docs/V1beta1AllocatedDeviceStatus.md +++ b/kubernetes/docs/V1beta1AllocatedDeviceStatus.md @@ -2,7 +2,7 @@ # V1beta1AllocatedDeviceStatus -AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. +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. ## Properties @@ -14,6 +14,7 @@ AllocatedDeviceStatus contains the status of an allocated device, if the driver |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | |**networkData** | [**V1beta1NetworkDeviceData**](V1beta1NetworkDeviceData.md) | | [optional] | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | +|**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device. | [optional] | diff --git a/kubernetes/docs/V1beta1AllocationResult.md b/kubernetes/docs/V1beta1AllocationResult.md index a2eba25b97..d094a9fcd4 100644 --- a/kubernetes/docs/V1beta1AllocationResult.md +++ b/kubernetes/docs/V1beta1AllocationResult.md @@ -8,6 +8,7 @@ AllocationResult contains attributes of an allocated resource. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**allocationTimestamp** | **OffsetDateTime** | 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | |**devices** | [**V1beta1DeviceAllocationResult**](V1beta1DeviceAllocationResult.md) | | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1beta1ApplyConfiguration.md b/kubernetes/docs/V1beta1ApplyConfiguration.md new file mode 100644 index 0000000000..c3828b36aa --- /dev/null +++ b/kubernetes/docs/V1beta1ApplyConfiguration.md @@ -0,0 +1,14 @@ + + +# V1beta1ApplyConfiguration + +ApplyConfiguration defines the desired configuration values of an object. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1AuditAnnotation.md b/kubernetes/docs/V1beta1AuditAnnotation.md deleted file mode 100644 index 0e6556c238..0000000000 --- a/kubernetes/docs/V1beta1AuditAnnotation.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta1AuditAnnotation - -AuditAnnotation describes how to produce an audit annotation for an API request. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**key** | **String** | 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. | | -|**valueExpression** | **String** | 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. | | - - - diff --git a/kubernetes/docs/V1beta1BasicDevice.md b/kubernetes/docs/V1beta1BasicDevice.md index a6a2a42bf2..c5eb0b896c 100644 --- a/kubernetes/docs/V1beta1BasicDevice.md +++ b/kubernetes/docs/V1beta1BasicDevice.md @@ -9,7 +9,11 @@ BasicDevice defines one device instance. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | +|**allowMultipleAllocations** | **Boolean** | 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. | [optional] | |**attributes** | [**Map<String, V1beta1DeviceAttribute>**](V1beta1DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | +|**bindingConditions** | **List<String>** | 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | 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. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**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 an alpha 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 total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] | |**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | diff --git a/kubernetes/docs/V1beta1CELDeviceSelector.md b/kubernetes/docs/V1beta1CELDeviceSelector.md index 5ddf588fdc..5f0476abec 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. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | | +|**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) 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/V1beta1CapacityRequestPolicy.md b/kubernetes/docs/V1beta1CapacityRequestPolicy.md new file mode 100644 index 0000000000..f307f629dc --- /dev/null +++ b/kubernetes/docs/V1beta1CapacityRequestPolicy.md @@ -0,0 +1,16 @@ + + +# V1beta1CapacityRequestPolicy + +CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_default** | **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] | +|**validRange** | [**V1beta1CapacityRequestPolicyRange**](V1beta1CapacityRequestPolicyRange.md) | | [optional] | +|**validValues** | **List<Quantity>** | 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. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md b/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md new file mode 100644 index 0000000000..e9340ba156 --- /dev/null +++ b/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md @@ -0,0 +1,16 @@ + + +# 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. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**max** | **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] | +|**min** | **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. | | +|**step** | **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/V1beta1CapacityRequirements.md b/kubernetes/docs/V1beta1CapacityRequirements.md new file mode 100644 index 0000000000..b9ec685e7c --- /dev/null +++ b/kubernetes/docs/V1beta1CapacityRequirements.md @@ -0,0 +1,14 @@ + + +# V1beta1CapacityRequirements + +CapacityRequirements defines the capacity requirements for a specific device request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requests** | **Map<String, Quantity>** | 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[<domain>].<name>.compareTo(quantity(<request 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. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1DeviceCapacity.md b/kubernetes/docs/V1beta1DeviceCapacity.md index 288de55ce2..48db842276 100644 --- a/kubernetes/docs/V1beta1DeviceCapacity.md +++ b/kubernetes/docs/V1beta1DeviceCapacity.md @@ -8,6 +8,7 @@ DeviceCapacity describes a quantity associated with a device. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**requestPolicy** | [**V1beta1CapacityRequestPolicy**](V1beta1CapacityRequestPolicy.md) | | [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. | | diff --git a/kubernetes/docs/V1beta1DeviceClassSpec.md b/kubernetes/docs/V1beta1DeviceClassSpec.md index b1e4077732..dd1447fa9e 100644 --- a/kubernetes/docs/V1beta1DeviceClassSpec.md +++ b/kubernetes/docs/V1beta1DeviceClassSpec.md @@ -9,6 +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 an alpha field. | [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/V1beta1DeviceConstraint.md b/kubernetes/docs/V1beta1DeviceConstraint.md index 91a33893d3..61643f6568 100644 --- a/kubernetes/docs/V1beta1DeviceConstraint.md +++ b/kubernetes/docs/V1beta1DeviceConstraint.md @@ -8,6 +8,7 @@ DeviceConstraint must have exactly one field set besides Requests. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. 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. | [optional] | |**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. | [optional] | |**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceRequest.md b/kubernetes/docs/V1beta1DeviceRequest.md index 7dd0138e5c..1038f6039d 100644 --- a/kubernetes/docs/V1beta1DeviceRequest.md +++ b/kubernetes/docs/V1beta1DeviceRequest.md @@ -10,6 +10,7 @@ DeviceRequest is a request for devices required for a claim. This is typically a |------------ | ------------- | ------------- | -------------| |**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | |**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**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] | |**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] | diff --git a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md index 6027936ea4..c1bd395caf 100644 --- a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md @@ -9,10 +9,14 @@ DeviceRequestAllocationResult contains the allocation result for one request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**consumedCapacity** | **Map<String, Quantity>** | 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. | [optional] | |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | |**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | +|**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] | |**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceSubRequest.md b/kubernetes/docs/V1beta1DeviceSubRequest.md index 32cd6a003a..7484eb8b0b 100644 --- a/kubernetes/docs/V1beta1DeviceSubRequest.md +++ b/kubernetes/docs/V1beta1DeviceSubRequest.md @@ -9,6 +9,7 @@ DeviceSubRequest describes a request for device provided in the claim.spec.devic | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**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] | |**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. | | diff --git a/kubernetes/docs/V1beta1ExpressionWarning.md b/kubernetes/docs/V1beta1ExpressionWarning.md deleted file mode 100644 index e48d360e3c..0000000000 --- a/kubernetes/docs/V1beta1ExpressionWarning.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta1ExpressionWarning - -ExpressionWarning is a warning information that targets a specific expression. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**fieldRef** | **String** | The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" | | -|**warning** | **String** | 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. | | - - - diff --git a/kubernetes/docs/V1beta1JSONPatch.md b/kubernetes/docs/V1beta1JSONPatch.md new file mode 100644 index 0000000000..a7343849d1 --- /dev/null +++ b/kubernetes/docs/V1beta1JSONPatch.md @@ -0,0 +1,14 @@ + + +# V1beta1JSONPatch + +JSONPatch defines a JSON Patch. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1MutatingAdmissionPolicy.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicy.md new file mode 100644 index 0000000000..b9b546a232 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicy.md @@ -0,0 +1,21 @@ + + +# V1beta1MutatingAdmissionPolicy + +MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. + +## 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** | [**V1beta1MutatingAdmissionPolicySpec**](V1beta1MutatingAdmissionPolicySpec.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1MutatingAdmissionPolicyBinding.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBinding.md new file mode 100644 index 0000000000..5e123d7f3e --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBinding.md @@ -0,0 +1,21 @@ + + +# V1beta1MutatingAdmissionPolicyBinding + +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. + +## 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** | [**V1beta1MutatingAdmissionPolicyBindingSpec**](V1beta1MutatingAdmissionPolicyBindingSpec.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingList.md new file mode 100644 index 0000000000..0433620277 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingList.md @@ -0,0 +1,21 @@ + + +# V1beta1MutatingAdmissionPolicyBindingList + +MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. + +## 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<V1beta1MutatingAdmissionPolicyBinding>**](V1beta1MutatingAdmissionPolicyBinding.md) | List of PolicyBinding. | | +|**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/V1beta1MutatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingSpec.md new file mode 100644 index 0000000000..29959f54b1 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingSpec.md @@ -0,0 +1,16 @@ + + +# V1beta1MutatingAdmissionPolicyBindingSpec + +MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchResources** | [**V1beta1MatchResources**](V1beta1MatchResources.md) | | [optional] | +|**paramRef** | [**V1beta1ParamRef**](V1beta1ParamRef.md) | | [optional] | +|**policyName** | **String** | 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. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1MutatingAdmissionPolicyList.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicyList.md new file mode 100644 index 0000000000..bac386412d --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyList.md @@ -0,0 +1,21 @@ + + +# V1beta1MutatingAdmissionPolicyList + +MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. + +## 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<V1beta1MutatingAdmissionPolicy>**](V1beta1MutatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | | +|**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/V1beta1MutatingAdmissionPolicySpec.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicySpec.md new file mode 100644 index 0000000000..500301073c --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicySpec.md @@ -0,0 +1,20 @@ + + +# V1beta1MutatingAdmissionPolicySpec + +MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**failurePolicy** | **String** | 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. | [optional] | +|**matchConditions** | [**List<V1beta1MatchCondition>**](V1beta1MatchCondition.md) | 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 | [optional] | +|**matchConstraints** | [**V1beta1MatchResources**](V1beta1MatchResources.md) | | [optional] | +|**mutations** | [**List<V1beta1Mutation>**](V1beta1Mutation.md) | 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. | [optional] | +|**paramKind** | [**V1beta1ParamKind**](V1beta1ParamKind.md) | | [optional] | +|**reinvocationPolicy** | **String** | 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. | [optional] | +|**variables** | [**List<V1beta1Variable>**](V1beta1Variable.md) | 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. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1Mutation.md b/kubernetes/docs/V1beta1Mutation.md new file mode 100644 index 0000000000..b0bcdade81 --- /dev/null +++ b/kubernetes/docs/V1beta1Mutation.md @@ -0,0 +1,16 @@ + + +# V1beta1Mutation + +Mutation specifies the CEL expression which is used to apply the Mutation. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**applyConfiguration** | [**V1beta1ApplyConfiguration**](V1beta1ApplyConfiguration.md) | | [optional] | +|**jsonPatch** | [**V1beta1JSONPatch**](V1beta1JSONPatch.md) | | [optional] | +|**patchType** | **String** | patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. | | + + + diff --git a/kubernetes/docs/V1beta1TypeChecking.md b/kubernetes/docs/V1beta1TypeChecking.md deleted file mode 100644 index fcf890950c..0000000000 --- a/kubernetes/docs/V1beta1TypeChecking.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1TypeChecking - -TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**expressionWarnings** | [**List<V1beta1ExpressionWarning>**](V1beta1ExpressionWarning.md) | The type checking warnings for each expression. | [optional] | - - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBinding.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBinding.md deleted file mode 100644 index 41baa1ec36..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBinding.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyBinding - -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. - -## 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** | [**V1beta1ValidatingAdmissionPolicyBindingSpec**](V1beta1ValidatingAdmissionPolicyBindingSpec.md) | | [optional] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md deleted file mode 100644 index 84922833b6..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyBindingList - -ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - -## 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<V1beta1ValidatingAdmissionPolicyBinding>**](V1beta1ValidatingAdmissionPolicyBinding.md) | List of PolicyBinding. | | -|**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/V1beta1ValidatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md deleted file mode 100644 index eb770be336..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyBindingSpec - -ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**matchResources** | [**V1beta1MatchResources**](V1beta1MatchResources.md) | | [optional] | -|**paramRef** | [**V1beta1ParamRef**](V1beta1ParamRef.md) | | [optional] | -|**policyName** | **String** | 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. | [optional] | -|**validationActions** | **List<String>** | 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. | [optional] | - - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md deleted file mode 100644 index 2a5bd91006..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyList - -ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - -## 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<V1beta1ValidatingAdmissionPolicy>**](V1beta1ValidatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | | -|**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/V1beta1ValidatingAdmissionPolicySpec.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicySpec.md deleted file mode 100644 index e6595ad77e..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicySpec.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicySpec - -ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**auditAnnotations** | [**List<V1beta1AuditAnnotation>**](V1beta1AuditAnnotation.md) | 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. | [optional] | -|**failurePolicy** | **String** | 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. | [optional] | -|**matchConditions** | [**List<V1beta1MatchCondition>**](V1beta1MatchCondition.md) | 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 | [optional] | -|**matchConstraints** | [**V1beta1MatchResources**](V1beta1MatchResources.md) | | [optional] | -|**paramKind** | [**V1beta1ParamKind**](V1beta1ParamKind.md) | | [optional] | -|**validations** | [**List<V1beta1Validation>**](V1beta1Validation.md) | 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. | [optional] | -|**variables** | [**List<V1beta1Variable>**](V1beta1Variable.md) | 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. | [optional] | - - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyStatus.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyStatus.md deleted file mode 100644 index d389e47080..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyStatus.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyStatus - -ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**conditions** | [**List<V1Condition>**](V1Condition.md) | The conditions represent the latest available observations of a policy's current state. | [optional] | -|**observedGeneration** | **Long** | The generation observed by the controller. | [optional] | -|**typeChecking** | [**V1beta1TypeChecking**](V1beta1TypeChecking.md) | | [optional] | - - - diff --git a/kubernetes/docs/V1beta1Validation.md b/kubernetes/docs/V1beta1Validation.md deleted file mode 100644 index 16bae0ba96..0000000000 --- a/kubernetes/docs/V1beta1Validation.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta1Validation - -Validation specifies the CEL expression which is used to apply the validation. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. | | -|**message** | **String** | 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}\". | [optional] | -|**messageExpression** | **String** | 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)+\")\" | [optional] | -|**reason** | **String** | 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. | [optional] | - - - diff --git a/kubernetes/docs/V1beta2AllocatedDeviceStatus.md b/kubernetes/docs/V1beta2AllocatedDeviceStatus.md index b646dfb6c8..81f79b1104 100644 --- a/kubernetes/docs/V1beta2AllocatedDeviceStatus.md +++ b/kubernetes/docs/V1beta2AllocatedDeviceStatus.md @@ -2,7 +2,7 @@ # V1beta2AllocatedDeviceStatus -AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. +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. ## Properties @@ -14,6 +14,7 @@ AllocatedDeviceStatus contains the status of an allocated device, if the driver |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | |**networkData** | [**V1beta2NetworkDeviceData**](V1beta2NetworkDeviceData.md) | | [optional] | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | +|**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device. | [optional] | diff --git a/kubernetes/docs/V1beta2AllocationResult.md b/kubernetes/docs/V1beta2AllocationResult.md index 8537175181..65feb5be58 100644 --- a/kubernetes/docs/V1beta2AllocationResult.md +++ b/kubernetes/docs/V1beta2AllocationResult.md @@ -8,6 +8,7 @@ AllocationResult contains attributes of an allocated resource. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**allocationTimestamp** | **OffsetDateTime** | 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | |**devices** | [**V1beta2DeviceAllocationResult**](V1beta2DeviceAllocationResult.md) | | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1beta2CELDeviceSelector.md b/kubernetes/docs/V1beta2CELDeviceSelector.md index 57720e6280..486c15c920 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. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | | +|**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) 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/V1beta2CapacityRequestPolicy.md b/kubernetes/docs/V1beta2CapacityRequestPolicy.md new file mode 100644 index 0000000000..3b54f59c2c --- /dev/null +++ b/kubernetes/docs/V1beta2CapacityRequestPolicy.md @@ -0,0 +1,16 @@ + + +# V1beta2CapacityRequestPolicy + +CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_default** | **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] | +|**validRange** | [**V1beta2CapacityRequestPolicyRange**](V1beta2CapacityRequestPolicyRange.md) | | [optional] | +|**validValues** | **List<Quantity>** | 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. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md b/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md new file mode 100644 index 0000000000..c4dfeea8a9 --- /dev/null +++ b/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md @@ -0,0 +1,16 @@ + + +# 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. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**max** | **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] | +|**min** | **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. | | +|**step** | **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/V1beta2CapacityRequirements.md b/kubernetes/docs/V1beta2CapacityRequirements.md new file mode 100644 index 0000000000..ca92735e83 --- /dev/null +++ b/kubernetes/docs/V1beta2CapacityRequirements.md @@ -0,0 +1,14 @@ + + +# V1beta2CapacityRequirements + +CapacityRequirements defines the capacity requirements for a specific device request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requests** | **Map<String, Quantity>** | 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[<domain>].<name>.compareTo(quantity(<request 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. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2Device.md b/kubernetes/docs/V1beta2Device.md index d09ecf46b0..b76a9a508d 100644 --- a/kubernetes/docs/V1beta2Device.md +++ b/kubernetes/docs/V1beta2Device.md @@ -9,7 +9,11 @@ Device represents one individual hardware instance that can be selected based on | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | +|**allowMultipleAllocations** | **Boolean** | 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. | [optional] | |**attributes** | [**Map<String, V1beta2DeviceAttribute>**](V1beta2DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | +|**bindingConditions** | **List<String>** | 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | |**capacity** | [**Map<String, V1beta2DeviceCapacity>**](V1beta2DeviceCapacity.md) | Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | |**consumesCounters** | [**List<V1beta2DeviceCounterConsumption>**](V1beta2DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). | [optional] | |**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | | diff --git a/kubernetes/docs/V1beta2DeviceCapacity.md b/kubernetes/docs/V1beta2DeviceCapacity.md index 28b1861146..0065cdb6fb 100644 --- a/kubernetes/docs/V1beta2DeviceCapacity.md +++ b/kubernetes/docs/V1beta2DeviceCapacity.md @@ -8,6 +8,7 @@ DeviceCapacity describes a quantity associated with a device. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**requestPolicy** | [**V1beta2CapacityRequestPolicy**](V1beta2CapacityRequestPolicy.md) | | [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. | | diff --git a/kubernetes/docs/V1beta2DeviceClassSpec.md b/kubernetes/docs/V1beta2DeviceClassSpec.md index f773215a2f..c27afbaa08 100644 --- a/kubernetes/docs/V1beta2DeviceClassSpec.md +++ b/kubernetes/docs/V1beta2DeviceClassSpec.md @@ -9,6 +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 an alpha field. | [optional] | |**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceConstraint.md b/kubernetes/docs/V1beta2DeviceConstraint.md index 32d403d306..12a32935c3 100644 --- a/kubernetes/docs/V1beta2DeviceConstraint.md +++ b/kubernetes/docs/V1beta2DeviceConstraint.md @@ -8,6 +8,7 @@ DeviceConstraint must have exactly one field set besides Requests. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. 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. | [optional] | |**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. | [optional] | |**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md index e08d915dbf..c10dfd07ae 100644 --- a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md @@ -9,10 +9,14 @@ DeviceRequestAllocationResult contains the allocation result for one request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**consumedCapacity** | **Map<String, Quantity>** | 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. | [optional] | |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. | | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | |**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | +|**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] | |**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceSubRequest.md b/kubernetes/docs/V1beta2DeviceSubRequest.md index 33c93583f3..92f0007c4c 100644 --- a/kubernetes/docs/V1beta2DeviceSubRequest.md +++ b/kubernetes/docs/V1beta2DeviceSubRequest.md @@ -9,6 +9,7 @@ DeviceSubRequest describes a request for device provided in the claim.spec.devic | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**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] | |**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. | | diff --git a/kubernetes/docs/V1beta2ExactDeviceRequest.md b/kubernetes/docs/V1beta2ExactDeviceRequest.md index 2e6e9977b9..4eb463f794 100644 --- a/kubernetes/docs/V1beta2ExactDeviceRequest.md +++ b/kubernetes/docs/V1beta2ExactDeviceRequest.md @@ -10,6 +10,7 @@ ExactDeviceRequest is a request for one or more identical devices. |------------ | ------------- | ------------- | -------------| |**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | |**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | +|**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] | |**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] | 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 f903690774..54f2007ba0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -20,7 +20,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java index 88a3d9e2b2..0d14be1951 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -16,7 +16,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class Configuration { public static final String VERSION = "25.0.0-SNAPSHOT"; 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 a5ef315e66..02bc54407a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -125,12 +125,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.CoreV1Event.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.CoreV1EventList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.CoreV1EventSeries.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.CoreV1ResourceClaim.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.EventsV1Event.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.EventsV1EventList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.EventsV1EventSeries.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.FlowcontrolV1Subject.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.RbacV1Subject.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.ResourceV1ResourceClaim.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.StorageV1TokenRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1APIGroup.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1APIGroupList.CustomTypeAdapterFactory()); @@ -145,6 +147,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Affinity.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AggregationRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AllocatedDeviceStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AppArmorProfile.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AttachedVolume.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AuditAnnotation.CustomTypeAdapterFactory()); @@ -153,6 +157,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AzureFileVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Binding.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1BoundObjectReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CELDeviceSelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIDriver.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIDriverList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIDriverSpec.CustomTypeAdapterFactory()); @@ -165,6 +170,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIStorageCapacityList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Capabilities.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CapacityRequestPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CapacityRequestPolicyRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CapacityRequirements.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CephFSVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CertificateSigningRequest.CustomTypeAdapterFactory()); @@ -192,9 +200,12 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ConfigMapProjection.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Container.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerExtendedResourceRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerImage.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerPort.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerResizePolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerRestartRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerRestartRuleOnExitCodes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerState.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerStateRunning.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerStateTerminated.CustomTypeAdapterFactory()); @@ -203,6 +214,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerUser.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ControllerRevision.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ControllerRevisionList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Counter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CounterSet.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CronJob.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CronJobList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CronJobSpec.CustomTypeAdapterFactory()); @@ -234,6 +247,25 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeploymentSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeploymentStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeploymentStrategy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Device.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceAllocationConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceAllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceCapacity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClaimConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClass.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClassConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClassList.CustomTypeAdapterFactory()); + 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.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.V1DeviceToleration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DownwardAPIProjection.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource.CustomTypeAdapterFactory()); @@ -254,6 +286,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.V1ExactDeviceRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExecAction.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExemptPriorityLevelConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExpressionWarning.CustomTypeAdapterFactory()); @@ -261,6 +294,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FCVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FieldSelectorAttributes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FieldSelectorRequirement.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FileKeySelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlexVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlockerVolumeSource.CustomTypeAdapterFactory()); @@ -355,6 +389,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NamespaceList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NamespaceSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NamespaceStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NetworkDeviceData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NetworkPolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule.CustomTypeAdapterFactory()); @@ -386,6 +421,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ObjectFieldSelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ObjectMeta.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ObjectReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Overhead.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1OwnerReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ParamKind.CustomTypeAdapterFactory()); @@ -407,6 +443,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodAffinity.CustomTypeAdapterFactory()); 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.V1PodCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDNSConfig.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDNSConfigOption.CustomTypeAdapterFactory()); @@ -414,6 +451,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodExtendedResourceClaimStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodFailurePolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodFailurePolicyOnExitCodesRequirement.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern.CustomTypeAdapterFactory()); @@ -462,16 +500,26 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ReplicationControllerSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ReplicationControllerStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimConsumerReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimTemplate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimTemplateList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimTemplateSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceFieldSelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceHealth.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourcePolicyRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourcePool.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceQuota.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceQuotaList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceQuotaSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceQuotaStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceRequirements.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceSlice.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceSliceList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceSliceSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Role.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1RoleBinding.CustomTypeAdapterFactory()); @@ -584,6 +632,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttachmentSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttributesClass.CustomTypeAdapterFactory()); + 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.V1VolumeMount.CustomTypeAdapterFactory()); @@ -616,6 +666,10 @@ 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.V1alpha1PodCertificateRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1PodCertificateRequestList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1PodCertificateRequestSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1PodCertificateRequestStatus.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()); @@ -631,53 +685,21 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.V1alpha3AllocatedDeviceStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3AllocationResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3BasicDevice.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CELDeviceSelector.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3Counter.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3CounterSet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3Device.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationConfiguration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceClaim.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceClaimConfiguration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceClass.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceClassConfiguration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceClassList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceClassSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceSelector.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaint.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintSelector.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceToleration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3NetworkDeviceData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceClaim.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceClaimConsumerReference.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceClaimList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceClaimSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceClaimStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplateList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplateSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourcePool.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceSlice.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceSliceList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourceSliceSpec.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.V1beta1AuditAnnotation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ApplyConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1BasicDevice.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CELDeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CapacityRequestPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CapacityRequestPolicyRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CapacityRequirements.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundleList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundleSpec.CustomTypeAdapterFactory()); @@ -702,15 +724,22 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceTaint.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceToleration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ExpressionWarning.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1IPAddress.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1IPAddressList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1IPAddressSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1JSONPatch.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidateList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidateSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MatchCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MatchResources.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBinding.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBindingList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBindingSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicySpec.CustomTypeAdapterFactory()); + 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.V1beta1OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); @@ -733,21 +762,15 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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.V1beta1TypeChecking.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBindingList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBindingSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicySpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Validation.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.V1beta2AllocatedDeviceStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2AllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CELDeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CapacityRequestPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CapacityRequestPolicyRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CapacityRequirements.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2Counter.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CounterSet.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2Device.CustomTypeAdapterFactory()); 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 7bd3eefcee..ade04b4845 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -12,7 +12,7 @@ */ package io.kubernetes.client.openapi; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class Pair { private String name = ""; private String value = ""; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java index 3669228191..5017faea41 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java @@ -17,7 +17,7 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ServerConfiguration { public String URL; public String description; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java index c99fcf98e7..8cc4100aa7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java @@ -17,7 +17,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java index bd43105e74..05488b5969 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -15,7 +15,7 @@ import java.util.Collection; import java.util.Iterator; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java index f030545e6c..8da602c275 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java @@ -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.V1beta1ValidatingAdmissionPolicy; -import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding; -import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBindingList; -import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyList; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicy; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBinding; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBindingList; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.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 createValidatingAdmissionPolicyCall(@jakarta.annotation.Non Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -143,34 +143,34 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(@jakarta.annotation.Non } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createMutatingAdmissionPolicy(Async)"); } - return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateValidatingAdmissionPolicyRequest { + public class APIcreateMutatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull - private final V1beta1ValidatingAdmissionPolicy body; + private final V1beta1MutatingAdmissionPolicy body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -180,16 +180,16 @@ public class APIcreateValidatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { + private APIcreateMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy 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 APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -197,9 +197,9 @@ public APIcreateValidatingAdmissionPolicyRequest 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 APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -207,9 +207,9 @@ public APIcreateValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Null /** * 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 APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -217,15 +217,15 @@ public APIcreateValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotatio /** * 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 APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createValidatingAdmissionPolicy + * Build call for createMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -240,12 +240,12 @@ public APIcreateValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicy + * Execute createMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -257,14 +257,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * Execute createMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -276,12 +276,12 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createValidatingAdmissionPolicy request (asynchronously) + * Execute createMutatingAdmissionPolicy 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 +295,16 @@ public ApiResponse executeWithHttpInfo() throw 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createMutatingAdmissionPolicyAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body (required) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest * @http.response.details @@ -315,10 +315,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { - return new APIcreateValidatingAdmissionPolicyRequest(body); + public APIcreateMutatingAdmissionPolicyRequest createMutatingAdmissionPolicy(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body) { + return new APIcreateMutatingAdmissionPolicyRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.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 +335,7 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotat Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -383,34 +383,34 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotat } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createMutatingAdmissionPolicyBinding(Async)"); } - return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateValidatingAdmissionPolicyBindingRequest { + public class APIcreateMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nonnull - private final V1beta1ValidatingAdmissionPolicyBinding body; + private final V1beta1MutatingAdmissionPolicyBinding body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -420,16 +420,16 @@ public class APIcreateValidatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body) { + private APIcreateMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding 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 APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -437,9 +437,9 @@ public APIcreateValidatingAdmissionPolicyBindingRequest 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 APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -447,9 +447,9 @@ public APIcreateValidatingAdmissionPolicyBindingRequest 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 APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -457,15 +457,15 @@ public APIcreateValidatingAdmissionPolicyBindingRequest 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 APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createValidatingAdmissionPolicyBinding + * Build call for createMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -480,12 +480,12 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBinding + * Execute createMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -497,14 +497,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * Execute createMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -516,12 +516,12 @@ public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createValidatingAdmissionPolicyBinding request (asynchronously) + * Execute createMutatingAdmissionPolicyBinding 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 +535,16 @@ public ApiResponse executeWithHttpInfo( 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyBindingAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createMutatingAdmissionPolicyBindingAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body (required) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -555,10 +555,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body) { - return new APIcreateValidatingAdmissionPolicyBindingRequest(body); + public APIcreateMutatingAdmissionPolicyBindingRequest createMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body) { + return new APIcreateMutatingAdmissionPolicyBindingRequest(body); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -575,7 +575,7 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.anno Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -663,27 +663,27 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.anno } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionValidatingAdmissionPolicyRequest { + public class APIdeleteCollectionMutatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -715,15 +715,15 @@ public class APIdeleteCollectionValidatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionValidatingAdmissionPolicyRequest() { + private APIdeleteCollectionMutatingAdmissionPolicyRequest() { } /** * 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -731,9 +731,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(@jakarta.annot /** * 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -741,9 +741,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(@jakarta.an /** * 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -751,9 +751,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(@jakarta.annot /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -761,9 +761,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(@jakart /** * 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -771,9 +771,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(@j /** * 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -781,9 +781,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorW /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -791,9 +791,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -801,9 +801,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(@jakarta.annota /** * 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -811,9 +811,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(@jak /** * 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -821,9 +821,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(@ja /** * 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -831,9 +831,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -841,9 +841,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -851,9 +851,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(@ja /** * 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 APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -861,15 +861,15 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(@jakar /** * Set body * @param body (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionValidatingAdmissionPolicy + * Build call for deleteCollectionMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -882,11 +882,11 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest body(@jakarta.annotat */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request + * Execute deleteCollectionMutatingAdmissionPolicy request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -898,12 +898,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request with HTTP info returned + * Execute deleteCollectionMutatingAdmissionPolicy 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 @@ -915,11 +915,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request (asynchronously) + * Execute deleteCollectionMutatingAdmissionPolicy 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 @@ -932,14 +932,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of ValidatingAdmissionPolicy - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * delete collection of MutatingAdmissionPolicy + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest * @http.response.details @@ -948,10 +948,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionValidatingAdmissionPolicyRequest deleteCollectionValidatingAdmissionPolicy() { - return new APIdeleteCollectionValidatingAdmissionPolicyRequest(); + public APIdeleteCollectionMutatingAdmissionPolicyRequest deleteCollectionMutatingAdmissionPolicy() { + return new APIdeleteCollectionMutatingAdmissionPolicyRequest(); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -968,7 +968,7 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakar Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1056,27 +1056,27 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakar } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionValidatingAdmissionPolicyBindingRequest { + public class APIdeleteCollectionMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -1108,15 +1108,15 @@ public class APIdeleteCollectionValidatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { + private APIdeleteCollectionMutatingAdmissionPolicyBindingRequest() { } /** * 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1124,9 +1124,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(@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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1134,9 +1134,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(@jak /** * 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1144,9 +1144,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(@jakart /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1154,9 +1154,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1164,9 +1164,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSec /** * 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1174,9 +1174,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreRea /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1184,9 +1184,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1194,9 +1194,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1204,9 +1204,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependen /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1214,9 +1214,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPol /** * 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1224,9 +1224,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio /** * 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1234,9 +1234,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio /** * 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1244,9 +1244,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEve /** * 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 APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1254,15 +1254,15 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds /** * Set body * @param body (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionValidatingAdmissionPolicyBinding + * Build call for deleteCollectionMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1275,11 +1275,11 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(@jakarta. */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request + * Execute deleteCollectionMutatingAdmissionPolicyBinding request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1291,12 +1291,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request with HTTP info returned + * Execute deleteCollectionMutatingAdmissionPolicyBinding 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 @@ -1308,11 +1308,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request (asynchronously) + * Execute deleteCollectionMutatingAdmissionPolicyBinding 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 @@ -1325,14 +1325,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of ValidatingAdmissionPolicyBinding - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * delete collection of MutatingAdmissionPolicyBinding + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -1341,10 +1341,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest deleteCollectionValidatingAdmissionPolicyBinding() { - return new APIdeleteCollectionValidatingAdmissionPolicyBindingRequest(); + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest deleteCollectionMutatingAdmissionPolicyBinding() { + return new APIdeleteCollectionMutatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1361,7 +1361,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Non Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1418,32 +1418,32 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Non } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicy(Async)"); } - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + private ApiResponse deleteMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteValidatingAdmissionPolicyRequest { + public class APIdeleteMutatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nullable @@ -1461,16 +1461,16 @@ public class APIdeleteValidatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { + private APIdeleteMutatingAdmissionPolicyRequest(@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 APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1478,9 +1478,9 @@ public APIdeleteValidatingAdmissionPolicyRequest 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 APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1488,9 +1488,9 @@ public APIdeleteValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Null /** * 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 APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1498,9 +1498,9 @@ public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.ann /** * 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 APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1508,9 +1508,9 @@ public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithCluster /** * 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 APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1518,9 +1518,9 @@ public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annot /** * 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 APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1528,15 +1528,15 @@ public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.anno /** * Set body * @param body (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteValidatingAdmissionPolicy + * Build call for deleteMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1550,11 +1550,11 @@ public APIdeleteValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteValidatingAdmissionPolicy request + * Execute deleteMutatingAdmissionPolicy request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1567,12 +1567,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteValidatingAdmissionPolicy request with HTTP info returned + * Execute deleteMutatingAdmissionPolicy 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 @@ -1585,11 +1585,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteValidatingAdmissionPolicy request (asynchronously) + * Execute deleteMutatingAdmissionPolicy 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 @@ -1603,15 +1603,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIdeleteValidatingAdmissionPolicyRequest + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @return APIdeleteMutatingAdmissionPolicyRequest * @http.response.details @@ -1621,10 +1621,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { - return new APIdeleteValidatingAdmissionPolicyRequest(name); + public APIdeleteMutatingAdmissionPolicyRequest deleteMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIdeleteMutatingAdmissionPolicyRequest(name); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1641,7 +1641,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotat Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1698,32 +1698,32 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotat } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicyBinding(Async)"); } - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + private ApiResponse deleteMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteValidatingAdmissionPolicyBindingRequest { + public class APIdeleteMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nullable @@ -1741,16 +1741,16 @@ public class APIdeleteValidatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { + private APIdeleteMutatingAdmissionPolicyBindingRequest(@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 APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1758,9 +1758,9 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest 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 APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1768,9 +1768,9 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotati /** * 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 APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1778,9 +1778,9 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jaka /** * 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 APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1788,9 +1788,9 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWith /** * 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 APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1798,9 +1798,9 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(@jakart /** * 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 APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1808,15 +1808,15 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakar /** * Set body * @param body (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteValidatingAdmissionPolicyBinding + * Build call for deleteMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1830,11 +1830,11 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteValidatingAdmissionPolicyBinding request + * Execute deleteMutatingAdmissionPolicyBinding request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1847,12 +1847,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteValidatingAdmissionPolicyBinding request with HTTP info returned + * Execute deleteMutatingAdmissionPolicyBinding 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 @@ -1865,11 +1865,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteValidatingAdmissionPolicyBinding request (asynchronously) + * Execute deleteMutatingAdmissionPolicyBinding 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 @@ -1883,15 +1883,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -1901,8 +1901,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { - return new APIdeleteValidatingAdmissionPolicyBindingRequest(name); + public APIdeleteMutatingAdmissionPolicyBindingRequest deleteMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIdeleteMutatingAdmissionPolicyBindingRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { String basePath = null; @@ -2060,7 +2060,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2077,7 +2077,7 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nulla Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2155,27 +2155,27 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistValidatingAdmissionPolicyRequest { + public class APIlistMutatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -2199,15 +2199,15 @@ public class APIlistValidatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistValidatingAdmissionPolicyRequest() { + private APIlistMutatingAdmissionPolicyRequest() { } /** * 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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2215,9 +2215,9 @@ public APIlistValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullab /** * 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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistMutatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2225,9 +2225,9 @@ public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.anno /** * 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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2235,9 +2235,9 @@ public APIlistValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nul /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2245,9 +2245,9 @@ public APIlistValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2255,9 +2255,9 @@ public APIlistValidatingAdmissionPolicyRequest 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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2265,9 +2265,9 @@ public APIlistValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullabl /** * 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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2275,9 +2275,9 @@ public APIlistValidatingAdmissionPolicyRequest 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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2285,9 +2285,9 @@ public APIlistValidatingAdmissionPolicyRequest 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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2295,9 +2295,9 @@ public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(@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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2305,15 +2305,15 @@ public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotatio /** * 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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistMutatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listValidatingAdmissionPolicy + * Build call for listMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2326,12 +2326,12 @@ public APIlistValidatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullabl */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicyList + * Execute listMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2341,14 +2341,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyList execute() throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1beta1MutatingAdmissionPolicyList execute() throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyList> + * Execute listMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2358,12 +2358,12 @@ public V1beta1ValidatingAdmissionPolicyList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listValidatingAdmissionPolicy request (asynchronously) + * Execute listMutatingAdmissionPolicy 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 @@ -2375,15 +2375,15 @@ public ApiResponse executeWithHttpInfo() t 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ValidatingAdmissionPolicy - * @return APIlistValidatingAdmissionPolicyRequest + * list or watch objects of kind MutatingAdmissionPolicy + * @return APIlistMutatingAdmissionPolicyRequest * @http.response.details @@ -2392,10 +2392,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistValidatingAdmissionPolicyRequest listValidatingAdmissionPolicy() { - return new APIlistValidatingAdmissionPolicyRequest(); + public APIlistMutatingAdmissionPolicyRequest listMutatingAdmissionPolicy() { + return new APIlistMutatingAdmissionPolicyRequest(); } - private okhttp3.Call listValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2412,7 +2412,7 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(@jakarta.annotatio Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2490,27 +2490,27 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(@jakarta.annotatio } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistValidatingAdmissionPolicyBindingRequest { + public class APIlistMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -2534,15 +2534,15 @@ public class APIlistValidatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistValidatingAdmissionPolicyBindingRequest() { + private APIlistMutatingAdmissionPolicyBindingRequest() { } /** * 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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2550,9 +2550,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest 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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistMutatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2560,9 +2560,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakar /** * 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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2570,9 +2570,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotat /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2580,9 +2580,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.ann /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2590,9 +2590,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.ann /** * 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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2600,9 +2600,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest limit(@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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2610,9 +2610,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.a /** * 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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2620,9 +2620,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jaka /** * 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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2630,9 +2630,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(@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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2640,15 +2640,15 @@ public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.an /** * 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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistMutatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listValidatingAdmissionPolicyBinding + * Build call for listMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2661,12 +2661,12 @@ public APIlistValidatingAdmissionPolicyBindingRequest watch(@jakarta.annotation. */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBindingList + * Execute listMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2676,14 +2676,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBindingList execute() throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1beta1MutatingAdmissionPolicyBindingList execute() throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBindingList> + * Execute listMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2693,12 +2693,12 @@ public V1beta1ValidatingAdmissionPolicyBindingList execute() throws ApiException
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listValidatingAdmissionPolicyBinding request (asynchronously) + * Execute listMutatingAdmissionPolicyBinding 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 @@ -2710,15 +2710,15 @@ public ApiResponse executeWithHttpI 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @return APIlistValidatingAdmissionPolicyBindingRequest + * list or watch objects of kind MutatingAdmissionPolicyBinding + * @return APIlistMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -2727,10 +2727,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistValidatingAdmissionPolicyBindingRequest listValidatingAdmissionPolicyBinding() { - return new APIlistValidatingAdmissionPolicyBindingRequest(); + public APIlistMutatingAdmissionPolicyBindingRequest listMutatingAdmissionPolicyBinding() { + return new APIlistMutatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.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[] { }; @@ -2747,7 +2747,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonn Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2800,37 +2800,37 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonn } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchMutatingAdmissionPolicy(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchMutatingAdmissionPolicy(Async)"); } - return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchValidatingAdmissionPolicyRequest { + public class APIpatchMutatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -2846,7 +2846,7 @@ public class APIpatchValidatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2854,9 +2854,9 @@ private APIpatchValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull Str /** * 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 APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2864,9 +2864,9 @@ public APIpatchValidatingAdmissionPolicyRequest pretty(@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 APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2874,9 +2874,9 @@ public APIpatchValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nulla /** * 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 APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2884,9 +2884,9 @@ public APIpatchValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation /** * 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 APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2894,15 +2894,15 @@ public APIpatchValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotat /** * 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 APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchMutatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchValidatingAdmissionPolicy + * Build call for patchMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2916,12 +2916,12 @@ public APIpatchValidatingAdmissionPolicyRequest force(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicy + * Execute patchMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2932,14 +2932,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * Execute patchMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2950,12 +2950,12 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchValidatingAdmissionPolicy request (asynchronously) + * Execute patchMutatingAdmissionPolicy 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 @@ -2968,17 +2968,17 @@ public ApiResponse executeWithHttpInfo() throw 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchMutatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * partially update the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest * @http.response.details @@ -2988,10 +2988,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchValidatingAdmissionPolicyRequest(name, body); + public APIpatchMutatingAdmissionPolicyRequest patchMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3008,7 +3008,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotati Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3061,37 +3061,37 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotati } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchMutatingAdmissionPolicyBinding(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchMutatingAdmissionPolicyBinding(Async)"); } - return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchValidatingAdmissionPolicyBindingRequest { + public class APIpatchMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -3107,7 +3107,7 @@ public class APIpatchValidatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -3115,9 +3115,9 @@ private APIpatchValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonn /** * 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 APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3125,9 +3125,9 @@ public APIpatchValidatingAdmissionPolicyBindingRequest 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 APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3135,9 +3135,9 @@ public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotatio /** * 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 APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -3145,9 +3145,9 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.ann /** * 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 APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -3155,15 +3155,15 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta. /** * 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 APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchMutatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchValidatingAdmissionPolicyBinding + * Build call for patchMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3177,12 +3177,12 @@ public APIpatchValidatingAdmissionPolicyBindingRequest force(@jakarta.annotation */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBinding + * Execute patchMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3193,14 +3193,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * Execute patchMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3211,12 +3211,12 @@ public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchValidatingAdmissionPolicyBinding request (asynchronously) + * Execute patchMutatingAdmissionPolicyBinding 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 @@ -3229,17 +3229,17 @@ public ApiResponse executeWithHttpInfo( 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchMutatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * partially update the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -3249,453 +3249,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchValidatingAdmissionPolicyBindingRequest(name, body); + public APIpatchMutatingAdmissionPolicyBindingRequest patchMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchMutatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // 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/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{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 patchValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyStatus(Async)"); - } - - return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - - } - - - private ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIpatchValidatingAdmissionPolicyStatusRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final V1Patch body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - - private APIpatchValidatingAdmissionPolicyStatusRequest(@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 APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest 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 APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest 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 APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest 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 APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest 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 APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchValidatingAdmissionPolicyStatus - * @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 patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - - /** - * Execute patchValidatingAdmissionPolicyStatus request - * @return V1beta1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * Execute patchValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - } - - /** - * Execute patchValidatingAdmissionPolicyStatus 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 patchValidatingAdmissionPolicyStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - } - - /** - * - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchValidatingAdmissionPolicyStatusRequest(name, body); - } - private okhttp3.Call readValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // 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/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{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 readValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicy(Async)"); - } - - return readValidatingAdmissionPolicyCall(name, pretty, _callback); - - } - - - private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call readValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadValidatingAdmissionPolicyRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadValidatingAdmissionPolicyRequest(@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 APIreadValidatingAdmissionPolicyRequest - */ - public APIreadValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readValidatingAdmissionPolicy - * @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 readValidatingAdmissionPolicyCall(name, pretty, _callback); - } - - /** - * Execute readValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * Execute readValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyWithHttpInfo(name, pretty); - } - - /** - * Execute readValidatingAdmissionPolicy 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 readValidatingAdmissionPolicyAsync(name, pretty, _callback); - } - } - - /** - * - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIreadValidatingAdmissionPolicyRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { - return new APIreadValidatingAdmissionPolicyRequest(name); - } - private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3712,7 +3269,7 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotatio Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3748,53 +3305,53 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotatio } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicy(Async)"); } - return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + return readMutatingAdmissionPolicyCall(name, pretty, _callback); } - private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadValidatingAdmissionPolicyBindingRequest { + public class APIreadMutatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { + private APIreadMutatingAdmissionPolicyRequest(@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 APIreadValidatingAdmissionPolicyBindingRequest + * @return APIreadMutatingAdmissionPolicyRequest */ - public APIreadValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readValidatingAdmissionPolicyBinding + * Build call for readMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3807,12 +3364,12 @@ public APIreadValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + return readMutatingAdmissionPolicyCall(name, pretty, _callback); } /** - * Execute readValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBinding + * Execute readMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3822,14 +3379,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public V1beta1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * Execute readMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3839,12 +3396,12 @@ public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readMutatingAdmissionPolicyWithHttpInfo(name, pretty); } /** - * Execute readValidatingAdmissionPolicyBinding request (asynchronously) + * Execute readMutatingAdmissionPolicy 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 @@ -3856,16 +3413,16 @@ public ApiResponse executeWithHttpInfo( 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyBindingAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readMutatingAdmissionPolicyAsync(name, pretty, _callback); } } /** * - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @return APIreadValidatingAdmissionPolicyBindingRequest + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @return APIreadMutatingAdmissionPolicyRequest * @http.response.details @@ -3874,10 +3431,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { - return new APIreadValidatingAdmissionPolicyBindingRequest(name); + public APIreadMutatingAdmissionPolicyRequest readMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIreadMutatingAdmissionPolicyRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3894,7 +3451,7 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3930,292 +3487,53 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyStatus(Async)"); - } - - return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); - - } - - - private ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadValidatingAdmissionPolicyStatusRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadValidatingAdmissionPolicyStatusRequest(@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 APIreadValidatingAdmissionPolicyStatusRequest - */ - public APIreadValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readValidatingAdmissionPolicyStatus - * @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 readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); - } - - /** - * Execute readValidatingAdmissionPolicyStatus request - * @return V1beta1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * Execute readValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); - } - - /** - * Execute readValidatingAdmissionPolicyStatus 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 readValidatingAdmissionPolicyStatusAsync(name, pretty, _callback); - } - } - - /** - * - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIreadValidatingAdmissionPolicyStatusRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name) { - return new APIreadValidatingAdmissionPolicyStatusRequest(name); - } - private okhttp3.Call replaceValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // 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/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{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 replaceValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicy(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicyBinding(Async)"); } - return replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); } - private ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceValidatingAdmissionPolicyRequest { + public class APIreadMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final V1beta1ValidatingAdmissionPolicy body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { + private APIreadMutatingAdmissionPolicyBindingRequest(@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 APIreplaceValidatingAdmissionPolicyRequest + * @return APIreadMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadMutatingAdmissionPolicyBindingRequest 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 APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest 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 APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest 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 APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceValidatingAdmissionPolicy + * Build call for readMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4224,51 +3542,48 @@ public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annot Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); } /** - * Execute replaceValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicy + * Execute readMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, 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 V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute replaceValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * Execute readMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, 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 replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); } /** - * Execute replaceValidatingAdmissionPolicy request (asynchronously) + * Execute readMutatingAdmissionPolicyBinding 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 @@ -4277,34 +3592,31 @@ public ApiResponse executeWithHttpInfo() throw Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readMutatingAdmissionPolicyBindingAsync(name, pretty, _callback); } } /** * - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @return APIreplaceValidatingAdmissionPolicyRequest + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @return APIreadMutatingAdmissionPolicyBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyRequest replaceValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { - return new APIreplaceValidatingAdmissionPolicyRequest(name, body); + public APIreadMutatingAdmissionPolicyBindingRequest readMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIreadMutatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.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[] { }; @@ -4321,7 +3633,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(@jakarta.annota Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -4370,41 +3682,41 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(@jakarta.annota } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingAdmissionPolicy(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingAdmissionPolicy(Async)"); } - return replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceValidatingAdmissionPolicyBindingRequest { + public class APIreplaceMutatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1beta1ValidatingAdmissionPolicyBinding body; + private final V1beta1MutatingAdmissionPolicy body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -4414,7 +3726,7 @@ public class APIreplaceValidatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body) { + private APIreplaceMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body) { this.name = name; this.body = body; } @@ -4422,9 +3734,9 @@ private APIreplaceValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.No /** * 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 APIreplaceValidatingAdmissionPolicyBindingRequest + * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4432,9 +3744,9 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotat /** * 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 APIreplaceValidatingAdmissionPolicyBindingRequest + * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4442,9 +3754,9 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotat /** * 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 APIreplaceValidatingAdmissionPolicyBindingRequest + * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4452,15 +3764,15 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.a /** * 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 APIreplaceValidatingAdmissionPolicyBindingRequest + * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceValidatingAdmissionPolicyBinding + * Build call for replaceMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4474,12 +3786,12 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(@jakart */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBinding + * Execute replaceMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4490,14 +3802,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * Execute replaceMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4508,12 +3820,12 @@ public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceValidatingAdmissionPolicyBinding request (asynchronously) + * Execute replaceMutatingAdmissionPolicy 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 @@ -4526,17 +3838,17 @@ public ApiResponse executeWithHttpInfo( 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceMutatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest + * @return APIreplaceMutatingAdmissionPolicyRequest * @http.response.details @@ -4546,10 +3858,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyBindingRequest replaceValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicyBinding body) { - return new APIreplaceValidatingAdmissionPolicyBindingRequest(name, body); + public APIreplaceMutatingAdmissionPolicyRequest replaceMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body) { + return new APIreplaceMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.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[] { }; @@ -4566,7 +3878,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(@jakarta.annotat Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -4615,41 +3927,41 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(@jakarta.annotat } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceValidatingAdmissionPolicyStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingAdmissionPolicyBinding(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyStatus(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingAdmissionPolicyBinding(Async)"); } - return replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceValidatingAdmissionPolicyStatusRequest { + public class APIreplaceMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1beta1ValidatingAdmissionPolicy body; + private final V1beta1MutatingAdmissionPolicyBinding body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -4659,7 +3971,7 @@ public class APIreplaceValidatingAdmissionPolicyStatusRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { + private APIreplaceMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body) { this.name = name; this.body = body; } @@ -4667,9 +3979,9 @@ private APIreplaceValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Non /** * 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 APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4677,9 +3989,9 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest 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 APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4687,9 +3999,9 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest 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 APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4697,15 +4009,15 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest 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 APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceValidatingAdmissionPolicyStatus + * Build call for replaceMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4719,12 +4031,12 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceValidatingAdmissionPolicyStatus request - * @return V1beta1ValidatingAdmissionPolicy + * Execute replaceMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4735,14 +4047,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * Execute replaceMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4753,12 +4065,12 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceValidatingAdmissionPolicyStatus request (asynchronously) + * Execute replaceMutatingAdmissionPolicyBinding 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 @@ -4771,17 +4083,17 @@ public ApiResponse executeWithHttpInfo() throw 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceMutatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * replace the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -4791,7 +4103,7 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyStatusRequest replaceValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1ValidatingAdmissionPolicy body) { - return new APIreplaceValidatingAdmissionPolicyStatusRequest(name, body); + public APIreplaceMutatingAdmissionPolicyBindingRequest replaceMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body) { + return new APIreplaceMutatingAdmissionPolicyBindingRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java index 93a1aefe81..1131f67fd6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java @@ -32,6 +32,8 @@ 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.V1alpha1PodCertificateRequest; +import io.kubernetes.client.openapi.models.V1alpha1PodCertificateRequestList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -316,6 +318,256 @@ public okhttp3.Call executeAsync(final ApiCallback _ public APIcreateClusterTrustBundleRequest createClusterTrustBundle(@jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { return new APIcreateClusterTrustBundleRequest(body); } + private okhttp3.Call createNamespacedPodCertificateRequestCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/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 (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 createNamespacedPodCertificateRequestValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body, @jakarta.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 createNamespacedPodCertificateRequestWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest 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 createNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body, @jakarta.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 = createNamespacedPodCertificateRequestValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedPodCertificateRequestRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha1PodCertificateRequest body; + @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 APIcreateNamespacedPodCertificateRequestRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest 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 APIcreateNamespacedPodCertificateRequestRequest + */ + public APIcreateNamespacedPodCertificateRequestRequest 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 APIcreateNamespacedPodCertificateRequestRequest + */ + public APIcreateNamespacedPodCertificateRequestRequest 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 APIcreateNamespacedPodCertificateRequestRequest + */ + public APIcreateNamespacedPodCertificateRequestRequest 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 APIcreateNamespacedPodCertificateRequestRequest + */ + 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 V1alpha1PodCertificateRequest + * @throws ApiException If fail to call the API, 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 V1alpha1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = createNamespacedPodCertificateRequestWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedPodCertificateRequest request with HTTP info returned + * @return ApiResponse<V1alpha1PodCertificateRequest> + * @throws ApiException If fail to call the API, 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 V1alpha1PodCertificateRequest body) { + return new APIcreateNamespacedPodCertificateRequestRequest(namespace, body); + } private okhttp3.Call deleteClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -989,7 +1241,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionClusterTrustBundleRequest deleteCollectionClusterTrustBundle() { return new APIdeleteCollectionClusterTrustBundleRequest(); } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + 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 Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1003,10 +1255,11 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/"; + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1014,184 +1267,44 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api 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); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } - 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); + 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)); + } - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIgetAPIResourcesRequest { - - private APIgetAPIResourcesRequest() { - } - - /** - * Build call for getAPIResources - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); - } - - /** - * Execute getAPIResources request - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); - } - - /** - * Execute getAPIResources request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); - } - } - - /** - * - * get available resources - * @return APIgetAPIResourcesRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); - } - private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/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 (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } if (resourceVersion != null) { @@ -1210,18 +1323,11 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str 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) { @@ -1229,6 +1335,7 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1236,44 +1343,59 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str } 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 listClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private 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 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, timeoutSeconds, body, _callback); } - private ApiResponse listClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 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, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + 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 Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistClusterTrustBundleRequest { + public class APIdeleteCollectionNamespacedPodCertificateRequestRequest { + @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 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; @@ -1282,57 +1404,78 @@ public class APIlistClusterTrustBundleRequest { @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable - private Boolean watch; + private V1DeleteOptions body; - private APIlistClusterTrustBundleRequest() { + 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 APIlistClusterTrustBundleRequest + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest */ - public APIlistClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 + * 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 APIlistClusterTrustBundleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; + public APIdeleteCollectionNamespacedPodCertificateRequestRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; 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 + * 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 APIlistClusterTrustBundleRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; + 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 APIlistClusterTrustBundleRequest + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest */ - public APIlistClusterTrustBundleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + 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 APIlistClusterTrustBundleRequest + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest */ - public APIlistClusterTrustBundleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionNamespacedPodCertificateRequestRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1340,19 +1483,39 @@ public APIlistClusterTrustBundleRequest labelSelector(@jakarta.annotation.Nullab /** * 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 + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest */ - public APIlistClusterTrustBundleRequest limit(@jakarta.annotation.Nullable Integer limit) { + 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 APIlistClusterTrustBundleRequest + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest */ - public APIlistClusterTrustBundleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionNamespacedPodCertificateRequestRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1360,9 +1523,9 @@ public APIlistClusterTrustBundleRequest resourceVersion(@jakarta.annotation.Null /** * 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 + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest */ - public APIlistClusterTrustBundleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionNamespacedPodCertificateRequestRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1370,9 +1533,9 @@ public APIlistClusterTrustBundleRequest resourceVersionMatch(@jakarta.annotation /** * 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 + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest */ - public APIlistClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedPodCertificateRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1380,25 +1543,2854 @@ public APIlistClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nu /** * 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 + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest */ - public APIlistClusterTrustBundleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedPodCertificateRequestRequest 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 + * 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, 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, 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, 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, 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/v1alpha1/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/v1alpha1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { + } + + /** + * Build call for getAPIResources + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + } + + /** + * Execute getAPIResources request + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); + } + + /** + * Execute getAPIResources request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); + } + } + + /** + * + * get available resources + * @return APIgetAPIResourcesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); + } + private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistClusterTrustBundleRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistClusterTrustBundleRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listClusterTrustBundle + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listClusterTrustBundle request + * @return V1alpha1ClusterTrustBundleList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1ClusterTrustBundleList execute() throws ApiException { + ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1alpha1ClusterTrustBundleList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listClusterTrustBundle request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listClusterTrustBundleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ClusterTrustBundle + * @return APIlistClusterTrustBundleRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistClusterTrustBundleRequest listClusterTrustBundle() { + return new APIlistClusterTrustBundleRequest(); + } + private okhttp3.Call 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 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/v1alpha1/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 (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 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, 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 Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call 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 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, 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 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 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, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedPodCertificateRequest request + * @return V1alpha1PodCertificateRequestList + * @throws ApiException If fail to call the API, 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 V1alpha1PodCertificateRequestList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedPodCertificateRequest request with HTTP info returned + * @return ApiResponse<V1alpha1PodCertificateRequestList> + * @throws ApiException If fail to call the API, 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, 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, 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 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/v1alpha1/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 (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 Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPodCertificateRequestForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, 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 Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodCertificateRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call 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 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, 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 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 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, timeoutSeconds, watch, _callback); + } + + /** + * Execute listPodCertificateRequestForAllNamespaces request + * @return V1alpha1PodCertificateRequestList + * @throws ApiException If fail to call the API, 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 V1alpha1PodCertificateRequestList execute() throws ApiException { + ApiResponse localVarResp = listPodCertificateRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listPodCertificateRequestForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1alpha1PodCertificateRequestList> + * @throws ApiException If fail to call the API, 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, 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, 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 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/v1alpha1/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 V1alpha1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1ClusterTrustBundle 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<V1alpha1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
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/v1alpha1/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 V1alpha1PodCertificateRequest + * @throws ApiException If fail to call the API, 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 V1alpha1PodCertificateRequest 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<V1alpha1PodCertificateRequest> + * @throws ApiException If fail to call the API, 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/v1alpha1/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)); + } + + 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 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 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 APIpatchNamespacedPodCertificateRequestStatusRequest 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 APIpatchNamespacedPodCertificateRequestStatusRequest + */ + public APIpatchNamespacedPodCertificateRequestStatusRequest 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 APIpatchNamespacedPodCertificateRequestStatusRequest + */ + public APIpatchNamespacedPodCertificateRequestStatusRequest 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 APIpatchNamespacedPodCertificateRequestStatusRequest + */ + public APIpatchNamespacedPodCertificateRequestStatusRequest 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 APIpatchNamespacedPodCertificateRequestStatusRequest + */ + public APIpatchNamespacedPodCertificateRequestStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedPodCertificateRequestStatus + * @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 patchNamespacedPodCertificateRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedPodCertificateRequestStatus request + * @return V1alpha1PodCertificateRequest + * @throws ApiException If fail to call the API, 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 V1alpha1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedPodCertificateRequestStatus request with HTTP info returned + * @return ApiResponse<V1alpha1PodCertificateRequest> + * @throws ApiException If fail to call the API, 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 patchNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * 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 + * @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 patchNamespacedPodCertificateRequestStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * 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 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 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/v1alpha1/clustertrustbundles/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readClusterTrustBundle(Async)"); + } + + return readClusterTrustBundleCall(name, pretty, _callback); + + } + + + private ApiResponse readClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadClusterTrustBundleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadClusterTrustBundleRequest + */ + public APIreadClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readClusterTrustBundle + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readClusterTrustBundleCall(name, pretty, _callback); + } + + /** + * Execute readClusterTrustBundle request + * @return V1alpha1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1ClusterTrustBundle execute() throws ApiException { + ApiResponse localVarResp = readClusterTrustBundleWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * Execute readClusterTrustBundle request with HTTP info returned + * @return ApiResponse<V1alpha1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readClusterTrustBundleWithHttpInfo(name, pretty); + } + + /** + * Execute readClusterTrustBundle request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readClusterTrustBundleAsync(name, pretty, _callback); + } + } + + /** + * + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @return APIreadClusterTrustBundleRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadClusterTrustBundleRequest readClusterTrustBundle(@jakarta.annotation.Nonnull String name) { + return new APIreadClusterTrustBundleRequest(name); + } + private okhttp3.Call 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[] { }; + + // 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/v1alpha1/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)); + } + + 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 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 readNamespacedPodCertificateRequest(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodCertificateRequest(Async)"); + } + + return readNamespacedPodCertificateRequestCall(name, namespace, pretty, _callback); + + } + + + 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 readNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedPodCertificateRequestRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedPodCertificateRequestRequest(@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 APIreadNamespacedPodCertificateRequestRequest + */ + public APIreadNamespacedPodCertificateRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedPodCertificateRequest + * @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 readNamespacedPodCertificateRequestCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedPodCertificateRequest request + * @return V1alpha1PodCertificateRequest + * @throws ApiException If fail to call the API, 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 V1alpha1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodCertificateRequestWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedPodCertificateRequest request with HTTP info returned + * @return ApiResponse<V1alpha1PodCertificateRequest> + * @throws ApiException If fail to call the API, 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 readNamespacedPodCertificateRequestWithHttpInfo(name, namespace, pretty); + } + + /** + * 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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedPodCertificateRequestAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * 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 -
401 Unauthorized -
+ */ + public APIreadNamespacedPodCertificateRequestRequest readNamespacedPodCertificateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedPodCertificateRequestRequest(name, namespace); + } + 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[] { }; + + // 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/v1alpha1/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)); + } + + 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 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 readNamespacedPodCertificateRequestStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodCertificateRequestStatus(Async)"); + } + + return readNamespacedPodCertificateRequestStatusCall(name, namespace, pretty, _callback); + + } + + + 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 readNamespacedPodCertificateRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedPodCertificateRequestStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + 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 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 APIlistClusterTrustBundleRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIreadNamespacedPodCertificateRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; return this; } /** - * Build call for listClusterTrustBundle + * Build call for readNamespacedPodCertificateRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1411,12 +4403,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, timeoutSeconds, watch, _callback); + return readNamespacedPodCertificateRequestStatusCall(name, namespace, pretty, _callback); } /** - * Execute listClusterTrustBundle request - * @return V1alpha1ClusterTrustBundleList + * Execute readNamespacedPodCertificateRequestStatus request + * @return V1alpha1PodCertificateRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1426,14 +4418,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, timeoutSeconds, watch); + public V1alpha1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute listClusterTrustBundle request with HTTP info returned - * @return ApiResponse<V1alpha1ClusterTrustBundleList> + * Execute readNamespacedPodCertificateRequestStatus request with HTTP info returned + * @return ApiResponse<V1alpha1PodCertificateRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1443,12 +4435,12 @@ public V1alpha1ClusterTrustBundleList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, pretty); } /** - * Execute listClusterTrustBundle 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 @@ -1460,15 +4452,17 @@ 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, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedPodCertificateRequestStatusAsync(name, namespace, pretty, _callback); } } /** * - * list or watch objects of kind ClusterTrustBundle - * @return APIlistClusterTrustBundleRequest + * 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 @@ -1477,10 +4471,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistClusterTrustBundleRequest listClusterTrustBundle() { - return new APIlistClusterTrustBundleRequest(); + public APIreadNamespacedPodCertificateRequestStatusRequest readNamespacedPodCertificateRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedPodCertificateRequestStatusRequest(name, namespace); } - 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 replaceClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1522,10 +4516,6 @@ private okhttp3.Call patchClusterTrustBundleCall(@jakarta.annotation.Nonnull Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -1546,45 +4536,45 @@ 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, "PUT", 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 replaceClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchClusterTrustBundle(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 patchClusterTrustBundle(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceClusterTrustBundle(Async)"); } - return patchClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _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); + private ApiResponse replaceClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call 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 replaceClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + 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 APIpatchClusterTrustBundleRequest { + public class APIreplaceClusterTrustBundleRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1Patch body; + private final V1alpha1ClusterTrustBundle body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -1593,10 +4583,8 @@ public class APIpatchClusterTrustBundleRequest { 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 APIreplaceClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { this.name = name; this.body = body; } @@ -1604,9 +4592,9 @@ private APIpatchClusterTrustBundleRequest(@jakarta.annotation.Nonnull String nam /** * 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 APIreplaceClusterTrustBundleRequest */ - public APIpatchClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1614,19 +4602,19 @@ public APIpatchClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable Str /** * 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 + * @return APIreplaceClusterTrustBundleRequest */ - public APIpatchClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } /** * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchClusterTrustBundleRequest + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceClusterTrustBundleRequest */ - public APIpatchClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1634,25 +4622,15 @@ public APIpatchClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullab /** * 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 + * @return APIreplaceClusterTrustBundleRequest */ - public APIpatchClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceClusterTrustBundleRequest 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 replaceClusterTrustBundle * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1666,11 +4644,11 @@ public APIpatchClusterTrustBundleRequest force(@jakarta.annotation.Nullable Bool */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute patchClusterTrustBundle request + * Execute replaceClusterTrustBundle request * @return V1alpha1ClusterTrustBundle * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1683,12 +4661,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1alpha1ClusterTrustBundle execute() throws ApiException { - ApiResponse localVarResp = patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + ApiResponse localVarResp = replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute patchClusterTrustBundle request with HTTP info returned + * Execute replaceClusterTrustBundle request with HTTP info returned * @return ApiResponse<V1alpha1ClusterTrustBundle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1701,11 +4679,11 @@ public V1alpha1ClusterTrustBundle execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute patchClusterTrustBundle 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 @@ -1719,16 +4697,16 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchClusterTrustBundleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return replaceClusterTrustBundleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * partially update the specified ClusterTrustBundle + * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) - * @return APIpatchClusterTrustBundleRequest + * @return APIreplaceClusterTrustBundleRequest * @http.response.details @@ -1738,10 +4716,10 @@ public okhttp3.Call executeAsync(final ApiCallback _
Response Details
401 Unauthorized -
*/ - public APIpatchClusterTrustBundleRequest patchClusterTrustBundle(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchClusterTrustBundleRequest(name, body); + public APIreplaceClusterTrustBundleRequest replaceClusterTrustBundle(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { + return new APIreplaceClusterTrustBundleRequest(name, body); } - private okhttp3.Call readClusterTrustBundleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodCertificateRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body, @jakarta.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[] { }; @@ -1755,11 +4733,12 @@ 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}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1771,6 +4750,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", @@ -1783,6 +4774,7 @@ private okhttp3.Call readClusterTrustBundleCall(@jakarta.annotation.Nonnull Stri } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1790,57 +4782,109 @@ 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 replaceNamespacedPodCertificateRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body, @jakarta.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 replaceNamespacedPodCertificateRequest(Async)"); } - return readClusterTrustBundleCall(name, pretty, _callback); + // 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 replaceNamespacedPodCertificateRequest(Async)"); + } + + return replaceNamespacedPodCertificateRequestCall(name, namespace, 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 replaceNamespacedPodCertificateRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest 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 readClusterTrustBundleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body, @jakarta.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 = replaceNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadClusterTrustBundleRequest { + public class APIreplaceNamespacedPodCertificateRequestRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha1PodCertificateRequest body; @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 APIreplaceNamespacedPodCertificateRequestRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest 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 APIreadClusterTrustBundleRequest + * @return APIreplaceNamespacedPodCertificateRequestRequest */ - public APIreadClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceNamespacedPodCertificateRequestRequest 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 APIreplaceNamespacedPodCertificateRequestRequest + */ + public APIreplaceNamespacedPodCertificateRequestRequest 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 APIreplaceNamespacedPodCertificateRequestRequest + */ + public APIreplaceNamespacedPodCertificateRequestRequest 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 APIreplaceNamespacedPodCertificateRequestRequest + */ + public APIreplaceNamespacedPodCertificateRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedPodCertificateRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1849,48 +4893,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 replaceNamespacedPodCertificateRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readClusterTrustBundle request - * @return V1alpha1ClusterTrustBundle + * Execute replaceNamespacedPodCertificateRequest request + * @return V1alpha1PodCertificateRequest * @throws ApiException If fail to call the API, 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 V1alpha1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodCertificateRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readClusterTrustBundle request with HTTP info returned - * @return ApiResponse<V1alpha1ClusterTrustBundle> + * Execute replaceNamespacedPodCertificateRequest request with HTTP info returned + * @return ApiResponse<V1alpha1PodCertificateRequest> * @throws ApiException If fail to call the API, 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 replaceNamespacedPodCertificateRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readClusterTrustBundle 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 @@ -1899,31 +4946,35 @@ 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 replaceNamespacedPodCertificateRequestAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) - * @return APIreadClusterTrustBundleRequest + * 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 APIreplaceNamespacedPodCertificateRequestRequest * @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 APIreplaceNamespacedPodCertificateRequestRequest replaceNamespacedPodCertificateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body) { + return new APIreplaceNamespacedPodCertificateRequestRequest(name, namespace, 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 replaceNamespacedPodCertificateRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body, @jakarta.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[] { }; @@ -1940,8 +4991,9 @@ 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}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/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(); @@ -1989,41 +5041,48 @@ 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 replaceNamespacedPodCertificateRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body, @jakarta.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 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 replaceClusterTrustBundle(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodCertificateRequestStatus(Async)"); } - return replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceNamespacedPodCertificateRequestStatusCall(name, namespace, 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 replaceNamespacedPodCertificateRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest 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 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 replaceNamespacedPodCertificateRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body, @jakarta.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 = replaceNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceClusterTrustBundleRequest { + public class APIreplaceNamespacedPodCertificateRequestStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1alpha1ClusterTrustBundle body; + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha1PodCertificateRequest body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -2033,17 +5092,18 @@ public class APIreplaceClusterTrustBundleRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceClusterTrustBundleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1ClusterTrustBundle body) { + private APIreplaceNamespacedPodCertificateRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest 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 APIreplaceClusterTrustBundleRequest + * @return APIreplaceNamespacedPodCertificateRequestStatusRequest */ - public APIreplaceClusterTrustBundleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceNamespacedPodCertificateRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2051,9 +5111,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 APIreplaceNamespacedPodCertificateRequestStatusRequest */ - public APIreplaceClusterTrustBundleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceNamespacedPodCertificateRequestStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2061,9 +5121,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 APIreplaceNamespacedPodCertificateRequestStatusRequest */ - public APIreplaceClusterTrustBundleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceNamespacedPodCertificateRequestStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2071,15 +5131,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 APIreplaceNamespacedPodCertificateRequestStatusRequest */ - public APIreplaceClusterTrustBundleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceNamespacedPodCertificateRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceClusterTrustBundle + * Build call for replaceNamespacedPodCertificateRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2093,12 +5153,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 replaceNamespacedPodCertificateRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceClusterTrustBundle request - * @return V1alpha1ClusterTrustBundle + * Execute replaceNamespacedPodCertificateRequestStatus request + * @return V1alpha1PodCertificateRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2109,14 +5169,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 V1alpha1PodCertificateRequest execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceClusterTrustBundle request with HTTP info returned - * @return ApiResponse<V1alpha1ClusterTrustBundle> + * Execute replaceNamespacedPodCertificateRequestStatus request with HTTP info returned + * @return ApiResponse<V1alpha1PodCertificateRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2127,12 +5187,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 replaceNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceClusterTrustBundle 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 @@ -2145,17 +5205,18 @@ 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 replaceNamespacedPodCertificateRequestStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle (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 APIreplaceClusterTrustBundleRequest + * @return APIreplaceNamespacedPodCertificateRequestStatusRequest * @http.response.details @@ -2165,7 +5226,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 APIreplaceNamespacedPodCertificateRequestStatusRequest replaceNamespacedPodCertificateRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1PodCertificateRequest body) { + return new APIreplaceNamespacedPodCertificateRequestStatusRequest(name, namespace, body); } } 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 new file mode 100644 index 0000000000..2fba2a11db --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java @@ -0,0 +1,9513 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.ResourceV1ResourceClaim; +import io.kubernetes.client.openapi.models.V1APIResourceList; +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.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1ResourceClaimList; +import io.kubernetes.client.openapi.models.V1ResourceClaimTemplate; +import io.kubernetes.client.openapi.models.V1ResourceClaimTemplateList; +import io.kubernetes.client.openapi.models.V1ResourceSlice; +import io.kubernetes.client.openapi.models.V1ResourceSliceList; +import io.kubernetes.client.openapi.models.V1Status; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ResourceV1Api { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ResourceV1Api() { + this(Configuration.getDefaultApiClient()); + } + + public ResourceV1Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + private okhttp3.Call createDeviceClassCall(@jakarta.annotation.Nonnull 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[] { }; + + // 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"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull 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 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createDeviceClass(Async)"); + } + + return createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull 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 = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createDeviceClassAsync(@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 = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateDeviceClassRequest { + @jakarta.annotation.Nonnull + private final 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 APIcreateDeviceClassRequest(@jakarta.annotation.Nonnull V1DeviceClass body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateDeviceClassRequest + */ + public APIcreateDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateDeviceClassRequest + */ + public APIcreateDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateDeviceClassRequest + */ + public APIcreateDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateDeviceClassRequest + */ + public APIcreateDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createDeviceClass request + * @return 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 -
202 Accepted -
401 Unauthorized -
+ */ + public V1DeviceClass execute() throws ApiException { + ApiResponse localVarResp = createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createDeviceClass 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 -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createDeviceClassAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a DeviceClass + * @param body (required) + * @return APIcreateDeviceClassRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateDeviceClassRequest createDeviceClass(@jakarta.annotation.Nonnull V1DeviceClass body) { + return new APIcreateDeviceClassRequest(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 + 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" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull 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 { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaim(Async)"); + } + + return createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull 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 { + + okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final ResourceV1ResourceClaim body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body) { + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateNamespacedResourceClaimRequest + */ + public APIcreateNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateNamespacedResourceClaimRequest + */ + public APIcreateNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateNamespacedResourceClaimRequest + */ + public APIcreateNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateNamespacedResourceClaimRequest + */ + public APIcreateNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedResourceClaim request + * @return 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 -
202 Accepted -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedResourceClaim 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 -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createNamespacedResourceClaimAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedResourceClaimRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedResourceClaimRequest createNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body) { + return new APIcreateNamespacedResourceClaimRequest(namespace, body); + } + private okhttp3.Call createNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body, @jakarta.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/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaimTemplate(Async)"); + } + + return createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1ResourceClaimTemplate body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body) { + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateNamespacedResourceClaimTemplateRequest + */ + public APIcreateNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateNamespacedResourceClaimTemplateRequest + */ + public APIcreateNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateNamespacedResourceClaimTemplateRequest + */ + public APIcreateNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateNamespacedResourceClaimTemplateRequest + */ + public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedResourceClaimTemplate request + * @return 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 -
202 Accepted -
401 Unauthorized -
+ */ + public V1ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedResourceClaimTemplate 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 -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createNamespacedResourceClaimTemplateAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedResourceClaimTemplateRequest createNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body) { + return new APIcreateNamespacedResourceClaimTemplateRequest(namespace, body); + } + private okhttp3.Call createResourceSliceCall(@jakarta.annotation.Nonnull V1ResourceSlice body, @jakarta.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/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull V1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createResourceSlice(Async)"); + } + + return createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull V1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createResourceSliceAsync(@jakarta.annotation.Nonnull V1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateResourceSliceRequest { + @jakarta.annotation.Nonnull + private final V1ResourceSlice body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateResourceSliceRequest(@jakarta.annotation.Nonnull V1ResourceSlice body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateResourceSliceRequest + */ + public APIcreateResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateResourceSliceRequest + */ + public APIcreateResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateResourceSliceRequest + */ + public APIcreateResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateResourceSliceRequest + */ + public APIcreateResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createResourceSlice request + * @return 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 -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createResourceSlice 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 -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createResourceSliceAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @return APIcreateResourceSliceRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateResourceSliceRequest createResourceSlice(@jakarta.annotation.Nonnull V1ResourceSlice body) { + return new APIcreateResourceSliceRequest(body); + } + private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionDeviceClassRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionDeviceClassRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionDeviceClass request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionDeviceClass request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of DeviceClass + * @return APIdeleteCollectionDeviceClassRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionDeviceClassRequest deleteCollectionDeviceClass() { + return new APIdeleteCollectionDeviceClassRequest(); + } + private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); + } + + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedResourceClaim request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); + } + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + } + + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedResourceClaimTemplate request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); + } + private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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 (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionResourceSliceRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionResourceSliceRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionResourceSlice request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionResourceSlice request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ResourceSlice + * @return APIdeleteCollectionResourceSliceRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { + return new APIdeleteCollectionResourceSliceRequest(); + } + private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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 (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); + } + + return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteDeviceClassRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteDeviceClassRequest + */ + public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteDeviceClass request + * @return 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 -
202 Accepted -
401 Unauthorized -
+ */ + public V1DeviceClass execute() throws ApiException { + ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteDeviceClass request with HTTP info returned + * @return ApiResponse<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 -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteDeviceClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @return APIdeleteDeviceClassRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteDeviceClassRequest deleteDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceClassRequest(name); + } + private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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 (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); + } + + return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedResourceClaimRequest + */ + public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedResourceClaim request + * @return 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 -
202 Accepted -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<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 -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedResourceClaimRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimRequest(name, namespace); + } + private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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 (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedResourceClaimTemplate request + * @return 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 V1ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<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 deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimTemplateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); + } + private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + } + + return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteResourceSliceRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteResourceSliceRequest + */ + public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteResourceSlice request + * @return 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 V1ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteResourceSlice request with HTTP info returned + * @return ApiResponse<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 deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteResourceSliceAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @return APIdeleteResourceSliceRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteResourceSliceRequest deleteResourceSlice(@jakarta.annotation.Nonnull String name) { + return new APIdeleteResourceSliceRequest(name); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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 listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistDeviceClassRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistDeviceClassRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listDeviceClass request + * @return V1DeviceClassList + * @throws ApiException If fail to call the API, 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 V1DeviceClassList execute() throws ApiException { + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listDeviceClass request with HTTP info returned + * @return ApiResponse<V1DeviceClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind DeviceClass + * @return APIlistDeviceClassRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistDeviceClassRequest listDeviceClass() { + return new APIlistDeviceClassRequest(); + } + private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); + } + + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedResourceClaim request + * @return 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 = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<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 listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedResourceClaimRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedResourceClaimRequest(namespace); + } + private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); + } + + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedResourceClaimTemplate request + * @return 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, 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, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedResourceClaimTemplateRequest(namespace); + } + private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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 (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistResourceClaimForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistResourceClaimForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceClaimForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceClaimForAllNamespaces request + * @return 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, 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, timeoutSeconds, watch); + } + + /** + * Execute listResourceClaimForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaim + * @return APIlistResourceClaimForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { + return new APIlistResourceClaimForAllNamespacesRequest(); + } + private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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 (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistResourceClaimTemplateForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistResourceClaimTemplateForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceClaimTemplateForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request + * @return 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, 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, timeoutSeconds, watch); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceClaimTemplateForAllNamespacesRequest listResourceClaimTemplateForAllNamespaces() { + return new APIlistResourceClaimTemplateForAllNamespacesRequest(); + } + private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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 (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistResourceSliceRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistResourceSliceRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceSlice request + * @return 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, 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, timeoutSeconds, watch); + } + + /** + * Execute listResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceSlice + * @return APIlistResourceSliceRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceSliceRequest listResourceSlice() { + return new APIlistResourceSliceRequest(); + } + private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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 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 pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest + */ + public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedResourceClaimTemplate request + * @return 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 V1ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<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 patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedResourceClaimTemplateRequest patchNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedResourceClaimTemplateRequest(name, namespace, body); + } + private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); + } + + return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchResourceSliceRequest + */ + public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchResourceSlice request + * @return 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 -
201 Created -
401 Unauthorized -
+ */ + public V1ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchResourceSlice request with HTTP info returned + * @return ApiResponse<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 -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @return APIpatchResourceSliceRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchResourceSliceRequest patchResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchResourceSliceRequest(name, body); + } + private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); + } + + return readDeviceClassCall(name, pretty, _callback); + + } + + + private ApiResponse readDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadDeviceClassRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadDeviceClassRequest + */ + public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readDeviceClassCall(name, pretty, _callback); + } + + /** + * Execute readDeviceClass request + * @return 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 -
401 Unauthorized -
+ */ + public V1DeviceClass execute() throws ApiException { + ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * 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 -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceClassWithHttpInfo(name, pretty); + } + + /** + * Execute readDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceClassAsync(name, pretty, _callback); + } + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @return APIreadDeviceClassRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadDeviceClassRequest readDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceClassRequest(name); + } + private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); + } + + return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedResourceClaimRequest + */ + public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedResourceClaim request + * @return 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 -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * 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 -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedResourceClaimRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimRequest(name, namespace); + } + private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); + } + + return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedResourceClaimStatusRequest + */ + public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedResourceClaimStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedResourceClaimStatus request + * @return 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 -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * 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 + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedResourceClaimStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimStatusAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedResourceClaimStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimStatusRequest(name, namespace); + } + private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/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)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); + } + + return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedResourceClaimTemplateRequest + */ + public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedResourceClaimTemplate request + * @return 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 -
401 Unauthorized -
+ */ + public V1ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * 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 + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimTemplateAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimTemplateRequest(name, namespace); + } + private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); + } + + return readResourceSliceCall(name, pretty, _callback); + + } + + + private ApiResponse readResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadResourceSliceRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadResourceSliceRequest + */ + public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readResourceSliceCall(name, pretty, _callback); + } + + /** + * Execute readResourceSlice request + * @return 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 -
401 Unauthorized -
+ */ + public V1ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * 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 + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readResourceSliceWithHttpInfo(name, pretty); + } + + /** + * Execute readResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readResourceSliceAsync(name, pretty, _callback); + } + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @return APIreadResourceSliceRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadResourceSliceRequest readResourceSlice(@jakarta.annotation.Nonnull String name) { + return new APIreadResourceSliceRequest(name); + } + private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull 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[] { }; + + // 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)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull 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 replaceDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); + } + + return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull 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 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 = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final 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 APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceDeviceClass request + * @return 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 = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * 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 replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @return APIreplaceDeviceClassRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceDeviceClassRequest replaceDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1DeviceClass body) { + return new APIreplaceDeviceClassRequest(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; + // 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)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull 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 { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaim(Async)"); + } + + return replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull 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 { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final ResourceV1ResourceClaim body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedResourceClaimRequest + */ + public APIreplaceNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedResourceClaimRequest + */ + public APIreplaceNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedResourceClaimRequest + */ + public APIreplaceNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedResourceClaimRequest + */ + public APIreplaceNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedResourceClaim request + * @return 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 = replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedResourceClaim 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 replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedResourceClaimRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedResourceClaimRequest replaceNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body) { + return new APIreplaceNamespacedResourceClaimRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedResourceClaimStatusCall(@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; + // 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)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull 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 { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimStatus(Async)"); + } + + return replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull 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 { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final ResourceV1ResourceClaim body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedResourceClaimStatusRequest + */ + public APIreplaceNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedResourceClaimStatusRequest + */ + public APIreplaceNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedResourceClaimStatusRequest + */ + public APIreplaceNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedResourceClaimStatusRequest + */ + public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedResourceClaimStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedResourceClaimStatus request + * @return 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 = replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedResourceClaimStatus 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 replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedResourceClaimStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedResourceClaimStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedResourceClaimStatusRequest replaceNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull ResourceV1ResourceClaim body) { + return new APIreplaceNamespacedResourceClaimStatusRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body, @jakarta.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/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimTemplate(Async)"); + } + + return replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1ResourceClaimTemplate body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + */ + public APIreplaceNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + */ + public APIreplaceNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + */ + public APIreplaceNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + */ + public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedResourceClaimTemplate + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedResourceClaimTemplate request + * @return 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 V1ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<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 replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedResourceClaimTemplate request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedResourceClaimTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedResourceClaimTemplateRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedResourceClaimTemplateRequest replaceNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ResourceClaimTemplate body) { + return new APIreplaceNamespacedResourceClaimTemplateRequest(name, namespace, body); + } + private okhttp3.Call replaceResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ResourceSlice body, @jakarta.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/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceResourceSlice(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceResourceSlice(Async)"); + } + + return replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1ResourceSlice body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ResourceSlice body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceResourceSliceRequest + */ + public APIreplaceResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceResourceSliceRequest + */ + public APIreplaceResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceResourceSliceRequest + */ + public APIreplaceResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceResourceSliceRequest + */ + public APIreplaceResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceResourceSlice request + * @return 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 -
201 Created -
401 Unauthorized -
+ */ + public V1ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceResourceSlice 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 -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @return APIreplaceResourceSliceRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceResourceSliceRequest replaceResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ResourceSlice body) { + return new APIreplaceResourceSliceRequest(name, body); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java index 823eabab3f..ab0066c324 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java @@ -30,16 +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.V1alpha3DeviceClass; -import io.kubernetes.client.openapi.models.V1alpha3DeviceClassList; import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule; import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleList; -import io.kubernetes.client.openapi.models.V1alpha3ResourceClaim; -import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimList; -import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplate; -import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimTemplateList; -import io.kubernetes.client.openapi.models.V1alpha3ResourceSlice; -import io.kubernetes.client.openapi.models.V1alpha3ResourceSliceList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -84,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createDeviceClassCall(@jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceTaintRuleCall(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -101,7 +93,7 @@ private okhttp3.Call createDeviceClassCall(@jakarta.annotation.Nonnull V1alpha3D Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -149,34 +141,34 @@ private okhttp3.Call createDeviceClassCall(@jakarta.annotation.Nonnull V1alpha3D } @SuppressWarnings("rawtypes") - private okhttp3.Call createDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createDeviceTaintRule(Async)"); } - return createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse createDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createDeviceClassAsync(@jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceTaintRuleAsync(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateDeviceClassRequest { + public class APIcreateDeviceTaintRuleRequest { @jakarta.annotation.Nonnull - private final V1alpha3DeviceClass body; + private final V1alpha3DeviceTaintRule body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -186,16 +178,16 @@ public class APIcreateDeviceClassRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateDeviceClassRequest(@jakarta.annotation.Nonnull V1alpha3DeviceClass body) { + private APIcreateDeviceTaintRuleRequest(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateDeviceClassRequest + * @return APIcreateDeviceTaintRuleRequest */ - public APIcreateDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -203,9 +195,9 @@ public APIcreateDeviceClassRequest 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 APIcreateDeviceClassRequest + * @return APIcreateDeviceTaintRuleRequest */ - public APIcreateDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -213,9 +205,9 @@ public APIcreateDeviceClassRequest 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 APIcreateDeviceClassRequest + * @return APIcreateDeviceTaintRuleRequest */ - public APIcreateDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -223,15 +215,15 @@ public APIcreateDeviceClassRequest 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 APIcreateDeviceClassRequest + * @return APIcreateDeviceTaintRuleRequest */ - public APIcreateDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createDeviceClass + * Build call for createDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -246,12 +238,12 @@ public APIcreateDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createDeviceClass request - * @return V1alpha3DeviceClass + * Execute createDeviceTaintRule request + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -263,14 +255,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha3DeviceClass execute() throws ApiException { - ApiResponse localVarResp = createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createDeviceClass request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceClass> + * Execute createDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -282,12 +274,12 @@ public V1alpha3DeviceClass execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createDeviceClass request (asynchronously) + * 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 @@ -301,16 +293,16 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createDeviceClassAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createDeviceTaintRuleAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a DeviceClass + * create a DeviceTaintRule * @param body (required) - * @return APIcreateDeviceClassRequest + * @return APIcreateDeviceTaintRuleRequest * @http.response.details @@ -321,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac
Response Details
401 Unauthorized -
*/ - public APIcreateDeviceClassRequest createDeviceClass(@jakarta.annotation.Nonnull V1alpha3DeviceClass body) { - return new APIcreateDeviceClassRequest(body); + public APIcreateDeviceTaintRuleRequest createDeviceTaintRule(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + return new APIcreateDeviceTaintRuleRequest(body); } - private okhttp3.Call createDeviceTaintRuleCall(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -353,16 +345,56 @@ private okhttp3.Call createDeviceTaintRuleCall(@jakarta.annotation.Nonnull V1alp 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 (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } final String[] localVarAccepts = { @@ -385,342 +417,217 @@ private okhttp3.Call createDeviceTaintRuleCall(@jakarta.annotation.Nonnull V1alp } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", 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 createDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createDeviceTaintRule(Async)"); - } - - return createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + private okhttp3.Call deleteCollectionDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse createDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteCollectionDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createDeviceTaintRuleAsync(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateDeviceTaintRuleRequest { - @jakarta.annotation.Nonnull - private final V1alpha3DeviceTaintRule body; + public class APIdeleteCollectionDeviceTaintRuleRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable private String dryRun; @jakarta.annotation.Nullable - private String fieldManager; + private String fieldSelector; @jakarta.annotation.Nullable - private String fieldValidation; + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; - private APIcreateDeviceTaintRuleRequest(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { - this.body = body; + 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 APIcreateDeviceTaintRuleRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIcreateDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest + */ + public APIdeleteCollectionDeviceTaintRuleRequest _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 APIcreateDeviceTaintRuleRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIcreateDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionDeviceTaintRuleRequest 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 + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIcreateDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; + public APIdeleteCollectionDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; 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 + * 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 APIdeleteCollectionDeviceTaintRuleRequest */ - public APIcreateDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; + public APIdeleteCollectionDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; 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 -
+ * 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 APIdeleteCollectionDeviceTaintRuleRequest */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public APIdeleteCollectionDeviceTaintRuleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; } /** - * Execute createDeviceTaintRule request - * @return V1alpha3DeviceTaintRule - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); + public APIdeleteCollectionDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; } /** - * Execute createDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ * 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 APIdeleteCollectionDeviceTaintRuleRequest */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public APIdeleteCollectionDeviceTaintRuleRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; } /** - * 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 -
+ * 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 APIdeleteCollectionDeviceTaintRuleRequest */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createDeviceTaintRuleAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * create a DeviceTaintRule - * @param body (required) - * @return APIcreateDeviceTaintRuleRequest - * @http.response.details - - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public APIcreateDeviceTaintRuleRequest createDeviceTaintRule(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { - return new APIcreateDeviceTaintRuleRequest(body); - } - private okhttp3.Call createNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaim(Async)"); + public APIdeleteCollectionDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaim(Async)"); + /** + * 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 APIdeleteCollectionDeviceTaintRuleRequest + */ + public APIdeleteCollectionDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; } - return createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private ApiResponse createNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call createNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIcreateNamespacedResourceClaimRequest { - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1alpha3ResourceClaim body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - - private APIcreateNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { - this.namespace = namespace; - this.body = body; + /** + * 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 APIdeleteCollectionDeviceTaintRuleRequest + */ + public APIdeleteCollectionDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + 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 APIcreateNamespacedResourceClaimRequest + * 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 APIdeleteCollectionDeviceTaintRuleRequest */ - public APIcreateNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; + public APIdeleteCollectionDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateNamespacedResourceClaimRequest + * 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 APIdeleteCollectionDeviceTaintRuleRequest */ - public APIcreateNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; + public APIdeleteCollectionDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; return this; } /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateNamespacedResourceClaimRequest + * 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 APIdeleteCollectionDeviceTaintRuleRequest */ - public APIcreateNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; + public APIdeleteCollectionDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateNamespacedResourceClaimRequest + * Set body + * @param body (optional) + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIcreateNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; + public APIdeleteCollectionDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; return this; } /** - * Build call for createNamespacedResourceClaim + * Build call for deleteCollectionDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -729,54 +636,48 @@ public APIcreateNamespacedResourceClaimRequest fieldValidation(@jakarta.annotati Response Details Status Code Description Response Headers 200 OK - - 201 Created - - 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute createNamespacedResourceClaim request - * @return V1alpha3ResourceClaim + * Execute deleteCollectionDeviceTaintRule request + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute createNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaim> + * Execute deleteCollectionDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute createNamespacedResourceClaim 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 @@ -785,36 +686,30 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Response Details Status Code Description Response Headers 200 OK - - 201 Created - - 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createNamespacedResourceClaimAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceTaintRuleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIcreateNamespacedResourceClaimRequest + * delete collection of DeviceTaintRule + * @return APIdeleteCollectionDeviceTaintRuleRequest * @http.response.details - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public APIcreateNamespacedResourceClaimRequest createNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { - return new APIcreateNamespacedResourceClaimRequest(namespace, body); + public APIdeleteCollectionDeviceTaintRuleRequest deleteCollectionDeviceTaintRule() { + return new APIdeleteCollectionDeviceTaintRuleRequest(); } - private okhttp3.Call createNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -831,8 +726,8 @@ private okhttp3.Call createNamespacedResourceClaimTemplateCall(@jakarta.annotati Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -848,12 +743,20 @@ private okhttp3.Call createNamespacedResourceClaimTemplateCall(@jakarta.annotati localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + 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 = { @@ -876,65 +779,63 @@ private okhttp3.Call createNamespacedResourceClaimTemplateCall(@jakarta.annotati } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", 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 createNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaimTemplate(Async)"); + 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 deleteDeviceTaintRule(Async)"); } - return createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 createNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + 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 = createNamespacedResourceClaimTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _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 APIcreateNamespacedResourceClaimTemplateRequest { - @jakarta.annotation.Nonnull - private final String namespace; + public class APIdeleteDeviceTaintRuleRequest { @jakarta.annotation.Nonnull - private final V1alpha3ResourceClaimTemplate body; + private final String name; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable private String dryRun; @jakarta.annotation.Nullable - private String fieldManager; + private Integer gracePeriodSeconds; @jakarta.annotation.Nullable - private String fieldValidation; + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; - private APIcreateNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body) { - this.namespace = namespace; - this.body = body; + private APIdeleteDeviceTaintRuleRequest(@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 APIcreateNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -942,35 +843,65 @@ public APIcreateNamespacedResourceClaimTemplateRequest 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 APIcreateNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateNamespacedResourceClaimTemplateRequest - */ - public APIcreateNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; + * 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 APIdeleteDeviceTaintRuleRequest + */ + public APIdeleteDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateNamespacedResourceClaimTemplateRequest + * 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 APIdeleteDeviceTaintRuleRequest */ - public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; + public APIdeleteDeviceTaintRuleRequest 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 APIdeleteDeviceTaintRuleRequest + */ + public APIdeleteDeviceTaintRuleRequest 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 APIdeleteDeviceTaintRuleRequest + */ + public APIdeleteDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteDeviceTaintRuleRequest + */ + public APIdeleteDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; return this; } /** - * Build call for createNamespacedResourceClaimTemplate + * Build call for deleteDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -979,54 +910,51 @@ public APIcreateNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta. Response Details Status Code Description Response Headers 200 OK - - 201 Created - 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute createNamespacedResourceClaimTemplate request - * @return V1alpha3ResourceClaimTemplate + * Execute deleteDeviceTaintRule request + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute createNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * Execute deleteDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute createNamespacedResourceClaimTemplate 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 @@ -1035,36 +963,33 @@ public ApiResponse executeWithHttpInfo() throws A Response Details Status Code Description Response Headers 200 OK - - 201 Created - 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createNamespacedResourceClaimTemplateAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteDeviceTaintRuleAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIcreateNamespacedResourceClaimTemplateRequest + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIdeleteDeviceTaintRuleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public APIcreateNamespacedResourceClaimTemplateRequest createNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body) { - return new APIcreateNamespacedResourceClaimTemplateRequest(namespace, body); + public APIdeleteDeviceTaintRuleRequest deleteDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceTaintRuleRequest(name); } - private okhttp3.Call createResourceSliceCall(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1078,10 +1003,10 @@ private okhttp3.Call createResourceSliceCall(@jakarta.annotation.Nonnull V1alpha basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; + String localVarPath = "/apis/resource.k8s.io/v1alpha3/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1089,22 +1014,6 @@ private okhttp3.Call createResourceSliceCall(@jakarta.annotation.Nonnull V1alpha 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", @@ -1117,7 +1026,6 @@ private okhttp3.Call createResourceSliceCall(@jakarta.annotation.Nonnull V1alpha } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1125,93 +1033,37 @@ private okhttp3.Call createResourceSliceCall(@jakarta.annotation.Nonnull V1alpha } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", 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 createResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createResourceSlice(Async)"); - } - - return createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); } - private ApiResponse createResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createResourceSliceAsync(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _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 APIcreateResourceSliceRequest { - @jakarta.annotation.Nonnull - private final V1alpha3ResourceSlice body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - - private APIcreateResourceSliceRequest(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body) { - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateResourceSliceRequest - */ - public APIcreateResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateResourceSliceRequest - */ - public APIcreateResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateResourceSliceRequest - */ - public APIcreateResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } + public class APIgetAPIResourcesRequest { - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateResourceSliceRequest - */ - public APIcreateResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; + private APIgetAPIResourcesRequest() { } /** - * Build call for createResourceSlice + * Build call for getAPIResources * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1220,54 +1072,48 @@ public APIcreateResourceSliceRequest fieldValidation(@jakarta.annotation.Nullabl Response Details Status Code Description Response Headers 200 OK - - 201 Created - - 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return getAPIResourcesCall(_callback); } /** - * Execute createResourceSlice request - * @return V1alpha3ResourceSlice + * 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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); return localVarResp.getData(); } /** - * Execute createResourceSlice request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceSlice> + * 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 -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); } /** - * Execute createResourceSlice 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 @@ -1276,35 +1122,30 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Response Details Status Code Description Response Headers 200 OK - - 201 Created - - 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createResourceSliceAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); } } /** * - * create a ResourceSlice - * @param body (required) - * @return APIcreateResourceSliceRequest + * get available resources + * @return APIgetAPIResourcesRequest * @http.response.details - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public APIcreateResourceSliceRequest createResourceSlice(@jakarta.annotation.Nonnull V1alpha3ResourceSlice body) { - return new APIcreateResourceSliceRequest(body); + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); } - private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1318,10 +1159,10 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1333,26 +1174,18 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } 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)); } @@ -1361,14 +1194,6 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl 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)); } @@ -1385,11 +1210,18 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl 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) { @@ -1397,7 +1229,6 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1405,52 +1236,44 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", 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 deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call listDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionDeviceClassRequest { + public class APIlistDeviceTaintRuleRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private String _continue; + private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable - private String dryRun; + private String _continue; @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; @@ -1459,77 +1282,57 @@ public class APIdeleteCollectionDeviceClassRequest { @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private Boolean watch; - private APIdeleteCollectionDeviceClassRequest() { + 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 APIdeleteCollectionDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIdeleteCollectionDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + 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 APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIdeleteCollectionDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistDeviceTaintRuleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionDeviceClassRequest - */ - public APIdeleteCollectionDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIdeleteCollectionDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionDeviceClassRequest - */ - public APIdeleteCollectionDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionDeviceClassRequest - */ - public APIdeleteCollectionDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIdeleteCollectionDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1537,9073 +1340,65 @@ public APIdeleteCollectionDeviceClassRequest 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 APIdeleteCollectionDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIdeleteCollectionDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistDeviceTaintRuleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionDeviceClassRequest - */ - public APIdeleteCollectionDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionDeviceClassRequest - */ - public APIdeleteCollectionDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionDeviceClassRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIdeleteCollectionDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionDeviceClassRequest - */ - public APIdeleteCollectionDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionDeviceClassRequest - */ - public APIdeleteCollectionDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionDeviceClassRequest - */ - public APIdeleteCollectionDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionDeviceClassRequest - */ - public APIdeleteCollectionDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteCollectionDeviceClass - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - - /** - * Execute deleteCollectionDeviceClass request - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * Execute deleteCollectionDeviceClass request with HTTP info returned - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - } - - /** - * Execute deleteCollectionDeviceClass request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - } - - /** - * - * delete collection of DeviceClass - * @return APIdeleteCollectionDeviceClassRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIdeleteCollectionDeviceClassRequest deleteCollectionDeviceClass() { - return new APIdeleteCollectionDeviceClassRequest(); - } - private okhttp3.Call deleteCollectionDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - - } - - - private ApiResponse deleteCollectionDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteCollectionDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteCollectionDeviceTaintRuleRequest { - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest _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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest 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 APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionDeviceTaintRuleRequest - */ - public APIdeleteCollectionDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteCollectionDeviceTaintRule - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - - /** - * Execute deleteCollectionDeviceTaintRule request - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * Execute deleteCollectionDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - } - - /** - * Execute deleteCollectionDeviceTaintRule request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceTaintRuleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - } - - /** - * - * delete collection of DeviceTaintRule - * @return APIdeleteCollectionDeviceTaintRuleRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIdeleteCollectionDeviceTaintRuleRequest deleteCollectionDeviceTaintRule() { - return new APIdeleteCollectionDeviceTaintRuleRequest(); - } - private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); - } - - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - - } - - - private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteCollectionNamespacedResourceClaimRequest { - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteCollectionNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - */ - public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteCollectionNamespacedResourceClaim - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - - /** - * Execute deleteCollectionNamespacedResourceClaim request - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * Execute deleteCollectionNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - } - - /** - * Execute deleteCollectionNamespacedResourceClaim request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - } - - /** - * - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteCollectionNamespacedResourceClaimRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { - return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); - } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); - } - - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - - } - - - private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteCollectionNamespacedResourceClaimTemplate - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - - /** - * Execute deleteCollectionNamespacedResourceClaimTemplate request - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * Execute deleteCollectionNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - } - - /** - * Execute deleteCollectionNamespacedResourceClaimTemplate request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - } - - /** - * - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { - return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); - } - private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - - } - - - private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteCollectionResourceSliceRequest { - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteCollectionResourceSliceRequest() { - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionResourceSliceRequest - */ - public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteCollectionResourceSlice - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - - /** - * Execute deleteCollectionResourceSlice request - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * Execute deleteCollectionResourceSlice request with HTTP info returned - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - } - - /** - * Execute deleteCollectionResourceSlice request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - } - - /** - * - * delete collection of ResourceSlice - * @return APIdeleteCollectionResourceSliceRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { - return new APIdeleteCollectionResourceSliceRequest(); - } - private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); - } - - return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - - } - - - private ApiResponse deleteDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteDeviceClassRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteDeviceClassRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteDeviceClassRequest - */ - public APIdeleteDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteDeviceClassRequest - */ - public APIdeleteDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteDeviceClassRequest - */ - public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteDeviceClassRequest - */ - public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteDeviceClassRequest - */ - public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteDeviceClassRequest - */ - public APIdeleteDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteDeviceClassRequest - */ - public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteDeviceClass - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - - /** - * Execute deleteDeviceClass request - * @return V1alpha3DeviceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3DeviceClass execute() throws ApiException { - ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * Execute deleteDeviceClass request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - } - - /** - * Execute deleteDeviceClass request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteDeviceClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - } - - /** - * - * delete a DeviceClass - * @param name name of the DeviceClass (required) - * @return APIdeleteDeviceClassRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public APIdeleteDeviceClassRequest deleteDeviceClass(@jakarta.annotation.Nonnull String name) { - return new APIdeleteDeviceClassRequest(name); - } - private okhttp3.Call 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[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (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 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 deleteDeviceTaintRule(Async)"); - } - - return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - - } - - - 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 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 = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteDeviceTaintRuleRequest { - @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 APIdeleteDeviceTaintRuleRequest(@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 APIdeleteDeviceTaintRuleRequest - */ - public APIdeleteDeviceTaintRuleRequest 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 APIdeleteDeviceTaintRuleRequest - */ - public APIdeleteDeviceTaintRuleRequest 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 APIdeleteDeviceTaintRuleRequest - */ - public APIdeleteDeviceTaintRuleRequest 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 APIdeleteDeviceTaintRuleRequest - */ - public APIdeleteDeviceTaintRuleRequest 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 APIdeleteDeviceTaintRuleRequest - */ - public APIdeleteDeviceTaintRuleRequest 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 APIdeleteDeviceTaintRuleRequest - */ - public APIdeleteDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteDeviceTaintRuleRequest - */ - public APIdeleteDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteDeviceTaintRule - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - - /** - * Execute deleteDeviceTaintRule request - * @return V1alpha3DeviceTaintRule - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * Execute deleteDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - } - - /** - * Execute deleteDeviceTaintRule request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteDeviceTaintRuleAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - } - - /** - * - * delete a DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @return APIdeleteDeviceTaintRuleRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public APIdeleteDeviceTaintRuleRequest deleteDeviceTaintRule(@jakarta.annotation.Nonnull String name) { - return new APIdeleteDeviceTaintRuleRequest(name); - } - private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); - } - - return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - - } - - - private ApiResponse deleteNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteNamespacedResourceClaimRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - this.name = name; - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteNamespacedResourceClaimRequest - */ - public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteNamespacedResourceClaimRequest - */ - public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteNamespacedResourceClaimRequest - */ - public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteNamespacedResourceClaimRequest - */ - public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteNamespacedResourceClaimRequest - */ - public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteNamespacedResourceClaimRequest - */ - public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteNamespacedResourceClaimRequest - */ - public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteNamespacedResourceClaim - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - - /** - * Execute deleteNamespacedResourceClaim request - * @return V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * Execute deleteNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - } - - /** - * Execute deleteNamespacedResourceClaim request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - } - - /** - * - * delete a ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedResourceClaimRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIdeleteNamespacedResourceClaimRequest(name, namespace); - } - private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); - } - - return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - - } - - - private ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteNamespacedResourceClaimTemplateRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - this.name = name; - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest - */ - public APIdeleteNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest - */ - public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest - */ - public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest - */ - public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest - */ - public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest - */ - public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest - */ - public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteNamespacedResourceClaimTemplate - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - - /** - * Execute deleteNamespacedResourceClaimTemplate request - * @return V1alpha3ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * Execute deleteNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - } - - /** - * Execute deleteNamespacedResourceClaimTemplate request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimTemplateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - } - - /** - * - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedResourceClaimTemplateRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); - } - private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); - } - - return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - - } - - - private ApiResponse deleteResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteResourceSliceRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteResourceSliceRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteResourceSliceRequest - */ - public APIdeleteResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteResourceSliceRequest - */ - public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteResourceSliceRequest - */ - public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteResourceSliceRequest - */ - public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteResourceSliceRequest - */ - public APIdeleteResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteResourceSliceRequest - */ - public APIdeleteResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteResourceSliceRequest - */ - public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteResourceSlice - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - - /** - * Execute deleteResourceSlice request - * @return V1alpha3ResourceSlice - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * Execute deleteResourceSlice request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceSlice> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - } - - /** - * Execute deleteResourceSlice request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteResourceSliceAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - } - - /** - * - * delete a ResourceSlice - * @param name name of the ResourceSlice (required) - * @return APIdeleteResourceSliceRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public APIdeleteResourceSliceRequest deleteResourceSlice(@jakarta.annotation.Nonnull String name) { - return new APIdeleteResourceSliceRequest(name); - } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); - - } - - - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIgetAPIResourcesRequest { - - private APIgetAPIResourcesRequest() { - } - - /** - * Build call for getAPIResources - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); - } - - /** - * Execute getAPIResources request - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); - } - - /** - * Execute getAPIResources request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); - } - } - - /** - * - * get available resources - * @return APIgetAPIResourcesRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); - } - private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - } - - - private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIlistDeviceClassRequest { - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistDeviceClassRequest() { - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistDeviceClassRequest - */ - public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listDeviceClass - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - - /** - * Execute listDeviceClass request - * @return V1alpha3DeviceClassList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3DeviceClassList execute() throws ApiException { - ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listDeviceClass request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceClassList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - } - - /** - * Execute listDeviceClass request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind DeviceClass - * @return APIlistDeviceClassRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistDeviceClassRequest listDeviceClass() { - return new APIlistDeviceClassRequest(); - } - private okhttp3.Call listDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/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 (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - } - - - private ApiResponse listDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call listDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIlistDeviceTaintRuleRequest { - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private 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 APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest 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 APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest _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 APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest 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 APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest 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 APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest 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 APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest 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 APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest 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 APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest 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 APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listDeviceTaintRule - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - - /** - * Execute listDeviceTaintRule request - * @return V1alpha3DeviceTaintRuleList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRuleList execute() throws ApiException { - ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRuleList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - } - - /** - * Execute listDeviceTaintRule request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDeviceTaintRuleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind DeviceTaintRule - * @return APIlistDeviceTaintRuleRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistDeviceTaintRuleRequest listDeviceTaintRule() { - return new APIlistDeviceTaintRuleRequest(); - } - private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); - } - - return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - } - - - private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIlistNamespacedResourceClaimRequest { - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistNamespacedResourceClaimRequest - */ - public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listNamespacedResourceClaim - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - - /** - * Execute listNamespacedResourceClaim request - * @return V1alpha3ResourceClaimList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - } - - /** - * Execute listNamespacedResourceClaim request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIlistNamespacedResourceClaimRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { - return new APIlistNamespacedResourceClaimRequest(namespace); - } - private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); - } - - return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - } - - - private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIlistNamespacedResourceClaimTemplateRequest { - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest - */ - public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listNamespacedResourceClaimTemplate - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - - /** - * Execute listNamespacedResourceClaimTemplate request - * @return V1alpha3ResourceClaimTemplateList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimTemplateList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - } - - /** - * Execute listNamespacedResourceClaimTemplate request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIlistNamespacedResourceClaimTemplateRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { - return new APIlistNamespacedResourceClaimTemplateRequest(namespace); - } - private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceclaims"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - } - - - private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIlistResourceClaimForAllNamespacesRequest { - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistResourceClaimForAllNamespacesRequest() { - } - - /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listResourceClaimForAllNamespaces - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - - /** - * Execute listResourceClaimForAllNamespaces request - * @return V1alpha3ResourceClaimList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listResourceClaimForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - } - - /** - * Execute listResourceClaimForAllNamespaces request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind ResourceClaim - * @return APIlistResourceClaimForAllNamespacesRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { - return new APIlistResourceClaimForAllNamespacesRequest(); - } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceclaimtemplates"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - } - - - private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIlistResourceClaimTemplateForAllNamespacesRequest { - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistResourceClaimTemplateForAllNamespacesRequest() { - } - - /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listResourceClaimTemplateForAllNamespaces - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - - /** - * Execute listResourceClaimTemplateForAllNamespaces request - * @return V1alpha3ResourceClaimTemplateList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listResourceClaimTemplateForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimTemplateList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - } - - /** - * Execute listResourceClaimTemplateForAllNamespaces request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistResourceClaimTemplateForAllNamespacesRequest listResourceClaimTemplateForAllNamespaces() { - return new APIlistResourceClaimTemplateForAllNamespacesRequest(); - } - private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - } - - - private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIlistResourceSliceRequest { - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistResourceSliceRequest() { - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set allowWatchBookmarks - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listResourceSlice - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - - /** - * Execute listResourceSlice request - * @return V1alpha3ResourceSliceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceSliceList execute() throws ApiException { - ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listResourceSlice request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceSliceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - } - - /** - * Execute listResourceSlice request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind ResourceSlice - * @return APIlistResourceSliceRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistResourceSliceRequest listResourceSlice() { - return new APIlistResourceSliceRequest(); - } - private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchDeviceClass(Async)"); - } - - return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - - } - - - private ApiResponse patchDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call patchDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIpatchDeviceClassRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final V1Patch body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - - private APIpatchDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - this.name = name; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchDeviceClassRequest - */ - public APIpatchDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchDeviceClassRequest - */ - public APIpatchDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchDeviceClassRequest - */ - public APIpatchDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchDeviceClassRequest - */ - public 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 V1alpha3DeviceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3DeviceClass 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<V1alpha3DeviceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return 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/v1alpha3/devicetaintrules/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - 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 V1alpha3DeviceTaintRule - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * Execute patchDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return 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 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/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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 V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim 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<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
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/v1alpha3/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 V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim 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<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
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/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimTemplate(Async)"); - } - - return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - - } - - - private ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIpatchNamespacedResourceClaimTemplateRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1Patch body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - - private APIpatchNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { - this.name = name; - this.namespace = namespace; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest - */ - public APIpatchNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest - */ - public APIpatchNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest - */ - public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest - */ - public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest - */ - public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchNamespacedResourceClaimTemplate - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - - /** - * Execute patchNamespacedResourceClaimTemplate request - * @return V1alpha3ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * Execute patchNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - } - - /** - * Execute patchNamespacedResourceClaimTemplate request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchNamespacedResourceClaimTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - } - - /** - * - * partially update the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIpatchNamespacedResourceClaimTemplateRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIpatchNamespacedResourceClaimTemplateRequest patchNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchNamespacedResourceClaimTemplateRequest(name, namespace, body); - } - private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); - } - - return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - - } - - - private ApiResponse patchResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call patchResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIpatchResourceSliceRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final V1Patch body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - - private APIpatchResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - this.name = name; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchResourceSliceRequest - */ - public APIpatchResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchResourceSliceRequest - */ - public APIpatchResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchResourceSliceRequest - */ - public APIpatchResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchResourceSliceRequest - */ - public APIpatchResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchResourceSliceRequest - */ - public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchResourceSlice - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - - /** - * Execute patchResourceSlice request - * @return V1alpha3ResourceSlice - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * Execute patchResourceSlice request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceSlice> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - } - - /** - * Execute patchResourceSlice request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - } - - /** - * - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param body (required) - * @return APIpatchResourceSliceRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIpatchResourceSliceRequest patchResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchResourceSliceRequest(name, body); - } - private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); - } - - return readDeviceClassCall(name, pretty, _callback); - - } - - - private ApiResponse readDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call readDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadDeviceClassRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadDeviceClassRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadDeviceClassRequest - */ - public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readDeviceClass - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readDeviceClassCall(name, pretty, _callback); - } - - /** - * Execute readDeviceClass request - * @return V1alpha3DeviceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3DeviceClass execute() throws ApiException { - ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * Execute readDeviceClass request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readDeviceClassWithHttpInfo(name, pretty); - } - - /** - * Execute readDeviceClass request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readDeviceClassAsync(name, pretty, _callback); - } - } - - /** - * - * read the specified DeviceClass - * @param name name of the DeviceClass (required) - * @return APIreadDeviceClassRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadDeviceClassRequest readDeviceClass(@jakarta.annotation.Nonnull String name) { - return new APIreadDeviceClassRequest(name); - } - private okhttp3.Call 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[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/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)); - } - - 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 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 readDeviceTaintRule(Async)"); - } - - return readDeviceTaintRuleCall(name, pretty, _callback); - - } - - - 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 readDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadDeviceTaintRuleRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadDeviceTaintRuleRequest - */ - public APIreadDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readDeviceTaintRule - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readDeviceTaintRuleCall(name, pretty, _callback); - } - - /** - * Execute readDeviceTaintRule request - * @return V1alpha3DeviceTaintRule - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * Execute readDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readDeviceTaintRuleWithHttpInfo(name, pretty); - } - - /** - * Execute readDeviceTaintRule request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readDeviceTaintRuleAsync(name, pretty, _callback); - } - } - - /** - * - * read the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @return APIreadDeviceTaintRuleRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadDeviceTaintRuleRequest readDeviceTaintRule(@jakarta.annotation.Nonnull String name) { - return new APIreadDeviceTaintRuleRequest(name); - } - private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); - } - - return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); - - } - - - private ApiResponse readNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call readNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadNamespacedResourceClaimRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - this.name = name; - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedResourceClaimRequest - */ - public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readNamespacedResourceClaim - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); - } - - /** - * Execute readNamespacedResourceClaim request - * @return V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * Execute readNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); - } - - /** - * Execute readNamespacedResourceClaim request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimAsync(name, namespace, pretty, _callback); - } - } - - /** - * - * read the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedResourceClaimRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedResourceClaimRequest(name, namespace); - } - private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); - } - - return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); - - } - - - private ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call readNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadNamespacedResourceClaimStatusRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - this.name = name; - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedResourceClaimStatusRequest - */ - public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readNamespacedResourceClaimStatus - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); - } - - /** - * Execute readNamespacedResourceClaimStatus request - * @return V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * Execute readNamespacedResourceClaimStatus request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); - } - - /** - * Execute readNamespacedResourceClaimStatus request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimStatusAsync(name, namespace, pretty, _callback); - } - } - - /** - * - * read status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedResourceClaimStatusRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedResourceClaimStatusRequest(name, namespace); - } - private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); - } - - return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); - - } - - - private ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call readNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadNamespacedResourceClaimTemplateRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - this.name = name; - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedResourceClaimTemplateRequest - */ - public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readNamespacedResourceClaimTemplate - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); - } - - /** - * Execute readNamespacedResourceClaimTemplate request - * @return V1alpha3ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * Execute readNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); - } - - /** - * Execute readNamespacedResourceClaimTemplate request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimTemplateAsync(name, namespace, pretty, _callback); - } - } - - /** - * - * read the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedResourceClaimTemplateRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedResourceClaimTemplateRequest(name, namespace); - } - private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); - } - - return readResourceSliceCall(name, pretty, _callback); - - } - - - private ApiResponse readResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call readResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadResourceSliceRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadResourceSliceRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadResourceSliceRequest - */ - public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readResourceSlice - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readResourceSliceCall(name, pretty, _callback); - } - - /** - * Execute readResourceSlice request - * @return V1alpha3ResourceSlice - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * Execute readResourceSlice request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceSlice> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readResourceSliceWithHttpInfo(name, pretty); - } - - /** - * Execute readResourceSlice request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readResourceSliceAsync(name, pretty, _callback); - } - } - - /** - * - * read the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @return APIreadResourceSliceRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadResourceSliceRequest readResourceSlice(@jakarta.annotation.Nonnull String name) { - return new APIreadResourceSliceRequest(name); - } - private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); - } - - return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private ApiResponse replaceDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call replaceDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreplaceDeviceClassRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final V1alpha3DeviceClass body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - - private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body) { - this.name = name; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceDeviceClassRequest - */ - public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceDeviceClassRequest - */ - public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceDeviceClassRequest - */ - public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceDeviceClassRequest - */ - public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceDeviceClass - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute replaceDeviceClass request - * @return V1alpha3DeviceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3DeviceClass execute() throws ApiException { - ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute replaceDeviceClass request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute replaceDeviceClass request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * replace the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param body (required) - * @return APIreplaceDeviceClassRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIreplaceDeviceClassRequest replaceDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceClass body) { - return new APIreplaceDeviceClassRequest(name, body); - } - private okhttp3.Call replaceDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRule(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRule(Async)"); - } - - return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private ApiResponse replaceDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call replaceDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreplaceDeviceTaintRuleRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final V1alpha3DeviceTaintRule body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - - private APIreplaceDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { - this.name = name; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceDeviceTaintRuleRequest - */ - public APIreplaceDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceDeviceTaintRuleRequest - */ - public APIreplaceDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceDeviceTaintRuleRequest - */ - public APIreplaceDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceDeviceTaintRuleRequest - */ - public APIreplaceDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceDeviceTaintRule - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute replaceDeviceTaintRule request - * @return V1alpha3DeviceTaintRule - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute replaceDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute replaceDeviceTaintRule request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * replace the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @return APIreplaceDeviceTaintRuleRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIreplaceDeviceTaintRuleRequest replaceDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { - return new APIreplaceDeviceTaintRuleRequest(name, body); - } - private okhttp3.Call replaceNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaim(Async)"); - } - - return replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private ApiResponse replaceNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call replaceNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreplaceNamespacedResourceClaimRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1alpha3ResourceClaim body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - - private APIreplaceNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { - this.name = name; - this.namespace = namespace; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceNamespacedResourceClaimRequest + /** + * 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 APIlistDeviceTaintRuleRequest */ - public APIreplaceNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; + public APIlistDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceNamespacedResourceClaimRequest + * 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 APIlistDeviceTaintRuleRequest */ - public APIreplaceNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; + public APIlistDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; return this; } /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceNamespacedResourceClaimRequest + * 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 APIlistDeviceTaintRuleRequest */ - public APIreplaceNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; + public APIlistDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceNamespacedResourceClaimRequest + * 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 APIlistDeviceTaintRuleRequest */ - public APIreplaceNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; + public APIlistDeviceTaintRuleRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; return this; } /** - * Build call for replaceNamespacedResourceClaim + * Build call for listDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -10612,51 +1407,48 @@ public APIreplaceNamespacedResourceClaimRequest fieldValidation(@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 replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute replaceNamespacedResourceClaim request - * @return V1alpha3ResourceClaim + * Execute listDeviceTaintRule request + * @return V1alpha3DeviceTaintRuleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha3ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRuleList execute() throws ApiException { + ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute replaceNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaim> + * Execute listDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRuleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute replaceNamespacedResourceClaim 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 @@ -10665,35 +1457,30 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceNamespacedResourceClaimAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * replace the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIreplaceNamespacedResourceClaimRequest + * list or watch objects of kind DeviceTaintRule + * @return APIlistDeviceTaintRuleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceClaimRequest replaceNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { - return new APIreplaceNamespacedResourceClaimRequest(name, namespace, body); + public APIlistDeviceTaintRuleRequest listDeviceTaintRule() { + return new APIlistDeviceTaintRuleRequest(); } - private okhttp3.Call replaceNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -10710,9 +1497,8 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusCall(@jakarta.annotatio Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -10736,6 +1522,10 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusCall(@jakarta.annotatio localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -10756,52 +1546,45 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusCall(@jakarta.annotatio } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + 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 replaceNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceTaintRule(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimStatus(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRule(Async)"); } - return replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 replaceNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + 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 = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceNamespacedResourceClaimStatusRequest { + public class APIpatchDeviceTaintRuleRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1alpha3ResourceClaim body; + private final V1Patch body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -10810,19 +1593,20 @@ public class APIreplaceNamespacedResourceClaimStatusRequest { private String fieldManager; @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; - private APIreplaceNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { + private APIpatchDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @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 APIreplaceNamespacedResourceClaimStatusRequest + * @return APIpatchDeviceTaintRuleRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -10830,19 +1614,19 @@ public APIreplaceNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceNamespacedResourceClaimStatusRequest + * @return APIpatchDeviceTaintRuleRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + 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. (optional) - * @return APIreplaceNamespacedResourceClaimStatusRequest + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 APIreplaceNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -10850,15 +1634,25 @@ public APIreplaceNamespacedResourceClaimStatusRequest fieldManager(@jakarta.anno /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceNamespacedResourceClaimStatusRequest + * @return APIpatchDeviceTaintRuleRequest */ - public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceNamespacedResourceClaimStatus + * 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 @@ -10872,12 +1666,12 @@ public APIreplaceNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.a */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute replaceNamespacedResourceClaimStatus request - * @return V1alpha3ResourceClaim + * Execute patchDeviceTaintRule request + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10888,14 +1682,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha3ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute replaceNamespacedResourceClaimStatus request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaim> + * Execute patchDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -10906,12 +1700,12 @@ public V1alpha3ResourceClaim execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute replaceNamespacedResourceClaimStatus request (asynchronously) + * Execute patchDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -10924,18 +1718,17 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceNamespacedResourceClaimStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * replace status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param body (required) - * @return APIreplaceNamespacedResourceClaimStatusRequest + * @return APIpatchDeviceTaintRuleRequest * @http.response.details @@ -10945,10 +1738,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callb
Response Details
401 Unauthorized -
*/ - public APIreplaceNamespacedResourceClaimStatusRequest replaceNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaim body) { - return new APIreplaceNamespacedResourceClaimStatusRequest(name, namespace, body); + public APIpatchDeviceTaintRuleRequest patchDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceTaintRuleRequest(name, body); } - private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -10962,12 +1755,11 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(@jakarta.annotat basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -10979,18 +1771,6 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(@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)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -11003,7 +1783,6 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(@jakarta.annotat } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -11011,109 +1790,57 @@ private okhttp3.Call replaceNamespacedResourceClaimTemplateCall(@jakarta.annotat } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", 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 replaceNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + 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 replaceNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceClaimTemplate(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRule(Async)"); } - return replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return readDeviceTaintRuleCall(name, pretty, _callback); } - private ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 replaceNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _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 APIreplaceNamespacedResourceClaimTemplateRequest { + public class APIreadDeviceTaintRuleRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1alpha3ResourceClaimTemplate body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - private APIreplaceNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate 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 APIreplaceNamespacedResourceClaimTemplateRequest + * @return APIreadDeviceTaintRuleRequest */ - public APIreplaceNamespacedResourceClaimTemplateRequest 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 APIreplaceNamespacedResourceClaimTemplateRequest - */ - public APIreplaceNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceNamespacedResourceClaimTemplateRequest - */ - public APIreplaceNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceNamespacedResourceClaimTemplateRequest - */ - public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceNamespacedResourceClaimTemplate + * Build call for readDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -11122,51 +1849,48 @@ public APIreplaceNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return readDeviceTaintRuleCall(name, pretty, _callback); } /** - * Execute replaceNamespacedResourceClaimTemplate request - * @return V1alpha3ResourceClaimTemplate + * Execute readDeviceTaintRule request + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha3ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute replaceNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * Execute readDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceTaintRuleWithHttpInfo(name, pretty); } /** - * Execute replaceNamespacedResourceClaimTemplate 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 @@ -11175,35 +1899,31 @@ public ApiResponse executeWithHttpInfo() throws A Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceNamespacedResourceClaimTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceTaintRuleAsync(name, pretty, _callback); } } /** * - * replace the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIreplaceNamespacedResourceClaimTemplateRequest + * 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 APIreplaceNamespacedResourceClaimTemplateRequest replaceNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplate body) { - return new APIreplaceNamespacedResourceClaimTemplateRequest(name, namespace, body); + public APIreadDeviceTaintRuleRequest readDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceTaintRuleRequest(name); } - private okhttp3.Call replaceResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -11220,7 +1940,7 @@ private okhttp3.Call replaceResourceSliceCall(@jakarta.annotation.Nonnull String Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -11269,41 +1989,41 @@ private okhttp3.Call replaceResourceSliceCall(@jakarta.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceResourceSlice(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRule(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceResourceSlice(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRule(Async)"); } - return replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _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 APIreplaceResourceSliceRequest { + public class APIreplaceDeviceTaintRuleRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1alpha3ResourceSlice body; + private final V1alpha3DeviceTaintRule body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -11313,7 +2033,7 @@ public class APIreplaceResourceSliceRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body) { + private APIreplaceDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { this.name = name; this.body = body; } @@ -11321,9 +2041,9 @@ private APIreplaceResourceSliceRequest(@jakarta.annotation.Nonnull String 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 APIreplaceResourceSliceRequest + * @return APIreplaceDeviceTaintRuleRequest */ - public APIreplaceResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -11331,9 +2051,9 @@ public APIreplaceResourceSliceRequest 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 APIreplaceResourceSliceRequest + * @return APIreplaceDeviceTaintRuleRequest */ - public APIreplaceResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -11341,9 +2061,9 @@ public APIreplaceResourceSliceRequest dryRun(@jakarta.annotation.Nullable String /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceResourceSliceRequest + * @return APIreplaceDeviceTaintRuleRequest */ - public APIreplaceResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -11351,15 +2071,15 @@ public APIreplaceResourceSliceRequest fieldManager(@jakarta.annotation.Nullable /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceResourceSliceRequest + * @return APIreplaceDeviceTaintRuleRequest */ - public APIreplaceResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceResourceSlice + * Build call for replaceDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -11373,12 +2093,12 @@ public APIreplaceResourceSliceRequest fieldValidation(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceResourceSlice request - * @return V1alpha3ResourceSlice + * Execute replaceDeviceTaintRule request + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11389,14 +2109,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha3ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceResourceSlice request with HTTP info returned - * @return ApiResponse<V1alpha3ResourceSlice> + * Execute replaceDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -11407,12 +2127,12 @@ public V1alpha3ResourceSlice execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceResourceSlice 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 @@ -11425,17 +2145,17 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified ResourceSlice - * @param name name of the ResourceSlice (required) + * replace the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param body (required) - * @return APIreplaceResourceSliceRequest + * @return APIreplaceDeviceTaintRuleRequest * @http.response.details @@ -11445,7 +2165,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb
Response Details
401 Unauthorized -
*/ - public APIreplaceResourceSliceRequest replaceResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourceSlice body) { - return new APIreplaceResourceSliceRequest(name, body); + public APIreplaceDeviceTaintRuleRequest replaceDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + return new APIreplaceDeviceTaintRuleRequest(name, body); } } 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 329fa4f1c3..834d22f0be 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 @@ -40,6 +40,8 @@ import io.kubernetes.client.openapi.models.V1StorageClassList; import io.kubernetes.client.openapi.models.V1VolumeAttachment; import io.kubernetes.client.openapi.models.V1VolumeAttachmentList; +import io.kubernetes.client.openapi.models.V1VolumeAttributesClass; +import io.kubernetes.client.openapi.models.V1VolumeAttributesClassList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -1294,6 +1296,246 @@ public okhttp3.Call executeAsync(final ApiCallback _callback public APIcreateVolumeAttachmentRequest createVolumeAttachment(@jakarta.annotation.Nonnull V1VolumeAttachment body) { return new APIcreateVolumeAttachmentRequest(body); } + private okhttp3.Call createVolumeAttributesClassCall(@jakarta.annotation.Nonnull V1VolumeAttributesClass body, @jakarta.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/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 V1VolumeAttributesClass body, @jakarta.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 V1VolumeAttributesClass 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 V1VolumeAttributesClass body, @jakarta.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 V1VolumeAttributesClass body; + @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 V1VolumeAttributesClass 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 V1VolumeAttributesClass + * @throws ApiException If fail to call the API, 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 V1VolumeAttributesClass execute() throws ApiException { + ApiResponse localVarResp = createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createVolumeAttributesClass request with HTTP info returned + * @return ApiResponse<V1VolumeAttributesClass> + * @throws ApiException If fail to call the API, 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 V1VolumeAttributesClass body) { + return new APIcreateVolumeAttributesClassRequest(body); + } private okhttp3.Call deleteCSIDriverCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -3829,7 +4071,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionVolumeAttachmentRequest deleteCollectionVolumeAttachment() { return new APIdeleteCollectionVolumeAttachmentRequest(); } - private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3846,9 +4088,7 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(@jakarta.annotation. Object localVarPostBody = body; // 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/volumeattributesclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3860,10 +4100,18 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(@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)); } @@ -3872,6 +4120,14 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(@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)); } @@ -3880,6 +4136,22 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(@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 (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -3904,87 +4176,107 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(@jakarta.annotation. } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCSIStorageCapacity(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedCSIStorageCapacity(Async)"); - } - - return deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + private ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteNamespacedCSIStorageCapacityRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; + public class APIdeleteCollectionVolumeAttributesClassRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable private String dryRun; @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; @jakarta.annotation.Nullable private String propagationPolicy; @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - this.name = name; - this.namespace = namespace; + 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 APIdeleteNamespacedCSIStorageCapacityRequest + * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { + 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 APIdeleteNamespacedCSIStorageCapacityRequest + * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + 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 APIdeleteNamespacedCSIStorageCapacityRequest + * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionVolumeAttributesClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3992,19 +4284,39 @@ public APIdeleteNamespacedCSIStorageCapacityRequest 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 APIdeleteNamespacedCSIStorageCapacityRequest + * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + 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 APIdeleteNamespacedCSIStorageCapacityRequest + * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionVolumeAttributesClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -4012,25 +4324,65 @@ public APIdeleteNamespacedCSIStorageCapacityRequest 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 APIdeleteNamespacedCSIStorageCapacityRequest + * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + 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 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 APIdeleteNamespacedCSIStorageCapacityRequest + * @return APIdeleteCollectionVolumeAttributesClassRequest */ - public APIdeleteNamespacedCSIStorageCapacityRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionVolumeAttributesClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteNamespacedCSIStorageCapacity + * Build call for deleteCollectionVolumeAttributesClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4039,16 +4391,15 @@ public APIdeleteNamespacedCSIStorageCapacityRequest body(@jakarta.annotation.Nul Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteNamespacedCSIStorageCapacity request + * 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 @@ -4056,17 +4407,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 = deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteNamespacedCSIStorageCapacity request with HTTP info returned + * 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 @@ -4074,16 +4424,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 deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteNamespacedCSIStorageCapacity request (asynchronously) + * 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 @@ -4092,34 +4441,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 deleteNamespacedCSIStorageCapacityAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionVolumeAttributesClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete a CSIStorageCapacity - * @param name name of the CSIStorageCapacity (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedCSIStorageCapacityRequest + * delete collection of VolumeAttributesClass + * @return APIdeleteCollectionVolumeAttributesClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedCSIStorageCapacityRequest deleteNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIdeleteNamespacedCSIStorageCapacityRequest(name, namespace); + public APIdeleteCollectionVolumeAttributesClassRequest deleteCollectionVolumeAttributesClass() { + return new APIdeleteCollectionVolumeAttributesClassRequest(); } - private okhttp3.Call deleteStorageClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4136,8 +4481,9 @@ private okhttp3.Call deleteStorageClassCall(@jakarta.annotation.Nonnull String n Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + 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(); @@ -4193,34 +4539,41 @@ private okhttp3.Call deleteStorageClassCall(@jakarta.annotation.Nonnull String n } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStorageClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteStorageClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCSIStorageCapacity(Async)"); } - return deleteStorageClassCall(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 deleteNamespacedCSIStorageCapacity(Async)"); + } + + return deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteStorageClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteStorageClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteStorageClassRequest { + public class APIdeleteNamespacedCSIStorageCapacityRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -4236,16 +4589,17 @@ public class APIdeleteStorageClassRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteStorageClassRequest(@jakarta.annotation.Nonnull String name) { + private APIdeleteNamespacedCSIStorageCapacityRequest(@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 APIdeleteStorageClassRequest + * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4253,9 +4607,9 @@ public APIdeleteStorageClassRequest 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 APIdeleteStorageClassRequest + * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteStorageClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4263,9 +4617,9 @@ public APIdeleteStorageClassRequest dryRun(@jakarta.annotation.Nullable String d /** * 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 APIdeleteStorageClassRequest + * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteStorageClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteNamespacedCSIStorageCapacityRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -4273,9 +4627,9 @@ public APIdeleteStorageClassRequest gracePeriodSeconds(@jakarta.annotation.Nulla /** * 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 APIdeleteStorageClassRequest + * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteStorageClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedCSIStorageCapacityRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -4283,9 +4637,9 @@ public APIdeleteStorageClassRequest ignoreStoreReadErrorWithClusterBreakingPoten /** * 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 APIdeleteStorageClassRequest + * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteStorageClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteNamespacedCSIStorageCapacityRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -4293,9 +4647,9 @@ public APIdeleteStorageClassRequest orphanDependents(@jakarta.annotation.Nullabl /** * 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 APIdeleteStorageClassRequest + * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteStorageClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteNamespacedCSIStorageCapacityRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -4303,15 +4657,15 @@ public APIdeleteStorageClassRequest propagationPolicy(@jakarta.annotation.Nullab /** * Set body * @param body (optional) - * @return APIdeleteStorageClassRequest + * @return APIdeleteNamespacedCSIStorageCapacityRequest */ - public APIdeleteStorageClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteNamespacedCSIStorageCapacityRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteStorageClass + * Build call for deleteNamespacedCSIStorageCapacity * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4325,12 +4679,12 @@ public APIdeleteStorageClassRequest body(@jakarta.annotation.Nullable V1DeleteOp */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteStorageClass request - * @return V1StorageClass + * Execute deleteNamespacedCSIStorageCapacity request + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4341,14 +4695,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1StorageClass execute() throws ApiException { - ApiResponse localVarResp = deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteStorageClass request with HTTP info returned - * @return ApiResponse<V1StorageClass> + * Execute deleteNamespacedCSIStorageCapacity 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 @@ -4359,12 +4713,12 @@ public V1StorageClass execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteStorageClass request (asynchronously) + * Execute deleteNamespacedCSIStorageCapacity 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 @@ -4377,16 +4731,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteStorageClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedCSIStorageCapacityAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a StorageClass - * @param name name of the StorageClass (required) - * @return APIdeleteStorageClassRequest + * delete a CSIStorageCapacity + * @param name name of the CSIStorageCapacity (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedCSIStorageCapacityRequest * @http.response.details @@ -4396,10 +4751,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th
Response Details
401 Unauthorized -
*/ - public APIdeleteStorageClassRequest deleteStorageClass(@jakarta.annotation.Nonnull String name) { - return new APIdeleteStorageClassRequest(name); + public APIdeleteNamespacedCSIStorageCapacityRequest deleteNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedCSIStorageCapacityRequest(name, namespace); } - private okhttp3.Call deleteVolumeAttachmentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4416,7 +4771,7 @@ private okhttp3.Call deleteVolumeAttachmentCall(@jakarta.annotation.Nonnull Stri Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" + String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -4473,32 +4828,32 @@ private okhttp3.Call deleteVolumeAttachmentCall(@jakarta.annotation.Nonnull Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttachment(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteStorageClass(Async)"); } - return deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteStorageClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteVolumeAttachmentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStorageClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteVolumeAttachmentRequest { + public class APIdeleteStorageClassRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nullable @@ -4516,16 +4871,16 @@ public class APIdeleteVolumeAttachmentRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteVolumeAttachmentRequest(@jakarta.annotation.Nonnull String name) { + private APIdeleteStorageClassRequest(@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 APIdeleteVolumeAttachmentRequest + * @return APIdeleteStorageClassRequest */ - public APIdeleteVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4533,9 +4888,9 @@ public APIdeleteVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable Stri /** * 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 APIdeleteVolumeAttachmentRequest + * @return APIdeleteStorageClassRequest */ - public APIdeleteVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteStorageClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4543,9 +4898,9 @@ public APIdeleteVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable Stri /** * 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 APIdeleteVolumeAttachmentRequest + * @return APIdeleteStorageClassRequest */ - public APIdeleteVolumeAttachmentRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteStorageClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -4553,9 +4908,9 @@ public APIdeleteVolumeAttachmentRequest gracePeriodSeconds(@jakarta.annotation.N /** * 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 APIdeleteVolumeAttachmentRequest + * @return APIdeleteStorageClassRequest */ - public APIdeleteVolumeAttachmentRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteStorageClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -4563,9 +4918,9 @@ public APIdeleteVolumeAttachmentRequest ignoreStoreReadErrorWithClusterBreakingP /** * 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 APIdeleteVolumeAttachmentRequest + * @return APIdeleteStorageClassRequest */ - public APIdeleteVolumeAttachmentRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteStorageClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -4573,9 +4928,9 @@ public APIdeleteVolumeAttachmentRequest orphanDependents(@jakarta.annotation.Nul /** * 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 APIdeleteVolumeAttachmentRequest + * @return APIdeleteStorageClassRequest */ - public APIdeleteVolumeAttachmentRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteStorageClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -4583,15 +4938,15 @@ public APIdeleteVolumeAttachmentRequest propagationPolicy(@jakarta.annotation.Nu /** * Set body * @param body (optional) - * @return APIdeleteVolumeAttachmentRequest + * @return APIdeleteStorageClassRequest */ - public APIdeleteVolumeAttachmentRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteStorageClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteVolumeAttachment + * Build call for deleteStorageClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4605,12 +4960,12 @@ public APIdeleteVolumeAttachmentRequest body(@jakarta.annotation.Nullable V1Dele */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteVolumeAttachment request - * @return V1VolumeAttachment + * Execute deleteStorageClass request + * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4621,14 +4976,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1VolumeAttachment execute() throws ApiException { - ApiResponse localVarResp = deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1StorageClass execute() throws ApiException { + ApiResponse localVarResp = deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteVolumeAttachment request with HTTP info returned - * @return ApiResponse<V1VolumeAttachment> + * Execute deleteStorageClass request with HTTP info returned + * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4639,12 +4994,12 @@ public V1VolumeAttachment execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteVolumeAttachment request (asynchronously) + * Execute deleteStorageClass 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 @@ -4657,16 +5012,16 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteVolumeAttachmentAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteStorageClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a VolumeAttachment - * @param name name of the VolumeAttachment (required) - * @return APIdeleteVolumeAttachmentRequest + * delete a StorageClass + * @param name name of the StorageClass (required) + * @return APIdeleteStorageClassRequest * @http.response.details @@ -4676,10 +5031,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIdeleteVolumeAttachmentRequest deleteVolumeAttachment(@jakarta.annotation.Nonnull String name) { - return new APIdeleteVolumeAttachmentRequest(name); + public APIdeleteStorageClassRequest deleteStorageClass(@jakarta.annotation.Nonnull String name) { + return new APIdeleteStorageClassRequest(name); } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttachmentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4693,10 +5048,11 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/"; + String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4704,6 +5060,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", @@ -4716,6 +5096,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4723,37 +5104,1241 @@ 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 deleteVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttachment(Async)"); + } + + return deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttachmentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteVolumeAttachmentRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteVolumeAttachmentRequest(@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 APIdeleteVolumeAttachmentRequest + */ + public APIdeleteVolumeAttachmentRequest 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 APIdeleteVolumeAttachmentRequest + */ + public APIdeleteVolumeAttachmentRequest 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 APIdeleteVolumeAttachmentRequest + */ + public APIdeleteVolumeAttachmentRequest 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 APIdeleteVolumeAttachmentRequest + */ + public APIdeleteVolumeAttachmentRequest 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 APIdeleteVolumeAttachmentRequest + */ + public APIdeleteVolumeAttachmentRequest 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 APIdeleteVolumeAttachmentRequest + */ + public APIdeleteVolumeAttachmentRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteVolumeAttachmentRequest + */ + public APIdeleteVolumeAttachmentRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteVolumeAttachment + * @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 deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteVolumeAttachment request + * @return V1VolumeAttachment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1VolumeAttachment execute() throws ApiException { + ApiResponse localVarResp = deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteVolumeAttachment request with HTTP info returned + * @return ApiResponse<V1VolumeAttachment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteVolumeAttachment 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 deleteVolumeAttachmentAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a VolumeAttachment + * @param name name of the VolumeAttachment (required) + * @return APIdeleteVolumeAttachmentRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteVolumeAttachmentRequest deleteVolumeAttachment(@jakarta.annotation.Nonnull String name) { + return new APIdeleteVolumeAttachmentRequest(name); + } + 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/v1/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 V1VolumeAttributesClass + * @throws ApiException If fail to call 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 V1VolumeAttributesClass 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<V1VolumeAttributesClass> + * @throws ApiException If fail to call 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/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 listCSIDriverCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // 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/csidrivers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listCSIDriverValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listCSIDriverWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listCSIDriverAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistCSIDriverRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistCSIDriverRequest() { + } + + /** + * 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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest _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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listCSIDriver + * @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 listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + + /** + * Execute listCSIDriver request + * @return V1CSIDriverList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1CSIDriverList execute() throws ApiException { + ApiResponse localVarResp = listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listCSIDriver request with HTTP info returned + * @return ApiResponse<V1CSIDriverList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + } + + /** + * Execute listCSIDriver 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 listCSIDriverAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind CSIDriver + * @return APIlistCSIDriverRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistCSIDriverRequest listCSIDriver() { + return new APIlistCSIDriverRequest(); + } + private okhttp3.Call listCSINodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // 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/csinodes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listCSINodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listCSINodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listCSINodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistCSINodeRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistCSINodeRequest() { + } + + /** + * 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest _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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } - public class APIgetAPIResourcesRequest { + /** + * 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } - private 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 APIlistCSINodeRequest + */ + public APIlistCSINodeRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; } /** - * Build call for getAPIResources + * Build call for listCSINode * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4766,12 +6351,12 @@ private APIgetAPIResourcesRequest() { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute getAPIResources request - * @return V1APIResourceList + * Execute listCSINode request + * @return V1CSINodeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4781,14 +6366,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + public V1CSINodeList execute() throws ApiException { + ApiResponse localVarResp = listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> + * Execute listCSINode request with HTTP info returned + * @return ApiResponse<V1CSINodeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4798,12 +6383,12 @@ public V1APIResourceList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute getAPIResources request (asynchronously) + * Execute listCSINode 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 @@ -4815,15 +6400,15 @@ 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 listCSINodeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * get available resources - * @return APIgetAPIResourcesRequest + * list or watch objects of kind CSINode + * @return APIlistCSINodeRequest * @http.response.details @@ -4832,10 +6417,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback)
Response Details
401 Unauthorized -
*/ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); + public APIlistCSINodeRequest listCSINode() { + return new APIlistCSINodeRequest(); } - private okhttp3.Call listCSIDriverCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4852,7 +6437,7 @@ private okhttp3.Call listCSIDriverCall(@jakarta.annotation.Nullable String prett Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/csidrivers"; + String localVarPath = "/apis/storage.k8s.io/v1/csistoragecapacities"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4860,10 +6445,6 @@ private okhttp3.Call listCSIDriverCall(@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)); } @@ -4884,6 +6465,10 @@ private okhttp3.Call listCSIDriverCall(@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)); } @@ -4930,29 +6515,27 @@ private okhttp3.Call listCSIDriverCall(@jakarta.annotation.Nullable String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listCSIDriverValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listCSIStorageCapacityForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCSIDriverWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listCSIStorageCapacityForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCSIDriverAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIStorageCapacityForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistCSIDriverRequest { - @jakarta.annotation.Nullable - private String pretty; + public class APIlistCSIStorageCapacityForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable @@ -4964,6 +6547,8 @@ public class APIlistCSIDriverRequest { @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @@ -4974,25 +6559,15 @@ public class APIlistCSIDriverRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistCSIDriverRequest() { - } - - /** - * 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 APIlistCSIDriverRequest - */ - public APIlistCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; + private APIlistCSIStorageCapacityForAllNamespacesRequest() { } /** * 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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistCSIStorageCapacityForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5000,9 +6575,9 @@ public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistCSIStorageCapacityForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5010,9 +6585,9 @@ public APIlistCSIDriverRequest _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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistCSIStorageCapacityForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5020,9 +6595,9 @@ public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistCSIStorageCapacityForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5030,19 +6605,29 @@ public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistCSIStorageCapacityForAllNamespacesRequest 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 APIlistCSIStorageCapacityForAllNamespacesRequest + */ + public APIlistCSIStorageCapacityForAllNamespacesRequest 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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5050,9 +6635,9 @@ public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5060,9 +6645,9 @@ public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistCSIStorageCapacityForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5070,9 +6655,9 @@ public APIlistCSIDriverRequest sendInitialEvents(@jakarta.annotation.Nullable Bo /** * 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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistCSIStorageCapacityForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5080,15 +6665,15 @@ public APIlistCSIDriverRequest 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 APIlistCSIDriverRequest + * @return APIlistCSIStorageCapacityForAllNamespacesRequest */ - public APIlistCSIDriverRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistCSIStorageCapacityForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listCSIDriver + * Build call for listCSIStorageCapacityForAllNamespaces * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5101,12 +6686,12 @@ public APIlistCSIDriverRequest watch(@jakarta.annotation.Nullable Boolean watch) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listCSIDriver request - * @return V1CSIDriverList + * Execute listCSIStorageCapacityForAllNamespaces request + * @return V1CSIStorageCapacityList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5116,14 +6701,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CSIDriverList execute() throws ApiException { - ApiResponse localVarResp = listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1CSIStorageCapacityList execute() throws ApiException { + ApiResponse localVarResp = listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listCSIDriver request with HTTP info returned - * @return ApiResponse<V1CSIDriverList> + * Execute listCSIStorageCapacityForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1CSIStorageCapacityList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5133,12 +6718,12 @@ public V1CSIDriverList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listCSIDriver request (asynchronously) + * Execute listCSIStorageCapacityForAllNamespaces 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 @@ -5150,15 +6735,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCSIDriverAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listCSIStorageCapacityForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind CSIDriver - * @return APIlistCSIDriverRequest + * list or watch objects of kind CSIStorageCapacity + * @return APIlistCSIStorageCapacityForAllNamespacesRequest * @http.response.details @@ -5167,10 +6752,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t
Response Details
401 Unauthorized -
*/ - public APIlistCSIDriverRequest listCSIDriver() { - return new APIlistCSIDriverRequest(); + public APIlistCSIStorageCapacityForAllNamespacesRequest listCSIStorageCapacityForAllNamespaces() { + return new APIlistCSIStorageCapacityForAllNamespacesRequest(); } - private okhttp3.Call listCSINodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5187,7 +6772,8 @@ private okhttp3.Call listCSINodeCall(@jakarta.annotation.Nullable String pretty, Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/csinodes"; + String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5265,27 +6851,34 @@ private okhttp3.Call listCSINodeCall(@jakarta.annotation.Nullable String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call listCSINodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCSIStorageCapacity(Async)"); + } + + return listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCSINodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCSINodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistCSINodeRequest { + public class APIlistNamespacedCSIStorageCapacityRequest { + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -5309,15 +6902,16 @@ public class APIlistCSINodeRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistCSINodeRequest() { + private APIlistNamespacedCSIStorageCapacityRequest(@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 APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5325,9 +6919,9 @@ public APIlistCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistNamespacedCSIStorageCapacityRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5335,9 +6929,9 @@ public APIlistCSINodeRequest allowWatchBookmarks(@jakarta.annotation.Nullable Bo /** * 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 APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistNamespacedCSIStorageCapacityRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5345,9 +6939,9 @@ public APIlistCSINodeRequest _continue(@jakarta.annotation.Nullable String _cont /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistNamespacedCSIStorageCapacityRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5355,9 +6949,9 @@ public APIlistCSINodeRequest fieldSelector(@jakarta.annotation.Nullable String f /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistNamespacedCSIStorageCapacityRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5365,9 +6959,9 @@ public APIlistCSINodeRequest labelSelector(@jakarta.annotation.Nullable String l /** * 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 APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistNamespacedCSIStorageCapacityRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5375,9 +6969,9 @@ public APIlistCSINodeRequest limit(@jakarta.annotation.Nullable Integer limit) { /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistNamespacedCSIStorageCapacityRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5385,9 +6979,9 @@ public APIlistCSINodeRequest resourceVersion(@jakarta.annotation.Nullable String /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistNamespacedCSIStorageCapacityRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5395,9 +6989,9 @@ public APIlistCSINodeRequest resourceVersionMatch(@jakarta.annotation.Nullable S /** * 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 APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistNamespacedCSIStorageCapacityRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5405,9 +6999,9 @@ public APIlistCSINodeRequest sendInitialEvents(@jakarta.annotation.Nullable Bool /** * 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 APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistNamespacedCSIStorageCapacityRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5415,15 +7009,15 @@ public APIlistCSINodeRequest timeoutSeconds(@jakarta.annotation.Nullable Integer /** * 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 APIlistCSINodeRequest + * @return APIlistNamespacedCSIStorageCapacityRequest */ - public APIlistCSINodeRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistNamespacedCSIStorageCapacityRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listCSINode + * Build call for listNamespacedCSIStorageCapacity * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5436,12 +7030,12 @@ public APIlistCSINodeRequest watch(@jakarta.annotation.Nullable Boolean watch) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listCSINode request - * @return V1CSINodeList + * Execute listNamespacedCSIStorageCapacity request + * @return V1CSIStorageCapacityList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5451,14 +7045,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CSINodeList execute() throws ApiException { - ApiResponse localVarResp = listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1CSIStorageCapacityList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listCSINode request with HTTP info returned - * @return ApiResponse<V1CSINodeList> + * Execute listNamespacedCSIStorageCapacity request with HTTP info returned + * @return ApiResponse<V1CSIStorageCapacityList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5468,12 +7062,12 @@ public V1CSINodeList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listCSINode request (asynchronously) + * Execute listNamespacedCSIStorageCapacity 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 @@ -5485,15 +7079,16 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCSINodeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedCSIStorageCapacityAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind CSINode - * @return APIlistCSINodeRequest + * list or watch objects of kind CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedCSIStorageCapacityRequest * @http.response.details @@ -5502,10 +7097,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
401 Unauthorized -
*/ - public APIlistCSINodeRequest listCSINode() { - return new APIlistCSINodeRequest(); + public APIlistNamespacedCSIStorageCapacityRequest listNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedCSIStorageCapacityRequest(namespace); } - private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5522,7 +7117,7 @@ private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotat Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/csistoragecapacities"; + String localVarPath = "/apis/storage.k8s.io/v1/storageclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5530,6 +7125,10 @@ private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotat 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)); } @@ -5550,10 +7149,6 @@ private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotat localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -5600,27 +7195,29 @@ private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotat } @SuppressWarnings("rawtypes") - private okhttp3.Call listCSIStorageCapacityForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listStorageClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCSIStorageCapacityForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listStorageClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCSIStorageCapacityForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistCSIStorageCapacityForAllNamespacesRequest { + public class APIlistStorageClassRequest { + @jakarta.annotation.Nullable + private String pretty; @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable @@ -5632,8 +7229,6 @@ public class APIlistCSIStorageCapacityForAllNamespacesRequest { @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @@ -5644,15 +7239,25 @@ public class APIlistCSIStorageCapacityForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistCSIStorageCapacityForAllNamespacesRequest() { + private APIlistStorageClassRequest() { + } + + /** + * 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 APIlistStorageClassRequest + */ + public APIlistStorageClassRequest 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 APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistStorageClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5660,9 +7265,9 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest allowWatchBookmarks(@jak /** * 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 APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistStorageClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5670,9 +7275,9 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest _continue(@jakarta.annot /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistStorageClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5680,9 +7285,9 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest fieldSelector(@jakarta.a /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistStorageClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5690,29 +7295,19 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest labelSelector(@jakarta.a /** * 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 APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistStorageClassRequest 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 APIlistCSIStorageCapacityForAllNamespacesRequest - */ - public APIlistCSIStorageCapacityForAllNamespacesRequest 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 APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistStorageClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5720,9 +7315,9 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersion(@jakarta /** * 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 APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistStorageClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5730,9 +7325,9 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest resourceVersionMatch(@ja /** * 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 APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistStorageClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5740,9 +7335,9 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest sendInitialEvents(@jakar /** * 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 APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistStorageClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5750,15 +7345,15 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest timeoutSeconds(@jakarta. /** * 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 APIlistCSIStorageCapacityForAllNamespacesRequest + * @return APIlistStorageClassRequest */ - public APIlistCSIStorageCapacityForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistStorageClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listCSIStorageCapacityForAllNamespaces + * Build call for listStorageClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5771,12 +7366,12 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest watch(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listCSIStorageCapacityForAllNamespaces request - * @return V1CSIStorageCapacityList + * Execute listStorageClass request + * @return V1StorageClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5786,14 +7381,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CSIStorageCapacityList execute() throws ApiException { - ApiResponse localVarResp = listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1StorageClassList execute() throws ApiException { + ApiResponse localVarResp = listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listCSIStorageCapacityForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1CSIStorageCapacityList> + * Execute listStorageClass request with HTTP info returned + * @return ApiResponse<V1StorageClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5803,12 +7398,12 @@ public V1CSIStorageCapacityList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listCSIStorageCapacityForAllNamespaces request (asynchronously) + * Execute listStorageClass 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 @@ -5820,15 +7415,15 @@ public ApiResponse executeWithHttpInfo() throws ApiExc 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCSIStorageCapacityForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listStorageClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind CSIStorageCapacity - * @return APIlistCSIStorageCapacityForAllNamespacesRequest + * list or watch objects of kind StorageClass + * @return APIlistStorageClassRequest * @http.response.details @@ -5837,10 +7432,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ca
Response Details
401 Unauthorized -
*/ - public APIlistCSIStorageCapacityForAllNamespacesRequest listCSIStorageCapacityForAllNamespaces() { - return new APIlistCSIStorageCapacityForAllNamespacesRequest(); + public APIlistStorageClassRequest listStorageClass() { + return new APIlistStorageClassRequest(); } - private okhttp3.Call listNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5857,8 +7452,7 @@ private okhttp3.Call listNamespacedCSIStorageCapacityCall(@jakarta.annotation.No Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5936,34 +7530,27 @@ private okhttp3.Call listNamespacedCSIStorageCapacityCall(@jakarta.annotation.No } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCSIStorageCapacity(Async)"); - } - - return listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttachmentAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistNamespacedCSIStorageCapacityRequest { - @jakarta.annotation.Nonnull - private final String namespace; + public class APIlistVolumeAttachmentRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -5987,16 +7574,15 @@ public class APIlistNamespacedCSIStorageCapacityRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; + private APIlistVolumeAttachmentRequest() { } /** * 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 APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6004,9 +7590,9 @@ public APIlistNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nul /** * 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 APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistVolumeAttachmentRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6014,9 +7600,9 @@ public APIlistNamespacedCSIStorageCapacityRequest allowWatchBookmarks(@jakarta.a /** * 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 APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistVolumeAttachmentRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6024,9 +7610,9 @@ public APIlistNamespacedCSIStorageCapacityRequest _continue(@jakarta.annotation. /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistVolumeAttachmentRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6034,9 +7620,9 @@ public APIlistNamespacedCSIStorageCapacityRequest fieldSelector(@jakarta.annotat /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistVolumeAttachmentRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6044,9 +7630,9 @@ public APIlistNamespacedCSIStorageCapacityRequest labelSelector(@jakarta.annotat /** * 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 APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistVolumeAttachmentRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6054,9 +7640,9 @@ public APIlistNamespacedCSIStorageCapacityRequest limit(@jakarta.annotation.Null /** * 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 APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistVolumeAttachmentRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6064,9 +7650,9 @@ public APIlistNamespacedCSIStorageCapacityRequest resourceVersion(@jakarta.annot /** * 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 APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistVolumeAttachmentRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6074,9 +7660,9 @@ public APIlistNamespacedCSIStorageCapacityRequest 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 APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistVolumeAttachmentRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6084,9 +7670,9 @@ public APIlistNamespacedCSIStorageCapacityRequest sendInitialEvents(@jakarta.ann /** * 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 APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistVolumeAttachmentRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6094,15 +7680,15 @@ public APIlistNamespacedCSIStorageCapacityRequest timeoutSeconds(@jakarta.annota /** * 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 APIlistNamespacedCSIStorageCapacityRequest + * @return APIlistVolumeAttachmentRequest */ - public APIlistNamespacedCSIStorageCapacityRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistVolumeAttachmentRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listNamespacedCSIStorageCapacity + * Build call for listVolumeAttachment * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6115,12 +7701,12 @@ public APIlistNamespacedCSIStorageCapacityRequest watch(@jakarta.annotation.Null */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listNamespacedCSIStorageCapacity request - * @return V1CSIStorageCapacityList + * Execute listVolumeAttachment request + * @return V1VolumeAttachmentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6130,14 +7716,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CSIStorageCapacityList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1VolumeAttachmentList execute() throws ApiException { + ApiResponse localVarResp = listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listNamespacedCSIStorageCapacity request with HTTP info returned - * @return ApiResponse<V1CSIStorageCapacityList> + * Execute listVolumeAttachment request with HTTP info returned + * @return ApiResponse<V1VolumeAttachmentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6147,12 +7733,12 @@ public V1CSIStorageCapacityList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listNamespacedCSIStorageCapacity request (asynchronously) + * Execute listVolumeAttachment 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 @@ -6164,16 +7750,15 @@ public ApiResponse executeWithHttpInfo() throws ApiExc 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedCSIStorageCapacityAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listVolumeAttachmentAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIlistNamespacedCSIStorageCapacityRequest + * list or watch objects of kind VolumeAttachment + * @return APIlistVolumeAttachmentRequest * @http.response.details @@ -6182,10 +7767,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ca
Response Details
401 Unauthorized -
*/ - public APIlistNamespacedCSIStorageCapacityRequest listNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String namespace) { - return new APIlistNamespacedCSIStorageCapacityRequest(namespace); + public APIlistVolumeAttachmentRequest listVolumeAttachment() { + return new APIlistVolumeAttachmentRequest(); } - private okhttp3.Call listStorageClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6202,7 +7787,7 @@ private okhttp3.Call listStorageClassCall(@jakarta.annotation.Nullable String pr Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/storageclasses"; + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6280,27 +7865,27 @@ private okhttp3.Call listStorageClassCall(@jakarta.annotation.Nullable String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call listStorageClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listStorageClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listStorageClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistStorageClassRequest { + public class APIlistVolumeAttributesClassRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -6324,15 +7909,15 @@ public class APIlistStorageClassRequest { @jakarta.annotation.Nullable private Boolean watch; - private APIlistStorageClassRequest() { + 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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6340,9 +7925,9 @@ public APIlistStorageClassRequest pretty(@jakarta.annotation.Nullable String pre /** * 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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistVolumeAttributesClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6350,9 +7935,9 @@ public APIlistStorageClassRequest allowWatchBookmarks(@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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistVolumeAttributesClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6360,9 +7945,9 @@ public APIlistStorageClassRequest _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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistVolumeAttributesClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6370,9 +7955,9 @@ public APIlistStorageClassRequest fieldSelector(@jakarta.annotation.Nullable Str /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistVolumeAttributesClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6380,9 +7965,9 @@ public APIlistStorageClassRequest labelSelector(@jakarta.annotation.Nullable Str /** * 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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistVolumeAttributesClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6390,9 +7975,9 @@ public APIlistStorageClassRequest limit(@jakarta.annotation.Nullable Integer lim /** * 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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistVolumeAttributesClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6400,9 +7985,9 @@ public APIlistStorageClassRequest resourceVersion(@jakarta.annotation.Nullable S /** * 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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistVolumeAttributesClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6410,9 +7995,9 @@ public APIlistStorageClassRequest resourceVersionMatch(@jakarta.annotation.Nulla /** * 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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistVolumeAttributesClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6420,9 +8005,9 @@ public APIlistStorageClassRequest sendInitialEvents(@jakarta.annotation.Nullable /** * 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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistVolumeAttributesClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6430,15 +8015,15 @@ public APIlistStorageClassRequest timeoutSeconds(@jakarta.annotation.Nullable In /** * 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 APIlistStorageClassRequest + * @return APIlistVolumeAttributesClassRequest */ - public APIlistStorageClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistVolumeAttributesClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listStorageClass + * Build call for listVolumeAttributesClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6451,12 +8036,12 @@ public APIlistStorageClassRequest watch(@jakarta.annotation.Nullable Boolean wat */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listStorageClass request - * @return V1StorageClassList + * Execute listVolumeAttributesClass request + * @return V1VolumeAttributesClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6466,14 +8051,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1StorageClassList execute() throws ApiException { - ApiResponse localVarResp = listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1VolumeAttributesClassList execute() throws ApiException { + ApiResponse localVarResp = listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listStorageClass request with HTTP info returned - * @return ApiResponse<V1StorageClassList> + * Execute listVolumeAttributesClass request with HTTP info returned + * @return ApiResponse<V1VolumeAttributesClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6483,12 +8068,12 @@ public V1StorageClassList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listStorageClass request (asynchronously) + * 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 @@ -6500,15 +8085,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listStorageClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listVolumeAttributesClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind StorageClass - * @return APIlistStorageClassRequest + * list or watch objects of kind VolumeAttributesClass + * @return APIlistVolumeAttributesClassRequest * @http.response.details @@ -6517,10 +8102,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIlistStorageClassRequest listStorageClass() { - return new APIlistStorageClassRequest(); + public APIlistVolumeAttributesClassRequest listVolumeAttributesClass() { + return new APIlistVolumeAttributesClassRequest(); } - private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSIDriverCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6534,10 +8119,11 @@ private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable Strin basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments"; + String localVarPath = "/apis/storage.k8s.io/v1/csidrivers/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6549,54 +8135,27 @@ private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable Strin 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 (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)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } 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) { @@ -6604,6 +8163,7 @@ private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable Strin } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6611,169 +8171,113 @@ private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable 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, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call patchCSIDriverValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchCSIDriver(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchCSIDriver(Async)"); + } + + return patchCSIDriverCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse listVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchCSIDriverWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listVolumeAttachmentAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSIDriverAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistVolumeAttachmentRequest { - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistVolumeAttachmentRequest() { - } - - /** - * 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 APIlistVolumeAttachmentRequest - */ - public APIlistVolumeAttachmentRequest 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 APIlistVolumeAttachmentRequest - */ - public APIlistVolumeAttachmentRequest 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 APIlistVolumeAttachmentRequest - */ - public APIlistVolumeAttachmentRequest _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 APIlistVolumeAttachmentRequest - */ - public APIlistVolumeAttachmentRequest 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 APIlistVolumeAttachmentRequest - */ - public APIlistVolumeAttachmentRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } + public class APIpatchCSIDriverRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; - /** - * 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 APIlistVolumeAttachmentRequest - */ - public APIlistVolumeAttachmentRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; + private APIpatchCSIDriverRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; } /** - * 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 APIlistVolumeAttachmentRequest + * 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 APIpatchCSIDriverRequest */ - public APIlistVolumeAttachmentRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; + public APIpatchCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; 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 APIlistVolumeAttachmentRequest + * 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 APIpatchCSIDriverRequest */ - public APIlistVolumeAttachmentRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIpatchCSIDriverRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; 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 APIlistVolumeAttachmentRequest + * 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 APIpatchCSIDriverRequest */ - public APIlistVolumeAttachmentRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIpatchCSIDriverRequest 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 APIlistVolumeAttachmentRequest + * 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 APIpatchCSIDriverRequest */ - public APIlistVolumeAttachmentRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIpatchCSIDriverRequest 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 APIlistVolumeAttachmentRequest + * 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 APIpatchCSIDriverRequest */ - public APIlistVolumeAttachmentRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIpatchCSIDriverRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for listVolumeAttachment + * Build call for patchCSIDriver * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6782,48 +8286,51 @@ public APIlistVolumeAttachmentRequest watch(@jakarta.annotation.Nullable Boolean Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return patchCSIDriverCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute listVolumeAttachment request - * @return V1VolumeAttachmentList + * Execute patchCSIDriver request + * @return V1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1VolumeAttachmentList execute() throws ApiException { - ApiResponse localVarResp = listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1CSIDriver execute() throws ApiException { + ApiResponse localVarResp = patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute listVolumeAttachment request with HTTP info returned - * @return ApiResponse<V1VolumeAttachmentList> + * Execute patchCSIDriver request with HTTP info returned + * @return ApiResponse<V1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute listVolumeAttachment request (asynchronously) + * Execute patchCSIDriver 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 @@ -6832,30 +8339,34 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listVolumeAttachmentAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchCSIDriverAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * list or watch objects of kind VolumeAttachment - * @return APIlistVolumeAttachmentRequest + * partially update the specified CSIDriver + * @param name name of the CSIDriver (required) + * @param body (required) + * @return APIpatchCSIDriverRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIlistVolumeAttachmentRequest listVolumeAttachment() { - return new APIlistVolumeAttachmentRequest(); + public APIpatchCSIDriverRequest patchCSIDriver(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchCSIDriverRequest(name, body); } - private okhttp3.Call patchCSIDriverCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSINodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6872,7 +8383,7 @@ private okhttp3.Call patchCSIDriverCall(@jakarta.annotation.Nonnull String name, Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/csidrivers/{name}" + String localVarPath = "/apis/storage.k8s.io/v1/csinodes/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6925,37 +8436,37 @@ private okhttp3.Call patchCSIDriverCall(@jakarta.annotation.Nonnull String name, } @SuppressWarnings("rawtypes") - private okhttp3.Call patchCSIDriverValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSINodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchCSIDriver(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchCSINode(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchCSIDriver(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchCSINode(Async)"); } - return patchCSIDriverCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchCSINodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchCSIDriverWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchCSINodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCSIDriverAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCSINodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchCSIDriverRequest { + public class APIpatchCSINodeRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -6971,7 +8482,7 @@ public class APIpatchCSIDriverRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchCSIDriverRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchCSINodeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -6979,9 +8490,9 @@ private APIpatchCSIDriverRequest(@jakarta.annotation.Nonnull String name, @jakar /** * 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 APIpatchCSIDriverRequest + * @return APIpatchCSINodeRequest */ - public APIpatchCSIDriverRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6989,9 +8500,9 @@ public APIpatchCSIDriverRequest pretty(@jakarta.annotation.Nullable String prett /** * 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 APIpatchCSIDriverRequest + * @return APIpatchCSINodeRequest */ - public APIpatchCSIDriverRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchCSINodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6999,9 +8510,9 @@ public APIpatchCSIDriverRequest dryRun(@jakarta.annotation.Nullable String dryRu /** * 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 APIpatchCSIDriverRequest + * @return APIpatchCSINodeRequest */ - public APIpatchCSIDriverRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchCSINodeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7009,9 +8520,9 @@ public APIpatchCSIDriverRequest fieldManager(@jakarta.annotation.Nullable String /** * 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 APIpatchCSIDriverRequest + * @return APIpatchCSINodeRequest */ - public APIpatchCSIDriverRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchCSINodeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7019,15 +8530,15 @@ public APIpatchCSIDriverRequest fieldValidation(@jakarta.annotation.Nullable Str /** * 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 APIpatchCSIDriverRequest + * @return APIpatchCSINodeRequest */ - public APIpatchCSIDriverRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchCSINodeRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchCSIDriver + * Build call for patchCSINode * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7041,12 +8552,12 @@ public APIpatchCSIDriverRequest force(@jakarta.annotation.Nullable Boolean force */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchCSIDriverCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchCSINodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchCSIDriver request - * @return V1CSIDriver + * Execute patchCSINode request + * @return V1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7057,14 +8568,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CSIDriver execute() throws ApiException { - ApiResponse localVarResp = patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1CSINode execute() throws ApiException { + ApiResponse localVarResp = patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchCSIDriver request with HTTP info returned - * @return ApiResponse<V1CSIDriver> + * Execute patchCSINode 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 @@ -7075,12 +8586,12 @@ public V1CSIDriver execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchCSIDriver request (asynchronously) + * Execute patchCSINode 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 @@ -7093,17 +8604,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchCSIDriverAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchCSINodeAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified CSIDriver - * @param name name of the CSIDriver (required) + * partially update the specified CSINode + * @param name name of the CSINode (required) * @param body (required) - * @return APIpatchCSIDriverRequest + * @return APIpatchCSINodeRequest * @http.response.details @@ -7113,10 +8624,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw
Response Details
401 Unauthorized -
*/ - public APIpatchCSIDriverRequest patchCSIDriver(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchCSIDriverRequest(name, body); + public APIpatchCSINodeRequest patchCSINode(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchCSINodeRequest(name, body); } - private okhttp3.Call patchCSINodeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7133,8 +8644,9 @@ private okhttp3.Call patchCSINodeCall(@jakarta.annotation.Nonnull String name, @ Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/csinodes/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + 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(); @@ -7186,40 +8698,47 @@ private okhttp3.Call patchCSINodeCall(@jakarta.annotation.Nonnull String name, @ } @SuppressWarnings("rawtypes") - private okhttp3.Call patchCSINodeValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchCSINode(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedCSIStorageCapacity(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedCSIStorageCapacity(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchCSINode(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCSIStorageCapacity(Async)"); } - return patchCSINodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchNamespacedCSIStorageCapacityCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchCSINodeWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCSINodeAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchCSINodeRequest { + public class APIpatchNamespacedCSIStorageCapacityRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull private final V1Patch body; @jakarta.annotation.Nullable private String pretty; @@ -7232,17 +8751,18 @@ public class APIpatchCSINodeRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchCSINodeRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; + this.namespace = namespace; this.body = body; } /** * 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 APIpatchCSINodeRequest + * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7250,9 +8770,9 @@ public APIpatchCSINodeRequest pretty(@jakarta.annotation.Nullable String pretty) /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchCSINodeRequest + * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchCSINodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7260,9 +8780,9 @@ public APIpatchCSINodeRequest dryRun(@jakarta.annotation.Nullable String dryRun) /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchCSINodeRequest + * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchCSINodeRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchNamespacedCSIStorageCapacityRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7270,9 +8790,9 @@ public APIpatchCSINodeRequest fieldManager(@jakarta.annotation.Nullable String f /** * 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 APIpatchCSINodeRequest + * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchCSINodeRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchNamespacedCSIStorageCapacityRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7280,15 +8800,15 @@ public APIpatchCSINodeRequest fieldValidation(@jakarta.annotation.Nullable Strin /** * 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 APIpatchCSINodeRequest + * @return APIpatchNamespacedCSIStorageCapacityRequest */ - public APIpatchCSINodeRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchNamespacedCSIStorageCapacityRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchCSINode + * Build call for patchNamespacedCSIStorageCapacity * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7302,12 +8822,12 @@ public APIpatchCSINodeRequest force(@jakarta.annotation.Nullable Boolean force) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchCSINodeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchNamespacedCSIStorageCapacityCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchCSINode request - * @return V1CSINode + * Execute patchNamespacedCSIStorageCapacity request + * @return V1CSIStorageCapacity * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7318,14 +8838,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CSINode execute() throws ApiException { - ApiResponse localVarResp = patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1CSIStorageCapacity execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchCSINode request with HTTP info returned - * @return ApiResponse<V1CSINode> + * Execute patchNamespacedCSIStorageCapacity request with HTTP info returned + * @return ApiResponse<V1CSIStorageCapacity> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7336,12 +8856,12 @@ public V1CSINode execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchCSINode request (asynchronously) + * Execute patchNamespacedCSIStorageCapacity 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 @@ -7354,17 +8874,18 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchCSINodeAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedCSIStorageCapacityAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified CSINode - * @param name name of the CSINode (required) + * partially update the specified CSIStorageCapacity + * @param name name of the CSIStorageCapacity (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) - * @return APIpatchCSINodeRequest + * @return APIpatchNamespacedCSIStorageCapacityRequest * @http.response.details @@ -7374,10 +8895,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws
Response Details
401 Unauthorized -
*/ - public APIpatchCSINodeRequest patchCSINode(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchCSINodeRequest(name, body); + public APIpatchNamespacedCSIStorageCapacityRequest patchNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedCSIStorageCapacityRequest(name, namespace, body); } - private okhttp3.Call 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 { + private okhttp3.Call patchStorageClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7394,9 +8915,8 @@ private okhttp3.Call patchNamespacedCSIStorageCapacityCall(@jakarta.annotation.N Object localVarPostBody = body; // 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/storageclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7448,47 +8968,40 @@ private okhttp3.Call patchNamespacedCSIStorageCapacityCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedCSIStorageCapacity(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedCSIStorageCapacity(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchStorageClass(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCSIStorageCapacity(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchStorageClass(Async)"); } - return patchNamespacedCSIStorageCapacityCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchStorageClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchStorageClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchStorageClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchNamespacedCSIStorageCapacityRequest { + public class APIpatchStorageClassRequest { @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; @@ -7501,18 +9014,17 @@ public class APIpatchNamespacedCSIStorageCapacityRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchNamespacedCSIStorageCapacityRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchStorageClassRequest(@jakarta.annotation.Nonnull String name, @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 APIpatchNamespacedCSIStorageCapacityRequest + * @return APIpatchStorageClassRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7520,9 +9032,9 @@ public APIpatchNamespacedCSIStorageCapacityRequest pretty(@jakarta.annotation.Nu /** * 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 APIpatchNamespacedCSIStorageCapacityRequest + * @return APIpatchStorageClassRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchStorageClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7530,9 +9042,9 @@ public APIpatchNamespacedCSIStorageCapacityRequest dryRun(@jakarta.annotation.Nu /** * 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 APIpatchNamespacedCSIStorageCapacityRequest + * @return APIpatchStorageClassRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchStorageClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7540,9 +9052,9 @@ public APIpatchNamespacedCSIStorageCapacityRequest fieldManager(@jakarta.annotat /** * 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 APIpatchNamespacedCSIStorageCapacityRequest + * @return APIpatchStorageClassRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchStorageClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7550,15 +9062,15 @@ public APIpatchNamespacedCSIStorageCapacityRequest fieldValidation(@jakarta.anno /** * 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 APIpatchNamespacedCSIStorageCapacityRequest + * @return APIpatchStorageClassRequest */ - public APIpatchNamespacedCSIStorageCapacityRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchStorageClassRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchNamespacedCSIStorageCapacity + * Build call for patchStorageClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7572,12 +9084,12 @@ public APIpatchNamespacedCSIStorageCapacityRequest force(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchNamespacedCSIStorageCapacityCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchStorageClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchNamespacedCSIStorageCapacity request - * @return V1CSIStorageCapacity + * Execute patchStorageClass request + * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7588,14 +9100,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1CSIStorageCapacity execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1StorageClass execute() throws ApiException { + ApiResponse localVarResp = patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchNamespacedCSIStorageCapacity request with HTTP info returned - * @return ApiResponse<V1CSIStorageCapacity> + * Execute patchStorageClass request with HTTP info returned + * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7606,12 +9118,12 @@ public V1CSIStorageCapacity execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchNamespacedCSIStorageCapacity request (asynchronously) + * Execute patchStorageClass 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 @@ -7624,18 +9136,17 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchNamespacedCSIStorageCapacityAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchStorageClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified CSIStorageCapacity - * @param name name of the CSIStorageCapacity (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * partially update the specified StorageClass + * @param name name of the StorageClass (required) * @param body (required) - * @return APIpatchNamespacedCSIStorageCapacityRequest + * @return APIpatchStorageClassRequest * @http.response.details @@ -7645,10 +9156,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
401 Unauthorized -
*/ - public APIpatchNamespacedCSIStorageCapacityRequest patchNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchNamespacedCSIStorageCapacityRequest(name, namespace, body); + public APIpatchStorageClassRequest patchStorageClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchStorageClassRequest(name, body); } - private okhttp3.Call patchStorageClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7665,7 +9176,7 @@ private okhttp3.Call patchStorageClassCall(@jakarta.annotation.Nonnull String na Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" + String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7718,37 +9229,37 @@ private okhttp3.Call patchStorageClassCall(@jakarta.annotation.Nonnull String na } @SuppressWarnings("rawtypes") - private okhttp3.Call patchStorageClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchStorageClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchVolumeAttachment(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchStorageClass(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachment(Async)"); } - return patchStorageClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchStorageClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchStorageClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchStorageClassRequest { + public class APIpatchVolumeAttachmentRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -7764,7 +9275,7 @@ public class APIpatchStorageClassRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchStorageClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchVolumeAttachmentRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -7772,9 +9283,9 @@ private APIpatchStorageClassRequest(@jakarta.annotation.Nonnull String name, @ja /** * 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 APIpatchStorageClassRequest + * @return APIpatchVolumeAttachmentRequest */ - public APIpatchStorageClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7782,9 +9293,9 @@ public APIpatchStorageClassRequest 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 APIpatchStorageClassRequest + * @return APIpatchVolumeAttachmentRequest */ - public APIpatchStorageClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7792,9 +9303,9 @@ public APIpatchStorageClassRequest 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchStorageClassRequest + * @return APIpatchVolumeAttachmentRequest */ - public APIpatchStorageClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchVolumeAttachmentRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7802,9 +9313,9 @@ public APIpatchStorageClassRequest 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 APIpatchStorageClassRequest + * @return APIpatchVolumeAttachmentRequest */ - public APIpatchStorageClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchVolumeAttachmentRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7812,15 +9323,15 @@ public APIpatchStorageClassRequest fieldValidation(@jakarta.annotation.Nullable /** * 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 APIpatchStorageClassRequest + * @return APIpatchVolumeAttachmentRequest */ - public APIpatchStorageClassRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchVolumeAttachmentRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchStorageClass + * Build call for patchVolumeAttachment * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7834,12 +9345,12 @@ public APIpatchStorageClassRequest force(@jakarta.annotation.Nullable Boolean fo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchStorageClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchStorageClass request - * @return V1StorageClass + * Execute patchVolumeAttachment request + * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7850,14 +9361,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1StorageClass execute() throws ApiException { - ApiResponse localVarResp = patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1VolumeAttachment execute() throws ApiException { + ApiResponse localVarResp = patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchStorageClass request with HTTP info returned - * @return ApiResponse<V1StorageClass> + * Execute patchVolumeAttachment request with HTTP info returned + * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7868,12 +9379,12 @@ public V1StorageClass execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchStorageClass request (asynchronously) + * Execute patchVolumeAttachment 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 @@ -7886,17 +9397,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchStorageClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchVolumeAttachmentAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified StorageClass - * @param name name of the StorageClass (required) + * partially update the specified VolumeAttachment + * @param name name of the VolumeAttachment (required) * @param body (required) - * @return APIpatchStorageClassRequest + * @return APIpatchVolumeAttachmentRequest * @http.response.details @@ -7906,10 +9417,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th
Response Details
401 Unauthorized -
*/ - public APIpatchStorageClassRequest patchStorageClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchStorageClassRequest(name, body); + public APIpatchVolumeAttachmentRequest patchVolumeAttachment(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchVolumeAttachmentRequest(name, body); } - private okhttp3.Call patchVolumeAttachmentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7926,7 +9437,7 @@ private okhttp3.Call patchVolumeAttachmentCall(@jakarta.annotation.Nonnull Strin Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" + String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7979,37 +9490,37 @@ private okhttp3.Call patchVolumeAttachmentCall(@jakarta.annotation.Nonnull Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchVolumeAttachment(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchVolumeAttachmentStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachment(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachmentStatus(Async)"); } - return patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + private ApiResponse patchVolumeAttachmentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchVolumeAttachmentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchVolumeAttachmentRequest { + public class APIpatchVolumeAttachmentStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -8025,7 +9536,7 @@ public class APIpatchVolumeAttachmentRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchVolumeAttachmentRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchVolumeAttachmentStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -8033,9 +9544,9 @@ private APIpatchVolumeAttachmentRequest(@jakarta.annotation.Nonnull String 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 APIpatchVolumeAttachmentRequest + * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchVolumeAttachmentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8043,9 +9554,9 @@ public APIpatchVolumeAttachmentRequest pretty(@jakarta.annotation.Nullable Strin /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchVolumeAttachmentRequest + * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchVolumeAttachmentStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8053,9 +9564,9 @@ public APIpatchVolumeAttachmentRequest dryRun(@jakarta.annotation.Nullable Strin /** * 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 APIpatchVolumeAttachmentRequest + * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchVolumeAttachmentStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8063,9 +9574,9 @@ public APIpatchVolumeAttachmentRequest fieldManager(@jakarta.annotation.Nullable /** * 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 APIpatchVolumeAttachmentRequest + * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchVolumeAttachmentStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8073,15 +9584,15 @@ public APIpatchVolumeAttachmentRequest fieldValidation(@jakarta.annotation.Nulla /** * 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 APIpatchVolumeAttachmentRequest + * @return APIpatchVolumeAttachmentStatusRequest */ - public APIpatchVolumeAttachmentRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchVolumeAttachmentStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchVolumeAttachment + * Build call for patchVolumeAttachmentStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8095,11 +9606,11 @@ public APIpatchVolumeAttachmentRequest force(@jakarta.annotation.Nullable Boolea */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchVolumeAttachment request + * Execute patchVolumeAttachmentStatus request * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8112,12 +9623,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1VolumeAttachment execute() throws ApiException { - ApiResponse localVarResp = patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + ApiResponse localVarResp = patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchVolumeAttachment request with HTTP info returned + * Execute patchVolumeAttachmentStatus request with HTTP info returned * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8130,11 +9641,11 @@ public V1VolumeAttachment execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchVolumeAttachment request (asynchronously) + * Execute patchVolumeAttachmentStatus 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 @@ -8148,16 +9659,16 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchVolumeAttachmentAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchVolumeAttachmentStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified VolumeAttachment + * partially update status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) - * @return APIpatchVolumeAttachmentRequest + * @return APIpatchVolumeAttachmentStatusRequest * @http.response.details @@ -8167,10 +9678,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIpatchVolumeAttachmentRequest patchVolumeAttachment(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchVolumeAttachmentRequest(name, body); + public APIpatchVolumeAttachmentStatusRequest patchVolumeAttachmentStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchVolumeAttachmentStatusRequest(name, body); } - private okhttp3.Call patchVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -8187,7 +9698,7 @@ private okhttp3.Call patchVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status" + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -8240,37 +9751,37 @@ private okhttp3.Call patchVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + 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 patchVolumeAttachmentStatus(Async)"); + 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 patchVolumeAttachmentStatus(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttributesClass(Async)"); } - return patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchVolumeAttachmentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 patchVolumeAttachmentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + 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 = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 APIpatchVolumeAttachmentStatusRequest { + public class APIpatchVolumeAttributesClassRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -8286,7 +9797,7 @@ public class APIpatchVolumeAttachmentStatusRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchVolumeAttachmentStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchVolumeAttributesClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -8294,9 +9805,9 @@ private APIpatchVolumeAttachmentStatusRequest(@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 APIpatchVolumeAttachmentStatusRequest + * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttachmentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8304,9 +9815,9 @@ public APIpatchVolumeAttachmentStatusRequest pretty(@jakarta.annotation.Nullable /** * 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 APIpatchVolumeAttachmentStatusRequest + * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttachmentStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchVolumeAttributesClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8314,9 +9825,9 @@ public APIpatchVolumeAttachmentStatusRequest dryRun(@jakarta.annotation.Nullable /** * 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 APIpatchVolumeAttachmentStatusRequest + * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttachmentStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchVolumeAttributesClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8324,9 +9835,9 @@ public APIpatchVolumeAttachmentStatusRequest fieldManager(@jakarta.annotation.Nu /** * 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 APIpatchVolumeAttachmentStatusRequest + * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttachmentStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchVolumeAttributesClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8334,15 +9845,15 @@ public APIpatchVolumeAttachmentStatusRequest fieldValidation(@jakarta.annotation /** * 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 APIpatchVolumeAttachmentStatusRequest + * @return APIpatchVolumeAttributesClassRequest */ - public APIpatchVolumeAttachmentStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchVolumeAttributesClassRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchVolumeAttachmentStatus + * Build call for patchVolumeAttributesClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8356,12 +9867,12 @@ public APIpatchVolumeAttachmentStatusRequest force(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchVolumeAttachmentStatus request - * @return V1VolumeAttachment + * Execute patchVolumeAttributesClass request + * @return V1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8372,14 +9883,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1VolumeAttachment execute() throws ApiException { - ApiResponse localVarResp = patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1VolumeAttributesClass execute() throws ApiException { + ApiResponse localVarResp = patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchVolumeAttachmentStatus request with HTTP info returned - * @return ApiResponse<V1VolumeAttachment> + * Execute patchVolumeAttributesClass request with HTTP info returned + * @return ApiResponse<V1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8390,12 +9901,12 @@ public V1VolumeAttachment execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchVolumeAttachmentStatus request (asynchronously) + * 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 @@ -8408,17 +9919,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchVolumeAttachmentStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchVolumeAttributesClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update status of the specified VolumeAttachment - * @param name name of the VolumeAttachment (required) + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) * @param body (required) - * @return APIpatchVolumeAttachmentStatusRequest + * @return APIpatchVolumeAttributesClassRequest * @http.response.details @@ -8428,8 +9939,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIpatchVolumeAttachmentStatusRequest patchVolumeAttachmentStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchVolumeAttachmentStatusRequest(name, body); + public APIpatchVolumeAttributesClassRequest patchVolumeAttributesClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchVolumeAttributesClassRequest(name, body); } private okhttp3.Call readCSIDriverCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -9297,12 +10808,194 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1VolumeAttachment execute() throws ApiException { - ApiResponse localVarResp = readVolumeAttachmentWithHttpInfo(name, pretty); + ApiResponse localVarResp = readVolumeAttachmentWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * Execute readVolumeAttachment request with HTTP info returned + * @return ApiResponse<V1VolumeAttachment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readVolumeAttachmentWithHttpInfo(name, pretty); + } + + /** + * Execute readVolumeAttachment 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 readVolumeAttachmentAsync(name, pretty, _callback); + } + } + + /** + * + * read the specified VolumeAttachment + * @param name name of the VolumeAttachment (required) + * @return APIreadVolumeAttachmentRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadVolumeAttachmentRequest readVolumeAttachment(@jakarta.annotation.Nonnull String name) { + return new APIreadVolumeAttachmentRequest(name); + } + private okhttp3.Call readVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // 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/volumeattachments/{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)); + } + + 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 readVolumeAttachmentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachmentStatus(Async)"); + } + + return readVolumeAttachmentStatusCall(name, pretty, _callback); + + } + + + private ApiResponse readVolumeAttachmentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readVolumeAttachmentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadVolumeAttachmentStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadVolumeAttachmentStatusRequest(@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 APIreadVolumeAttachmentStatusRequest + */ + public APIreadVolumeAttachmentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readVolumeAttachmentStatus + * @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 readVolumeAttachmentStatusCall(name, pretty, _callback); + } + + /** + * Execute readVolumeAttachmentStatus request + * @return V1VolumeAttachment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1VolumeAttachment execute() throws ApiException { + ApiResponse localVarResp = readVolumeAttachmentStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readVolumeAttachment request with HTTP info returned + * Execute readVolumeAttachmentStatus request with HTTP info returned * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9314,11 +11007,11 @@ public V1VolumeAttachment execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return readVolumeAttachmentWithHttpInfo(name, pretty); + return readVolumeAttachmentStatusWithHttpInfo(name, pretty); } /** - * Execute readVolumeAttachment request (asynchronously) + * Execute readVolumeAttachmentStatus 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 @@ -9331,15 +11024,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readVolumeAttachmentAsync(name, pretty, _callback); + return readVolumeAttachmentStatusAsync(name, pretty, _callback); } } /** * - * read the specified VolumeAttachment + * read status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) - * @return APIreadVolumeAttachmentRequest + * @return APIreadVolumeAttachmentStatusRequest * @http.response.details @@ -9348,10 +11041,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIreadVolumeAttachmentRequest readVolumeAttachment(@jakarta.annotation.Nonnull String name) { - return new APIreadVolumeAttachmentRequest(name); + public APIreadVolumeAttachmentStatusRequest readVolumeAttachmentStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadVolumeAttachmentStatusRequest(name); } - private okhttp3.Call readVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttributesClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -9368,7 +11061,7 @@ private okhttp3.Call readVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status" + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -9404,53 +11097,53 @@ private okhttp3.Call readVolumeAttachmentStatusCall(@jakarta.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call readVolumeAttachmentStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachmentStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttributesClass(Async)"); } - return readVolumeAttachmentStatusCall(name, pretty, _callback); + return readVolumeAttributesClassCall(name, pretty, _callback); } - private ApiResponse readVolumeAttachmentStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 readVolumeAttachmentStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readVolumeAttributesClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadVolumeAttachmentStatusRequest { + public class APIreadVolumeAttributesClassRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nullable private String pretty; - private APIreadVolumeAttachmentStatusRequest(@jakarta.annotation.Nonnull String name) { + 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 APIreadVolumeAttachmentStatusRequest + * @return APIreadVolumeAttributesClassRequest */ - public APIreadVolumeAttachmentStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadVolumeAttributesClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readVolumeAttachmentStatus + * Build call for readVolumeAttributesClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -9463,12 +11156,12 @@ public APIreadVolumeAttachmentStatusRequest pretty(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readVolumeAttachmentStatusCall(name, pretty, _callback); + return readVolumeAttributesClassCall(name, pretty, _callback); } /** - * Execute readVolumeAttachmentStatus request - * @return V1VolumeAttachment + * Execute readVolumeAttributesClass request + * @return V1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9478,14 +11171,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1VolumeAttachment execute() throws ApiException { - ApiResponse localVarResp = readVolumeAttachmentStatusWithHttpInfo(name, pretty); + public V1VolumeAttributesClass execute() throws ApiException { + ApiResponse localVarResp = readVolumeAttributesClassWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readVolumeAttachmentStatus request with HTTP info returned - * @return ApiResponse<V1VolumeAttachment> + * Execute readVolumeAttributesClass request with HTTP info returned + * @return ApiResponse<V1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -9495,12 +11188,12 @@ public V1VolumeAttachment execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readVolumeAttachmentStatusWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readVolumeAttributesClassWithHttpInfo(name, pretty); } /** - * Execute readVolumeAttachmentStatus request (asynchronously) + * 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 @@ -9512,16 +11205,16 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readVolumeAttachmentStatusAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readVolumeAttributesClassAsync(name, pretty, _callback); } } /** * - * read status of the specified VolumeAttachment - * @param name name of the VolumeAttachment (required) - * @return APIreadVolumeAttachmentStatusRequest + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @return APIreadVolumeAttributesClassRequest * @http.response.details @@ -9530,8 +11223,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIreadVolumeAttachmentStatusRequest readVolumeAttachmentStatus(@jakarta.annotation.Nonnull String name) { - return new APIreadVolumeAttachmentStatusRequest(name); + public APIreadVolumeAttributesClassRequest readVolumeAttributesClass(@jakarta.annotation.Nonnull String name) { + return new APIreadVolumeAttributesClassRequest(name); } private okhttp3.Call replaceCSIDriverCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CSIDriver body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -11013,4 +12706,249 @@ public okhttp3.Call executeAsync(final ApiCallback _callback public APIreplaceVolumeAttachmentStatusRequest replaceVolumeAttachmentStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttachment body) { return new APIreplaceVolumeAttachmentStatusRequest(name, body); } + private okhttp3.Call replaceVolumeAttributesClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1VolumeAttributesClass body, @jakarta.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/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 V1VolumeAttributesClass body, @jakarta.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 V1VolumeAttributesClass 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 V1VolumeAttributesClass body, @jakarta.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 V1VolumeAttributesClass body; + @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 V1VolumeAttributesClass 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 V1VolumeAttributesClass + * @throws ApiException If fail to call the API, 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 V1VolumeAttributesClass execute() throws ApiException { + ApiResponse localVarResp = replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceVolumeAttributesClass request with HTTP info returned + * @return ApiResponse<V1VolumeAttributesClass> + * @throws ApiException If fail to call the API, 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 V1VolumeAttributesClass body) { + return new APIreplaceVolumeAttributesClassRequest(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 2f80ab5b18..c8c8cd0e4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java index 730fa8701b..2d72fff4da 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java index 74ad1b8805..4ca3bc1cc9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java @@ -21,7 +21,7 @@ import java.util.Optional; import java.util.function.Supplier; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java index 002915bde8..7f91a24d55 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java @@ -20,7 +20,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java index 42a25fa59c..c75270a5fd 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 88a6ca4c02..1b8e469bcd 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) 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 49b0170e44..b6931138e3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 774a3c41b2..7cd77c6ccb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) 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 5f06745b66..8005178e15 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c3766c2406..515b9e0dee 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class AuthenticationV1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7e86eb0359..a2cb3b0811 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class CoreV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) 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 35940b1d84..39f6259908 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) 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 24b9d9adc6..d0f700304c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2f23ddca59..e5192cf128 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java similarity index 78% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java index a806fb638f..1d73a8a47c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java @@ -50,8 +50,8 @@ * ResourceClaim references one entry in PodSpec.ResourceClaims. */ @ApiModel(description = "ResourceClaim references one entry in PodSpec.ResourceClaims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1ResourceClaim { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class CoreV1ResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @jakarta.annotation.Nonnull @@ -62,10 +62,10 @@ public class V1ResourceClaim { @jakarta.annotation.Nullable private String request; - public V1ResourceClaim() { + public CoreV1ResourceClaim() { } - public V1ResourceClaim name(@jakarta.annotation.Nonnull String name) { + public CoreV1ResourceClaim name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -85,7 +85,7 @@ public void setName(@jakarta.annotation.Nonnull String name) { } - public V1ResourceClaim request(@jakarta.annotation.Nullable String request) { + public CoreV1ResourceClaim request(@jakarta.annotation.Nullable String request) { this.request = request; return this; } @@ -114,9 +114,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1ResourceClaim v1ResourceClaim = (V1ResourceClaim) o; - return Objects.equals(this.name, v1ResourceClaim.name) && - Objects.equals(this.request, v1ResourceClaim.request); + CoreV1ResourceClaim coreV1ResourceClaim = (CoreV1ResourceClaim) o; + return Objects.equals(this.name, coreV1ResourceClaim.name) && + Objects.equals(this.request, coreV1ResourceClaim.request); } @Override @@ -127,7 +127,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1ResourceClaim {\n"); + sb.append("class CoreV1ResourceClaim {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" request: ").append(toIndentedString(request)).append("\n"); sb.append("}"); @@ -164,25 +164,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 V1ResourceClaim + * @throws IOException if the JSON Element is invalid with respect to CoreV1ResourceClaim */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaim is not found in the empty JSON string", V1ResourceClaim.openapiRequiredFields.toString())); + if (!CoreV1ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CoreV1ResourceClaim is not found in the empty JSON string", CoreV1ResourceClaim.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1ResourceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!CoreV1ResourceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CoreV1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1ResourceClaim.openapiRequiredFields) { + for (String requiredField : CoreV1ResourceClaim.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -200,22 +200,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1ResourceClaim.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1ResourceClaim' and its subtypes + if (!CoreV1ResourceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CoreV1ResourceClaim' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceClaim.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CoreV1ResourceClaim.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1ResourceClaim value) throws IOException { + public void write(JsonWriter out, CoreV1ResourceClaim value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1ResourceClaim read(JsonReader in) throws IOException { + public CoreV1ResourceClaim read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -226,18 +226,18 @@ public V1ResourceClaim read(JsonReader in) throws IOException { } /** - * Create an instance of V1ResourceClaim given an JSON string + * Create an instance of CoreV1ResourceClaim given an JSON string * * @param jsonString JSON string - * @return An instance of V1ResourceClaim - * @throws IOException if the JSON string is invalid with respect to V1ResourceClaim + * @return An instance of CoreV1ResourceClaim + * @throws IOException if the JSON string is invalid with respect to CoreV1ResourceClaim */ - public static V1ResourceClaim fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1ResourceClaim.class); + public static CoreV1ResourceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CoreV1ResourceClaim.class); } /** - * Convert an instance of V1ResourceClaim to an JSON string + * Convert an instance of CoreV1ResourceClaim to an JSON string * * @return JSON string */ 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 289ac75426..7a444a9c9d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class DiscoveryV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) 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 80833a986a..d6045f77f8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) 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 aabee34508..8649cb5217 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 8ca33b6728..255ccad1f5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 256f971f61..9a99bb16dc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 fba1a6a1a7..1621f80d75 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class RbacV1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java similarity index 76% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaim.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java index 2b3a65dcb1..13ddab065f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.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.V1alpha3ResourceClaimSpec; -import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimStatus; +import io.kubernetes.client.openapi.models.V1ResourceClaimSpec; +import io.kubernetes.client.openapi.models.V1ResourceClaimStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -53,8 +53,8 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceClaim implements io.kubernetes.client.common.KubernetesObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class ResourceV1ResourceClaim 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 V1alpha3ResourceClaim implements io.kubernetes.client.common.Kubern public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1alpha3ResourceClaimSpec spec; + private V1ResourceClaimSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @jakarta.annotation.Nullable - private V1alpha3ResourceClaimStatus status; + private V1ResourceClaimStatus status; - public V1alpha3ResourceClaim() { + public ResourceV1ResourceClaim() { } - public V1alpha3ResourceClaim apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public ResourceV1ResourceClaim apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -103,7 +103,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha3ResourceClaim kind(@jakarta.annotation.Nullable String kind) { + public ResourceV1ResourceClaim kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -123,7 +123,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha3ResourceClaim metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public ResourceV1ResourceClaim metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha3ResourceClaim spec(@jakarta.annotation.Nonnull V1alpha3ResourceClaimSpec spec) { + public ResourceV1ResourceClaim spec(@jakarta.annotation.Nonnull V1ResourceClaimSpec spec) { this.spec = spec; return this; } @@ -154,16 +154,16 @@ public V1alpha3ResourceClaim spec(@jakarta.annotation.Nonnull V1alpha3ResourceCl */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha3ResourceClaimSpec getSpec() { + public V1ResourceClaimSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1alpha3ResourceClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1ResourceClaimSpec spec) { this.spec = spec; } - public V1alpha3ResourceClaim status(@jakarta.annotation.Nullable V1alpha3ResourceClaimStatus status) { + public ResourceV1ResourceClaim status(@jakarta.annotation.Nullable V1ResourceClaimStatus status) { this.status = status; return this; } @@ -174,11 +174,11 @@ public V1alpha3ResourceClaim status(@jakarta.annotation.Nullable V1alpha3Resourc */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3ResourceClaimStatus getStatus() { + public V1ResourceClaimStatus getStatus() { return status; } - public void setStatus(@jakarta.annotation.Nullable V1alpha3ResourceClaimStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1ResourceClaimStatus status) { this.status = status; } @@ -192,12 +192,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3ResourceClaim v1alpha3ResourceClaim = (V1alpha3ResourceClaim) o; - return Objects.equals(this.apiVersion, v1alpha3ResourceClaim.apiVersion) && - Objects.equals(this.kind, v1alpha3ResourceClaim.kind) && - Objects.equals(this.metadata, v1alpha3ResourceClaim.metadata) && - Objects.equals(this.spec, v1alpha3ResourceClaim.spec) && - Objects.equals(this.status, v1alpha3ResourceClaim.status); + ResourceV1ResourceClaim resourceV1ResourceClaim = (ResourceV1ResourceClaim) o; + return Objects.equals(this.apiVersion, resourceV1ResourceClaim.apiVersion) && + Objects.equals(this.kind, resourceV1ResourceClaim.kind) && + Objects.equals(this.metadata, resourceV1ResourceClaim.metadata) && + Objects.equals(this.spec, resourceV1ResourceClaim.spec) && + Objects.equals(this.status, resourceV1ResourceClaim.status); } @Override @@ -208,7 +208,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceClaim {\n"); + sb.append("class ResourceV1ResourceClaim {\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"); @@ -251,25 +251,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 V1alpha3ResourceClaim + * @throws IOException if the JSON Element is invalid with respect to ResourceV1ResourceClaim */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceClaim is not found in the empty JSON string", V1alpha3ResourceClaim.openapiRequiredFields.toString())); + if (!ResourceV1ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceV1ResourceClaim is not found in the empty JSON string", ResourceV1ResourceClaim.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!ResourceV1ResourceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("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 : V1alpha3ResourceClaim.openapiRequiredFields) { + for (String requiredField : ResourceV1ResourceClaim.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -286,10 +286,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1alpha3ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + V1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - V1alpha3ResourceClaimStatus.validateJsonElement(jsonObj.get("status")); + V1ResourceClaimStatus.validateJsonElement(jsonObj.get("status")); } } @@ -297,22 +297,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceClaim.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceClaim' and its subtypes + if (!ResourceV1ResourceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceV1ResourceClaim' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceClaim.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceV1ResourceClaim.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceClaim value) throws IOException { + public void write(JsonWriter out, ResourceV1ResourceClaim value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceClaim read(JsonReader in) throws IOException { + public ResourceV1ResourceClaim read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -323,18 +323,18 @@ public V1alpha3ResourceClaim read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3ResourceClaim given an JSON string + * Create an instance of ResourceV1ResourceClaim given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceClaim - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceClaim + * @return An instance of ResourceV1ResourceClaim + * @throws IOException if the JSON string is invalid with respect to ResourceV1ResourceClaim */ - public static V1alpha3ResourceClaim fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceClaim.class); + public static ResourceV1ResourceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceV1ResourceClaim.class); } /** - * Convert an instance of V1alpha3ResourceClaim to an JSON string + * Convert an instance of ResourceV1ResourceClaim to an JSON string * * @return JSON string */ 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 df65ed14f0..b01ed981b7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 8578747b53..3224d8f566 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e7b32b18d4..51ca0e9a99 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 cd9730621a..bf6a583bbb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 87537d81f5..461beffff1 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 93fa260687..e1b3857630 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b5af4e8026..5e69064799 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 c0ab4feece..b46e23bc3c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6ec0eeb48a..5a8d550b28 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) 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 171f0547d9..c06beda88f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1501a439b9..edc93fbe55 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d268a9cc49..e1c9c52434 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 6dd6a86130..4c51f65b3c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) 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 6dc9266408..1c028e05b8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java similarity index 72% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java index 0d6535eced..7ae923dfa3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.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.V1alpha3NetworkDeviceData; +import io.kubernetes.client.openapi.models.V1NetworkDeviceData; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,11 +51,11 @@ import io.kubernetes.client.openapi.JSON; /** - * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. + * 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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3AllocatedDeviceStatus { +@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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @jakarta.annotation.Nullable @@ -79,22 +79,27 @@ public class V1alpha3AllocatedDeviceStatus { public static final String SERIALIZED_NAME_NETWORK_DATA = "networkData"; @SerializedName(SERIALIZED_NAME_NETWORK_DATA) @jakarta.annotation.Nullable - private V1alpha3NetworkDeviceData networkData; + private V1NetworkDeviceData networkData; public static final String SERIALIZED_NAME_POOL = "pool"; @SerializedName(SERIALIZED_NAME_POOL) @jakarta.annotation.Nonnull private String pool; - public V1alpha3AllocatedDeviceStatus() { + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + @jakarta.annotation.Nullable + private String shareID; + + public V1AllocatedDeviceStatus() { } - public V1alpha3AllocatedDeviceStatus conditions(@jakarta.annotation.Nullable List conditions) { + public V1AllocatedDeviceStatus conditions(@jakarta.annotation.Nullable List conditions) { this.conditions = conditions; return this; } - public V1alpha3AllocatedDeviceStatus addConditionsItem(V1Condition conditionsItem) { + public V1AllocatedDeviceStatus addConditionsItem(V1Condition conditionsItem) { if (this.conditions == null) { this.conditions = new ArrayList<>(); } @@ -117,7 +122,7 @@ public void setConditions(@jakarta.annotation.Nullable List conditi } - public V1alpha3AllocatedDeviceStatus data(@jakarta.annotation.Nullable Object data) { + public V1AllocatedDeviceStatus data(@jakarta.annotation.Nullable Object data) { this.data = data; return this; } @@ -137,7 +142,7 @@ public void setData(@jakarta.annotation.Nullable Object data) { } - public V1alpha3AllocatedDeviceStatus device(@jakarta.annotation.Nonnull String device) { + public V1AllocatedDeviceStatus device(@jakarta.annotation.Nonnull String device) { this.device = device; return this; } @@ -157,7 +162,7 @@ public void setDevice(@jakarta.annotation.Nonnull String device) { } - public V1alpha3AllocatedDeviceStatus driver(@jakarta.annotation.Nonnull String driver) { + public V1AllocatedDeviceStatus driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } @@ -177,7 +182,7 @@ public void setDriver(@jakarta.annotation.Nonnull String driver) { } - public V1alpha3AllocatedDeviceStatus networkData(@jakarta.annotation.Nullable V1alpha3NetworkDeviceData networkData) { + public V1AllocatedDeviceStatus networkData(@jakarta.annotation.Nullable V1NetworkDeviceData networkData) { this.networkData = networkData; return this; } @@ -188,16 +193,16 @@ public V1alpha3AllocatedDeviceStatus networkData(@jakarta.annotation.Nullable V1 */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3NetworkDeviceData getNetworkData() { + public V1NetworkDeviceData getNetworkData() { return networkData; } - public void setNetworkData(@jakarta.annotation.Nullable V1alpha3NetworkDeviceData networkData) { + public void setNetworkData(@jakarta.annotation.Nullable V1NetworkDeviceData networkData) { this.networkData = networkData; } - public V1alpha3AllocatedDeviceStatus pool(@jakarta.annotation.Nonnull String pool) { + public V1AllocatedDeviceStatus pool(@jakarta.annotation.Nonnull String pool) { this.pool = pool; return this; } @@ -217,6 +222,26 @@ public void setPool(@jakarta.annotation.Nonnull String pool) { } + public V1AllocatedDeviceStatus shareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + return this; + } + + /** + * ShareID uniquely identifies an individual allocation share of the device. + * @return shareID + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ShareID uniquely identifies an individual allocation share of the device.") + public String getShareID() { + return shareID; + } + + public void setShareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + } + + @Override public boolean equals(Object o) { @@ -226,30 +251,32 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3AllocatedDeviceStatus v1alpha3AllocatedDeviceStatus = (V1alpha3AllocatedDeviceStatus) o; - return Objects.equals(this.conditions, v1alpha3AllocatedDeviceStatus.conditions) && - Objects.equals(this.data, v1alpha3AllocatedDeviceStatus.data) && - Objects.equals(this.device, v1alpha3AllocatedDeviceStatus.device) && - Objects.equals(this.driver, v1alpha3AllocatedDeviceStatus.driver) && - Objects.equals(this.networkData, v1alpha3AllocatedDeviceStatus.networkData) && - Objects.equals(this.pool, v1alpha3AllocatedDeviceStatus.pool); + V1AllocatedDeviceStatus v1AllocatedDeviceStatus = (V1AllocatedDeviceStatus) o; + return Objects.equals(this.conditions, v1AllocatedDeviceStatus.conditions) && + Objects.equals(this.data, v1AllocatedDeviceStatus.data) && + Objects.equals(this.device, v1AllocatedDeviceStatus.device) && + Objects.equals(this.driver, v1AllocatedDeviceStatus.driver) && + Objects.equals(this.networkData, v1AllocatedDeviceStatus.networkData) && + Objects.equals(this.pool, v1AllocatedDeviceStatus.pool) && + Objects.equals(this.shareID, v1AllocatedDeviceStatus.shareID); } @Override public int hashCode() { - return Objects.hash(conditions, data, device, driver, networkData, pool); + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3AllocatedDeviceStatus {\n"); + sb.append("class V1AllocatedDeviceStatus {\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" device: ").append(toIndentedString(device)).append("\n"); sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" networkData: ").append(toIndentedString(networkData)).append("\n"); sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); + sb.append(" shareID: ").append(toIndentedString(shareID)).append("\n"); sb.append("}"); return sb.toString(); } @@ -278,6 +305,7 @@ private String toIndentedString(Object o) { openapiFields.add("driver"); openapiFields.add("networkData"); openapiFields.add("pool"); + openapiFields.add("shareID"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -290,25 +318,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 V1alpha3AllocatedDeviceStatus + * @throws IOException if the JSON Element is invalid with respect to V1AllocatedDeviceStatus */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3AllocatedDeviceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3AllocatedDeviceStatus is not found in the empty JSON string", V1alpha3AllocatedDeviceStatus.openapiRequiredFields.toString())); + if (!V1AllocatedDeviceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1AllocatedDeviceStatus is not found in the empty JSON string", V1AllocatedDeviceStatus.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3AllocatedDeviceStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3AllocatedDeviceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1AllocatedDeviceStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AllocatedDeviceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3AllocatedDeviceStatus.openapiRequiredFields) { + for (String requiredField : V1AllocatedDeviceStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -336,33 +364,36 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // validate the optional field `networkData` if (jsonObj.get("networkData") != null && !jsonObj.get("networkData").isJsonNull()) { - V1alpha3NetworkDeviceData.validateJsonElement(jsonObj.get("networkData")); + V1NetworkDeviceData.validateJsonElement(jsonObj.get("networkData")); } if (!jsonObj.get("pool").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } + if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3AllocatedDeviceStatus.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3AllocatedDeviceStatus' and its subtypes + if (!V1AllocatedDeviceStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1AllocatedDeviceStatus' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3AllocatedDeviceStatus.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1AllocatedDeviceStatus.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3AllocatedDeviceStatus value) throws IOException { + public void write(JsonWriter out, V1AllocatedDeviceStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3AllocatedDeviceStatus read(JsonReader in) throws IOException { + public V1AllocatedDeviceStatus read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -373,18 +404,18 @@ public V1alpha3AllocatedDeviceStatus read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3AllocatedDeviceStatus given an JSON string + * Create an instance of V1AllocatedDeviceStatus given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3AllocatedDeviceStatus - * @throws IOException if the JSON string is invalid with respect to V1alpha3AllocatedDeviceStatus + * @return An instance of V1AllocatedDeviceStatus + * @throws IOException if the JSON string is invalid with respect to V1AllocatedDeviceStatus */ - public static V1alpha3AllocatedDeviceStatus fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3AllocatedDeviceStatus.class); + public static V1AllocatedDeviceStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1AllocatedDeviceStatus.class); } /** - * Convert an instance of V1alpha3AllocatedDeviceStatus to an JSON string + * Convert an instance of V1AllocatedDeviceStatus to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java similarity index 61% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java index 081f8eeef0..306d42a9c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java @@ -18,11 +18,12 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1DeviceAllocationResult; import io.kubernetes.client.openapi.models.V1NodeSelector; -import io.kubernetes.client.openapi.models.V1alpha3DeviceAllocationResult; 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; @@ -52,22 +53,47 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3AllocationResult { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1AllocationResult { + public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) + @jakarta.annotation.Nullable + private OffsetDateTime allocationTimestamp; + public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) @jakarta.annotation.Nullable - private V1alpha3DeviceAllocationResult devices; + private V1DeviceAllocationResult devices; public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) @jakarta.annotation.Nullable private V1NodeSelector nodeSelector; - public V1alpha3AllocationResult() { + public V1AllocationResult() { } - public V1alpha3AllocationResult devices(@jakarta.annotation.Nullable V1alpha3DeviceAllocationResult devices) { + public V1AllocationResult allocationTimestamp(@jakarta.annotation.Nullable OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + * @return allocationTimestamp + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.") + public OffsetDateTime getAllocationTimestamp() { + return allocationTimestamp; + } + + public void setAllocationTimestamp(@jakarta.annotation.Nullable OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + } + + + public V1AllocationResult devices(@jakarta.annotation.Nullable V1DeviceAllocationResult devices) { this.devices = devices; return this; } @@ -78,16 +104,16 @@ public V1alpha3AllocationResult devices(@jakarta.annotation.Nullable V1alpha3Dev */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3DeviceAllocationResult getDevices() { + public V1DeviceAllocationResult getDevices() { return devices; } - public void setDevices(@jakarta.annotation.Nullable V1alpha3DeviceAllocationResult devices) { + public void setDevices(@jakarta.annotation.Nullable V1DeviceAllocationResult devices) { this.devices = devices; } - public V1alpha3AllocationResult nodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { + public V1AllocationResult nodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { this.nodeSelector = nodeSelector; return this; } @@ -116,20 +142,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3AllocationResult v1alpha3AllocationResult = (V1alpha3AllocationResult) o; - return Objects.equals(this.devices, v1alpha3AllocationResult.devices) && - Objects.equals(this.nodeSelector, v1alpha3AllocationResult.nodeSelector); + V1AllocationResult v1AllocationResult = (V1AllocationResult) o; + return Objects.equals(this.allocationTimestamp, v1AllocationResult.allocationTimestamp) && + Objects.equals(this.devices, v1AllocationResult.devices) && + Objects.equals(this.nodeSelector, v1AllocationResult.nodeSelector); } @Override public int hashCode() { - return Objects.hash(devices, nodeSelector); + return Objects.hash(allocationTimestamp, devices, nodeSelector); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3AllocationResult {\n"); + sb.append("class V1AllocationResult {\n"); + sb.append(" allocationTimestamp: ").append(toIndentedString(allocationTimestamp)).append("\n"); sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); sb.append("}"); @@ -154,6 +182,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("allocationTimestamp"); openapiFields.add("devices"); openapiFields.add("nodeSelector"); @@ -165,26 +194,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 V1alpha3AllocationResult + * @throws IOException if the JSON Element is invalid with respect to V1AllocationResult */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3AllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3AllocationResult is not found in the empty JSON string", V1alpha3AllocationResult.openapiRequiredFields.toString())); + if (!V1AllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1AllocationResult is not found in the empty JSON string", V1AllocationResult.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3AllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3AllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1AllocationResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `devices` if (jsonObj.get("devices") != null && !jsonObj.get("devices").isJsonNull()) { - V1alpha3DeviceAllocationResult.validateJsonElement(jsonObj.get("devices")); + V1DeviceAllocationResult.validateJsonElement(jsonObj.get("devices")); } // validate the optional field `nodeSelector` if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { @@ -196,22 +225,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3AllocationResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3AllocationResult' and its subtypes + if (!V1AllocationResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1AllocationResult' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3AllocationResult.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1AllocationResult.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3AllocationResult value) throws IOException { + public void write(JsonWriter out, V1AllocationResult value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3AllocationResult read(JsonReader in) throws IOException { + public V1AllocationResult read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -222,18 +251,18 @@ public V1alpha3AllocationResult read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3AllocationResult given an JSON string + * Create an instance of V1AllocationResult given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3AllocationResult - * @throws IOException if the JSON string is invalid with respect to V1alpha3AllocationResult + * @return An instance of V1AllocationResult + * @throws IOException if the JSON string is invalid with respect to V1AllocationResult */ - public static V1alpha3AllocationResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3AllocationResult.class); + public static V1AllocationResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1AllocationResult.class); } /** - * Convert an instance of V1alpha3AllocationResult to an JSON string + * Convert an instance of V1AllocationResult to an JSON string * * @return JSON string */ 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 dbc1930ea0..b5b124edc7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AppArmorProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) 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 716d5e1310..52d486c008 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) 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 1692896d8f..29256fdfa7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d712dc565e..5ed2c825c4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; @SerializedName(SERIALIZED_NAME_CACHING_MODE) 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 c97dccda95..408be3bc09 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) 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 94701c39f5..e2b60000d8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) 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 159ac24ba8..536255cf0b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 1e3bfe228a..f5247885e3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 new file mode 100644 index 0000000000..8d541caf1e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java @@ -0,0 +1,216 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * CELDeviceSelector contains a CEL expression for selecting a device. + */ +@ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1CELDeviceSelector { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nonnull + private String expression; + + public V1CELDeviceSelector() { + } + + public V1CELDeviceSelector expression(@jakarta.annotation.Nonnull String expression) { + this.expression = expression; + return this; + } + + /** + * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - 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) 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) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") + public String getExpression() { + return expression; + } + + public void setExpression(@jakarta.annotation.Nonnull String expression) { + this.expression = expression; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1CELDeviceSelector v1CELDeviceSelector = (V1CELDeviceSelector) o; + return Objects.equals(this.expression, v1CELDeviceSelector.expression); + } + + @Override + public int hashCode() { + return Objects.hash(expression); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1CELDeviceSelector {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("expression"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("expression"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CELDeviceSelector + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1CELDeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CELDeviceSelector is not found in the empty JSON string", V1CELDeviceSelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1CELDeviceSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CELDeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CELDeviceSelector.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CELDeviceSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CELDeviceSelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CELDeviceSelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CELDeviceSelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CELDeviceSelector read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CELDeviceSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CELDeviceSelector + * @throws IOException if the JSON string is invalid with respect to V1CELDeviceSelector + */ + public static V1CELDeviceSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CELDeviceSelector.class); + } + + /** + * Convert an instance of V1CELDeviceSelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java index ebf632a0ea..76bedd11d4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4c20406dee..1f92cf4e69 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 9f0d016978..e103baef1b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @SerializedName(SERIALIZED_NAME_ATTACH_REQUIRED) @@ -109,11 +109,11 @@ public V1CSIDriverSpec attachRequired(@jakarta.annotation.Nullable Boolean attac } /** - * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. + * 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. This field is immutable. * @return attachRequired */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable.") + @ApiModelProperty(value = "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable.") public Boolean getAttachRequired() { return attachRequired; } @@ -149,11 +149,11 @@ public V1CSIDriverSpec nodeAllocatableUpdatePeriodSeconds(@jakarta.annotation.Nu } /** - * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. + * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. * @return nodeAllocatableUpdatePeriodSeconds */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable.") + @ApiModelProperty(value = "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable.") public Long getNodeAllocatableUpdatePeriodSeconds() { return nodeAllocatableUpdatePeriodSeconds; } 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 72291896c0..da130c33d4 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 @@ -52,7 +52,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 396822bd2c..eb1fc35e88 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2c8bc17640..4fb94b9ca3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 450dc473db..0f907fbf15 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1CSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java index b10d6921dd..0d0d1df478 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; @SerializedName(SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF) 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 1e15019c96..8423e181d0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2d4dac5764..efc0fb0565 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b31fb58829..c0ab7417a0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b061dd78b5..a82cc50def 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 new file mode 100644 index 0000000000..99804c5fce --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java @@ -0,0 +1,284 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.openapi.models.V1CapacityRequestPolicyRange; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1CapacityRequestPolicy { + public static final String SERIALIZED_NAME_DEFAULT = "default"; + @SerializedName(SERIALIZED_NAME_DEFAULT) + @jakarta.annotation.Nullable + private Quantity _default; + + public static final String SERIALIZED_NAME_VALID_RANGE = "validRange"; + @SerializedName(SERIALIZED_NAME_VALID_RANGE) + @jakarta.annotation.Nullable + private V1CapacityRequestPolicyRange validRange; + + public static final String SERIALIZED_NAME_VALID_VALUES = "validValues"; + @SerializedName(SERIALIZED_NAME_VALID_VALUES) + @jakarta.annotation.Nullable + private List validValues = new ArrayList<>(); + + public V1CapacityRequestPolicy() { + } + + public V1CapacityRequestPolicy _default(@jakarta.annotation.Nullable Quantity _default) { + this._default = _default; + 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 _default + */ + @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 getDefault() { + return _default; + } + + public void setDefault(@jakarta.annotation.Nullable Quantity _default) { + this._default = _default; + } + + + public V1CapacityRequestPolicy validRange(@jakarta.annotation.Nullable V1CapacityRequestPolicyRange validRange) { + this.validRange = validRange; + return this; + } + + /** + * Get validRange + * @return validRange + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1CapacityRequestPolicyRange getValidRange() { + return validRange; + } + + public void setValidRange(@jakarta.annotation.Nullable V1CapacityRequestPolicyRange validRange) { + this.validRange = validRange; + } + + + public V1CapacityRequestPolicy validValues(@jakarta.annotation.Nullable List validValues) { + this.validValues = validValues; + return this; + } + + public V1CapacityRequestPolicy addValidValuesItem(Quantity validValuesItem) { + if (this.validValues == null) { + this.validValues = new ArrayList<>(); + } + this.validValues.add(validValuesItem); + return this; + } + + /** + * 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. + * @return validValues + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public List getValidValues() { + return validValues; + } + + public void setValidValues(@jakarta.annotation.Nullable List validValues) { + this.validValues = validValues; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1CapacityRequestPolicy v1CapacityRequestPolicy = (V1CapacityRequestPolicy) o; + return Objects.equals(this._default, v1CapacityRequestPolicy._default) && + Objects.equals(this.validRange, v1CapacityRequestPolicy.validRange) && + Objects.equals(this.validValues, v1CapacityRequestPolicy.validValues); + } + + @Override + public int hashCode() { + return Objects.hash(_default, validRange, validValues); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1CapacityRequestPolicy {\n"); + sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); + sb.append(" validRange: ").append(toIndentedString(validRange)).append("\n"); + sb.append(" validValues: ").append(toIndentedString(validValues)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("default"); + openapiFields.add("validRange"); + openapiFields.add("validValues"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CapacityRequestPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1CapacityRequestPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CapacityRequestPolicy is not found in the empty JSON string", V1CapacityRequestPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1CapacityRequestPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CapacityRequestPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("default") != null && !jsonObj.get("default").isJsonNull()) && !jsonObj.get("default").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `default` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default").toString())); + } + // validate the optional field `validRange` + if (jsonObj.get("validRange") != null && !jsonObj.get("validRange").isJsonNull()) { + V1CapacityRequestPolicyRange.validateJsonElement(jsonObj.get("validRange")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("validValues") != null && !jsonObj.get("validValues").isJsonNull() && !jsonObj.get("validValues").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `validValues` to be an array in the JSON string but got `%s`", jsonObj.get("validValues").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CapacityRequestPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CapacityRequestPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CapacityRequestPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CapacityRequestPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CapacityRequestPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CapacityRequestPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CapacityRequestPolicy + * @throws IOException if the JSON string is invalid with respect to V1CapacityRequestPolicy + */ + public static V1CapacityRequestPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CapacityRequestPolicy.class); + } + + /** + * Convert an instance of V1CapacityRequestPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 new file mode 100644 index 0000000000..c1c24dcffe --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java @@ -0,0 +1,279 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * 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. + */ +@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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1CapacityRequestPolicyRange { + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + @jakarta.annotation.Nullable + private Quantity max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + @jakarta.annotation.Nonnull + private Quantity min; + + public static final String SERIALIZED_NAME_STEP = "step"; + @SerializedName(SERIALIZED_NAME_STEP) + @jakarta.annotation.Nullable + private Quantity step; + + public V1CapacityRequestPolicyRange() { + } + + public V1CapacityRequestPolicyRange max(@jakarta.annotation.Nullable Quantity max) { + this.max = max; + 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 max + */ + @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 getMax() { + return max; + } + + public void setMax(@jakarta.annotation.Nullable Quantity max) { + this.max = max; + } + + + public V1CapacityRequestPolicyRange min(@jakarta.annotation.Nonnull Quantity min) { + this.min = min; + 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 min + */ + @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 getMin() { + return min; + } + + public void setMin(@jakarta.annotation.Nonnull Quantity min) { + this.min = min; + } + + + public V1CapacityRequestPolicyRange step(@jakarta.annotation.Nullable Quantity step) { + this.step = step; + 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 step + */ + @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 getStep() { + return step; + } + + public void setStep(@jakarta.annotation.Nullable Quantity step) { + this.step = step; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1CapacityRequestPolicyRange v1CapacityRequestPolicyRange = (V1CapacityRequestPolicyRange) o; + return Objects.equals(this.max, v1CapacityRequestPolicyRange.max) && + Objects.equals(this.min, v1CapacityRequestPolicyRange.min) && + Objects.equals(this.step, v1CapacityRequestPolicyRange.step); + } + + @Override + public int hashCode() { + return Objects.hash(max, min, step); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1CapacityRequestPolicyRange {\n"); + sb.append(" max: ").append(toIndentedString(max)).append("\n"); + sb.append(" min: ").append(toIndentedString(min)).append("\n"); + sb.append(" step: ").append(toIndentedString(step)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("max"); + openapiFields.add("min"); + openapiFields.add("step"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("min"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CapacityRequestPolicyRange + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1CapacityRequestPolicyRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CapacityRequestPolicyRange is not found in the empty JSON string", V1CapacityRequestPolicyRange.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1CapacityRequestPolicyRange.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CapacityRequestPolicyRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CapacityRequestPolicyRange.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("max") != null && !jsonObj.get("max").isJsonNull()) && !jsonObj.get("max").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `max` to be a primitive type in the JSON string but got `%s`", jsonObj.get("max").toString())); + } + if (!jsonObj.get("min").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `min` to be a primitive type in the JSON string but got `%s`", jsonObj.get("min").toString())); + } + if ((jsonObj.get("step") != null && !jsonObj.get("step").isJsonNull()) && !jsonObj.get("step").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `step` to be a primitive type in the JSON string but got `%s`", jsonObj.get("step").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1CapacityRequestPolicyRange.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CapacityRequestPolicyRange' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CapacityRequestPolicyRange.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CapacityRequestPolicyRange value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CapacityRequestPolicyRange read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CapacityRequestPolicyRange given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CapacityRequestPolicyRange + * @throws IOException if the JSON string is invalid with respect to V1CapacityRequestPolicyRange + */ + public static V1CapacityRequestPolicyRange fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CapacityRequestPolicyRange.class); + } + + /** + * Convert an instance of V1CapacityRequestPolicyRange to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 new file mode 100644 index 0000000000..8097d5d53c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java @@ -0,0 +1,216 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1CapacityRequirements { + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + @jakarta.annotation.Nullable + private Map requests = new HashMap<>(); + + public V1CapacityRequirements() { + } + + public V1CapacityRequirements requests(@jakarta.annotation.Nullable Map requests) { + this.requests = requests; + return this; + } + + public V1CapacityRequirements putRequestsItem(String key, Quantity requestsItem) { + if (this.requests == null) { + this.requests = new HashMap<>(); + } + this.requests.put(key, requestsItem); + return this; + } + + /** + * 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[<domain>].<name>.compareTo(quantity(<request 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. + * @return requests + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Map getRequests() { + return requests; + } + + public void setRequests(@jakarta.annotation.Nullable Map requests) { + this.requests = requests; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1CapacityRequirements v1CapacityRequirements = (V1CapacityRequirements) o; + return Objects.equals(this.requests, v1CapacityRequirements.requests); + } + + @Override + public int hashCode() { + return Objects.hash(requests); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1CapacityRequirements {\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("requests"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1CapacityRequirements + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1CapacityRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CapacityRequirements is not found in the empty JSON string", V1CapacityRequirements.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1CapacityRequirements.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CapacityRequirements` 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 (!V1CapacityRequirements.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CapacityRequirements' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CapacityRequirements.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1CapacityRequirements value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1CapacityRequirements read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1CapacityRequirements given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1CapacityRequirements + * @throws IOException if the JSON string is invalid with respect to V1CapacityRequirements + */ + public static V1CapacityRequirements fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CapacityRequirements.class); + } + + /** + * Convert an instance of V1CapacityRequirements to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java index a3e8dd69e7..26a6fc5061 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 6522561c31..31a33fe3ed 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 8da7b6d1fe..d4b26c03fc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d61ab9e751..27bcac7b1c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 d10a7b1542..6241ee7aab 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 37e3a6b258..908d3871a2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) 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 b2f1e6f4b9..2d0f01339c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c280dcb05b..b7c80fe0f9 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 f232cc34cc..1f8987d4dc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 03ec14ef72..85546cff54 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) 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 48cd7fdfd8..c92a411f15 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) 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 3002a28821..ee67ed807c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6368a0490b..7e90e2a224 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d69cdb5309..dd02853f8f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 88822df6fb..41402f7b9f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ClusterTrustBundleProjection { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) 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 0f1a2f6c4a..55e21e4541 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 92c76f9c03..dcaf84d560 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d2180679a9..54f2210013 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 81ec6aa090..b1defd1900 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Condition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 f5f9d64c34..3fab559c2f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 3a9ff8add8..fcf341a416 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 @@ -50,7 +50,7 @@ * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. */ @ApiModel(description = "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a4931861c4..b1e760ce84 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_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 daafd93a9a..0c2930656d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 32497acc7b..e157765d7b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; @SerializedName(SERIALIZED_NAME_KUBELET_CONFIG_KEY) 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 24a8e9ee17..d8f7edc264 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1966486ab2..0ddc4ab7ba 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,7 +53,7 @@ * Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) 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 b0d4564cc3..59f5e0448f 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 @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ContainerPort; import io.kubernetes.client.openapi.models.V1ContainerResizePolicy; +import io.kubernetes.client.openapi.models.V1ContainerRestartRule; import io.kubernetes.client.openapi.models.V1EnvFromSource; import io.kubernetes.client.openapi.models.V1EnvVar; import io.kubernetes.client.openapi.models.V1Lifecycle; @@ -62,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) @@ -134,6 +135,11 @@ public class V1Container { @jakarta.annotation.Nullable private String restartPolicy; + public static final String SERIALIZED_NAME_RESTART_POLICY_RULES = "restartPolicyRules"; + @SerializedName(SERIALIZED_NAME_RESTART_POLICY_RULES) + @jakarta.annotation.Nullable + private List restartPolicyRules = new ArrayList<>(); + public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) @jakarta.annotation.Nullable @@ -285,11 +291,11 @@ public V1Container addEnvFromItem(V1EnvFromSource envFromItem) { } /** - * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. * @return envFrom */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") + @ApiModelProperty(value = "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") public List getEnvFrom() { return envFrom; } @@ -501,11 +507,11 @@ public V1Container restartPolicy(@jakarta.annotation.Nullable String restartPoli } /** - * RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. + * RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. * @return restartPolicy */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.") + @ApiModelProperty(value = "RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.") public String getRestartPolicy() { return restartPolicy; } @@ -515,6 +521,34 @@ public void setRestartPolicy(@jakarta.annotation.Nullable String restartPolicy) } + public V1Container restartPolicyRules(@jakarta.annotation.Nullable List restartPolicyRules) { + this.restartPolicyRules = restartPolicyRules; + return this; + } + + public V1Container addRestartPolicyRulesItem(V1ContainerRestartRule restartPolicyRulesItem) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList<>(); + } + this.restartPolicyRules.add(restartPolicyRulesItem); + return this; + } + + /** + * Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy. + * @return restartPolicyRules + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy.") + public List getRestartPolicyRules() { + return restartPolicyRules; + } + + public void setRestartPolicyRules(@jakarta.annotation.Nullable List restartPolicyRules) { + this.restartPolicyRules = restartPolicyRules; + } + + public V1Container securityContext(@jakarta.annotation.Nullable V1SecurityContext securityContext) { this.securityContext = securityContext; return this; @@ -755,6 +789,7 @@ public boolean equals(Object o) { Objects.equals(this.resizePolicy, v1Container.resizePolicy) && Objects.equals(this.resources, v1Container.resources) && Objects.equals(this.restartPolicy, v1Container.restartPolicy) && + Objects.equals(this.restartPolicyRules, v1Container.restartPolicyRules) && Objects.equals(this.securityContext, v1Container.securityContext) && Objects.equals(this.startupProbe, v1Container.startupProbe) && Objects.equals(this.stdin, v1Container.stdin) && @@ -769,7 +804,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, securityContext, startupProbe, stdin, stdinOnce, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); + return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, restartPolicyRules, securityContext, startupProbe, stdin, stdinOnce, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); } @Override @@ -790,6 +825,7 @@ public String toString() { sb.append(" resizePolicy: ").append(toIndentedString(resizePolicy)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append(" restartPolicy: ").append(toIndentedString(restartPolicy)).append("\n"); + sb.append(" restartPolicyRules: ").append(toIndentedString(restartPolicyRules)).append("\n"); sb.append(" securityContext: ").append(toIndentedString(securityContext)).append("\n"); sb.append(" startupProbe: ").append(toIndentedString(startupProbe)).append("\n"); sb.append(" stdin: ").append(toIndentedString(stdin)).append("\n"); @@ -836,6 +872,7 @@ private String toIndentedString(Object o) { openapiFields.add("resizePolicy"); openapiFields.add("resources"); openapiFields.add("restartPolicy"); + openapiFields.add("restartPolicyRules"); openapiFields.add("securityContext"); openapiFields.add("startupProbe"); openapiFields.add("stdin"); @@ -972,6 +1009,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("restartPolicy") != null && !jsonObj.get("restartPolicy").isJsonNull()) && !jsonObj.get("restartPolicy").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `restartPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("restartPolicy").toString())); } + if (jsonObj.get("restartPolicyRules") != null && !jsonObj.get("restartPolicyRules").isJsonNull()) { + JsonArray jsonArrayrestartPolicyRules = jsonObj.getAsJsonArray("restartPolicyRules"); + if (jsonArrayrestartPolicyRules != null) { + // ensure the json data is an array + if (!jsonObj.get("restartPolicyRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `restartPolicyRules` to be an array in the JSON string but got `%s`", jsonObj.get("restartPolicyRules").toString())); + } + + // validate the optional field `restartPolicyRules` (array) + for (int i = 0; i < jsonArrayrestartPolicyRules.size(); i++) { + V1ContainerRestartRule.validateJsonElement(jsonArrayrestartPolicyRules.get(i)); + }; + } + } // validate the optional field `securityContext` if (jsonObj.get("securityContext") != null && !jsonObj.get("securityContext").isJsonNull()) { V1SecurityContext.validateJsonElement(jsonObj.get("securityContext")); 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 new file mode 100644 index 0000000000..54daa68f84 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java @@ -0,0 +1,280 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ContainerExtendedResourceRequest { + public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; + @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) + @jakarta.annotation.Nonnull + private String containerName; + + public static final String SERIALIZED_NAME_REQUEST_NAME = "requestName"; + @SerializedName(SERIALIZED_NAME_REQUEST_NAME) + @jakarta.annotation.Nonnull + private String requestName; + + public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; + @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) + @jakarta.annotation.Nonnull + private String resourceName; + + public V1ContainerExtendedResourceRequest() { + } + + public V1ContainerExtendedResourceRequest containerName(@jakarta.annotation.Nonnull String containerName) { + this.containerName = containerName; + return this; + } + + /** + * The name of the container requesting resources. + * @return containerName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name of the container requesting resources.") + public String getContainerName() { + return containerName; + } + + public void setContainerName(@jakarta.annotation.Nonnull String containerName) { + this.containerName = containerName; + } + + + public V1ContainerExtendedResourceRequest requestName(@jakarta.annotation.Nonnull String requestName) { + this.requestName = requestName; + return this; + } + + /** + * The name of the request in the special ResourceClaim which corresponds to the extended resource. + * @return requestName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name of the request in the special ResourceClaim which corresponds to the extended resource.") + public String getRequestName() { + return requestName; + } + + public void setRequestName(@jakarta.annotation.Nonnull String requestName) { + this.requestName = requestName; + } + + + public V1ContainerExtendedResourceRequest resourceName(@jakarta.annotation.Nonnull String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * The name of the extended resource in that container which gets backed by DRA. + * @return resourceName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name of the extended resource in that container which gets backed by DRA.") + public String getResourceName() { + return resourceName; + } + + public void setResourceName(@jakarta.annotation.Nonnull String resourceName) { + this.resourceName = resourceName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ContainerExtendedResourceRequest v1ContainerExtendedResourceRequest = (V1ContainerExtendedResourceRequest) o; + return Objects.equals(this.containerName, v1ContainerExtendedResourceRequest.containerName) && + Objects.equals(this.requestName, v1ContainerExtendedResourceRequest.requestName) && + Objects.equals(this.resourceName, v1ContainerExtendedResourceRequest.resourceName); + } + + @Override + public int hashCode() { + return Objects.hash(containerName, requestName, resourceName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ContainerExtendedResourceRequest {\n"); + sb.append(" containerName: ").append(toIndentedString(containerName)).append("\n"); + sb.append(" requestName: ").append(toIndentedString(requestName)).append("\n"); + sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("containerName"); + openapiFields.add("requestName"); + openapiFields.add("resourceName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("containerName"); + openapiRequiredFields.add("requestName"); + openapiRequiredFields.add("resourceName"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerExtendedResourceRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ContainerExtendedResourceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerExtendedResourceRequest is not found in the empty JSON string", V1ContainerExtendedResourceRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ContainerExtendedResourceRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerExtendedResourceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ContainerExtendedResourceRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("containerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `containerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerName").toString())); + } + if (!jsonObj.get("requestName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `requestName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestName").toString())); + } + if (!jsonObj.get("resourceName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `resourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerExtendedResourceRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerExtendedResourceRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerExtendedResourceRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerExtendedResourceRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerExtendedResourceRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerExtendedResourceRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerExtendedResourceRequest + * @throws IOException if the JSON string is invalid with respect to V1ContainerExtendedResourceRequest + */ + public static V1ContainerExtendedResourceRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerExtendedResourceRequest.class); + } + + /** + * Convert an instance of V1ContainerExtendedResourceRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java index 180c041acf..9c61435e89 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 3023b4811e..cb2d64efae 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; @SerializedName(SERIALIZED_NAME_CONTAINER_PORT) 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 1a24d533ce..40691d607e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerResizePolicy { public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java similarity index 55% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java index bd52e1d7cc..ca191793b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.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.V1alpha3BasicDevice; +import io.kubernetes.client.openapi.models.V1ContainerRestartRuleOnExitCodes; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -48,61 +48,61 @@ import io.kubernetes.client.openapi.JSON; /** - * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. + * ContainerRestartRule describes how a container exit is handled. */ -@ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3Device { - public static final String SERIALIZED_NAME_BASIC = "basic"; - @SerializedName(SERIALIZED_NAME_BASIC) - @jakarta.annotation.Nullable - private V1alpha3BasicDevice basic; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) +@ApiModel(description = "ContainerRestartRule describes how a container exit is handled.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ContainerRestartRule { + public static final String SERIALIZED_NAME_ACTION = "action"; + @SerializedName(SERIALIZED_NAME_ACTION) @jakarta.annotation.Nonnull - private String name; + private String action; - public V1alpha3Device() { + public static final String SERIALIZED_NAME_EXIT_CODES = "exitCodes"; + @SerializedName(SERIALIZED_NAME_EXIT_CODES) + @jakarta.annotation.Nullable + private V1ContainerRestartRuleOnExitCodes exitCodes; + + public V1ContainerRestartRule() { } - public V1alpha3Device basic(@jakarta.annotation.Nullable V1alpha3BasicDevice basic) { - this.basic = basic; + public V1ContainerRestartRule action(@jakarta.annotation.Nonnull String action) { + this.action = action; return this; } /** - * Get basic - * @return basic + * Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. + * @return action */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") - public V1alpha3BasicDevice getBasic() { - return basic; + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.") + public String getAction() { + return action; } - public void setBasic(@jakarta.annotation.Nullable V1alpha3BasicDevice basic) { - this.basic = basic; + public void setAction(@jakarta.annotation.Nonnull String action) { + this.action = action; } - public V1alpha3Device name(@jakarta.annotation.Nonnull String name) { - this.name = name; + public V1ContainerRestartRule exitCodes(@jakarta.annotation.Nullable V1ContainerRestartRuleOnExitCodes exitCodes) { + this.exitCodes = exitCodes; return this; } /** - * Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. - * @return name + * Get exitCodes + * @return exitCodes */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") - public String getName() { - return name; + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ContainerRestartRuleOnExitCodes getExitCodes() { + return exitCodes; } - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; + public void setExitCodes(@jakarta.annotation.Nullable V1ContainerRestartRuleOnExitCodes exitCodes) { + this.exitCodes = exitCodes; } @@ -115,22 +115,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3Device v1alpha3Device = (V1alpha3Device) o; - return Objects.equals(this.basic, v1alpha3Device.basic) && - Objects.equals(this.name, v1alpha3Device.name); + V1ContainerRestartRule v1ContainerRestartRule = (V1ContainerRestartRule) o; + return Objects.equals(this.action, v1ContainerRestartRule.action) && + Objects.equals(this.exitCodes, v1ContainerRestartRule.exitCodes); } @Override public int hashCode() { - return Objects.hash(basic, name); + return Objects.hash(action, exitCodes); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3Device {\n"); - sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("class V1ContainerRestartRule {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" exitCodes: ").append(toIndentedString(exitCodes)).append("\n"); sb.append("}"); return sb.toString(); } @@ -153,48 +153,48 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("basic"); - openapiFields.add("name"); + openapiFields.add("action"); + openapiFields.add("exitCodes"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields.add("action"); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3Device + * @throws IOException if the JSON Element is invalid with respect to V1ContainerRestartRule */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3Device.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3Device is not found in the empty JSON string", V1alpha3Device.openapiRequiredFields.toString())); + if (!V1ContainerRestartRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerRestartRule is not found in the empty JSON string", V1ContainerRestartRule.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3Device.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3Device` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ContainerRestartRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerRestartRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3Device.openapiRequiredFields) { + for (String requiredField : V1ContainerRestartRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `basic` - if (jsonObj.get("basic") != null && !jsonObj.get("basic").isJsonNull()) { - V1alpha3BasicDevice.validateJsonElement(jsonObj.get("basic")); + if (!jsonObj.get("action").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `action` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action").toString())); } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + // validate the optional field `exitCodes` + if (jsonObj.get("exitCodes") != null && !jsonObj.get("exitCodes").isJsonNull()) { + V1ContainerRestartRuleOnExitCodes.validateJsonElement(jsonObj.get("exitCodes")); } } @@ -202,22 +202,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3Device.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3Device' and its subtypes + if (!V1ContainerRestartRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerRestartRule' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3Device.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerRestartRule.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3Device value) throws IOException { + public void write(JsonWriter out, V1ContainerRestartRule value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3Device read(JsonReader in) throws IOException { + public V1ContainerRestartRule read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -228,18 +228,18 @@ public V1alpha3Device read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3Device given an JSON string + * Create an instance of V1ContainerRestartRule given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3Device - * @throws IOException if the JSON string is invalid with respect to V1alpha3Device + * @return An instance of V1ContainerRestartRule + * @throws IOException if the JSON string is invalid with respect to V1ContainerRestartRule */ - public static V1alpha3Device fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3Device.class); + public static V1ContainerRestartRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerRestartRule.class); } /** - * Convert an instance of V1alpha3Device to an JSON string + * Convert an instance of V1ContainerRestartRule to an JSON string * * @return JSON string */ 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 new file mode 100644 index 0000000000..61cfbd8233 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java @@ -0,0 +1,258 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ContainerRestartRuleOnExitCodes { + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + @jakarta.annotation.Nonnull + private String operator; + + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) + @jakarta.annotation.Nullable + private List values = new ArrayList<>(); + + public V1ContainerRestartRuleOnExitCodes() { + } + + public V1ContainerRestartRuleOnExitCodes operator(@jakarta.annotation.Nonnull String operator) { + this.operator = operator; + return this; + } + + /** + * Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. + * @return operator + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values.") + public String getOperator() { + return operator; + } + + public void setOperator(@jakarta.annotation.Nonnull String operator) { + this.operator = operator; + } + + + public V1ContainerRestartRuleOnExitCodes values(@jakarta.annotation.Nullable List values) { + this.values = values; + return this; + } + + public V1ContainerRestartRuleOnExitCodes addValuesItem(Integer valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + return this; + } + + /** + * Specifies the set of values to check for container exit codes. At most 255 elements are allowed. + * @return values + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specifies the set of values to check for container exit codes. At most 255 elements are allowed.") + public List getValues() { + return values; + } + + public void setValues(@jakarta.annotation.Nullable List values) { + this.values = values; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ContainerRestartRuleOnExitCodes v1ContainerRestartRuleOnExitCodes = (V1ContainerRestartRuleOnExitCodes) o; + return Objects.equals(this.operator, v1ContainerRestartRuleOnExitCodes.operator) && + Objects.equals(this.values, v1ContainerRestartRuleOnExitCodes.values); + } + + @Override + public int hashCode() { + return Objects.hash(operator, values); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ContainerRestartRuleOnExitCodes {\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("operator"); + openapiFields.add("values"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("operator"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ContainerRestartRuleOnExitCodes + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ContainerRestartRuleOnExitCodes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerRestartRuleOnExitCodes is not found in the empty JSON string", V1ContainerRestartRuleOnExitCodes.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ContainerRestartRuleOnExitCodes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerRestartRuleOnExitCodes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ContainerRestartRuleOnExitCodes.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("operator").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `operator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("operator").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ContainerRestartRuleOnExitCodes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ContainerRestartRuleOnExitCodes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ContainerRestartRuleOnExitCodes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ContainerRestartRuleOnExitCodes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ContainerRestartRuleOnExitCodes read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ContainerRestartRuleOnExitCodes given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ContainerRestartRuleOnExitCodes + * @throws IOException if the JSON string is invalid with respect to V1ContainerRestartRuleOnExitCodes + */ + public static V1ContainerRestartRuleOnExitCodes fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ContainerRestartRuleOnExitCodes.class); + } + + /** + * Convert an instance of V1ContainerRestartRuleOnExitCodes to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java index 4a9dd14af8..8129de0afd 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c9a00eb243..708dcde35c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) 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 bab76a75ba..63132e4a35 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) 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 62ba383735..b83099770d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a06372b8b4..3bb13e3e6a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ContainerStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) 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 c31509ea1e..eb6f508c9d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 71fb411456..5785ba275b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 44f906b68f..0fda9c5514 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java similarity index 86% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java index cb33aac00a..f8fe02d174 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java @@ -51,17 +51,17 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3Counter { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @jakarta.annotation.Nonnull private Quantity value; - public V1alpha3Counter() { + public V1Counter() { } - public V1alpha3Counter value(@jakarta.annotation.Nonnull Quantity value) { + public V1Counter value(@jakarta.annotation.Nonnull Quantity value) { this.value = value; return this; } @@ -90,8 +90,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3Counter v1alpha3Counter = (V1alpha3Counter) o; - return Objects.equals(this.value, v1alpha3Counter.value); + V1Counter v1Counter = (V1Counter) o; + return Objects.equals(this.value, v1Counter.value); } @Override @@ -102,7 +102,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3Counter {\n"); + sb.append("class V1Counter {\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); @@ -137,25 +137,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 V1alpha3Counter + * @throws IOException if the JSON Element is invalid with respect to V1Counter */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3Counter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3Counter is not found in the empty JSON string", V1alpha3Counter.openapiRequiredFields.toString())); + if (!V1Counter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Counter is not found in the empty JSON string", V1Counter.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3Counter.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3Counter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1Counter.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Counter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3Counter.openapiRequiredFields) { + for (String requiredField : V1Counter.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -170,22 +170,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3Counter.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3Counter' and its subtypes + if (!V1Counter.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Counter' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3Counter.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Counter.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3Counter value) throws IOException { + public void write(JsonWriter out, V1Counter value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3Counter read(JsonReader in) throws IOException { + public V1Counter read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -196,18 +196,18 @@ public V1alpha3Counter read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3Counter given an JSON string + * Create an instance of V1Counter given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3Counter - * @throws IOException if the JSON string is invalid with respect to V1alpha3Counter + * @return An instance of V1Counter + * @throws IOException if the JSON string is invalid with respect to V1Counter */ - public static V1alpha3Counter fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3Counter.class); + public static V1Counter fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Counter.class); } /** - * Convert an instance of V1alpha3Counter to an JSON string + * Convert an instance of V1Counter to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java similarity index 68% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java index 96e4d4a657..fb97ed902a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.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.V1alpha3Counter; +import io.kubernetes.client.openapi.models.V1Counter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -53,27 +53,27 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. */ @ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3CounterSet { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) @jakarta.annotation.Nonnull - private Map counters = new HashMap<>(); + private Map counters = new HashMap<>(); public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @jakarta.annotation.Nonnull private String name; - public V1alpha3CounterSet() { + public V1CounterSet() { } - public V1alpha3CounterSet counters(@jakarta.annotation.Nonnull Map counters) { + public V1CounterSet counters(@jakarta.annotation.Nonnull Map counters) { this.counters = counters; return this; } - public V1alpha3CounterSet putCountersItem(String key, V1alpha3Counter countersItem) { + public V1CounterSet putCountersItem(String key, V1Counter countersItem) { if (this.counters == null) { this.counters = new HashMap<>(); } @@ -82,31 +82,31 @@ public V1alpha3CounterSet putCountersItem(String key, V1alpha3Counter countersIt } /** - * Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. + * Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. * @return counters */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32.") - public Map getCounters() { + @ApiModelProperty(required = true, value = "Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32.") + public Map getCounters() { return counters; } - public void setCounters(@jakarta.annotation.Nonnull Map counters) { + public void setCounters(@jakarta.annotation.Nonnull Map counters) { this.counters = counters; } - public V1alpha3CounterSet name(@jakarta.annotation.Nonnull String name) { + public V1CounterSet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } /** - * CounterSet is the name of the set from which the counters defined will be consumed. + * Name defines the name of the counter set. It must be a DNS label. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "CounterSet is the name of the set from which the counters defined will be consumed.") + @ApiModelProperty(required = true, value = "Name defines the name of the counter set. It must be a DNS label.") public String getName() { return name; } @@ -125,9 +125,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3CounterSet v1alpha3CounterSet = (V1alpha3CounterSet) o; - return Objects.equals(this.counters, v1alpha3CounterSet.counters) && - Objects.equals(this.name, v1alpha3CounterSet.name); + V1CounterSet v1CounterSet = (V1CounterSet) o; + return Objects.equals(this.counters, v1CounterSet.counters) && + Objects.equals(this.name, v1CounterSet.name); } @Override @@ -138,7 +138,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3CounterSet {\n"); + sb.append("class V1CounterSet {\n"); sb.append(" counters: ").append(toIndentedString(counters)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); @@ -176,25 +176,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 V1alpha3CounterSet + * @throws IOException if the JSON Element is invalid with respect to V1CounterSet */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3CounterSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3CounterSet is not found in the empty JSON string", V1alpha3CounterSet.openapiRequiredFields.toString())); + if (!V1CounterSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1CounterSet is not found in the empty JSON string", V1CounterSet.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3CounterSet.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3CounterSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1CounterSet.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CounterSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3CounterSet.openapiRequiredFields) { + for (String requiredField : V1CounterSet.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -209,22 +209,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3CounterSet.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3CounterSet' and its subtypes + if (!V1CounterSet.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1CounterSet' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3CounterSet.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1CounterSet.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3CounterSet value) throws IOException { + public void write(JsonWriter out, V1CounterSet value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3CounterSet read(JsonReader in) throws IOException { + public V1CounterSet read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -235,18 +235,18 @@ public V1alpha3CounterSet read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3CounterSet given an JSON string + * Create an instance of V1CounterSet given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3CounterSet - * @throws IOException if the JSON string is invalid with respect to V1alpha3CounterSet + * @return An instance of V1CounterSet + * @throws IOException if the JSON string is invalid with respect to V1CounterSet */ - public static V1alpha3CounterSet fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3CounterSet.class); + public static V1CounterSet fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1CounterSet.class); } /** - * Convert an instance of V1alpha3CounterSet to an JSON string + * Convert an instance of V1CounterSet to an JSON string * * @return JSON string */ 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 d74a06b615..60a28eed1a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 121d7bad1c..22cbfc4c7c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 9b3fe6eaef..77aa40ae02 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) 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 d7fa4aab23..6d9c094a1f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c4c367c3fb..4299df0368 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6a9a6598fd..91f77ae448 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 355caf9638..04cd25973a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 e01316504c..6693c536b3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7f900f540c..9e6d4a1232 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 e2cde5c0db..0b13479b7c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c4d5be2bb4..c7d1e4921b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2dd33394da..b867c62156 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 f2fa4ed914..f541681842 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; @SerializedName(SERIALIZED_NAME_ACCEPTED_NAMES) 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 1ccc05e26e..21be89eda4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) 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 3429e7cfbc..a87d936a91 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR_PATH) 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 c126922f98..80efc94252 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2f06a5209f..b6ca600d9d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1CustomResourceValidation { public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; @SerializedName(SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA) 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 778e9a5431..f9137a1cfc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c28139e098..82432cfa94 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 017dc99ff0..5ecaf95c62 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 6de595bd93..bda70a0e19 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 e6d878bd51..98f9afe7f6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 2b688962e3..6c009290ab 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) 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 0f2bc32eac..7b11a3c48f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) 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 99cd96a439..80e84373dc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 467bd080c7..9fdf9f4ca9 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ecc7718986..128a6938e6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 8a0846f8dc..77d7851bcc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c026574587..cf44da479d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 53bc3ccc49..eefa3518dd 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) 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 fe6cf14e64..c49f60ecac 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) 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 new file mode 100644 index 0000000000..4505b2bc77 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java @@ -0,0 +1,624 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1DeviceAttribute; +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.V1NodeSelector; +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; +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; + +/** + * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. + */ +@ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1Device { + public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; + @SerializedName(SERIALIZED_NAME_ALL_NODES) + @jakarta.annotation.Nullable + private Boolean allNodes; + + public static final String SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS = "allowMultipleAllocations"; + @SerializedName(SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS) + @jakarta.annotation.Nullable + private Boolean allowMultipleAllocations; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + @jakarta.annotation.Nullable + private Map attributes = new HashMap<>(); + + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingFailureConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BINDS_TO_NODE = "bindsToNode"; + @SerializedName(SERIALIZED_NAME_BINDS_TO_NODE) + @jakarta.annotation.Nullable + private Boolean bindsToNode; + + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable + private Map capacity = new HashMap<>(); + + public static final String SERIALIZED_NAME_CONSUMES_COUNTERS = "consumesCounters"; + @SerializedName(SERIALIZED_NAME_CONSUMES_COUNTERS) + @jakarta.annotation.Nullable + private List consumesCounters = new ArrayList<>(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + @jakarta.annotation.Nullable + private String nodeName; + + public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) + @jakarta.annotation.Nullable + private V1NodeSelector nodeSelector; + + public static final String SERIALIZED_NAME_TAINTS = "taints"; + @SerializedName(SERIALIZED_NAME_TAINTS) + @jakarta.annotation.Nullable + private List taints = new ArrayList<>(); + + public V1Device() { + } + + public V1Device allNodes(@jakarta.annotation.Nullable Boolean allNodes) { + this.allNodes = allNodes; + return this; + } + + /** + * AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + * @return allNodes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.") + public Boolean getAllNodes() { + return allNodes; + } + + public void setAllNodes(@jakarta.annotation.Nullable Boolean allNodes) { + this.allNodes = allNodes; + } + + + public V1Device allowMultipleAllocations(@jakarta.annotation.Nullable Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return this; + } + + /** + * 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. + * @return allowMultipleAllocations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Boolean getAllowMultipleAllocations() { + return allowMultipleAllocations; + } + + public void setAllowMultipleAllocations(@jakarta.annotation.Nullable Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + } + + + public V1Device attributes(@jakarta.annotation.Nullable Map attributes) { + this.attributes = attributes; + return this; + } + + public V1Device putAttributesItem(String key, V1DeviceAttribute attributesItem) { + if (this.attributes == null) { + this.attributes = new HashMap<>(); + } + this.attributes.put(key, attributesItem); + return this; + } + + /** + * Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. + * @return attributes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.") + public Map getAttributes() { + return attributes; + } + + public void setAttributes(@jakarta.annotation.Nullable Map attributes) { + this.attributes = attributes; + } + + + public V1Device bindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + return this; + } + + public V1Device addBindingConditionsItem(String bindingConditionsItem) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList<>(); + } + this.bindingConditions.add(bindingConditionsItem); + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingConditions() { + return bindingConditions; + } + + public void setBindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1Device bindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + return this; + } + + public V1Device addBindingFailureConditionsItem(String bindingFailureConditionsItem) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList<>(); + } + this.bindingFailureConditions.add(bindingFailureConditionsItem); + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingFailureConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingFailureConditions() { + return bindingFailureConditions; + } + + public void setBindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1Device bindsToNode(@jakarta.annotation.Nullable Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindsToNode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public Boolean getBindsToNode() { + return bindsToNode; + } + + public void setBindsToNode(@jakarta.annotation.Nullable Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + } + + + public V1Device capacity(@jakarta.annotation.Nullable Map capacity) { + this.capacity = capacity; + return this; + } + + public V1Device putCapacityItem(String key, V1DeviceCapacity capacityItem) { + if (this.capacity == null) { + this.capacity = new HashMap<>(); + } + this.capacity.put(key, capacityItem); + return this; + } + + /** + * Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. + * @return capacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.") + public Map getCapacity() { + return capacity; + } + + public void setCapacity(@jakarta.annotation.Nullable Map capacity) { + this.capacity = capacity; + } + + + public V1Device consumesCounters(@jakarta.annotation.Nullable List consumesCounters) { + this.consumesCounters = consumesCounters; + return this; + } + + public V1Device addConsumesCountersItem(V1DeviceCounterConsumption consumesCountersItem) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList<>(); + } + this.consumesCounters.add(consumesCountersItem); + return this; + } + + /** + * ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). + * @return consumesCounters + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).") + public List getConsumesCounters() { + return consumesCounters; + } + + public void setConsumesCounters(@jakarta.annotation.Nullable List consumesCounters) { + this.consumesCounters = consumesCounters; + } + + + public V1Device name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1Device nodeName(@jakarta.annotation.Nullable String nodeName) { + this.nodeName = nodeName; + return this; + } + + /** + * NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + * @return nodeName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.") + public String getNodeName() { + return nodeName; + } + + public void setNodeName(@jakarta.annotation.Nullable String nodeName) { + this.nodeName = nodeName; + } + + + public V1Device nodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { + this.nodeSelector = nodeSelector; + return this; + } + + /** + * Get nodeSelector + * @return nodeSelector + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeSelector getNodeSelector() { + return nodeSelector; + } + + public void setNodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { + this.nodeSelector = nodeSelector; + } + + + public V1Device taints(@jakarta.annotation.Nullable List taints) { + this.taints = taints; + return this; + } + + public V1Device addTaintsItem(V1DeviceTaint taintsItem) { + if (this.taints == null) { + this.taints = new ArrayList<>(); + } + this.taints.add(taintsItem); + return this; + } + + /** + * If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return taints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + public List getTaints() { + return taints; + } + + public void setTaints(@jakarta.annotation.Nullable List taints) { + this.taints = taints; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1Device v1Device = (V1Device) o; + return Objects.equals(this.allNodes, v1Device.allNodes) && + Objects.equals(this.allowMultipleAllocations, v1Device.allowMultipleAllocations) && + Objects.equals(this.attributes, v1Device.attributes) && + Objects.equals(this.bindingConditions, v1Device.bindingConditions) && + Objects.equals(this.bindingFailureConditions, v1Device.bindingFailureConditions) && + Objects.equals(this.bindsToNode, v1Device.bindsToNode) && + Objects.equals(this.capacity, v1Device.capacity) && + Objects.equals(this.consumesCounters, v1Device.consumesCounters) && + Objects.equals(this.name, v1Device.name) && + Objects.equals(this.nodeName, v1Device.nodeName) && + Objects.equals(this.nodeSelector, v1Device.nodeSelector) && + Objects.equals(this.taints, v1Device.taints); + } + + @Override + public int hashCode() { + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1Device {\n"); + sb.append(" allNodes: ").append(toIndentedString(allNodes)).append("\n"); + sb.append(" allowMultipleAllocations: ").append(toIndentedString(allowMultipleAllocations)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" bindingConditions: ").append(toIndentedString(bindingConditions)).append("\n"); + sb.append(" bindingFailureConditions: ").append(toIndentedString(bindingFailureConditions)).append("\n"); + 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(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); + sb.append(" taints: ").append(toIndentedString(taints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allNodes"); + openapiFields.add("allowMultipleAllocations"); + openapiFields.add("attributes"); + openapiFields.add("bindingConditions"); + openapiFields.add("bindingFailureConditions"); + openapiFields.add("bindsToNode"); + openapiFields.add("capacity"); + openapiFields.add("consumesCounters"); + openapiFields.add("name"); + openapiFields.add("nodeName"); + openapiFields.add("nodeSelector"); + openapiFields.add("taints"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Device + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1Device.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1Device is not found in the empty JSON string", V1Device.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1Device.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Device` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Device.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + } + if (jsonObj.get("consumesCounters") != null && !jsonObj.get("consumesCounters").isJsonNull()) { + JsonArray jsonArrayconsumesCounters = jsonObj.getAsJsonArray("consumesCounters"); + if (jsonArrayconsumesCounters != null) { + // ensure the json data is an array + if (!jsonObj.get("consumesCounters").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `consumesCounters` to be an array in the JSON string but got `%s`", jsonObj.get("consumesCounters").toString())); + } + + // validate the optional field `consumesCounters` (array) + for (int i = 0; i < jsonArrayconsumesCounters.size(); i++) { + V1DeviceCounterConsumption.validateJsonElement(jsonArrayconsumesCounters.get(i)); + }; + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("nodeName") != null && !jsonObj.get("nodeName").isJsonNull()) && !jsonObj.get("nodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); + } + // validate the optional field `nodeSelector` + if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { + V1NodeSelector.validateJsonElement(jsonObj.get("nodeSelector")); + } + if (jsonObj.get("taints") != null && !jsonObj.get("taints").isJsonNull()) { + JsonArray jsonArraytaints = jsonObj.getAsJsonArray("taints"); + if (jsonArraytaints != null) { + // ensure the json data is an array + if (!jsonObj.get("taints").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `taints` to be an array in the JSON string but got `%s`", jsonObj.get("taints").toString())); + } + + // validate the optional field `taints` (array) + for (int i = 0; i < jsonArraytaints.size(); i++) { + V1DeviceTaint.validateJsonElement(jsonArraytaints.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Device.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Device' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Device.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Device value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Device read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Device given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Device + * @throws IOException if the JSON string is invalid with respect to V1Device + */ + public static V1Device fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Device.class); + } + + /** + * Convert an instance of V1Device to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java similarity index 73% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java index b66eeaf694..d3013eae51 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.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.V1alpha3OpaqueDeviceConfiguration; +import io.kubernetes.client.openapi.models.V1OpaqueDeviceConfiguration; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -53,12 +53,12 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceAllocationConfiguration { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @jakarta.annotation.Nullable - private V1alpha3OpaqueDeviceConfiguration opaque; + private V1OpaqueDeviceConfiguration opaque; public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) @@ -70,10 +70,10 @@ public class V1alpha3DeviceAllocationConfiguration { @jakarta.annotation.Nonnull private String source; - public V1alpha3DeviceAllocationConfiguration() { + public V1DeviceAllocationConfiguration() { } - public V1alpha3DeviceAllocationConfiguration opaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { + public V1DeviceAllocationConfiguration opaque(@jakarta.annotation.Nullable V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; return this; } @@ -84,21 +84,21 @@ public V1alpha3DeviceAllocationConfiguration opaque(@jakarta.annotation.Nullable */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3OpaqueDeviceConfiguration getOpaque() { + public V1OpaqueDeviceConfiguration getOpaque() { return opaque; } - public void setOpaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { + public void setOpaque(@jakarta.annotation.Nullable V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; } - public V1alpha3DeviceAllocationConfiguration requests(@jakarta.annotation.Nullable List requests) { + public V1DeviceAllocationConfiguration requests(@jakarta.annotation.Nullable List requests) { this.requests = requests; return this; } - public V1alpha3DeviceAllocationConfiguration addRequestsItem(String requestsItem) { + public V1DeviceAllocationConfiguration addRequestsItem(String requestsItem) { if (this.requests == null) { this.requests = new ArrayList<>(); } @@ -121,7 +121,7 @@ public void setRequests(@jakarta.annotation.Nullable List requests) { } - public V1alpha3DeviceAllocationConfiguration source(@jakarta.annotation.Nonnull String source) { + public V1DeviceAllocationConfiguration source(@jakarta.annotation.Nonnull String source) { this.source = source; return this; } @@ -150,10 +150,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceAllocationConfiguration v1alpha3DeviceAllocationConfiguration = (V1alpha3DeviceAllocationConfiguration) o; - return Objects.equals(this.opaque, v1alpha3DeviceAllocationConfiguration.opaque) && - Objects.equals(this.requests, v1alpha3DeviceAllocationConfiguration.requests) && - Objects.equals(this.source, v1alpha3DeviceAllocationConfiguration.source); + V1DeviceAllocationConfiguration v1DeviceAllocationConfiguration = (V1DeviceAllocationConfiguration) o; + return Objects.equals(this.opaque, v1DeviceAllocationConfiguration.opaque) && + Objects.equals(this.requests, v1DeviceAllocationConfiguration.requests) && + Objects.equals(this.source, v1DeviceAllocationConfiguration.source); } @Override @@ -164,7 +164,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceAllocationConfiguration {\n"); + sb.append("class V1DeviceAllocationConfiguration {\n"); sb.append(" opaque: ").append(toIndentedString(opaque)).append("\n"); sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); @@ -203,25 +203,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 V1alpha3DeviceAllocationConfiguration + * @throws IOException if the JSON Element is invalid with respect to V1DeviceAllocationConfiguration */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceAllocationConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceAllocationConfiguration is not found in the empty JSON string", V1alpha3DeviceAllocationConfiguration.openapiRequiredFields.toString())); + if (!V1DeviceAllocationConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceAllocationConfiguration is not found in the empty JSON string", V1DeviceAllocationConfiguration.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceAllocationConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceAllocationConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceAllocationConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceAllocationConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3DeviceAllocationConfiguration.openapiRequiredFields) { + for (String requiredField : V1DeviceAllocationConfiguration.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -229,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `opaque` if (jsonObj.get("opaque") != null && !jsonObj.get("opaque").isJsonNull()) { - V1alpha3OpaqueDeviceConfiguration.validateJsonElement(jsonObj.get("opaque")); + V1OpaqueDeviceConfiguration.validateJsonElement(jsonObj.get("opaque")); } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { @@ -244,22 +244,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceAllocationConfiguration.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceAllocationConfiguration' and its subtypes + if (!V1DeviceAllocationConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceAllocationConfiguration' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceAllocationConfiguration.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceAllocationConfiguration.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceAllocationConfiguration value) throws IOException { + public void write(JsonWriter out, V1DeviceAllocationConfiguration value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceAllocationConfiguration read(JsonReader in) throws IOException { + public V1DeviceAllocationConfiguration read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -270,18 +270,18 @@ public V1alpha3DeviceAllocationConfiguration read(JsonReader in) throws IOExcept } /** - * Create an instance of V1alpha3DeviceAllocationConfiguration given an JSON string + * Create an instance of V1DeviceAllocationConfiguration given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceAllocationConfiguration - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceAllocationConfiguration + * @return An instance of V1DeviceAllocationConfiguration + * @throws IOException if the JSON string is invalid with respect to V1DeviceAllocationConfiguration */ - public static V1alpha3DeviceAllocationConfiguration fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceAllocationConfiguration.class); + public static V1DeviceAllocationConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceAllocationConfiguration.class); } /** - * Convert an instance of V1alpha3DeviceAllocationConfiguration to an JSON string + * Convert an instance of V1DeviceAllocationConfiguration to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java similarity index 70% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java index a2ce3a1de2..a4f7d2e64f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.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.V1alpha3DeviceAllocationConfiguration; -import io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult; +import io.kubernetes.client.openapi.models.V1DeviceAllocationConfiguration; +import io.kubernetes.client.openapi.models.V1DeviceRequestAllocationResult; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,27 +54,27 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceAllocationResult { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @jakarta.annotation.Nullable - private List config = new ArrayList<>(); + private List config = new ArrayList<>(); public static final String SERIALIZED_NAME_RESULTS = "results"; @SerializedName(SERIALIZED_NAME_RESULTS) @jakarta.annotation.Nullable - private List results = new ArrayList<>(); + private List results = new ArrayList<>(); - public V1alpha3DeviceAllocationResult() { + public V1DeviceAllocationResult() { } - public V1alpha3DeviceAllocationResult config(@jakarta.annotation.Nullable List config) { + public V1DeviceAllocationResult config(@jakarta.annotation.Nullable List config) { this.config = config; return this; } - public V1alpha3DeviceAllocationResult addConfigItem(V1alpha3DeviceAllocationConfiguration configItem) { + public V1DeviceAllocationResult addConfigItem(V1DeviceAllocationConfiguration configItem) { if (this.config == null) { this.config = new ArrayList<>(); } @@ -88,21 +88,21 @@ public V1alpha3DeviceAllocationResult addConfigItem(V1alpha3DeviceAllocationConf */ @jakarta.annotation.Nullable @ApiModelProperty(value = "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.") - public List getConfig() { + public List getConfig() { return config; } - public void setConfig(@jakarta.annotation.Nullable List config) { + public void setConfig(@jakarta.annotation.Nullable List config) { this.config = config; } - public V1alpha3DeviceAllocationResult results(@jakarta.annotation.Nullable List results) { + public V1DeviceAllocationResult results(@jakarta.annotation.Nullable List results) { this.results = results; return this; } - public V1alpha3DeviceAllocationResult addResultsItem(V1alpha3DeviceRequestAllocationResult resultsItem) { + public V1DeviceAllocationResult addResultsItem(V1DeviceRequestAllocationResult resultsItem) { if (this.results == null) { this.results = new ArrayList<>(); } @@ -116,11 +116,11 @@ public V1alpha3DeviceAllocationResult addResultsItem(V1alpha3DeviceRequestAlloca */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Results lists all allocated devices.") - public List getResults() { + public List getResults() { return results; } - public void setResults(@jakarta.annotation.Nullable List results) { + public void setResults(@jakarta.annotation.Nullable List results) { this.results = results; } @@ -134,9 +134,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceAllocationResult v1alpha3DeviceAllocationResult = (V1alpha3DeviceAllocationResult) o; - return Objects.equals(this.config, v1alpha3DeviceAllocationResult.config) && - Objects.equals(this.results, v1alpha3DeviceAllocationResult.results); + V1DeviceAllocationResult v1DeviceAllocationResult = (V1DeviceAllocationResult) o; + return Objects.equals(this.config, v1DeviceAllocationResult.config) && + Objects.equals(this.results, v1DeviceAllocationResult.results); } @Override @@ -147,7 +147,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceAllocationResult {\n"); + sb.append("class V1DeviceAllocationResult {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); sb.append(" results: ").append(toIndentedString(results)).append("\n"); sb.append("}"); @@ -183,20 +183,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 V1alpha3DeviceAllocationResult + * @throws IOException if the JSON Element is invalid with respect to V1DeviceAllocationResult */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceAllocationResult is not found in the empty JSON string", V1alpha3DeviceAllocationResult.openapiRequiredFields.toString())); + if (!V1DeviceAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceAllocationResult is not found in the empty JSON string", V1DeviceAllocationResult.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceAllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceAllocationResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -210,7 +210,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `config` (array) for (int i = 0; i < jsonArrayconfig.size(); i++) { - V1alpha3DeviceAllocationConfiguration.validateJsonElement(jsonArrayconfig.get(i)); + V1DeviceAllocationConfiguration.validateJsonElement(jsonArrayconfig.get(i)); }; } } @@ -224,7 +224,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `results` (array) for (int i = 0; i < jsonArrayresults.size(); i++) { - V1alpha3DeviceRequestAllocationResult.validateJsonElement(jsonArrayresults.get(i)); + V1DeviceRequestAllocationResult.validateJsonElement(jsonArrayresults.get(i)); }; } } @@ -234,22 +234,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceAllocationResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceAllocationResult' and its subtypes + if (!V1DeviceAllocationResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceAllocationResult' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceAllocationResult.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceAllocationResult.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceAllocationResult value) throws IOException { + public void write(JsonWriter out, V1DeviceAllocationResult value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceAllocationResult read(JsonReader in) throws IOException { + public V1DeviceAllocationResult read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -260,18 +260,18 @@ public V1alpha3DeviceAllocationResult read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceAllocationResult given an JSON string + * Create an instance of V1DeviceAllocationResult given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceAllocationResult - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceAllocationResult + * @return An instance of V1DeviceAllocationResult + * @throws IOException if the JSON string is invalid with respect to V1DeviceAllocationResult */ - public static V1alpha3DeviceAllocationResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceAllocationResult.class); + public static V1DeviceAllocationResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceAllocationResult.class); } /** - * Convert an instance of V1alpha3DeviceAllocationResult to an JSON string + * Convert an instance of V1DeviceAllocationResult to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java similarity index 77% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java index 6b8a377204..169be2b9e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java @@ -50,8 +50,8 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceAttribute { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) @jakarta.annotation.Nullable @@ -72,10 +72,10 @@ public class V1alpha3DeviceAttribute { @jakarta.annotation.Nullable private String version; - public V1alpha3DeviceAttribute() { + public V1DeviceAttribute() { } - public V1alpha3DeviceAttribute bool(@jakarta.annotation.Nullable Boolean bool) { + public V1DeviceAttribute bool(@jakarta.annotation.Nullable Boolean bool) { this.bool = bool; return this; } @@ -95,7 +95,7 @@ public void setBool(@jakarta.annotation.Nullable Boolean bool) { } - public V1alpha3DeviceAttribute _int(@jakarta.annotation.Nullable Long _int) { + public V1DeviceAttribute _int(@jakarta.annotation.Nullable Long _int) { this._int = _int; return this; } @@ -115,7 +115,7 @@ public void setInt(@jakarta.annotation.Nullable Long _int) { } - public V1alpha3DeviceAttribute string(@jakarta.annotation.Nullable String string) { + public V1DeviceAttribute string(@jakarta.annotation.Nullable String string) { this.string = string; return this; } @@ -135,7 +135,7 @@ public void setString(@jakarta.annotation.Nullable String string) { } - public V1alpha3DeviceAttribute version(@jakarta.annotation.Nullable String version) { + public V1DeviceAttribute version(@jakarta.annotation.Nullable String version) { this.version = version; return this; } @@ -164,11 +164,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceAttribute v1alpha3DeviceAttribute = (V1alpha3DeviceAttribute) o; - return Objects.equals(this.bool, v1alpha3DeviceAttribute.bool) && - Objects.equals(this._int, v1alpha3DeviceAttribute._int) && - Objects.equals(this.string, v1alpha3DeviceAttribute.string) && - Objects.equals(this.version, v1alpha3DeviceAttribute.version); + V1DeviceAttribute v1DeviceAttribute = (V1DeviceAttribute) o; + return Objects.equals(this.bool, v1DeviceAttribute.bool) && + Objects.equals(this._int, v1DeviceAttribute._int) && + Objects.equals(this.string, v1DeviceAttribute.string) && + Objects.equals(this.version, v1DeviceAttribute.version); } @Override @@ -179,7 +179,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceAttribute {\n"); + sb.append("class V1DeviceAttribute {\n"); sb.append(" bool: ").append(toIndentedString(bool)).append("\n"); sb.append(" _int: ").append(toIndentedString(_int)).append("\n"); sb.append(" string: ").append(toIndentedString(string)).append("\n"); @@ -219,20 +219,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 V1alpha3DeviceAttribute + * @throws IOException if the JSON Element is invalid with respect to V1DeviceAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceAttribute is not found in the empty JSON string", V1alpha3DeviceAttribute.openapiRequiredFields.toString())); + if (!V1DeviceAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceAttribute is not found in the empty JSON string", V1DeviceAttribute.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -248,22 +248,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceAttribute' and its subtypes + if (!V1DeviceAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceAttribute' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceAttribute.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceAttribute.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceAttribute value) throws IOException { + public void write(JsonWriter out, V1DeviceAttribute value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceAttribute read(JsonReader in) throws IOException { + public V1DeviceAttribute read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -274,18 +274,18 @@ public V1alpha3DeviceAttribute read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceAttribute given an JSON string + * Create an instance of V1DeviceAttribute given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceAttribute - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceAttribute + * @return An instance of V1DeviceAttribute + * @throws IOException if the JSON string is invalid with respect to V1DeviceAttribute */ - public static V1alpha3DeviceAttribute fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceAttribute.class); + public static V1DeviceAttribute fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceAttribute.class); } /** - * Convert an instance of V1alpha3DeviceAttribute to an JSON string + * Convert an instance of V1DeviceAttribute to an JSON string * * @return JSON string */ 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 new file mode 100644 index 0000000000..2372eb6bc4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java @@ -0,0 +1,250 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.openapi.models.V1CapacityRequestPolicy; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceCapacity { + public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; + @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) + @jakarta.annotation.Nullable + private V1CapacityRequestPolicy requestPolicy; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nonnull + private Quantity value; + + public V1DeviceCapacity() { + } + + public V1DeviceCapacity requestPolicy(@jakarta.annotation.Nullable V1CapacityRequestPolicy requestPolicy) { + this.requestPolicy = requestPolicy; + return this; + } + + /** + * Get requestPolicy + * @return requestPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1CapacityRequestPolicy getRequestPolicy() { + return requestPolicy; + } + + public void setRequestPolicy(@jakarta.annotation.Nullable V1CapacityRequestPolicy requestPolicy) { + this.requestPolicy = requestPolicy; + } + + + public V1DeviceCapacity value(@jakarta.annotation.Nonnull Quantity value) { + this.value = value; + return this; + } + + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @return value + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getValue() { + return value; + } + + public void setValue(@jakarta.annotation.Nonnull Quantity value) { + this.value = value; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1DeviceCapacity v1DeviceCapacity = (V1DeviceCapacity) o; + return Objects.equals(this.requestPolicy, v1DeviceCapacity.requestPolicy) && + Objects.equals(this.value, v1DeviceCapacity.value); + } + + @Override + public int hashCode() { + return Objects.hash(requestPolicy, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1DeviceCapacity {\n"); + sb.append(" requestPolicy: ").append(toIndentedString(requestPolicy)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("requestPolicy"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("value"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeviceCapacity + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1DeviceCapacity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceCapacity is not found in the empty JSON string", V1DeviceCapacity.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1DeviceCapacity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceCapacity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeviceCapacity.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `requestPolicy` + if (jsonObj.get("requestPolicy") != null && !jsonObj.get("requestPolicy").isJsonNull()) { + V1CapacityRequestPolicy.validateJsonElement(jsonObj.get("requestPolicy")); + } + if (!jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeviceCapacity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceCapacity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceCapacity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeviceCapacity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeviceCapacity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeviceCapacity given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeviceCapacity + * @throws IOException if the JSON string is invalid with respect to V1DeviceCapacity + */ + public static V1DeviceCapacity fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceCapacity.class); + } + + /** + * Convert an instance of V1DeviceCapacity to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java similarity index 72% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java index 6b6625eccc..4cc1949fcb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java @@ -18,9 +18,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha3DeviceClaimConfiguration; -import io.kubernetes.client.openapi.models.V1alpha3DeviceConstraint; -import io.kubernetes.client.openapi.models.V1alpha3DeviceRequest; +import io.kubernetes.client.openapi.models.V1DeviceClaimConfiguration; +import io.kubernetes.client.openapi.models.V1DeviceConstraint; +import io.kubernetes.client.openapi.models.V1DeviceRequest; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -55,32 +55,32 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceClaim { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @jakarta.annotation.Nullable - private List config = new ArrayList<>(); + private List config = new ArrayList<>(); public static final String SERIALIZED_NAME_CONSTRAINTS = "constraints"; @SerializedName(SERIALIZED_NAME_CONSTRAINTS) @jakarta.annotation.Nullable - private List constraints = new ArrayList<>(); + private List constraints = new ArrayList<>(); public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) @jakarta.annotation.Nullable - private List requests = new ArrayList<>(); + private List requests = new ArrayList<>(); - public V1alpha3DeviceClaim() { + public V1DeviceClaim() { } - public V1alpha3DeviceClaim config(@jakarta.annotation.Nullable List config) { + public V1DeviceClaim config(@jakarta.annotation.Nullable List config) { this.config = config; return this; } - public V1alpha3DeviceClaim addConfigItem(V1alpha3DeviceClaimConfiguration configItem) { + public V1DeviceClaim addConfigItem(V1DeviceClaimConfiguration configItem) { if (this.config == null) { this.config = new ArrayList<>(); } @@ -94,21 +94,21 @@ public V1alpha3DeviceClaim addConfigItem(V1alpha3DeviceClaimConfiguration config */ @jakarta.annotation.Nullable @ApiModelProperty(value = "This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.") - public List getConfig() { + public List getConfig() { return config; } - public void setConfig(@jakarta.annotation.Nullable List config) { + public void setConfig(@jakarta.annotation.Nullable List config) { this.config = config; } - public V1alpha3DeviceClaim constraints(@jakarta.annotation.Nullable List constraints) { + public V1DeviceClaim constraints(@jakarta.annotation.Nullable List constraints) { this.constraints = constraints; return this; } - public V1alpha3DeviceClaim addConstraintsItem(V1alpha3DeviceConstraint constraintsItem) { + public V1DeviceClaim addConstraintsItem(V1DeviceConstraint constraintsItem) { if (this.constraints == null) { this.constraints = new ArrayList<>(); } @@ -122,21 +122,21 @@ public V1alpha3DeviceClaim addConstraintsItem(V1alpha3DeviceConstraint constrain */ @jakarta.annotation.Nullable @ApiModelProperty(value = "These constraints must be satisfied by the set of devices that get allocated for the claim.") - public List getConstraints() { + public List getConstraints() { return constraints; } - public void setConstraints(@jakarta.annotation.Nullable List constraints) { + public void setConstraints(@jakarta.annotation.Nullable List constraints) { this.constraints = constraints; } - public V1alpha3DeviceClaim requests(@jakarta.annotation.Nullable List requests) { + public V1DeviceClaim requests(@jakarta.annotation.Nullable List requests) { this.requests = requests; return this; } - public V1alpha3DeviceClaim addRequestsItem(V1alpha3DeviceRequest requestsItem) { + public V1DeviceClaim addRequestsItem(V1DeviceRequest requestsItem) { if (this.requests == null) { this.requests = new ArrayList<>(); } @@ -150,11 +150,11 @@ public V1alpha3DeviceClaim addRequestsItem(V1alpha3DeviceRequest requestsItem) { */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.") - public List getRequests() { + public List getRequests() { return requests; } - public void setRequests(@jakarta.annotation.Nullable List requests) { + public void setRequests(@jakarta.annotation.Nullable List requests) { this.requests = requests; } @@ -168,10 +168,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceClaim v1alpha3DeviceClaim = (V1alpha3DeviceClaim) o; - return Objects.equals(this.config, v1alpha3DeviceClaim.config) && - Objects.equals(this.constraints, v1alpha3DeviceClaim.constraints) && - Objects.equals(this.requests, v1alpha3DeviceClaim.requests); + V1DeviceClaim v1DeviceClaim = (V1DeviceClaim) o; + return Objects.equals(this.config, v1DeviceClaim.config) && + Objects.equals(this.constraints, v1DeviceClaim.constraints) && + Objects.equals(this.requests, v1DeviceClaim.requests); } @Override @@ -182,7 +182,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceClaim {\n"); + sb.append("class V1DeviceClaim {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); sb.append(" constraints: ").append(toIndentedString(constraints)).append("\n"); sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); @@ -220,20 +220,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 V1alpha3DeviceClaim + * @throws IOException if the JSON Element is invalid with respect to V1DeviceClaim */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceClaim is not found in the empty JSON string", V1alpha3DeviceClaim.openapiRequiredFields.toString())); + if (!V1DeviceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClaim is not found in the empty JSON string", V1DeviceClaim.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -247,7 +247,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `config` (array) for (int i = 0; i < jsonArrayconfig.size(); i++) { - V1alpha3DeviceClaimConfiguration.validateJsonElement(jsonArrayconfig.get(i)); + V1DeviceClaimConfiguration.validateJsonElement(jsonArrayconfig.get(i)); }; } } @@ -261,7 +261,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `constraints` (array) for (int i = 0; i < jsonArrayconstraints.size(); i++) { - V1alpha3DeviceConstraint.validateJsonElement(jsonArrayconstraints.get(i)); + V1DeviceConstraint.validateJsonElement(jsonArrayconstraints.get(i)); }; } } @@ -275,7 +275,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `requests` (array) for (int i = 0; i < jsonArrayrequests.size(); i++) { - V1alpha3DeviceRequest.validateJsonElement(jsonArrayrequests.get(i)); + V1DeviceRequest.validateJsonElement(jsonArrayrequests.get(i)); }; } } @@ -285,22 +285,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceClaim.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceClaim' and its subtypes + if (!V1DeviceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceClaim' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceClaim.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceClaim.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceClaim value) throws IOException { + public void write(JsonWriter out, V1DeviceClaim value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceClaim read(JsonReader in) throws IOException { + public V1DeviceClaim read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -311,18 +311,18 @@ public V1alpha3DeviceClaim read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceClaim given an JSON string + * Create an instance of V1DeviceClaim given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClaim - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClaim + * @return An instance of V1DeviceClaim + * @throws IOException if the JSON string is invalid with respect to V1DeviceClaim */ - public static V1alpha3DeviceClaim fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClaim.class); + public static V1DeviceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceClaim.class); } /** - * Convert an instance of V1alpha3DeviceClaim to an JSON string + * Convert an instance of V1DeviceClaim to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java similarity index 72% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java index fe43145aef..4da9de521f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.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.V1alpha3OpaqueDeviceConfiguration; +import io.kubernetes.client.openapi.models.V1OpaqueDeviceConfiguration; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -53,22 +53,22 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceClaimConfiguration { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @jakarta.annotation.Nullable - private V1alpha3OpaqueDeviceConfiguration opaque; + private V1OpaqueDeviceConfiguration opaque; public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) @jakarta.annotation.Nullable private List requests = new ArrayList<>(); - public V1alpha3DeviceClaimConfiguration() { + public V1DeviceClaimConfiguration() { } - public V1alpha3DeviceClaimConfiguration opaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { + public V1DeviceClaimConfiguration opaque(@jakarta.annotation.Nullable V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; return this; } @@ -79,21 +79,21 @@ public V1alpha3DeviceClaimConfiguration opaque(@jakarta.annotation.Nullable V1al */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3OpaqueDeviceConfiguration getOpaque() { + public V1OpaqueDeviceConfiguration getOpaque() { return opaque; } - public void setOpaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { + public void setOpaque(@jakarta.annotation.Nullable V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; } - public V1alpha3DeviceClaimConfiguration requests(@jakarta.annotation.Nullable List requests) { + public V1DeviceClaimConfiguration requests(@jakarta.annotation.Nullable List requests) { this.requests = requests; return this; } - public V1alpha3DeviceClaimConfiguration addRequestsItem(String requestsItem) { + public V1DeviceClaimConfiguration addRequestsItem(String requestsItem) { if (this.requests == null) { this.requests = new ArrayList<>(); } @@ -125,9 +125,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceClaimConfiguration v1alpha3DeviceClaimConfiguration = (V1alpha3DeviceClaimConfiguration) o; - return Objects.equals(this.opaque, v1alpha3DeviceClaimConfiguration.opaque) && - Objects.equals(this.requests, v1alpha3DeviceClaimConfiguration.requests); + V1DeviceClaimConfiguration v1DeviceClaimConfiguration = (V1DeviceClaimConfiguration) o; + return Objects.equals(this.opaque, v1DeviceClaimConfiguration.opaque) && + Objects.equals(this.requests, v1DeviceClaimConfiguration.requests); } @Override @@ -138,7 +138,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceClaimConfiguration {\n"); + sb.append("class V1DeviceClaimConfiguration {\n"); sb.append(" opaque: ").append(toIndentedString(opaque)).append("\n"); sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); sb.append("}"); @@ -174,26 +174,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 V1alpha3DeviceClaimConfiguration + * @throws IOException if the JSON Element is invalid with respect to V1DeviceClaimConfiguration */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceClaimConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceClaimConfiguration is not found in the empty JSON string", V1alpha3DeviceClaimConfiguration.openapiRequiredFields.toString())); + if (!V1DeviceClaimConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClaimConfiguration is not found in the empty JSON string", V1DeviceClaimConfiguration.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceClaimConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceClaimConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceClaimConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClaimConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `opaque` if (jsonObj.get("opaque") != null && !jsonObj.get("opaque").isJsonNull()) { - V1alpha3OpaqueDeviceConfiguration.validateJsonElement(jsonObj.get("opaque")); + V1OpaqueDeviceConfiguration.validateJsonElement(jsonObj.get("opaque")); } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { @@ -205,22 +205,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceClaimConfiguration.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceClaimConfiguration' and its subtypes + if (!V1DeviceClaimConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceClaimConfiguration' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceClaimConfiguration.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceClaimConfiguration.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceClaimConfiguration value) throws IOException { + public void write(JsonWriter out, V1DeviceClaimConfiguration value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceClaimConfiguration read(JsonReader in) throws IOException { + public V1DeviceClaimConfiguration read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -231,18 +231,18 @@ public V1alpha3DeviceClaimConfiguration read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceClaimConfiguration given an JSON string + * Create an instance of V1DeviceClaimConfiguration given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClaimConfiguration - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClaimConfiguration + * @return An instance of V1DeviceClaimConfiguration + * @throws IOException if the JSON string is invalid with respect to V1DeviceClaimConfiguration */ - public static V1alpha3DeviceClaimConfiguration fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClaimConfiguration.class); + public static V1DeviceClaimConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceClaimConfiguration.class); } /** - * Convert an instance of V1alpha3DeviceClaimConfiguration to an JSON string + * Convert an instance of V1DeviceClaimConfiguration to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java similarity index 79% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java index 1931f723dc..09421306c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.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.V1DeviceClassSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha3DeviceClassSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -52,8 +52,8 @@ * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceClass implements io.kubernetes.client.common.KubernetesObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceClass 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 V1alpha3DeviceClass implements io.kubernetes.client.common.Kubernet public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1alpha3DeviceClassSpec spec; + private V1DeviceClassSpec spec; - public V1alpha3DeviceClass() { + public V1DeviceClass() { } - public V1alpha3DeviceClass apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1DeviceClass apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -97,7 +97,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha3DeviceClass kind(@jakarta.annotation.Nullable String kind) { + public V1DeviceClass kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -117,7 +117,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha3DeviceClass metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1DeviceClass metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha3DeviceClass spec(@jakarta.annotation.Nonnull V1alpha3DeviceClassSpec spec) { + public V1DeviceClass spec(@jakarta.annotation.Nonnull V1DeviceClassSpec spec) { this.spec = spec; return this; } @@ -148,11 +148,11 @@ public V1alpha3DeviceClass spec(@jakarta.annotation.Nonnull V1alpha3DeviceClassS */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha3DeviceClassSpec getSpec() { + public V1DeviceClassSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1alpha3DeviceClassSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1DeviceClassSpec spec) { this.spec = spec; } @@ -166,11 +166,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceClass v1alpha3DeviceClass = (V1alpha3DeviceClass) o; - return Objects.equals(this.apiVersion, v1alpha3DeviceClass.apiVersion) && - Objects.equals(this.kind, v1alpha3DeviceClass.kind) && - Objects.equals(this.metadata, v1alpha3DeviceClass.metadata) && - Objects.equals(this.spec, v1alpha3DeviceClass.spec); + V1DeviceClass v1DeviceClass = (V1DeviceClass) o; + return Objects.equals(this.apiVersion, v1DeviceClass.apiVersion) && + Objects.equals(this.kind, v1DeviceClass.kind) && + Objects.equals(this.metadata, v1DeviceClass.metadata) && + Objects.equals(this.spec, v1DeviceClass.spec); } @Override @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceClass {\n"); + sb.append("class V1DeviceClass {\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"); @@ -222,25 +222,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 V1alpha3DeviceClass + * @throws IOException if the JSON Element is invalid with respect to V1DeviceClass */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceClass is not found in the empty JSON string", V1alpha3DeviceClass.openapiRequiredFields.toString())); + if (!V1DeviceClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClass is not found in the empty JSON string", V1DeviceClass.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceClass.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceClass.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("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 : V1alpha3DeviceClass.openapiRequiredFields) { + for (String requiredField : V1DeviceClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -257,29 +257,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1alpha3DeviceClassSpec.validateJsonElement(jsonObj.get("spec")); + V1DeviceClassSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceClass.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceClass' and its subtypes + if (!V1DeviceClass.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceClass' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceClass.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceClass.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceClass value) throws IOException { + public void write(JsonWriter out, V1DeviceClass value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceClass read(JsonReader in) throws IOException { + public V1DeviceClass read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -290,18 +290,18 @@ public V1alpha3DeviceClass read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceClass given an JSON string + * Create an instance of V1DeviceClass given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClass - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClass + * @return An instance of V1DeviceClass + * @throws IOException if the JSON string is invalid with respect to V1DeviceClass */ - public static V1alpha3DeviceClass fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClass.class); + public static V1DeviceClass fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceClass.class); } /** - * Convert an instance of V1alpha3DeviceClass to an JSON string + * Convert an instance of V1DeviceClass to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java similarity index 67% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java index 2042f11c49..636fbb1631 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.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.V1alpha3OpaqueDeviceConfiguration; +import io.kubernetes.client.openapi.models.V1OpaqueDeviceConfiguration; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,17 +51,17 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceClassConfiguration { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @jakarta.annotation.Nullable - private V1alpha3OpaqueDeviceConfiguration opaque; + private V1OpaqueDeviceConfiguration opaque; - public V1alpha3DeviceClassConfiguration() { + public V1DeviceClassConfiguration() { } - public V1alpha3DeviceClassConfiguration opaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { + public V1DeviceClassConfiguration opaque(@jakarta.annotation.Nullable V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; return this; } @@ -72,11 +72,11 @@ public V1alpha3DeviceClassConfiguration opaque(@jakarta.annotation.Nullable V1al */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3OpaqueDeviceConfiguration getOpaque() { + public V1OpaqueDeviceConfiguration getOpaque() { return opaque; } - public void setOpaque(@jakarta.annotation.Nullable V1alpha3OpaqueDeviceConfiguration opaque) { + public void setOpaque(@jakarta.annotation.Nullable V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; } @@ -90,8 +90,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceClassConfiguration v1alpha3DeviceClassConfiguration = (V1alpha3DeviceClassConfiguration) o; - return Objects.equals(this.opaque, v1alpha3DeviceClassConfiguration.opaque); + V1DeviceClassConfiguration v1DeviceClassConfiguration = (V1DeviceClassConfiguration) o; + return Objects.equals(this.opaque, v1DeviceClassConfiguration.opaque); } @Override @@ -102,7 +102,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceClassConfiguration {\n"); + sb.append("class V1DeviceClassConfiguration {\n"); sb.append(" opaque: ").append(toIndentedString(opaque)).append("\n"); sb.append("}"); return sb.toString(); @@ -136,26 +136,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 V1alpha3DeviceClassConfiguration + * @throws IOException if the JSON Element is invalid with respect to V1DeviceClassConfiguration */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceClassConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceClassConfiguration is not found in the empty JSON string", V1alpha3DeviceClassConfiguration.openapiRequiredFields.toString())); + if (!V1DeviceClassConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClassConfiguration is not found in the empty JSON string", V1DeviceClassConfiguration.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceClassConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceClassConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceClassConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClassConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `opaque` if (jsonObj.get("opaque") != null && !jsonObj.get("opaque").isJsonNull()) { - V1alpha3OpaqueDeviceConfiguration.validateJsonElement(jsonObj.get("opaque")); + V1OpaqueDeviceConfiguration.validateJsonElement(jsonObj.get("opaque")); } } @@ -163,22 +163,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceClassConfiguration.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceClassConfiguration' and its subtypes + if (!V1DeviceClassConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceClassConfiguration' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceClassConfiguration.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceClassConfiguration.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceClassConfiguration value) throws IOException { + public void write(JsonWriter out, V1DeviceClassConfiguration value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceClassConfiguration read(JsonReader in) throws IOException { + public V1DeviceClassConfiguration read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -189,18 +189,18 @@ public V1alpha3DeviceClassConfiguration read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceClassConfiguration given an JSON string + * Create an instance of V1DeviceClassConfiguration given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClassConfiguration - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClassConfiguration + * @return An instance of V1DeviceClassConfiguration + * @throws IOException if the JSON string is invalid with respect to V1DeviceClassConfiguration */ - public static V1alpha3DeviceClassConfiguration fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClassConfiguration.class); + public static V1DeviceClassConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceClassConfiguration.class); } /** - * Convert an instance of V1alpha3DeviceClassConfiguration to an JSON string + * Convert an instance of V1DeviceClassConfiguration to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java similarity index 77% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java index b824cd9f5b..4e77e879a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.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.V1DeviceClass; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha3DeviceClass; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,8 +54,8 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceClassList 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 V1alpha3DeviceClassList implements io.kubernetes.client.common.Kube 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 V1alpha3DeviceClassList implements io.kubernetes.client.common.Kube @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1alpha3DeviceClassList() { + public V1DeviceClassList() { } - public V1alpha3DeviceClassList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1DeviceClassList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha3DeviceClassList items(@jakarta.annotation.Nonnull List items) { + public V1DeviceClassList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1alpha3DeviceClassList addItemsItem(V1alpha3DeviceClass itemsItem) { + public V1DeviceClassList addItemsItem(V1DeviceClass itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -118,16 +118,16 @@ public V1alpha3DeviceClassList addItemsItem(V1alpha3DeviceClass itemsItem) { */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of resource classes.") - 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 V1alpha3DeviceClassList kind(@jakarta.annotation.Nullable String kind) { + public V1DeviceClassList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha3DeviceClassList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1DeviceClassList 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; } - V1alpha3DeviceClassList v1alpha3DeviceClassList = (V1alpha3DeviceClassList) o; - return Objects.equals(this.apiVersion, v1alpha3DeviceClassList.apiVersion) && - Objects.equals(this.items, v1alpha3DeviceClassList.items) && - Objects.equals(this.kind, v1alpha3DeviceClassList.kind) && - Objects.equals(this.metadata, v1alpha3DeviceClassList.metadata); + V1DeviceClassList v1DeviceClassList = (V1DeviceClassList) o; + return Objects.equals(this.apiVersion, v1DeviceClassList.apiVersion) && + Objects.equals(this.items, v1DeviceClassList.items) && + Objects.equals(this.kind, v1DeviceClassList.kind) && + Objects.equals(this.metadata, v1DeviceClassList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceClassList {\n"); + sb.append("class V1DeviceClassList {\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"); @@ -232,25 +232,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 V1alpha3DeviceClassList + * @throws IOException if the JSON Element is invalid with respect to V1DeviceClassList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceClassList is not found in the empty JSON string", V1alpha3DeviceClassList.openapiRequiredFields.toString())); + if (!V1DeviceClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClassList is not found in the empty JSON string", V1DeviceClassList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceClassList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceClassList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3DeviceClassList.openapiRequiredFields) { + for (String requiredField : V1DeviceClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -267,7 +267,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++) { - V1alpha3DeviceClass.validateJsonElement(jsonArrayitems.get(i)); + V1DeviceClass.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -282,22 +282,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceClassList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceClassList' and its subtypes + if (!V1DeviceClassList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceClassList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceClassList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceClassList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceClassList value) throws IOException { + public void write(JsonWriter out, V1DeviceClassList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceClassList read(JsonReader in) throws IOException { + public V1DeviceClassList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -308,18 +308,18 @@ public V1alpha3DeviceClassList read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceClassList given an JSON string + * Create an instance of V1DeviceClassList given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClassList - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClassList + * @return An instance of V1DeviceClassList + * @throws IOException if the JSON string is invalid with respect to V1DeviceClassList */ - public static V1alpha3DeviceClassList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClassList.class); + public static V1DeviceClassList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceClassList.class); } /** - * Convert an instance of V1alpha3DeviceClassList to an JSON string + * Convert an instance of V1DeviceClassList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java similarity index 60% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java index 5efbf561a2..a2b050a7cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.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.V1alpha3DeviceClassConfiguration; -import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; +import io.kubernetes.client.openapi.models.V1DeviceClassConfiguration; +import io.kubernetes.client.openapi.models.V1DeviceSelector; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,27 +54,32 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceClassSpec { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @jakarta.annotation.Nullable - private List config = new ArrayList<>(); + private List config = new ArrayList<>(); + + public static final String SERIALIZED_NAME_EXTENDED_RESOURCE_NAME = "extendedResourceName"; + @SerializedName(SERIALIZED_NAME_EXTENDED_RESOURCE_NAME) + @jakarta.annotation.Nullable + private String extendedResourceName; public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) @jakarta.annotation.Nullable - private List selectors = new ArrayList<>(); + private List selectors = new ArrayList<>(); - public V1alpha3DeviceClassSpec() { + public V1DeviceClassSpec() { } - public V1alpha3DeviceClassSpec config(@jakarta.annotation.Nullable List config) { + public V1DeviceClassSpec config(@jakarta.annotation.Nullable List config) { this.config = config; return this; } - public V1alpha3DeviceClassSpec addConfigItem(V1alpha3DeviceClassConfiguration configItem) { + public V1DeviceClassSpec addConfigItem(V1DeviceClassConfiguration configItem) { if (this.config == null) { this.config = new ArrayList<>(); } @@ -88,21 +93,41 @@ public V1alpha3DeviceClassSpec addConfigItem(V1alpha3DeviceClassConfiguration co */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.") - public List getConfig() { + public List getConfig() { return config; } - public void setConfig(@jakarta.annotation.Nullable List config) { + public void setConfig(@jakarta.annotation.Nullable List config) { this.config = config; } - public V1alpha3DeviceClassSpec selectors(@jakarta.annotation.Nullable List selectors) { + public V1DeviceClassSpec extendedResourceName(@jakarta.annotation.Nullable String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + return this; + } + + /** + * 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 an alpha field. + * @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 an alpha field.") + public String getExtendedResourceName() { + return extendedResourceName; + } + + public void setExtendedResourceName(@jakarta.annotation.Nullable String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + } + + + public V1DeviceClassSpec selectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; return this; } - public V1alpha3DeviceClassSpec addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { + public V1DeviceClassSpec addSelectorsItem(V1DeviceSelector selectorsItem) { if (this.selectors == null) { this.selectors = new ArrayList<>(); } @@ -116,11 +141,11 @@ public V1alpha3DeviceClassSpec addSelectorsItem(V1alpha3DeviceSelector selectors */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Each selector must be satisfied by a device which is claimed via this class.") - public List getSelectors() { + public List getSelectors() { return selectors; } - public void setSelectors(@jakarta.annotation.Nullable List selectors) { + public void setSelectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; } @@ -134,21 +159,23 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceClassSpec v1alpha3DeviceClassSpec = (V1alpha3DeviceClassSpec) o; - return Objects.equals(this.config, v1alpha3DeviceClassSpec.config) && - Objects.equals(this.selectors, v1alpha3DeviceClassSpec.selectors); + V1DeviceClassSpec v1DeviceClassSpec = (V1DeviceClassSpec) o; + return Objects.equals(this.config, v1DeviceClassSpec.config) && + Objects.equals(this.extendedResourceName, v1DeviceClassSpec.extendedResourceName) && + Objects.equals(this.selectors, v1DeviceClassSpec.selectors); } @Override public int hashCode() { - return Objects.hash(config, selectors); + return Objects.hash(config, extendedResourceName, selectors); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceClassSpec {\n"); + sb.append("class V1DeviceClassSpec {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" extendedResourceName: ").append(toIndentedString(extendedResourceName)).append("\n"); sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); sb.append("}"); return sb.toString(); @@ -173,6 +200,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("config"); + openapiFields.add("extendedResourceName"); openapiFields.add("selectors"); // a set of required properties/fields (JSON key names) @@ -183,20 +211,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 V1alpha3DeviceClassSpec + * @throws IOException if the JSON Element is invalid with respect to V1DeviceClassSpec */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceClassSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceClassSpec is not found in the empty JSON string", V1alpha3DeviceClassSpec.openapiRequiredFields.toString())); + if (!V1DeviceClassSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClassSpec is not found in the empty JSON string", V1DeviceClassSpec.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceClassSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceClassSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceClassSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClassSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -210,10 +238,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `config` (array) for (int i = 0; i < jsonArrayconfig.size(); i++) { - V1alpha3DeviceClassConfiguration.validateJsonElement(jsonArrayconfig.get(i)); + V1DeviceClassConfiguration.validateJsonElement(jsonArrayconfig.get(i)); }; } } + if ((jsonObj.get("extendedResourceName") != null && !jsonObj.get("extendedResourceName").isJsonNull()) && !jsonObj.get("extendedResourceName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `extendedResourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("extendedResourceName").toString())); + } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { @@ -224,7 +255,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `selectors` (array) for (int i = 0; i < jsonArrayselectors.size(); i++) { - V1alpha3DeviceSelector.validateJsonElement(jsonArrayselectors.get(i)); + V1DeviceSelector.validateJsonElement(jsonArrayselectors.get(i)); }; } } @@ -234,22 +265,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceClassSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceClassSpec' and its subtypes + if (!V1DeviceClassSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceClassSpec' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceClassSpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceClassSpec.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceClassSpec value) throws IOException { + public void write(JsonWriter out, V1DeviceClassSpec value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceClassSpec read(JsonReader in) throws IOException { + public V1DeviceClassSpec read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -260,18 +291,18 @@ public V1alpha3DeviceClassSpec read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceClassSpec given an JSON string + * Create an instance of V1DeviceClassSpec given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceClassSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceClassSpec + * @return An instance of V1DeviceClassSpec + * @throws IOException if the JSON string is invalid with respect to V1DeviceClassSpec */ - public static V1alpha3DeviceClassSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceClassSpec.class); + public static V1DeviceClassSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceClassSpec.class); } /** - * Convert an instance of V1alpha3DeviceClassSpec to an JSON string + * Convert an instance of V1DeviceClassSpec to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java similarity index 67% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java index 03627701d6..b9521a9322 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java @@ -52,8 +52,13 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceConstraint { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceConstraint { + public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; + @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) + @jakarta.annotation.Nullable + private String distinctAttribute; + public static final String SERIALIZED_NAME_MATCH_ATTRIBUTE = "matchAttribute"; @SerializedName(SERIALIZED_NAME_MATCH_ATTRIBUTE) @jakarta.annotation.Nullable @@ -64,10 +69,30 @@ public class V1alpha3DeviceConstraint { @jakarta.annotation.Nullable private List requests = new ArrayList<>(); - public V1alpha3DeviceConstraint() { + public V1DeviceConstraint() { + } + + public V1DeviceConstraint distinctAttribute(@jakarta.annotation.Nullable String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return this; + } + + /** + * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. 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. + * @return distinctAttribute + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. 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.") + public String getDistinctAttribute() { + return distinctAttribute; } - public V1alpha3DeviceConstraint matchAttribute(@jakarta.annotation.Nullable String matchAttribute) { + public void setDistinctAttribute(@jakarta.annotation.Nullable String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + } + + + public V1DeviceConstraint matchAttribute(@jakarta.annotation.Nullable String matchAttribute) { this.matchAttribute = matchAttribute; return this; } @@ -87,12 +112,12 @@ public void setMatchAttribute(@jakarta.annotation.Nullable String matchAttribute } - public V1alpha3DeviceConstraint requests(@jakarta.annotation.Nullable List requests) { + public V1DeviceConstraint requests(@jakarta.annotation.Nullable List requests) { this.requests = requests; return this; } - public V1alpha3DeviceConstraint addRequestsItem(String requestsItem) { + public V1DeviceConstraint addRequestsItem(String requestsItem) { if (this.requests == null) { this.requests = new ArrayList<>(); } @@ -124,20 +149,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceConstraint v1alpha3DeviceConstraint = (V1alpha3DeviceConstraint) o; - return Objects.equals(this.matchAttribute, v1alpha3DeviceConstraint.matchAttribute) && - Objects.equals(this.requests, v1alpha3DeviceConstraint.requests); + V1DeviceConstraint v1DeviceConstraint = (V1DeviceConstraint) o; + return Objects.equals(this.distinctAttribute, v1DeviceConstraint.distinctAttribute) && + Objects.equals(this.matchAttribute, v1DeviceConstraint.matchAttribute) && + Objects.equals(this.requests, v1DeviceConstraint.requests); } @Override public int hashCode() { - return Objects.hash(matchAttribute, requests); + return Objects.hash(distinctAttribute, matchAttribute, requests); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceConstraint {\n"); + sb.append("class V1DeviceConstraint {\n"); + sb.append(" distinctAttribute: ").append(toIndentedString(distinctAttribute)).append("\n"); sb.append(" matchAttribute: ").append(toIndentedString(matchAttribute)).append("\n"); sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); sb.append("}"); @@ -162,6 +189,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("distinctAttribute"); openapiFields.add("matchAttribute"); openapiFields.add("requests"); @@ -173,23 +201,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 V1alpha3DeviceConstraint + * @throws IOException if the JSON Element is invalid with respect to V1DeviceConstraint */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceConstraint is not found in the empty JSON string", V1alpha3DeviceConstraint.openapiRequiredFields.toString())); + if (!V1DeviceConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceConstraint is not found in the empty JSON string", V1DeviceConstraint.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceConstraint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceConstraint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("distinctAttribute") != null && !jsonObj.get("distinctAttribute").isJsonNull()) && !jsonObj.get("distinctAttribute").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `distinctAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("distinctAttribute").toString())); + } if ((jsonObj.get("matchAttribute") != null && !jsonObj.get("matchAttribute").isJsonNull()) && !jsonObj.get("matchAttribute").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `matchAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchAttribute").toString())); } @@ -203,22 +234,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceConstraint.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceConstraint' and its subtypes + if (!V1DeviceConstraint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceConstraint' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceConstraint.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceConstraint.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceConstraint value) throws IOException { + public void write(JsonWriter out, V1DeviceConstraint value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceConstraint read(JsonReader in) throws IOException { + public V1DeviceConstraint read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -229,18 +260,18 @@ public V1alpha3DeviceConstraint read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceConstraint given an JSON string + * Create an instance of V1DeviceConstraint given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceConstraint - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceConstraint + * @return An instance of V1DeviceConstraint + * @throws IOException if the JSON string is invalid with respect to V1DeviceConstraint */ - public static V1alpha3DeviceConstraint fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceConstraint.class); + public static V1DeviceConstraint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceConstraint.class); } /** - * Convert an instance of V1alpha3DeviceConstraint to an JSON string + * Convert an instance of V1DeviceConstraint to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java similarity index 66% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java index e6d3ffeb87..8a12d37b5d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.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.V1alpha3Counter; +import io.kubernetes.client.openapi.models.V1Counter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -53,8 +53,8 @@ * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. */ @ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceCounterConsumption { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) @jakarta.annotation.Nonnull @@ -63,22 +63,22 @@ public class V1alpha3DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) @jakarta.annotation.Nonnull - private Map counters = new HashMap<>(); + private Map counters = new HashMap<>(); - public V1alpha3DeviceCounterConsumption() { + public V1DeviceCounterConsumption() { } - public V1alpha3DeviceCounterConsumption counterSet(@jakarta.annotation.Nonnull String counterSet) { + public V1DeviceCounterConsumption counterSet(@jakarta.annotation.Nonnull String counterSet) { this.counterSet = counterSet; return this; } /** - * CounterSet defines the set from which the counters defined will be consumed. + * CounterSet is the name of the set from which the counters defined will be consumed. * @return counterSet */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "CounterSet defines the set from which the counters defined will be consumed.") + @ApiModelProperty(required = true, value = "CounterSet is the name of the set from which the counters defined will be consumed.") public String getCounterSet() { return counterSet; } @@ -88,12 +88,12 @@ public void setCounterSet(@jakarta.annotation.Nonnull String counterSet) { } - public V1alpha3DeviceCounterConsumption counters(@jakarta.annotation.Nonnull Map counters) { + public V1DeviceCounterConsumption counters(@jakarta.annotation.Nonnull Map counters) { this.counters = counters; return this; } - public V1alpha3DeviceCounterConsumption putCountersItem(String key, V1alpha3Counter countersItem) { + public V1DeviceCounterConsumption putCountersItem(String key, V1Counter countersItem) { if (this.counters == null) { this.counters = new HashMap<>(); } @@ -102,16 +102,16 @@ public V1alpha3DeviceCounterConsumption putCountersItem(String key, V1alpha3Coun } /** - * Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + * Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). * @return counters */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).") - public Map getCounters() { + @ApiModelProperty(required = true, value = "Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).") + public Map getCounters() { return counters; } - public void setCounters(@jakarta.annotation.Nonnull Map counters) { + public void setCounters(@jakarta.annotation.Nonnull Map counters) { this.counters = counters; } @@ -125,9 +125,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceCounterConsumption v1alpha3DeviceCounterConsumption = (V1alpha3DeviceCounterConsumption) o; - return Objects.equals(this.counterSet, v1alpha3DeviceCounterConsumption.counterSet) && - Objects.equals(this.counters, v1alpha3DeviceCounterConsumption.counters); + V1DeviceCounterConsumption v1DeviceCounterConsumption = (V1DeviceCounterConsumption) o; + return Objects.equals(this.counterSet, v1DeviceCounterConsumption.counterSet) && + Objects.equals(this.counters, v1DeviceCounterConsumption.counters); } @Override @@ -138,7 +138,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceCounterConsumption {\n"); + sb.append("class V1DeviceCounterConsumption {\n"); sb.append(" counterSet: ").append(toIndentedString(counterSet)).append("\n"); sb.append(" counters: ").append(toIndentedString(counters)).append("\n"); sb.append("}"); @@ -176,25 +176,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 V1alpha3DeviceCounterConsumption + * @throws IOException if the JSON Element is invalid with respect to V1DeviceCounterConsumption */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceCounterConsumption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceCounterConsumption is not found in the empty JSON string", V1alpha3DeviceCounterConsumption.openapiRequiredFields.toString())); + if (!V1DeviceCounterConsumption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceCounterConsumption is not found in the empty JSON string", V1DeviceCounterConsumption.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceCounterConsumption.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceCounterConsumption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceCounterConsumption.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceCounterConsumption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3DeviceCounterConsumption.openapiRequiredFields) { + for (String requiredField : V1DeviceCounterConsumption.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -209,22 +209,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceCounterConsumption.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceCounterConsumption' and its subtypes + if (!V1DeviceCounterConsumption.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceCounterConsumption' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceCounterConsumption.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceCounterConsumption.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceCounterConsumption value) throws IOException { + public void write(JsonWriter out, V1DeviceCounterConsumption value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceCounterConsumption read(JsonReader in) throws IOException { + public V1DeviceCounterConsumption read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -235,18 +235,18 @@ public V1alpha3DeviceCounterConsumption read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceCounterConsumption given an JSON string + * Create an instance of V1DeviceCounterConsumption given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceCounterConsumption - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceCounterConsumption + * @return An instance of V1DeviceCounterConsumption + * @throws IOException if the JSON string is invalid with respect to V1DeviceCounterConsumption */ - public static V1alpha3DeviceCounterConsumption fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceCounterConsumption.class); + public static V1DeviceCounterConsumption fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceCounterConsumption.class); } /** - * Convert an instance of V1alpha3DeviceCounterConsumption to an JSON string + * Convert an instance of V1DeviceCounterConsumption to an JSON string * * @return JSON string */ 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 new file mode 100644 index 0000000000..6c16093425 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java @@ -0,0 +1,302 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1DeviceSubRequest; +import io.kubernetes.client.openapi.models.V1ExactDeviceRequest; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceRequest { + public static final String SERIALIZED_NAME_EXACTLY = "exactly"; + @SerializedName(SERIALIZED_NAME_EXACTLY) + @jakarta.annotation.Nullable + private V1ExactDeviceRequest exactly; + + public static final String SERIALIZED_NAME_FIRST_AVAILABLE = "firstAvailable"; + @SerializedName(SERIALIZED_NAME_FIRST_AVAILABLE) + @jakarta.annotation.Nullable + private List firstAvailable = new ArrayList<>(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public V1DeviceRequest() { + } + + public V1DeviceRequest exactly(@jakarta.annotation.Nullable V1ExactDeviceRequest exactly) { + this.exactly = exactly; + return this; + } + + /** + * Get exactly + * @return exactly + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ExactDeviceRequest getExactly() { + return exactly; + } + + public void setExactly(@jakarta.annotation.Nullable V1ExactDeviceRequest exactly) { + this.exactly = exactly; + } + + + public V1DeviceRequest firstAvailable(@jakarta.annotation.Nullable List firstAvailable) { + this.firstAvailable = firstAvailable; + return this; + } + + public V1DeviceRequest addFirstAvailableItem(V1DeviceSubRequest firstAvailableItem) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList<>(); + } + this.firstAvailable.add(firstAvailableItem); + return this; + } + + /** + * 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. + * @return firstAvailable + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public List getFirstAvailable() { + return firstAvailable; + } + + public void setFirstAvailable(@jakarta.annotation.Nullable List firstAvailable) { + this.firstAvailable = firstAvailable; + } + + + public V1DeviceRequest name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. 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. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. 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.") + 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; + } + V1DeviceRequest v1DeviceRequest = (V1DeviceRequest) o; + return Objects.equals(this.exactly, v1DeviceRequest.exactly) && + Objects.equals(this.firstAvailable, v1DeviceRequest.firstAvailable) && + Objects.equals(this.name, v1DeviceRequest.name); + } + + @Override + public int hashCode() { + return Objects.hash(exactly, firstAvailable, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1DeviceRequest {\n"); + sb.append(" exactly: ").append(toIndentedString(exactly)).append("\n"); + sb.append(" firstAvailable: ").append(toIndentedString(firstAvailable)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("exactly"); + openapiFields.add("firstAvailable"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeviceRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1DeviceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceRequest is not found in the empty JSON string", V1DeviceRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1DeviceRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeviceRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `exactly` + if (jsonObj.get("exactly") != null && !jsonObj.get("exactly").isJsonNull()) { + V1ExactDeviceRequest.validateJsonElement(jsonObj.get("exactly")); + } + if (jsonObj.get("firstAvailable") != null && !jsonObj.get("firstAvailable").isJsonNull()) { + JsonArray jsonArrayfirstAvailable = jsonObj.getAsJsonArray("firstAvailable"); + if (jsonArrayfirstAvailable != null) { + // ensure the json data is an array + if (!jsonObj.get("firstAvailable").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `firstAvailable` to be an array in the JSON string but got `%s`", jsonObj.get("firstAvailable").toString())); + } + + // validate the optional field `firstAvailable` (array) + for (int i = 0; i < jsonArrayfirstAvailable.size(); i++) { + V1DeviceSubRequest.validateJsonElement(jsonArrayfirstAvailable.get(i)); + }; + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeviceRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeviceRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeviceRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeviceRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeviceRequest + * @throws IOException if the JSON string is invalid with respect to V1DeviceRequest + */ + public static V1DeviceRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceRequest.class); + } + + /** + * Convert an instance of V1DeviceRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java similarity index 52% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java index ce81e06fa2..064f0b9b58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java @@ -18,13 +18,16 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.openapi.models.V1DeviceToleration; 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; @@ -53,13 +56,28 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceRequestAllocationResult { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @jakarta.annotation.Nullable private Boolean adminAccess; + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingFailureConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CONSUMED_CAPACITY = "consumedCapacity"; + @SerializedName(SERIALIZED_NAME_CONSUMED_CAPACITY) + @jakarta.annotation.Nullable + private Map consumedCapacity = new HashMap<>(); + public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) @jakarta.annotation.Nonnull @@ -80,15 +98,20 @@ public class V1alpha3DeviceRequestAllocationResult { @jakarta.annotation.Nonnull private String request; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + @jakarta.annotation.Nullable + private String shareID; + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) @jakarta.annotation.Nullable - private List tolerations = new ArrayList<>(); + private List tolerations = new ArrayList<>(); - public V1alpha3DeviceRequestAllocationResult() { + public V1DeviceRequestAllocationResult() { } - public V1alpha3DeviceRequestAllocationResult adminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { + public V1DeviceRequestAllocationResult adminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { this.adminAccess = adminAccess; return this; } @@ -108,7 +131,91 @@ public void setAdminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { } - public V1alpha3DeviceRequestAllocationResult device(@jakarta.annotation.Nonnull String device) { + public V1DeviceRequestAllocationResult bindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + return this; + } + + public V1DeviceRequestAllocationResult addBindingConditionsItem(String bindingConditionsItem) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList<>(); + } + this.bindingConditions.add(bindingConditionsItem); + return this; + } + + /** + * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingConditions() { + return bindingConditions; + } + + public void setBindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1DeviceRequestAllocationResult bindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + return this; + } + + public V1DeviceRequestAllocationResult addBindingFailureConditionsItem(String bindingFailureConditionsItem) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList<>(); + } + this.bindingFailureConditions.add(bindingFailureConditionsItem); + return this; + } + + /** + * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingFailureConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingFailureConditions() { + return bindingFailureConditions; + } + + public void setBindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1DeviceRequestAllocationResult consumedCapacity(@jakarta.annotation.Nullable Map consumedCapacity) { + this.consumedCapacity = consumedCapacity; + return this; + } + + public V1DeviceRequestAllocationResult putConsumedCapacityItem(String key, Quantity consumedCapacityItem) { + if (this.consumedCapacity == null) { + this.consumedCapacity = new HashMap<>(); + } + this.consumedCapacity.put(key, consumedCapacityItem); + return this; + } + + /** + * 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. + * @return consumedCapacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Map getConsumedCapacity() { + return consumedCapacity; + } + + public void setConsumedCapacity(@jakarta.annotation.Nullable Map consumedCapacity) { + this.consumedCapacity = consumedCapacity; + } + + + public V1DeviceRequestAllocationResult device(@jakarta.annotation.Nonnull String device) { this.device = device; return this; } @@ -128,7 +235,7 @@ public void setDevice(@jakarta.annotation.Nonnull String device) { } - public V1alpha3DeviceRequestAllocationResult driver(@jakarta.annotation.Nonnull String driver) { + public V1DeviceRequestAllocationResult driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } @@ -148,7 +255,7 @@ public void setDriver(@jakarta.annotation.Nonnull String driver) { } - public V1alpha3DeviceRequestAllocationResult pool(@jakarta.annotation.Nonnull String pool) { + public V1DeviceRequestAllocationResult pool(@jakarta.annotation.Nonnull String pool) { this.pool = pool; return this; } @@ -168,7 +275,7 @@ public void setPool(@jakarta.annotation.Nonnull String pool) { } - public V1alpha3DeviceRequestAllocationResult request(@jakarta.annotation.Nonnull String request) { + public V1DeviceRequestAllocationResult request(@jakarta.annotation.Nonnull String request) { this.request = request; return this; } @@ -188,12 +295,32 @@ public void setRequest(@jakarta.annotation.Nonnull String request) { } - public V1alpha3DeviceRequestAllocationResult tolerations(@jakarta.annotation.Nullable List tolerations) { + public V1DeviceRequestAllocationResult shareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + return this; + } + + /** + * 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. + * @return shareID + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public String getShareID() { + return shareID; + } + + public void setShareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + } + + + public V1DeviceRequestAllocationResult tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; } - public V1alpha3DeviceRequestAllocationResult addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { + public V1DeviceRequestAllocationResult addTolerationsItem(V1DeviceToleration tolerationsItem) { if (this.tolerations == null) { this.tolerations = new ArrayList<>(); } @@ -207,11 +334,11 @@ public V1alpha3DeviceRequestAllocationResult addTolerationsItem(V1alpha3DeviceTo */ @jakarta.annotation.Nullable @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") - public List getTolerations() { + public List getTolerations() { return tolerations; } - public void setTolerations(@jakarta.annotation.Nullable List tolerations) { + public void setTolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; } @@ -225,29 +352,37 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceRequestAllocationResult v1alpha3DeviceRequestAllocationResult = (V1alpha3DeviceRequestAllocationResult) o; - return Objects.equals(this.adminAccess, v1alpha3DeviceRequestAllocationResult.adminAccess) && - Objects.equals(this.device, v1alpha3DeviceRequestAllocationResult.device) && - Objects.equals(this.driver, v1alpha3DeviceRequestAllocationResult.driver) && - Objects.equals(this.pool, v1alpha3DeviceRequestAllocationResult.pool) && - Objects.equals(this.request, v1alpha3DeviceRequestAllocationResult.request) && - Objects.equals(this.tolerations, v1alpha3DeviceRequestAllocationResult.tolerations); + V1DeviceRequestAllocationResult v1DeviceRequestAllocationResult = (V1DeviceRequestAllocationResult) o; + return Objects.equals(this.adminAccess, v1DeviceRequestAllocationResult.adminAccess) && + Objects.equals(this.bindingConditions, v1DeviceRequestAllocationResult.bindingConditions) && + Objects.equals(this.bindingFailureConditions, v1DeviceRequestAllocationResult.bindingFailureConditions) && + Objects.equals(this.consumedCapacity, v1DeviceRequestAllocationResult.consumedCapacity) && + Objects.equals(this.device, v1DeviceRequestAllocationResult.device) && + Objects.equals(this.driver, v1DeviceRequestAllocationResult.driver) && + Objects.equals(this.pool, v1DeviceRequestAllocationResult.pool) && + Objects.equals(this.request, v1DeviceRequestAllocationResult.request) && + Objects.equals(this.shareID, v1DeviceRequestAllocationResult.shareID) && + Objects.equals(this.tolerations, v1DeviceRequestAllocationResult.tolerations); } @Override public int hashCode() { - return Objects.hash(adminAccess, device, driver, pool, request, tolerations); + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceRequestAllocationResult {\n"); + sb.append("class V1DeviceRequestAllocationResult {\n"); sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).append("\n"); + sb.append(" bindingConditions: ").append(toIndentedString(bindingConditions)).append("\n"); + sb.append(" bindingFailureConditions: ").append(toIndentedString(bindingFailureConditions)).append("\n"); + sb.append(" consumedCapacity: ").append(toIndentedString(consumedCapacity)).append("\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(" request: ").append(toIndentedString(request)).append("\n"); + sb.append(" shareID: ").append(toIndentedString(shareID)).append("\n"); sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append("}"); return sb.toString(); @@ -272,10 +407,14 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("adminAccess"); + openapiFields.add("bindingConditions"); + openapiFields.add("bindingFailureConditions"); + openapiFields.add("consumedCapacity"); openapiFields.add("device"); openapiFields.add("driver"); openapiFields.add("pool"); openapiFields.add("request"); + openapiFields.add("shareID"); openapiFields.add("tolerations"); // a set of required properties/fields (JSON key names) @@ -290,30 +429,38 @@ 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 V1alpha3DeviceRequestAllocationResult + * @throws IOException if the JSON Element is invalid with respect to V1DeviceRequestAllocationResult */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceRequestAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceRequestAllocationResult is not found in the empty JSON string", V1alpha3DeviceRequestAllocationResult.openapiRequiredFields.toString())); + if (!V1DeviceRequestAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceRequestAllocationResult is not found in the empty JSON string", V1DeviceRequestAllocationResult.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceRequestAllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceRequestAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceRequestAllocationResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceRequestAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3DeviceRequestAllocationResult.openapiRequiredFields) { + for (String requiredField : V1DeviceRequestAllocationResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + } if (!jsonObj.get("device").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); } @@ -326,6 +473,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("request").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); } + if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + } if (jsonObj.get("tolerations") != null && !jsonObj.get("tolerations").isJsonNull()) { JsonArray jsonArraytolerations = jsonObj.getAsJsonArray("tolerations"); if (jsonArraytolerations != null) { @@ -336,7 +486,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `tolerations` (array) for (int i = 0; i < jsonArraytolerations.size(); i++) { - V1alpha3DeviceToleration.validateJsonElement(jsonArraytolerations.get(i)); + V1DeviceToleration.validateJsonElement(jsonArraytolerations.get(i)); }; } } @@ -346,22 +496,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceRequestAllocationResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceRequestAllocationResult' and its subtypes + if (!V1DeviceRequestAllocationResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceRequestAllocationResult' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceRequestAllocationResult.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceRequestAllocationResult.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceRequestAllocationResult value) throws IOException { + public void write(JsonWriter out, V1DeviceRequestAllocationResult value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceRequestAllocationResult read(JsonReader in) throws IOException { + public V1DeviceRequestAllocationResult read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -372,18 +522,18 @@ public V1alpha3DeviceRequestAllocationResult read(JsonReader in) throws IOExcept } /** - * Create an instance of V1alpha3DeviceRequestAllocationResult given an JSON string + * Create an instance of V1DeviceRequestAllocationResult given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceRequestAllocationResult - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceRequestAllocationResult + * @return An instance of V1DeviceRequestAllocationResult + * @throws IOException if the JSON string is invalid with respect to V1DeviceRequestAllocationResult */ - public static V1alpha3DeviceRequestAllocationResult fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceRequestAllocationResult.class); + public static V1DeviceRequestAllocationResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceRequestAllocationResult.class); } /** - * Convert an instance of V1alpha3DeviceRequestAllocationResult to an JSON string + * Convert an instance of V1DeviceRequestAllocationResult to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java similarity index 52% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java index b8a768bb12..123d62b324 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java @@ -18,13 +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.V1beta1ExpressionWarning; +import io.kubernetes.client.openapi.models.V1CELDeviceSelector; 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,44 +48,36 @@ import io.kubernetes.client.openapi.JSON; /** - * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy + * DeviceSelector must have exactly one field set. */ -@ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1TypeChecking { - public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; - @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) +@ApiModel(description = "DeviceSelector must have exactly one field set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceSelector { + public static final String SERIALIZED_NAME_CEL = "cel"; + @SerializedName(SERIALIZED_NAME_CEL) @jakarta.annotation.Nullable - private List expressionWarnings = new ArrayList<>(); - - public V1beta1TypeChecking() { - } + private V1CELDeviceSelector cel; - public V1beta1TypeChecking expressionWarnings(@jakarta.annotation.Nullable List expressionWarnings) { - this.expressionWarnings = expressionWarnings; - return this; + public V1DeviceSelector() { } - public V1beta1TypeChecking addExpressionWarningsItem(V1beta1ExpressionWarning expressionWarningsItem) { - if (this.expressionWarnings == null) { - this.expressionWarnings = new ArrayList<>(); - } - this.expressionWarnings.add(expressionWarningsItem); + public V1DeviceSelector cel(@jakarta.annotation.Nullable V1CELDeviceSelector cel) { + this.cel = cel; return this; } /** - * The type checking warnings for each expression. - * @return expressionWarnings + * Get cel + * @return cel */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The type checking warnings for each expression.") - public List getExpressionWarnings() { - return expressionWarnings; + @ApiModelProperty(value = "") + public V1CELDeviceSelector getCel() { + return cel; } - public void setExpressionWarnings(@jakarta.annotation.Nullable List expressionWarnings) { - this.expressionWarnings = expressionWarnings; + public void setCel(@jakarta.annotation.Nullable V1CELDeviceSelector cel) { + this.cel = cel; } @@ -100,20 +90,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1TypeChecking v1beta1TypeChecking = (V1beta1TypeChecking) o; - return Objects.equals(this.expressionWarnings, v1beta1TypeChecking.expressionWarnings); + V1DeviceSelector v1DeviceSelector = (V1DeviceSelector) o; + return Objects.equals(this.cel, v1DeviceSelector.cel); } @Override public int hashCode() { - return Objects.hash(expressionWarnings); + return Objects.hash(cel); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1TypeChecking {\n"); - sb.append(" expressionWarnings: ").append(toIndentedString(expressionWarnings)).append("\n"); + sb.append("class V1DeviceSelector {\n"); + sb.append(" cel: ").append(toIndentedString(cel)).append("\n"); sb.append("}"); return sb.toString(); } @@ -136,7 +126,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("expressionWarnings"); + openapiFields.add("cel"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -146,36 +136,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 V1beta1TypeChecking + * @throws IOException if the JSON Element is invalid with respect to V1DeviceSelector */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1TypeChecking.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1TypeChecking is not found in the empty JSON string", V1beta1TypeChecking.openapiRequiredFields.toString())); + if (!V1DeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceSelector is not found in the empty JSON string", V1DeviceSelector.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1TypeChecking.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1TypeChecking` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("expressionWarnings") != null && !jsonObj.get("expressionWarnings").isJsonNull()) { - JsonArray jsonArrayexpressionWarnings = jsonObj.getAsJsonArray("expressionWarnings"); - if (jsonArrayexpressionWarnings != null) { - // ensure the json data is an array - if (!jsonObj.get("expressionWarnings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `expressionWarnings` to be an array in the JSON string but got `%s`", jsonObj.get("expressionWarnings").toString())); - } - - // validate the optional field `expressionWarnings` (array) - for (int i = 0; i < jsonArrayexpressionWarnings.size(); i++) { - V1beta1ExpressionWarning.validateJsonElement(jsonArrayexpressionWarnings.get(i)); - }; - } + // validate the optional field `cel` + if (jsonObj.get("cel") != null && !jsonObj.get("cel").isJsonNull()) { + V1CELDeviceSelector.validateJsonElement(jsonObj.get("cel")); } } @@ -183,22 +163,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1TypeChecking.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1TypeChecking' and its subtypes + if (!V1DeviceSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceSelector' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1TypeChecking.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceSelector.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1TypeChecking value) throws IOException { + public void write(JsonWriter out, V1DeviceSelector value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1TypeChecking read(JsonReader in) throws IOException { + public V1DeviceSelector read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -209,18 +189,18 @@ public V1beta1TypeChecking read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1TypeChecking given an JSON string + * Create an instance of V1DeviceSelector given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1TypeChecking - * @throws IOException if the JSON string is invalid with respect to V1beta1TypeChecking + * @return An instance of V1DeviceSelector + * @throws IOException if the JSON string is invalid with respect to V1DeviceSelector */ - public static V1beta1TypeChecking fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1TypeChecking.class); + public static V1DeviceSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceSelector.class); } /** - * Convert an instance of V1beta1TypeChecking to an JSON string + * Convert an instance of V1DeviceSelector to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java similarity index 69% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java index 0e5451d309..8a05dcada6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java @@ -18,8 +18,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; -import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; +import io.kubernetes.client.openapi.models.V1CapacityRequirements; +import io.kubernetes.client.openapi.models.V1DeviceSelector; +import io.kubernetes.client.openapi.models.V1DeviceToleration; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,16 +52,21 @@ import io.kubernetes.client.openapi.JSON; /** - * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. + * 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 Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceSubRequest { +@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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @jakarta.annotation.Nullable private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable + private V1CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @jakarta.annotation.Nullable @@ -79,27 +85,27 @@ public class V1alpha3DeviceSubRequest { public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) @jakarta.annotation.Nullable - private List selectors = new ArrayList<>(); + private List selectors = new ArrayList<>(); public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) @jakarta.annotation.Nullable - private List tolerations = new ArrayList<>(); + private List tolerations = new ArrayList<>(); - public V1alpha3DeviceSubRequest() { + public V1DeviceSubRequest() { } - public V1alpha3DeviceSubRequest allocationMode(@jakarta.annotation.Nullable String allocationMode) { + public V1DeviceSubRequest allocationMode(@jakarta.annotation.Nullable String allocationMode) { this.allocationMode = allocationMode; return this; } /** - * AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + * 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. * @return allocationMode */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") + @ApiModelProperty(value = "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.") public String getAllocationMode() { return allocationMode; } @@ -109,7 +115,27 @@ public void setAllocationMode(@jakarta.annotation.Nullable String allocationMode } - public V1alpha3DeviceSubRequest count(@jakarta.annotation.Nullable Long count) { + public V1DeviceSubRequest capacity(@jakarta.annotation.Nullable V1CapacityRequirements capacity) { + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1CapacityRequirements getCapacity() { + return capacity; + } + + public void setCapacity(@jakarta.annotation.Nullable V1CapacityRequirements capacity) { + this.capacity = capacity; + } + + + public V1DeviceSubRequest count(@jakarta.annotation.Nullable Long count) { this.count = count; return this; } @@ -129,7 +155,7 @@ public void setCount(@jakarta.annotation.Nullable Long count) { } - public V1alpha3DeviceSubRequest deviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { + public V1DeviceSubRequest deviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { this.deviceClassName = deviceClassName; return this; } @@ -149,7 +175,7 @@ public void setDeviceClassName(@jakarta.annotation.Nonnull String deviceClassNam } - public V1alpha3DeviceSubRequest name(@jakarta.annotation.Nonnull String name) { + public V1DeviceSubRequest name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -169,12 +195,12 @@ public void setName(@jakarta.annotation.Nonnull String name) { } - public V1alpha3DeviceSubRequest selectors(@jakarta.annotation.Nullable List selectors) { + public V1DeviceSubRequest selectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; return this; } - public V1alpha3DeviceSubRequest addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { + public V1DeviceSubRequest addSelectorsItem(V1DeviceSelector selectorsItem) { if (this.selectors == null) { this.selectors = new ArrayList<>(); } @@ -183,26 +209,26 @@ public V1alpha3DeviceSubRequest addSelectorsItem(V1alpha3DeviceSelector selector } /** - * Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. + * Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. * @return selectors */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.") - public List getSelectors() { + @ApiModelProperty(value = "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.") + public List getSelectors() { return selectors; } - public void setSelectors(@jakarta.annotation.Nullable List selectors) { + public void setSelectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; } - public V1alpha3DeviceSubRequest tolerations(@jakarta.annotation.Nullable List tolerations) { + public V1DeviceSubRequest tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; } - public V1alpha3DeviceSubRequest addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { + public V1DeviceSubRequest addTolerationsItem(V1DeviceToleration tolerationsItem) { if (this.tolerations == null) { this.tolerations = new ArrayList<>(); } @@ -216,11 +242,11 @@ public V1alpha3DeviceSubRequest addTolerationsItem(V1alpha3DeviceToleration tole */ @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") - public List getTolerations() { + public List getTolerations() { return tolerations; } - public void setTolerations(@jakarta.annotation.Nullable List tolerations) { + public void setTolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; } @@ -234,25 +260,27 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceSubRequest v1alpha3DeviceSubRequest = (V1alpha3DeviceSubRequest) o; - return Objects.equals(this.allocationMode, v1alpha3DeviceSubRequest.allocationMode) && - Objects.equals(this.count, v1alpha3DeviceSubRequest.count) && - Objects.equals(this.deviceClassName, v1alpha3DeviceSubRequest.deviceClassName) && - Objects.equals(this.name, v1alpha3DeviceSubRequest.name) && - Objects.equals(this.selectors, v1alpha3DeviceSubRequest.selectors) && - Objects.equals(this.tolerations, v1alpha3DeviceSubRequest.tolerations); + V1DeviceSubRequest v1DeviceSubRequest = (V1DeviceSubRequest) o; + return Objects.equals(this.allocationMode, v1DeviceSubRequest.allocationMode) && + Objects.equals(this.capacity, v1DeviceSubRequest.capacity) && + Objects.equals(this.count, v1DeviceSubRequest.count) && + Objects.equals(this.deviceClassName, v1DeviceSubRequest.deviceClassName) && + Objects.equals(this.name, v1DeviceSubRequest.name) && + Objects.equals(this.selectors, v1DeviceSubRequest.selectors) && + Objects.equals(this.tolerations, v1DeviceSubRequest.tolerations); } @Override public int hashCode() { - return Objects.hash(allocationMode, count, deviceClassName, name, selectors, tolerations); + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceSubRequest {\n"); + sb.append("class V1DeviceSubRequest {\n"); 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(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -281,6 +309,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("allocationMode"); + openapiFields.add("capacity"); openapiFields.add("count"); openapiFields.add("deviceClassName"); openapiFields.add("name"); @@ -297,25 +326,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 V1alpha3DeviceSubRequest + * @throws IOException if the JSON Element is invalid with respect to V1DeviceSubRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceSubRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceSubRequest is not found in the empty JSON string", V1alpha3DeviceSubRequest.openapiRequiredFields.toString())); + if (!V1DeviceSubRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceSubRequest is not found in the empty JSON string", V1DeviceSubRequest.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceSubRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceSubRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceSubRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceSubRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3DeviceSubRequest.openapiRequiredFields) { + for (String requiredField : V1DeviceSubRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -324,6 +353,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("allocationMode") != null && !jsonObj.get("allocationMode").isJsonNull()) && !jsonObj.get("allocationMode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } + // validate the optional field `capacity` + if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { + V1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); + } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } @@ -340,7 +373,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `selectors` (array) for (int i = 0; i < jsonArrayselectors.size(); i++) { - V1alpha3DeviceSelector.validateJsonElement(jsonArrayselectors.get(i)); + V1DeviceSelector.validateJsonElement(jsonArrayselectors.get(i)); }; } } @@ -354,7 +387,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `tolerations` (array) for (int i = 0; i < jsonArraytolerations.size(); i++) { - V1alpha3DeviceToleration.validateJsonElement(jsonArraytolerations.get(i)); + V1DeviceToleration.validateJsonElement(jsonArraytolerations.get(i)); }; } } @@ -364,22 +397,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceSubRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceSubRequest' and its subtypes + if (!V1DeviceSubRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceSubRequest' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceSubRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceSubRequest.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceSubRequest value) throws IOException { + public void write(JsonWriter out, V1DeviceSubRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceSubRequest read(JsonReader in) throws IOException { + public V1DeviceSubRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -390,18 +423,18 @@ public V1alpha3DeviceSubRequest read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceSubRequest given an JSON string + * Create an instance of V1DeviceSubRequest given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceSubRequest - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceSubRequest + * @return An instance of V1DeviceSubRequest + * @throws IOException if the JSON string is invalid with respect to V1DeviceSubRequest */ - public static V1alpha3DeviceSubRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceSubRequest.class); + public static V1DeviceSubRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceSubRequest.class); } /** - * Convert an instance of V1alpha3DeviceSubRequest to an JSON string + * Convert an instance of V1DeviceSubRequest to an JSON string * * @return JSON string */ 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 new file mode 100644 index 0000000000..6cb50a0252 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java @@ -0,0 +1,308 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. + */ +@ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceTaint { + public static final String SERIALIZED_NAME_EFFECT = "effect"; + @SerializedName(SERIALIZED_NAME_EFFECT) + @jakarta.annotation.Nonnull + private String effect; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_TIME_ADDED = "timeAdded"; + @SerializedName(SERIALIZED_NAME_TIME_ADDED) + @jakarta.annotation.Nullable + private OffsetDateTime timeAdded; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + @jakarta.annotation.Nullable + private String value; + + public V1DeviceTaint() { + } + + public V1DeviceTaint effect(@jakarta.annotation.Nonnull String effect) { + this.effect = effect; + return this; + } + + /** + * The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. + * @return effect + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.") + public String getEffect() { + return effect; + } + + public void setEffect(@jakarta.annotation.Nonnull String effect) { + this.effect = effect; + } + + + public V1DeviceTaint key(@jakarta.annotation.Nonnull String key) { + this.key = key; + return this; + } + + /** + * The taint key to be applied to a device. Must be a label name. + * @return key + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The taint key to be applied to a device. Must be a label name.") + public String getKey() { + return key; + } + + public void setKey(@jakarta.annotation.Nonnull String key) { + this.key = key; + } + + + public V1DeviceTaint timeAdded(@jakarta.annotation.Nullable OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return this; + } + + /** + * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + * @return timeAdded + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.") + public OffsetDateTime getTimeAdded() { + return timeAdded; + } + + public void setTimeAdded(@jakarta.annotation.Nullable OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + } + + + public V1DeviceTaint value(@jakarta.annotation.Nullable String value) { + this.value = value; + return this; + } + + /** + * The taint value corresponding to the taint key. Must be a label value. + * @return value + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "The taint value corresponding to the taint key. Must be a label value.") + public String getValue() { + return value; + } + + public void setValue(@jakarta.annotation.Nullable String value) { + this.value = value; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1DeviceTaint v1DeviceTaint = (V1DeviceTaint) o; + return Objects.equals(this.effect, v1DeviceTaint.effect) && + Objects.equals(this.key, v1DeviceTaint.key) && + Objects.equals(this.timeAdded, v1DeviceTaint.timeAdded) && + Objects.equals(this.value, v1DeviceTaint.value); + } + + @Override + public int hashCode() { + return Objects.hash(effect, key, timeAdded, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1DeviceTaint {\n"); + sb.append(" effect: ").append(toIndentedString(effect)).append("\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" timeAdded: ").append(toIndentedString(timeAdded)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("effect"); + openapiFields.add("key"); + openapiFields.add("timeAdded"); + openapiFields.add("value"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("effect"); + openapiRequiredFields.add("key"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1DeviceTaint + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1DeviceTaint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceTaint is not found in the empty JSON string", V1DeviceTaint.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1DeviceTaint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1DeviceTaint.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("effect").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `effect` to be a primitive type in the JSON string but got `%s`", jsonObj.get("effect").toString())); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1DeviceTaint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceTaint' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceTaint.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1DeviceTaint value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1DeviceTaint read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1DeviceTaint given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1DeviceTaint + * @throws IOException if the JSON string is invalid with respect to V1DeviceTaint + */ + public static V1DeviceTaint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceTaint.class); + } + + /** + * Convert an instance of V1DeviceTaint to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java similarity index 82% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java index b6efc0be4b..9974bbb1e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java @@ -50,8 +50,8 @@ * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceToleration { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @jakarta.annotation.Nullable @@ -77,10 +77,10 @@ public class V1alpha3DeviceToleration { @jakarta.annotation.Nullable private String value; - public V1alpha3DeviceToleration() { + public V1DeviceToleration() { } - public V1alpha3DeviceToleration effect(@jakarta.annotation.Nullable String effect) { + public V1DeviceToleration effect(@jakarta.annotation.Nullable String effect) { this.effect = effect; return this; } @@ -100,7 +100,7 @@ public void setEffect(@jakarta.annotation.Nullable String effect) { } - public V1alpha3DeviceToleration key(@jakarta.annotation.Nullable String key) { + public V1DeviceToleration key(@jakarta.annotation.Nullable String key) { this.key = key; return this; } @@ -120,7 +120,7 @@ public void setKey(@jakarta.annotation.Nullable String key) { } - public V1alpha3DeviceToleration operator(@jakarta.annotation.Nullable String operator) { + public V1DeviceToleration operator(@jakarta.annotation.Nullable String operator) { this.operator = operator; return this; } @@ -140,7 +140,7 @@ public void setOperator(@jakarta.annotation.Nullable String operator) { } - public V1alpha3DeviceToleration tolerationSeconds(@jakarta.annotation.Nullable Long tolerationSeconds) { + public V1DeviceToleration tolerationSeconds(@jakarta.annotation.Nullable Long tolerationSeconds) { this.tolerationSeconds = tolerationSeconds; return this; } @@ -160,7 +160,7 @@ public void setTolerationSeconds(@jakarta.annotation.Nullable Long tolerationSec } - public V1alpha3DeviceToleration value(@jakarta.annotation.Nullable String value) { + public V1DeviceToleration value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -189,12 +189,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceToleration v1alpha3DeviceToleration = (V1alpha3DeviceToleration) o; - return Objects.equals(this.effect, v1alpha3DeviceToleration.effect) && - Objects.equals(this.key, v1alpha3DeviceToleration.key) && - Objects.equals(this.operator, v1alpha3DeviceToleration.operator) && - Objects.equals(this.tolerationSeconds, v1alpha3DeviceToleration.tolerationSeconds) && - Objects.equals(this.value, v1alpha3DeviceToleration.value); + V1DeviceToleration v1DeviceToleration = (V1DeviceToleration) o; + return Objects.equals(this.effect, v1DeviceToleration.effect) && + Objects.equals(this.key, v1DeviceToleration.key) && + Objects.equals(this.operator, v1DeviceToleration.operator) && + Objects.equals(this.tolerationSeconds, v1DeviceToleration.tolerationSeconds) && + Objects.equals(this.value, v1DeviceToleration.value); } @Override @@ -205,7 +205,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceToleration {\n"); + sb.append("class V1DeviceToleration {\n"); sb.append(" effect: ").append(toIndentedString(effect)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); @@ -247,20 +247,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 V1alpha3DeviceToleration + * @throws IOException if the JSON Element is invalid with respect to V1DeviceToleration */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceToleration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceToleration is not found in the empty JSON string", V1alpha3DeviceToleration.openapiRequiredFields.toString())); + if (!V1DeviceToleration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceToleration is not found in the empty JSON string", V1DeviceToleration.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceToleration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceToleration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1DeviceToleration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceToleration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -282,22 +282,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceToleration.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceToleration' and its subtypes + if (!V1DeviceToleration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1DeviceToleration' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceToleration.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1DeviceToleration.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceToleration value) throws IOException { + public void write(JsonWriter out, V1DeviceToleration value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceToleration read(JsonReader in) throws IOException { + public V1DeviceToleration read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -308,18 +308,18 @@ public V1alpha3DeviceToleration read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceToleration given an JSON string + * Create an instance of V1DeviceToleration given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceToleration - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceToleration + * @return An instance of V1DeviceToleration + * @throws IOException if the JSON string is invalid with respect to V1DeviceToleration */ - public static V1alpha3DeviceToleration fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceToleration.class); + public static V1DeviceToleration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1DeviceToleration.class); } /** - * Convert an instance of V1alpha3DeviceToleration to an JSON string + * Convert an instance of V1DeviceToleration to an JSON string * * @return JSON string */ 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 9cb392f536..486c0d0a45 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 816c77a2be..8d191fc5eb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) 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 840fccf52a..6df9507d64 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,7 +53,7 @@ * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) 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 d202c21080..3e7b83944f 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,7 +51,7 @@ * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EmptyDirVolumeSource { public static final String SERIALIZED_NAME_MEDIUM = "medium"; @SerializedName(SERIALIZED_NAME_MEDIUM) 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 0a2ec3e37f..a7a8b3512c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 029a7e9338..d1f7e69d81 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 e75954d463..b9eec01d2c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ea1ebdb85a..248f5f0d6b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointHints { public static final String SERIALIZED_NAME_FOR_NODES = "forNodes"; @SerializedName(SERIALIZED_NAME_FOR_NODES) 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 238295685c..29798a46e4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; @SerializedName(SERIALIZED_NAME_ADDRESS_TYPE) 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 02a6f95a3f..5a99125608 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 1e6518122d..32186e8c3d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 624b49d7ac..35cf9d8a42 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 63df6d8a2f..a207c393a0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 fac0d0f56d..ec40431d1e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_REF) @@ -98,11 +98,11 @@ public V1EnvFromSource prefix(@jakarta.annotation.Nullable String prefix) { } /** - * Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. + * Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='. * @return prefix */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.") + @ApiModelProperty(value = "Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='.") public String getPrefix() { return prefix; } 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 030877d680..c80b14edce 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -77,11 +77,11 @@ public V1EnvVar name(@jakarta.annotation.Nonnull String name) { } /** - * Name of the environment variable. Must be a C_IDENTIFIER. + * Name of the environment variable. May consist of any printable ASCII characters except '='. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name of the environment variable. Must be a C_IDENTIFIER.") + @ApiModelProperty(required = true, value = "Name of the environment variable. May consist of any printable ASCII characters except '='.") public String getName() { return 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 ef712f6465..1ad1380967 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 @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ConfigMapKeySelector; +import io.kubernetes.client.openapi.models.V1FileKeySelector; import io.kubernetes.client.openapi.models.V1ObjectFieldSelector; import io.kubernetes.client.openapi.models.V1ResourceFieldSelector; import io.kubernetes.client.openapi.models.V1SecretKeySelector; @@ -54,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) @@ -66,6 +67,11 @@ public class V1EnvVarSource { @jakarta.annotation.Nullable private V1ObjectFieldSelector fieldRef; + public static final String SERIALIZED_NAME_FILE_KEY_REF = "fileKeyRef"; + @SerializedName(SERIALIZED_NAME_FILE_KEY_REF) + @jakarta.annotation.Nullable + private V1FileKeySelector fileKeyRef; + public static final String SERIALIZED_NAME_RESOURCE_FIELD_REF = "resourceFieldRef"; @SerializedName(SERIALIZED_NAME_RESOURCE_FIELD_REF) @jakarta.annotation.Nullable @@ -119,6 +125,26 @@ public void setFieldRef(@jakarta.annotation.Nullable V1ObjectFieldSelector field } + public V1EnvVarSource fileKeyRef(@jakarta.annotation.Nullable V1FileKeySelector fileKeyRef) { + this.fileKeyRef = fileKeyRef; + return this; + } + + /** + * Get fileKeyRef + * @return fileKeyRef + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1FileKeySelector getFileKeyRef() { + return fileKeyRef; + } + + public void setFileKeyRef(@jakarta.annotation.Nullable V1FileKeySelector fileKeyRef) { + this.fileKeyRef = fileKeyRef; + } + + public V1EnvVarSource resourceFieldRef(@jakarta.annotation.Nullable V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = resourceFieldRef; return this; @@ -171,13 +197,14 @@ public boolean equals(Object o) { V1EnvVarSource v1EnvVarSource = (V1EnvVarSource) o; return Objects.equals(this.configMapKeyRef, v1EnvVarSource.configMapKeyRef) && Objects.equals(this.fieldRef, v1EnvVarSource.fieldRef) && + Objects.equals(this.fileKeyRef, v1EnvVarSource.fileKeyRef) && Objects.equals(this.resourceFieldRef, v1EnvVarSource.resourceFieldRef) && Objects.equals(this.secretKeyRef, v1EnvVarSource.secretKeyRef); } @Override public int hashCode() { - return Objects.hash(configMapKeyRef, fieldRef, resourceFieldRef, secretKeyRef); + return Objects.hash(configMapKeyRef, fieldRef, fileKeyRef, resourceFieldRef, secretKeyRef); } @Override @@ -186,6 +213,7 @@ public String toString() { sb.append("class V1EnvVarSource {\n"); sb.append(" configMapKeyRef: ").append(toIndentedString(configMapKeyRef)).append("\n"); sb.append(" fieldRef: ").append(toIndentedString(fieldRef)).append("\n"); + sb.append(" fileKeyRef: ").append(toIndentedString(fileKeyRef)).append("\n"); sb.append(" resourceFieldRef: ").append(toIndentedString(resourceFieldRef)).append("\n"); sb.append(" secretKeyRef: ").append(toIndentedString(secretKeyRef)).append("\n"); sb.append("}"); @@ -212,6 +240,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("configMapKeyRef"); openapiFields.add("fieldRef"); + openapiFields.add("fileKeyRef"); openapiFields.add("resourceFieldRef"); openapiFields.add("secretKeyRef"); @@ -248,6 +277,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("fieldRef") != null && !jsonObj.get("fieldRef").isJsonNull()) { V1ObjectFieldSelector.validateJsonElement(jsonObj.get("fieldRef")); } + // validate the optional field `fileKeyRef` + if (jsonObj.get("fileKeyRef") != null && !jsonObj.get("fileKeyRef").isJsonNull()) { + V1FileKeySelector.validateJsonElement(jsonObj.get("fileKeyRef")); + } // validate the optional field `resourceFieldRef` if (jsonObj.get("resourceFieldRef") != null && !jsonObj.get("resourceFieldRef").isJsonNull()) { V1ResourceFieldSelector.validateJsonElement(jsonObj.get("resourceFieldRef")); 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 3506cbaa75..22a723bc5c 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 @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ContainerPort; import io.kubernetes.client.openapi.models.V1ContainerResizePolicy; +import io.kubernetes.client.openapi.models.V1ContainerRestartRule; import io.kubernetes.client.openapi.models.V1EnvFromSource; import io.kubernetes.client.openapi.models.V1EnvVar; import io.kubernetes.client.openapi.models.V1Lifecycle; @@ -62,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) @@ -134,6 +135,11 @@ public class V1EphemeralContainer { @jakarta.annotation.Nullable private String restartPolicy; + public static final String SERIALIZED_NAME_RESTART_POLICY_RULES = "restartPolicyRules"; + @SerializedName(SERIALIZED_NAME_RESTART_POLICY_RULES) + @jakarta.annotation.Nullable + private List restartPolicyRules = new ArrayList<>(); + public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) @jakarta.annotation.Nullable @@ -290,11 +296,11 @@ public V1EphemeralContainer addEnvFromItem(V1EnvFromSource envFromItem) { } /** - * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. * @return envFrom */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") + @ApiModelProperty(value = "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") public List getEnvFrom() { return envFrom; } @@ -506,11 +512,11 @@ public V1EphemeralContainer restartPolicy(@jakarta.annotation.Nullable String re } /** - * Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. + * Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers. * @return restartPolicy */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.") + @ApiModelProperty(value = "Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.") public String getRestartPolicy() { return restartPolicy; } @@ -520,6 +526,34 @@ public void setRestartPolicy(@jakarta.annotation.Nullable String restartPolicy) } + public V1EphemeralContainer restartPolicyRules(@jakarta.annotation.Nullable List restartPolicyRules) { + this.restartPolicyRules = restartPolicyRules; + return this; + } + + public V1EphemeralContainer addRestartPolicyRulesItem(V1ContainerRestartRule restartPolicyRulesItem) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList<>(); + } + this.restartPolicyRules.add(restartPolicyRulesItem); + return this; + } + + /** + * Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers. + * @return restartPolicyRules + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers.") + public List getRestartPolicyRules() { + return restartPolicyRules; + } + + public void setRestartPolicyRules(@jakarta.annotation.Nullable List restartPolicyRules) { + this.restartPolicyRules = restartPolicyRules; + } + + public V1EphemeralContainer securityContext(@jakarta.annotation.Nullable V1SecurityContext securityContext) { this.securityContext = securityContext; return this; @@ -780,6 +814,7 @@ public boolean equals(Object o) { Objects.equals(this.resizePolicy, v1EphemeralContainer.resizePolicy) && Objects.equals(this.resources, v1EphemeralContainer.resources) && Objects.equals(this.restartPolicy, v1EphemeralContainer.restartPolicy) && + Objects.equals(this.restartPolicyRules, v1EphemeralContainer.restartPolicyRules) && Objects.equals(this.securityContext, v1EphemeralContainer.securityContext) && Objects.equals(this.startupProbe, v1EphemeralContainer.startupProbe) && Objects.equals(this.stdin, v1EphemeralContainer.stdin) && @@ -795,7 +830,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, securityContext, startupProbe, stdin, stdinOnce, targetContainerName, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); + return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, restartPolicyRules, securityContext, startupProbe, stdin, stdinOnce, targetContainerName, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); } @Override @@ -816,6 +851,7 @@ public String toString() { sb.append(" resizePolicy: ").append(toIndentedString(resizePolicy)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append(" restartPolicy: ").append(toIndentedString(restartPolicy)).append("\n"); + sb.append(" restartPolicyRules: ").append(toIndentedString(restartPolicyRules)).append("\n"); sb.append(" securityContext: ").append(toIndentedString(securityContext)).append("\n"); sb.append(" startupProbe: ").append(toIndentedString(startupProbe)).append("\n"); sb.append(" stdin: ").append(toIndentedString(stdin)).append("\n"); @@ -863,6 +899,7 @@ private String toIndentedString(Object o) { openapiFields.add("resizePolicy"); openapiFields.add("resources"); openapiFields.add("restartPolicy"); + openapiFields.add("restartPolicyRules"); openapiFields.add("securityContext"); openapiFields.add("startupProbe"); openapiFields.add("stdin"); @@ -1000,6 +1037,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("restartPolicy") != null && !jsonObj.get("restartPolicy").isJsonNull()) && !jsonObj.get("restartPolicy").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `restartPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("restartPolicy").toString())); } + if (jsonObj.get("restartPolicyRules") != null && !jsonObj.get("restartPolicyRules").isJsonNull()) { + JsonArray jsonArrayrestartPolicyRules = jsonObj.getAsJsonArray("restartPolicyRules"); + if (jsonArrayrestartPolicyRules != null) { + // ensure the json data is an array + if (!jsonObj.get("restartPolicyRules").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `restartPolicyRules` to be an array in the JSON string but got `%s`", jsonObj.get("restartPolicyRules").toString())); + } + + // validate the optional field `restartPolicyRules` (array) + for (int i = 0; i < jsonArrayrestartPolicyRules.size(); i++) { + V1ContainerRestartRule.validateJsonElement(jsonArrayrestartPolicyRules.get(i)); + }; + } + } // validate the optional field `securityContext` if (jsonObj.get("securityContext") != null && !jsonObj.get("securityContext").isJsonNull()) { V1SecurityContext.validateJsonElement(jsonObj.get("securityContext")); 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 ab67848a89..ee55c51760 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE = "volumeClaimTemplate"; @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE) 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 11001d09c5..efed44b8a3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d1c01032a1..1a8dcc0985 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java similarity index 53% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java index 59c83e07f6..1b843e126d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java @@ -18,9 +18,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; -import io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest; -import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; +import io.kubernetes.client.openapi.models.V1CapacityRequirements; +import io.kubernetes.client.openapi.models.V1DeviceSelector; +import io.kubernetes.client.openapi.models.V1DeviceToleration; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -52,11 +52,11 @@ import io.kubernetes.client.openapi.JSON; /** - * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. + * ExactDeviceRequest is a request for one or more 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3DeviceRequest { +@ApiModel(description = "ExactDeviceRequest is a request for one or more identical devices.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ExactDeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @jakarta.annotation.Nullable @@ -67,6 +67,11 @@ public class V1alpha3DeviceRequest { @jakarta.annotation.Nullable private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable + private V1CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @jakarta.annotation.Nullable @@ -74,43 +79,33 @@ public class V1alpha3DeviceRequest { public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) - @jakarta.annotation.Nullable - private String deviceClassName; - - public static final String SERIALIZED_NAME_FIRST_AVAILABLE = "firstAvailable"; - @SerializedName(SERIALIZED_NAME_FIRST_AVAILABLE) - @jakarta.annotation.Nullable - private List firstAvailable = new ArrayList<>(); - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) @jakarta.annotation.Nonnull - private String name; + private String deviceClassName; public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) @jakarta.annotation.Nullable - private List selectors = new ArrayList<>(); + private List selectors = new ArrayList<>(); public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) @jakarta.annotation.Nullable - private List tolerations = new ArrayList<>(); + private List tolerations = new ArrayList<>(); - public V1alpha3DeviceRequest() { + public V1ExactDeviceRequest() { } - public V1alpha3DeviceRequest adminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { + public V1ExactDeviceRequest adminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { this.adminAccess = adminAccess; return this; } /** - * AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This 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. + * AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. * @return adminAccess */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This 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.") + @ApiModelProperty(value = "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") public Boolean getAdminAccess() { return adminAccess; } @@ -120,17 +115,17 @@ public void setAdminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { } - public V1alpha3DeviceRequest allocationMode(@jakarta.annotation.Nullable String allocationMode) { + public V1ExactDeviceRequest allocationMode(@jakarta.annotation.Nullable String allocationMode) { this.allocationMode = allocationMode; return this; } /** - * AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. 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. + * 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. * @return allocationMode */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. 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.") + @ApiModelProperty(value = "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") public String getAllocationMode() { return allocationMode; } @@ -140,100 +135,72 @@ public void setAllocationMode(@jakarta.annotation.Nullable String allocationMode } - public V1alpha3DeviceRequest count(@jakarta.annotation.Nullable Long count) { - this.count = count; + public V1ExactDeviceRequest capacity(@jakarta.annotation.Nullable V1CapacityRequirements capacity) { + this.capacity = capacity; return this; } /** - * Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. - * @return count + * Get capacity + * @return capacity */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.") - public Long getCount() { - return count; + @ApiModelProperty(value = "") + public V1CapacityRequirements getCapacity() { + return capacity; } - public void setCount(@jakarta.annotation.Nullable Long count) { - this.count = count; + public void setCapacity(@jakarta.annotation.Nullable V1CapacityRequirements capacity) { + this.capacity = capacity; } - public V1alpha3DeviceRequest deviceClassName(@jakarta.annotation.Nullable String deviceClassName) { - this.deviceClassName = deviceClassName; - return this; - } - - /** - * DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. - * @return deviceClassName - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.") - public String getDeviceClassName() { - return deviceClassName; - } - - public void setDeviceClassName(@jakarta.annotation.Nullable String deviceClassName) { - this.deviceClassName = deviceClassName; - } - - - public V1alpha3DeviceRequest firstAvailable(@jakarta.annotation.Nullable List firstAvailable) { - this.firstAvailable = firstAvailable; - return this; - } - - public V1alpha3DeviceRequest addFirstAvailableItem(V1alpha3DeviceSubRequest firstAvailableItem) { - if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList<>(); - } - this.firstAvailable.add(firstAvailableItem); + public V1ExactDeviceRequest count(@jakarta.annotation.Nullable Long count) { + this.count = count; return this; } /** - * FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. - * @return firstAvailable + * Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. + * @return count */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.") - public List getFirstAvailable() { - return firstAvailable; + @ApiModelProperty(value = "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.") + public Long getCount() { + return count; } - public void setFirstAvailable(@jakarta.annotation.Nullable List firstAvailable) { - this.firstAvailable = firstAvailable; + public void setCount(@jakarta.annotation.Nullable Long count) { + this.count = count; } - public V1alpha3DeviceRequest name(@jakarta.annotation.Nonnull String name) { - this.name = name; + public V1ExactDeviceRequest deviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { + this.deviceClassName = deviceClassName; return this; } /** - * Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label. - * @return name + * 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. + * @return deviceClassName */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label.") - public String getName() { - return name; + @ApiModelProperty(required = true, value = "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.") + public String getDeviceClassName() { + return deviceClassName; } - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; + public void setDeviceClassName(@jakarta.annotation.Nonnull String deviceClassName) { + this.deviceClassName = deviceClassName; } - public V1alpha3DeviceRequest selectors(@jakarta.annotation.Nullable List selectors) { + public V1ExactDeviceRequest selectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; return this; } - public V1alpha3DeviceRequest addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { + public V1ExactDeviceRequest addSelectorsItem(V1DeviceSelector selectorsItem) { if (this.selectors == null) { this.selectors = new ArrayList<>(); } @@ -242,26 +209,26 @@ public V1alpha3DeviceRequest addSelectorsItem(V1alpha3DeviceSelector selectorsIt } /** - * 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. + * Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. * @return selectors */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.") - public List getSelectors() { + @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.") + public List getSelectors() { return selectors; } - public void setSelectors(@jakarta.annotation.Nullable List selectors) { + public void setSelectors(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; } - public V1alpha3DeviceRequest tolerations(@jakarta.annotation.Nullable List tolerations) { + public V1ExactDeviceRequest tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; } - public V1alpha3DeviceRequest addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { + public V1ExactDeviceRequest addTolerationsItem(V1DeviceToleration tolerationsItem) { if (this.tolerations == null) { this.tolerations = new ArrayList<>(); } @@ -270,16 +237,16 @@ public V1alpha3DeviceRequest addTolerationsItem(V1alpha3DeviceToleration tolerat } /** - * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") - public List getTolerations() { + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + public List getTolerations() { return tolerations; } - public void setTolerations(@jakarta.annotation.Nullable List tolerations) { + public void setTolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; } @@ -293,32 +260,30 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3DeviceRequest v1alpha3DeviceRequest = (V1alpha3DeviceRequest) o; - return Objects.equals(this.adminAccess, v1alpha3DeviceRequest.adminAccess) && - Objects.equals(this.allocationMode, v1alpha3DeviceRequest.allocationMode) && - Objects.equals(this.count, v1alpha3DeviceRequest.count) && - Objects.equals(this.deviceClassName, v1alpha3DeviceRequest.deviceClassName) && - Objects.equals(this.firstAvailable, v1alpha3DeviceRequest.firstAvailable) && - Objects.equals(this.name, v1alpha3DeviceRequest.name) && - Objects.equals(this.selectors, v1alpha3DeviceRequest.selectors) && - Objects.equals(this.tolerations, v1alpha3DeviceRequest.tolerations); + V1ExactDeviceRequest v1ExactDeviceRequest = (V1ExactDeviceRequest) o; + return Objects.equals(this.adminAccess, v1ExactDeviceRequest.adminAccess) && + Objects.equals(this.allocationMode, v1ExactDeviceRequest.allocationMode) && + Objects.equals(this.capacity, v1ExactDeviceRequest.capacity) && + Objects.equals(this.count, v1ExactDeviceRequest.count) && + Objects.equals(this.deviceClassName, v1ExactDeviceRequest.deviceClassName) && + Objects.equals(this.selectors, v1ExactDeviceRequest.selectors) && + Objects.equals(this.tolerations, v1ExactDeviceRequest.tolerations); } @Override public int hashCode() { - return Objects.hash(adminAccess, allocationMode, count, deviceClassName, firstAvailable, name, selectors, tolerations); + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceRequest {\n"); + sb.append("class V1ExactDeviceRequest {\n"); sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).append("\n"); 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(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); - sb.append(" firstAvailable: ").append(toIndentedString(firstAvailable)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append("}"); @@ -345,41 +310,40 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("adminAccess"); openapiFields.add("allocationMode"); + openapiFields.add("capacity"); openapiFields.add("count"); openapiFields.add("deviceClassName"); - openapiFields.add("firstAvailable"); - openapiFields.add("name"); openapiFields.add("selectors"); openapiFields.add("tolerations"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields.add("deviceClassName"); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3DeviceRequest + * @throws IOException if the JSON Element is invalid with respect to V1ExactDeviceRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3DeviceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceRequest is not found in the empty JSON string", V1alpha3DeviceRequest.openapiRequiredFields.toString())); + if (!V1ExactDeviceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ExactDeviceRequest is not found in the empty JSON string", V1ExactDeviceRequest.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3DeviceRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ExactDeviceRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ExactDeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3DeviceRequest.openapiRequiredFields) { + for (String requiredField : V1ExactDeviceRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -388,25 +352,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("allocationMode") != null && !jsonObj.get("allocationMode").isJsonNull()) && !jsonObj.get("allocationMode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } - if ((jsonObj.get("deviceClassName") != null && !jsonObj.get("deviceClassName").isJsonNull()) && !jsonObj.get("deviceClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + // validate the optional field `capacity` + if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { + V1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } - if (jsonObj.get("firstAvailable") != null && !jsonObj.get("firstAvailable").isJsonNull()) { - JsonArray jsonArrayfirstAvailable = jsonObj.getAsJsonArray("firstAvailable"); - if (jsonArrayfirstAvailable != null) { - // ensure the json data is an array - if (!jsonObj.get("firstAvailable").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `firstAvailable` to be an array in the JSON string but got `%s`", jsonObj.get("firstAvailable").toString())); - } - - // validate the optional field `firstAvailable` (array) - for (int i = 0; i < jsonArrayfirstAvailable.size(); i++) { - V1alpha3DeviceSubRequest.validateJsonElement(jsonArrayfirstAvailable.get(i)); - }; - } - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); @@ -418,7 +369,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `selectors` (array) for (int i = 0; i < jsonArrayselectors.size(); i++) { - V1alpha3DeviceSelector.validateJsonElement(jsonArrayselectors.get(i)); + V1DeviceSelector.validateJsonElement(jsonArrayselectors.get(i)); }; } } @@ -432,7 +383,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `tolerations` (array) for (int i = 0; i < jsonArraytolerations.size(); i++) { - V1alpha3DeviceToleration.validateJsonElement(jsonArraytolerations.get(i)); + V1DeviceToleration.validateJsonElement(jsonArraytolerations.get(i)); }; } } @@ -442,22 +393,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3DeviceRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3DeviceRequest' and its subtypes + if (!V1ExactDeviceRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ExactDeviceRequest' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3DeviceRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ExactDeviceRequest.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3DeviceRequest value) throws IOException { + public void write(JsonWriter out, V1ExactDeviceRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3DeviceRequest read(JsonReader in) throws IOException { + public V1ExactDeviceRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -468,18 +419,18 @@ public V1alpha3DeviceRequest read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3DeviceRequest given an JSON string + * Create an instance of V1ExactDeviceRequest given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3DeviceRequest - * @throws IOException if the JSON string is invalid with respect to V1alpha3DeviceRequest + * @return An instance of V1ExactDeviceRequest + * @throws IOException if the JSON string is invalid with respect to V1ExactDeviceRequest */ - public static V1alpha3DeviceRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3DeviceRequest.class); + public static V1ExactDeviceRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ExactDeviceRequest.class); } /** - * Convert an instance of V1alpha3DeviceRequest to an JSON string + * Convert an instance of V1ExactDeviceRequest to an JSON string * * @return JSON string */ 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 4b8f7ac4c0..3252de3818 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 3ec549189a..83f65defd3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ExemptPriorityLevelConfiguration { public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) 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 fcc35c945c..212804d8d3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ExpressionWarning { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) 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 3521a6c02d..3147de8a8d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 31032a3cab..74f982b328 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 29dd02fb84..6df6fe5543 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FieldSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) 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 fa79467c01..c055849135 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 new file mode 100644 index 0000000000..43fd03d32d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java @@ -0,0 +1,308 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1FileKeySelector { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @jakarta.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + @jakarta.annotation.Nullable + private Boolean optional; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + @jakarta.annotation.Nonnull + private String path; + + public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; + @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + @jakarta.annotation.Nonnull + private String volumeName; + + public V1FileKeySelector() { + } + + public V1FileKeySelector key(@jakarta.annotation.Nonnull String key) { + this.key = key; + return this; + } + + /** + * The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters. + * @return key + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.") + public String getKey() { + return key; + } + + public void setKey(@jakarta.annotation.Nonnull String key) { + this.key = key; + } + + + public V1FileKeySelector optional(@jakarta.annotation.Nullable Boolean optional) { + this.optional = optional; + return this; + } + + /** + * Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. If optional is set to false and the specified key does not exist, an error will be returned during Pod creation. + * @return optional + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. If optional is set to false and the specified key does not exist, an error will be returned during Pod creation.") + public Boolean getOptional() { + return optional; + } + + public void setOptional(@jakarta.annotation.Nullable Boolean optional) { + this.optional = optional; + } + + + public V1FileKeySelector path(@jakarta.annotation.Nonnull String path) { + this.path = path; + return this; + } + + /** + * The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'. + * @return path + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.") + public String getPath() { + return path; + } + + public void setPath(@jakarta.annotation.Nonnull String path) { + this.path = path; + } + + + public V1FileKeySelector volumeName(@jakarta.annotation.Nonnull String volumeName) { + this.volumeName = volumeName; + return this; + } + + /** + * The name of the volume mount containing the env file. + * @return volumeName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name of the volume mount containing the env file.") + public String getVolumeName() { + return volumeName; + } + + public void setVolumeName(@jakarta.annotation.Nonnull String volumeName) { + this.volumeName = volumeName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FileKeySelector v1FileKeySelector = (V1FileKeySelector) o; + return Objects.equals(this.key, v1FileKeySelector.key) && + Objects.equals(this.optional, v1FileKeySelector.optional) && + Objects.equals(this.path, v1FileKeySelector.path) && + Objects.equals(this.volumeName, v1FileKeySelector.volumeName); + } + + @Override + public int hashCode() { + return Objects.hash(key, optional, path, volumeName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FileKeySelector {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" volumeName: ").append(toIndentedString(volumeName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("optional"); + openapiFields.add("path"); + openapiFields.add("volumeName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("key"); + openapiRequiredFields.add("path"); + openapiRequiredFields.add("volumeName"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1FileKeySelector + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1FileKeySelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1FileKeySelector is not found in the empty JSON string", V1FileKeySelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1FileKeySelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FileKeySelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1FileKeySelector.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if (!jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if (!jsonObj.get("volumeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1FileKeySelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1FileKeySelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1FileKeySelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1FileKeySelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1FileKeySelector read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1FileKeySelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1FileKeySelector + * @throws IOException if the JSON string is invalid with respect to V1FileKeySelector + */ + public static V1FileKeySelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1FileKeySelector.class); + } + + /** + * Convert an instance of V1FileKeySelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java index ceb33cd9ef..be0dfc6eee 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 6efe803539..799f089d76 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 8746d7dda5..031c1f1578 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; @SerializedName(SERIALIZED_NAME_DATASET_NAME) 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 9e4f1e9a6c..022ce3f8fb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 be0d0c55b3..22f2376a37 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d97629a768..da4326cff7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 a06c8bbeac..b12a68e961 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5a562faecf..f9f3f43fd3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; @SerializedName(SERIALIZED_NAME_DISTINGUISHER_METHOD) 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 fb38ae41ad..06a16d076c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 e9a9ef3222..c3a539cc09 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d0ba048a88..d4fcacdfee 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a23cfea3b3..590c1821a4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 e533b546d4..7d932597ee 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,7 +50,7 @@ * GRPCAction specifies an action involving a GRPC service. */ @ApiModel(description = "GRPCAction specifies an action involving a GRPC service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GRPCAction { public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) 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 0bf7166e44..74924850b8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 784da4f239..83380d7d10 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 85b8ba1ec1..c918d25583 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) @@ -76,11 +76,11 @@ public V1GlusterfsVolumeSource endpoints(@jakarta.annotation.Nonnull String endp } /** - * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * endpoints is the endpoint name that details Glusterfs topology. * @return endpoints */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") + @ApiModelProperty(required = true, value = "endpoints is the endpoint name that details Glusterfs topology.") public String getEndpoints() { return endpoints; } 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 3b21e7664d..c976c05165 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a961ebd8a3..71e35796f7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; @SerializedName(SERIALIZED_NAME_GROUP_VERSION) 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 ab1ede2380..014b9d08cf 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) 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 e35befdd85..461b515e5a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 e3f4c57d1b..771bf1a79a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 14db726db5..54359b1e2a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 9f617f0f02..b4997ad1b2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c68420c044..9e540ae883 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7f93e02637..123e7e9914 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) 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 ea2b74b1c1..a008400fb8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE = "currentCPUUtilizationPercentage"; @SerializedName(SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE) 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 e97a0a42d7..a72bc978b9 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 58ca843b9e..20b12a560e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d9766182bb..ba82b79fb5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 cae28037a7..556d5a0295 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IPAddress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 69c0242297..7a8702071f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 440ac38b3e..3657ffdf00 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IPAddressSpec { public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; @SerializedName(SERIALIZED_NAME_PARENT_REF) 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 025cc73cf5..e03357f4ae 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2bf1e605a1..e771fbd0c3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) 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 4616ab4cd1..3abe4f8487 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) 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 36e385ca08..915bceaff8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ImageVolumeSource { public static final String SERIALIZED_NAME_PULL_POLICY = "pullPolicy"; @SerializedName(SERIALIZED_NAME_PULL_POLICY) 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 5626567019..69788f0b58 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 1ede9c878d..f2e2a57369 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 102b2c22df..6d6698e052 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2aca1e5ac7..ca6bcfaa62 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b4e64800a4..f0540aae82 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressClassParametersReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 d03893b090..0ed26c9bcb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 e386cf075a..d11abb82a8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b2fa7b5c7f..3abffc7e91 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 42de53c46d..9d6c6152fd 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ae5c4243c6..4e7f05e150 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 380b83ba68..af1ddcb85f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 e5bbfc215f..ee29f5ee44 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 cfb3cf8857..c02395831e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; @SerializedName(SERIALIZED_NAME_DEFAULT_BACKEND) 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 cc7432b551..0a175b52b8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) 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 d8605daec5..a01994c3a4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1JSONSchemaProps.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java index bb5db91a68..890ab8a1fd 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 47524f9e12..47b6dba4e2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7875caeae7..39863976fb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) 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 6a711ec376..138742b89b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 91c4dd9d43..65d22adc0b 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 @@ -54,7 +54,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -165,11 +165,11 @@ public V1JobSpec backoffLimit(@jakarta.annotation.Nullable Integer backoffLimit) } /** - * Specifies the number of retries before marking this job failed. Defaults to 6 + * Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647. * @return backoffLimit */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Specifies the number of retries before marking this job failed. Defaults to 6") + @ApiModelProperty(value = "Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647.") public Integer getBackoffLimit() { return backoffLimit; } @@ -345,11 +345,11 @@ public V1JobSpec podReplacementPolicy(@jakarta.annotation.Nullable String podRep } /** - * podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. + * 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. * @return podReplacementPolicy */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.") + @ApiModelProperty(value = "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.") public String getPodReplacementPolicy() { return podReplacementPolicy; } 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 52f9641c18..ccd51f3bd5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) 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 6c15f1eeaf..a7eba22145 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b98c93819d..6415da05a3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) 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 d7e6ade2f0..77d07e79e6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) 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 2e91637d87..fac61608f5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LabelSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) 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 e691dc0ab2..fc635b668a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ffbb19b749..e38fadc2e2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4829a13a7c..8c53f0cada 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 df2ddc351b..ac9f567e2d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) 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 8e98c78b7e..2852f20f0a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; @SerializedName(SERIALIZED_NAME_POST_START) 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 842f97098a..78f0388111 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 545b6c68d4..0a63abe928 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 1e1306da71..659a6258b8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 51bcf57ce3..78e07de9ae 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 82a6f45f42..5d07e63889 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 dfdc562d83..56fa9b1e2a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 12d4b4e866..f79fb0a984 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_BORROWING_LIMIT_PERCENT = "borrowingLimitPercent"; @SerializedName(SERIALIZED_NAME_BORROWING_LIMIT_PERCENT) 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 80a03eae6c..1298edaa57 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b45919c6fa..64f98f69bc 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 @@ -50,7 +50,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a2f259e009..b2df88c7fb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 53dd81e8ff..e6ea2b31d3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ac93fd5793..c01457b0ed 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a9bbf596da..545cd2c7bf 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 eb51be59b9..74ad2c5606 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 df2d7045a0..51cef976f4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f5a8857104..2dd66b6538 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 9c27c7e267..a345db2a02 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) 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 a1faa93ca1..99a14e48a6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1MutatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java index a231236b32..2cfae695ed 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) 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 1348b5db54..0b271b106d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d37a1cf8e0..16f769bd59 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5cbb2f2f7d..4aaad3e928 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1633de152e..a1c970cc60 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 9015083510..2f5176a045 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7e386f359b..aa3abc24c7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 13bf74e9f6..941e6b5fb6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c6525d6e15..3f9d2116ce 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 96063ad1d7..270200ebb5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1alpha3NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java similarity index 78% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceData.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java index 179945fdcd..e85c39be06 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java @@ -52,8 +52,8 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3NetworkDeviceData { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) @jakarta.annotation.Nullable @@ -69,10 +69,10 @@ public class V1alpha3NetworkDeviceData { @jakarta.annotation.Nullable private List ips = new ArrayList<>(); - public V1alpha3NetworkDeviceData() { + public V1NetworkDeviceData() { } - public V1alpha3NetworkDeviceData hardwareAddress(@jakarta.annotation.Nullable String hardwareAddress) { + public V1NetworkDeviceData hardwareAddress(@jakarta.annotation.Nullable String hardwareAddress) { this.hardwareAddress = hardwareAddress; return this; } @@ -92,7 +92,7 @@ public void setHardwareAddress(@jakarta.annotation.Nullable String hardwareAddre } - public V1alpha3NetworkDeviceData interfaceName(@jakarta.annotation.Nullable String interfaceName) { + public V1NetworkDeviceData interfaceName(@jakarta.annotation.Nullable String interfaceName) { this.interfaceName = interfaceName; return this; } @@ -112,12 +112,12 @@ public void setInterfaceName(@jakarta.annotation.Nullable String interfaceName) } - public V1alpha3NetworkDeviceData ips(@jakarta.annotation.Nullable List ips) { + public V1NetworkDeviceData ips(@jakarta.annotation.Nullable List ips) { this.ips = ips; return this; } - public V1alpha3NetworkDeviceData addIpsItem(String ipsItem) { + public V1NetworkDeviceData addIpsItem(String ipsItem) { if (this.ips == null) { this.ips = new ArrayList<>(); } @@ -126,11 +126,11 @@ public V1alpha3NetworkDeviceData addIpsItem(String ipsItem) { } /** - * IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries. + * IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. * @return ips */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries.") + @ApiModelProperty(value = "IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6.") public List getIps() { return ips; } @@ -149,10 +149,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3NetworkDeviceData v1alpha3NetworkDeviceData = (V1alpha3NetworkDeviceData) o; - return Objects.equals(this.hardwareAddress, v1alpha3NetworkDeviceData.hardwareAddress) && - Objects.equals(this.interfaceName, v1alpha3NetworkDeviceData.interfaceName) && - Objects.equals(this.ips, v1alpha3NetworkDeviceData.ips); + V1NetworkDeviceData v1NetworkDeviceData = (V1NetworkDeviceData) o; + return Objects.equals(this.hardwareAddress, v1NetworkDeviceData.hardwareAddress) && + Objects.equals(this.interfaceName, v1NetworkDeviceData.interfaceName) && + Objects.equals(this.ips, v1NetworkDeviceData.ips); } @Override @@ -163,7 +163,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3NetworkDeviceData {\n"); + sb.append("class V1NetworkDeviceData {\n"); sb.append(" hardwareAddress: ").append(toIndentedString(hardwareAddress)).append("\n"); sb.append(" interfaceName: ").append(toIndentedString(interfaceName)).append("\n"); sb.append(" ips: ").append(toIndentedString(ips)).append("\n"); @@ -201,20 +201,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 V1alpha3NetworkDeviceData + * @throws IOException if the JSON Element is invalid with respect to V1NetworkDeviceData */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3NetworkDeviceData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3NetworkDeviceData is not found in the empty JSON string", V1alpha3NetworkDeviceData.openapiRequiredFields.toString())); + if (!V1NetworkDeviceData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1NetworkDeviceData is not found in the empty JSON string", V1NetworkDeviceData.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3NetworkDeviceData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3NetworkDeviceData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1NetworkDeviceData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkDeviceData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -234,22 +234,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3NetworkDeviceData.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3NetworkDeviceData' and its subtypes + if (!V1NetworkDeviceData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NetworkDeviceData' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3NetworkDeviceData.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NetworkDeviceData.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3NetworkDeviceData value) throws IOException { + public void write(JsonWriter out, V1NetworkDeviceData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3NetworkDeviceData read(JsonReader in) throws IOException { + public V1NetworkDeviceData read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -260,18 +260,18 @@ public V1alpha3NetworkDeviceData read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3NetworkDeviceData given an JSON string + * Create an instance of V1NetworkDeviceData given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3NetworkDeviceData - * @throws IOException if the JSON string is invalid with respect to V1alpha3NetworkDeviceData + * @return An instance of V1NetworkDeviceData + * @throws IOException if the JSON string is invalid with respect to V1NetworkDeviceData */ - public static V1alpha3NetworkDeviceData fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3NetworkDeviceData.class); + public static V1NetworkDeviceData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NetworkDeviceData.class); } /** - * Convert an instance of V1alpha3NetworkDeviceData to an JSON string + * Convert an instance of V1NetworkDeviceData to an JSON string * * @return JSON string */ 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 14fb8dd9a4..fdce2698c9 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 83708f2149..6941d72ea0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 e5da37bac7..b6d9a22079 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1edd3b76ad..b880cf8719 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 a7e913e593..15fcc2653a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; @SerializedName(SERIALIZED_NAME_IP_BLOCK) 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 214c07590a..7cac9774c0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_END_PORT = "endPort"; @SerializedName(SERIALIZED_NAME_END_PORT) 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 4944be1d80..7dcf7ca17d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @SerializedName(SERIALIZED_NAME_EGRESS) @@ -69,7 +69,7 @@ public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_POD_SELECTOR = "podSelector"; @SerializedName(SERIALIZED_NAME_POD_SELECTOR) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1LabelSelector podSelector; public static final String SERIALIZED_NAME_POLICY_TYPES = "policyTypes"; @@ -136,7 +136,7 @@ public void setIngress(@jakarta.annotation.Nullable List(); - openapiRequiredFields.add("podSelector"); } /** @@ -265,13 +264,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1NetworkPolicySpec.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("egress") != null && !jsonObj.get("egress").isJsonNull()) { JsonArray jsonArrayegress = jsonObj.getAsJsonArray("egress"); @@ -301,8 +293,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } - // validate the required field `podSelector` - V1LabelSelector.validateJsonElement(jsonObj.get("podSelector")); + // validate the optional field `podSelector` + if (jsonObj.get("podSelector") != null && !jsonObj.get("podSelector").isJsonNull()) { + V1LabelSelector.validateJsonElement(jsonObj.get("podSelector")); + } // ensure the optional json data is an array if present if (jsonObj.get("policyTypes") != null && !jsonObj.get("policyTypes").isJsonNull() && !jsonObj.get("policyTypes").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `policyTypes` to be an array in the JSON string but got `%s`", jsonObj.get("policyTypes").toString())); 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 225b47650f..34ea6210d4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d27650d967..a2bab05581 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 f3fa8957f0..78485630e9 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) 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 2c25e5b474..31025133f6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; @SerializedName(SERIALIZED_NAME_LAST_HEARTBEAT_TIME) 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 f1062a8e5e..cf5e9d3125 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) 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 669973297a..5523b648eb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 5495fcd25c..8b75702c36 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; @SerializedName(SERIALIZED_NAME_KUBELET_ENDPOINT) 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 2bdd8a936b..5061acdec3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeFeatures { public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY = "supplementalGroupsPolicy"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY) 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 5e452a2ba7..7689831042 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 597ad1c759..c4a857757a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 e3ea7bc302..ecfa3da09d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeRuntimeHandlerFeatures { public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS = "recursiveReadOnlyMounts"; @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS) 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 f133a4acc7..fe204cd2e2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) 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 94909c03b2..de095196de 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c6ddf414e0..69172feaf7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) 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 2ce113f97f..efef716bfa 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 @@ -54,7 +54,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; @SerializedName(SERIALIZED_NAME_CONFIG_SOURCE) 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 6f959ea8f6..76a6828214 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 39adeac5e1..40b58a1db4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d15db6390b..2f516cd91f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) 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 49207586f3..1fe8130ae5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 39a005de2c..fd9f65ce8f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) 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 24af818505..55c5acbaaa 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) 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 fbdf36058f..06d270a6c8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 c0f3b82429..bec6018837 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 608caae2d0..1ae6c476ea 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java similarity index 76% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfiguration.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java index 5b6a5fa226..521b859b00 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java @@ -50,8 +50,8 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3OpaqueDeviceConfiguration { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @jakarta.annotation.Nonnull @@ -62,10 +62,10 @@ public class V1alpha3OpaqueDeviceConfiguration { @jakarta.annotation.Nonnull private Object parameters; - public V1alpha3OpaqueDeviceConfiguration() { + public V1OpaqueDeviceConfiguration() { } - public V1alpha3OpaqueDeviceConfiguration driver(@jakarta.annotation.Nonnull String driver) { + public V1OpaqueDeviceConfiguration driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } @@ -85,7 +85,7 @@ public void setDriver(@jakarta.annotation.Nonnull String driver) { } - public V1alpha3OpaqueDeviceConfiguration parameters(@jakarta.annotation.Nonnull Object parameters) { + public V1OpaqueDeviceConfiguration parameters(@jakarta.annotation.Nonnull Object parameters) { this.parameters = parameters; return this; } @@ -114,9 +114,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3OpaqueDeviceConfiguration v1alpha3OpaqueDeviceConfiguration = (V1alpha3OpaqueDeviceConfiguration) o; - return Objects.equals(this.driver, v1alpha3OpaqueDeviceConfiguration.driver) && - Objects.equals(this.parameters, v1alpha3OpaqueDeviceConfiguration.parameters); + V1OpaqueDeviceConfiguration v1OpaqueDeviceConfiguration = (V1OpaqueDeviceConfiguration) o; + return Objects.equals(this.driver, v1OpaqueDeviceConfiguration.driver) && + Objects.equals(this.parameters, v1OpaqueDeviceConfiguration.parameters); } @Override @@ -127,7 +127,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3OpaqueDeviceConfiguration {\n"); + sb.append("class V1OpaqueDeviceConfiguration {\n"); sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); sb.append("}"); @@ -165,25 +165,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 V1alpha3OpaqueDeviceConfiguration + * @throws IOException if the JSON Element is invalid with respect to V1OpaqueDeviceConfiguration */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3OpaqueDeviceConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3OpaqueDeviceConfiguration is not found in the empty JSON string", V1alpha3OpaqueDeviceConfiguration.openapiRequiredFields.toString())); + if (!V1OpaqueDeviceConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1OpaqueDeviceConfiguration is not found in the empty JSON string", V1OpaqueDeviceConfiguration.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3OpaqueDeviceConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3OpaqueDeviceConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1OpaqueDeviceConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1OpaqueDeviceConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3OpaqueDeviceConfiguration.openapiRequiredFields) { + for (String requiredField : V1OpaqueDeviceConfiguration.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -198,22 +198,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3OpaqueDeviceConfiguration.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3OpaqueDeviceConfiguration' and its subtypes + if (!V1OpaqueDeviceConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1OpaqueDeviceConfiguration' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3OpaqueDeviceConfiguration.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1OpaqueDeviceConfiguration.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3OpaqueDeviceConfiguration value) throws IOException { + public void write(JsonWriter out, V1OpaqueDeviceConfiguration value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3OpaqueDeviceConfiguration read(JsonReader in) throws IOException { + public V1OpaqueDeviceConfiguration read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -224,18 +224,18 @@ public V1alpha3OpaqueDeviceConfiguration read(JsonReader in) throws IOException } /** - * Create an instance of V1alpha3OpaqueDeviceConfiguration given an JSON string + * Create an instance of V1OpaqueDeviceConfiguration given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3OpaqueDeviceConfiguration - * @throws IOException if the JSON string is invalid with respect to V1alpha3OpaqueDeviceConfiguration + * @return An instance of V1OpaqueDeviceConfiguration + * @throws IOException if the JSON string is invalid with respect to V1OpaqueDeviceConfiguration */ - public static V1alpha3OpaqueDeviceConfiguration fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3OpaqueDeviceConfiguration.class); + public static V1OpaqueDeviceConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1OpaqueDeviceConfiguration.class); } /** - * Convert an instance of V1alpha3OpaqueDeviceConfiguration to an JSON string + * Convert an instance of V1OpaqueDeviceConfiguration to an JSON string * * @return JSON string */ 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 74a0b4effc..29a35f32c1 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @SerializedName(SERIALIZED_NAME_POD_FIXED) 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 4349adc1dc..ae19617817 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 7411f45ea7..13c3015020 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 cfba226d25..05ea091600 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 58f7e929d4..1a26b02c8f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ParentReference { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) 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 7bc14bd6f3..a2c068b910 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 1383cdfa95..7a21f751ef 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6b815d828a..060780d0cf 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) 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 9c2bf71693..e4e37bdff5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 dddf291274..49b8654aee 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -240,11 +240,11 @@ public V1PersistentVolumeClaimSpec volumeAttributesClassName(@jakarta.annotation } /** - * volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). + * volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ * @return volumeAttributesClassName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).") + @ApiModelProperty(value = "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/") public String getVolumeAttributesClassName() { return volumeAttributesClassName; } 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 9530e8ee76..4f87ddc170 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 @@ -57,7 +57,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -248,11 +248,11 @@ public V1PersistentVolumeClaimStatus currentVolumeAttributesClassName(@jakarta.a } /** - * currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default). + * currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim * @return currentVolumeAttributesClassName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).") + @ApiModelProperty(value = "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim") public String getCurrentVolumeAttributesClassName() { return currentVolumeAttributesClassName; } 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 a3addb496a..13971b8397 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1dae41f5d6..fd2d953be7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; @SerializedName(SERIALIZED_NAME_CLAIM_NAME) 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 7abd81615c..649572b7f9 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4c360ae063..69ec0cab4e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -829,11 +829,11 @@ public V1PersistentVolumeSpec volumeAttributesClassName(@jakarta.annotation.Null } /** - * Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). + * Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. * @return volumeAttributesClassName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).") + @ApiModelProperty(value = "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.") public String getVolumeAttributesClassName() { return volumeAttributesClassName; } 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 c431c71a52..364cf0390c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME = "lastPhaseTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME) 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 d599115aa4..9a4252ca01 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 1c97fb0cef..d613c697a0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 3628dc0b0c..c19abe7067 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) 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 965a8c4983..68b2edf4e8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) 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 065e91f3f5..90399ba11c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodAntiAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) @@ -83,11 +83,11 @@ public V1PodAntiAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem( } /** - * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. * @return preferredDuringSchedulingIgnoredDuringExecution */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } 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 new file mode 100644 index 0000000000..f66e11af7b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java @@ -0,0 +1,369 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1PodCertificateProjection { + public static final String SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH = "certificateChainPath"; + @SerializedName(SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH) + @jakarta.annotation.Nullable + private String certificateChainPath; + + public static final String SERIALIZED_NAME_CREDENTIAL_BUNDLE_PATH = "credentialBundlePath"; + @SerializedName(SERIALIZED_NAME_CREDENTIAL_BUNDLE_PATH) + @jakarta.annotation.Nullable + private String credentialBundlePath; + + public static final String SERIALIZED_NAME_KEY_PATH = "keyPath"; + @SerializedName(SERIALIZED_NAME_KEY_PATH) + @jakarta.annotation.Nullable + private String keyPath; + + public static final String SERIALIZED_NAME_KEY_TYPE = "keyType"; + @SerializedName(SERIALIZED_NAME_KEY_TYPE) + @jakarta.annotation.Nonnull + private String keyType; + + 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_SIGNER_NAME = "signerName"; + @SerializedName(SERIALIZED_NAME_SIGNER_NAME) + @jakarta.annotation.Nonnull + private String signerName; + + public V1PodCertificateProjection() { + } + + public V1PodCertificateProjection certificateChainPath(@jakarta.annotation.Nullable String certificateChainPath) { + this.certificateChainPath = certificateChainPath; + return this; + } + + /** + * Write the certificate chain at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. + * @return certificateChainPath + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Write the certificate chain at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.") + public String getCertificateChainPath() { + return certificateChainPath; + } + + public void setCertificateChainPath(@jakarta.annotation.Nullable String certificateChainPath) { + this.certificateChainPath = certificateChainPath; + } + + + public V1PodCertificateProjection credentialBundlePath(@jakarta.annotation.Nullable String credentialBundlePath) { + this.credentialBundlePath = credentialBundlePath; + return this; + } + + /** + * Write the credential bundle at this path in the projected volume. The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key. + * @return credentialBundlePath + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Write the credential bundle at this path in the projected volume. The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key.") + public String getCredentialBundlePath() { + return credentialBundlePath; + } + + public void setCredentialBundlePath(@jakarta.annotation.Nullable String credentialBundlePath) { + this.credentialBundlePath = credentialBundlePath; + } + + + public V1PodCertificateProjection keyPath(@jakarta.annotation.Nullable String keyPath) { + this.keyPath = keyPath; + return this; + } + + /** + * Write the key at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. + * @return keyPath + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Write the key at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.") + public String getKeyPath() { + return keyPath; + } + + public void setKeyPath(@jakarta.annotation.Nullable String keyPath) { + this.keyPath = keyPath; + } + + + public V1PodCertificateProjection keyType(@jakarta.annotation.Nonnull String keyType) { + this.keyType = keyType; + return this; + } + + /** + * The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\". + * @return keyType + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\".") + public String getKeyType() { + return keyType; + } + + public void setKeyType(@jakarta.annotation.Nonnull String keyType) { + this.keyType = keyType; + } + + + public V1PodCertificateProjection maxExpirationSeconds(@jakarta.annotation.Nullable Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + return this; + } + + /** + * 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. + * @return maxExpirationSeconds + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Integer getMaxExpirationSeconds() { + return maxExpirationSeconds; + } + + public void setMaxExpirationSeconds(@jakarta.annotation.Nullable Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + } + + + public V1PodCertificateProjection signerName(@jakarta.annotation.Nonnull String signerName) { + this.signerName = signerName; + return this; + } + + /** + * Kubelet's generated CSRs will be addressed to this signer. + * @return signerName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Kubelet's generated CSRs will be addressed to this signer.") + public String getSignerName() { + return signerName; + } + + public void setSignerName(@jakarta.annotation.Nonnull String signerName) { + this.signerName = signerName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodCertificateProjection v1PodCertificateProjection = (V1PodCertificateProjection) o; + return Objects.equals(this.certificateChainPath, v1PodCertificateProjection.certificateChainPath) && + Objects.equals(this.credentialBundlePath, v1PodCertificateProjection.credentialBundlePath) && + Objects.equals(this.keyPath, v1PodCertificateProjection.keyPath) && + Objects.equals(this.keyType, v1PodCertificateProjection.keyType) && + Objects.equals(this.maxExpirationSeconds, v1PodCertificateProjection.maxExpirationSeconds) && + Objects.equals(this.signerName, v1PodCertificateProjection.signerName); + } + + @Override + public int hashCode() { + return Objects.hash(certificateChainPath, credentialBundlePath, keyPath, keyType, maxExpirationSeconds, signerName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodCertificateProjection {\n"); + sb.append(" certificateChainPath: ").append(toIndentedString(certificateChainPath)).append("\n"); + sb.append(" credentialBundlePath: ").append(toIndentedString(credentialBundlePath)).append("\n"); + sb.append(" keyPath: ").append(toIndentedString(keyPath)).append("\n"); + 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("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("certificateChainPath"); + openapiFields.add("credentialBundlePath"); + openapiFields.add("keyPath"); + openapiFields.add("keyType"); + openapiFields.add("maxExpirationSeconds"); + openapiFields.add("signerName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("keyType"); + openapiRequiredFields.add("signerName"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodCertificateProjection + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1PodCertificateProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodCertificateProjection is not found in the empty JSON string", V1PodCertificateProjection.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1PodCertificateProjection.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodCertificateProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodCertificateProjection.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("certificateChainPath") != null && !jsonObj.get("certificateChainPath").isJsonNull()) && !jsonObj.get("certificateChainPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `certificateChainPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("certificateChainPath").toString())); + } + if ((jsonObj.get("credentialBundlePath") != null && !jsonObj.get("credentialBundlePath").isJsonNull()) && !jsonObj.get("credentialBundlePath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `credentialBundlePath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialBundlePath").toString())); + } + if ((jsonObj.get("keyPath") != null && !jsonObj.get("keyPath").isJsonNull()) && !jsonObj.get("keyPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `keyPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyPath").toString())); + } + if (!jsonObj.get("keyType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `keyType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyType").toString())); + } + if (!jsonObj.get("signerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("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 (!V1PodCertificateProjection.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodCertificateProjection' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodCertificateProjection.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodCertificateProjection value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodCertificateProjection read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodCertificateProjection given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodCertificateProjection + * @throws IOException if the JSON string is invalid with respect to V1PodCertificateProjection + */ + public static V1PodCertificateProjection fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodCertificateProjection.class); + } + + /** + * Convert an instance of V1PodCertificateProjection to an JSON 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 b41b816ced..383b5cf67c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) 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 11f5c912e8..a6afef104b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 04f97bb81d..daa8c9a684 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 3febe13390..c1aa913293 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 46e8739cd7..b63e1adaed 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 0bc45abce4..6a0bc6e0ec 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) 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 e0ef472e8c..60aa89186f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 new file mode 100644 index 0000000000..f19a8b1903 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java @@ -0,0 +1,266 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ContainerExtendedResourceRequest; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1PodExtendedResourceClaimStatus { + public static final String SERIALIZED_NAME_REQUEST_MAPPINGS = "requestMappings"; + @SerializedName(SERIALIZED_NAME_REQUEST_MAPPINGS) + @jakarta.annotation.Nonnull + private List requestMappings = 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 V1PodExtendedResourceClaimStatus() { + } + + public V1PodExtendedResourceClaimStatus requestMappings(@jakarta.annotation.Nonnull List requestMappings) { + this.requestMappings = requestMappings; + return this; + } + + public V1PodExtendedResourceClaimStatus addRequestMappingsItem(V1ContainerExtendedResourceRequest requestMappingsItem) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList<>(); + } + this.requestMappings.add(requestMappingsItem); + return this; + } + + /** + * RequestMappings identifies the mapping of <container, extended resource backed by DRA> to device request in the generated ResourceClaim. + * @return requestMappings + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "RequestMappings identifies the mapping of to device request in the generated ResourceClaim.") + public List getRequestMappings() { + return requestMappings; + } + + public void setRequestMappings(@jakarta.annotation.Nonnull List requestMappings) { + this.requestMappings = requestMappings; + } + + + public V1PodExtendedResourceClaimStatus resourceClaimName(@jakarta.annotation.Nonnull String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return this; + } + + /** + * ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. + * @return resourceClaimName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod.") + public String getResourceClaimName() { + return resourceClaimName; + } + + public void setResourceClaimName(@jakarta.annotation.Nonnull String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodExtendedResourceClaimStatus v1PodExtendedResourceClaimStatus = (V1PodExtendedResourceClaimStatus) o; + return Objects.equals(this.requestMappings, v1PodExtendedResourceClaimStatus.requestMappings) && + Objects.equals(this.resourceClaimName, v1PodExtendedResourceClaimStatus.resourceClaimName); + } + + @Override + public int hashCode() { + return Objects.hash(requestMappings, resourceClaimName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodExtendedResourceClaimStatus {\n"); + sb.append(" requestMappings: ").append(toIndentedString(requestMappings)).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(); + openapiFields.add("requestMappings"); + openapiFields.add("resourceClaimName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("requestMappings"); + openapiRequiredFields.add("resourceClaimName"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodExtendedResourceClaimStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1PodExtendedResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodExtendedResourceClaimStatus is not found in the empty JSON string", V1PodExtendedResourceClaimStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1PodExtendedResourceClaimStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodExtendedResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1PodExtendedResourceClaimStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the json data is an array + if (!jsonObj.get("requestMappings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `requestMappings` to be an array in the JSON string but got `%s`", jsonObj.get("requestMappings").toString())); + } + + JsonArray jsonArrayrequestMappings = jsonObj.getAsJsonArray("requestMappings"); + // validate the required field `requestMappings` (array) + for (int i = 0; i < jsonArrayrequestMappings.size(); i++) { + V1ContainerExtendedResourceRequest.validateJsonElement(jsonArrayrequestMappings.get(i)); + }; + if (!jsonObj.get("resourceClaimName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("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 (!V1PodExtendedResourceClaimStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodExtendedResourceClaimStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodExtendedResourceClaimStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodExtendedResourceClaimStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodExtendedResourceClaimStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodExtendedResourceClaimStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodExtendedResourceClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1PodExtendedResourceClaimStatus + */ + public static V1PodExtendedResourceClaimStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodExtendedResourceClaimStatus.class); + } + + /** + * Convert an instance of V1PodExtendedResourceClaimStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java index fdda1546b6..9150ff2baa 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 58229bd0df..abf4821457 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodFailurePolicyOnExitCodesRequirement { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) 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 05c8a4e52c..2340fe6f00 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 dd6e3b7195..f09112290b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 6ae3824741..649dc5b996 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ce73fbeb30..dfc98f4bc5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f22d876889..f0fdec07ae 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 4f9ba43127..b7cd340532 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; @SerializedName(SERIALIZED_NAME_CONDITION_TYPE) 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 9c8efa7c4f..09cb862aca 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. */ @ApiModel(description = "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ed9ade0e97..29268e3335 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2feb14a3d9..b2a5d028f1 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1PodSecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java index bac3ae59ef..9d2dc4aea0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodSecurityContext { public static final String SERIALIZED_NAME_APP_ARMOR_PROFILE = "appArmorProfile"; @SerializedName(SERIALIZED_NAME_APP_ARMOR_PROFILE) 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 bbfca6cd01..401c5f70d2 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 @@ -70,7 +70,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -142,6 +142,11 @@ public class V1PodSpec { @jakarta.annotation.Nullable private String hostname; + public static final String SERIALIZED_NAME_HOSTNAME_OVERRIDE = "hostnameOverride"; + @SerializedName(SERIALIZED_NAME_HOSTNAME_OVERRIDE) + @jakarta.annotation.Nullable + private String hostnameOverride; + public static final String SERIALIZED_NAME_IMAGE_PULL_SECRETS = "imagePullSecrets"; @SerializedName(SERIALIZED_NAME_IMAGE_PULL_SECRETS) @jakarta.annotation.Nullable @@ -505,11 +510,11 @@ public V1PodSpec hostNetwork(@jakarta.annotation.Nullable Boolean hostNetwork) { } /** - * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * 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. * @return hostNetwork */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.") + @ApiModelProperty(value = "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.") public Boolean getHostNetwork() { return hostNetwork; } @@ -579,6 +584,26 @@ public void setHostname(@jakarta.annotation.Nullable String hostname) { } + public V1PodSpec hostnameOverride(@jakarta.annotation.Nullable String hostnameOverride) { + this.hostnameOverride = hostnameOverride; + return this; + } + + /** + * 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. + * @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.") + public String getHostnameOverride() { + return hostnameOverride; + } + + public void setHostnameOverride(@jakarta.annotation.Nullable String hostnameOverride) { + this.hostnameOverride = hostnameOverride; + } + + public V1PodSpec imagePullSecrets(@jakarta.annotation.Nullable List imagePullSecrets) { this.imagePullSecrets = imagePullSecrets; return this; @@ -1203,6 +1228,7 @@ public boolean equals(Object o) { Objects.equals(this.hostPID, v1PodSpec.hostPID) && Objects.equals(this.hostUsers, v1PodSpec.hostUsers) && Objects.equals(this.hostname, v1PodSpec.hostname) && + Objects.equals(this.hostnameOverride, v1PodSpec.hostnameOverride) && Objects.equals(this.imagePullSecrets, v1PodSpec.imagePullSecrets) && Objects.equals(this.initContainers, v1PodSpec.initContainers) && Objects.equals(this.nodeName, v1PodSpec.nodeName) && @@ -1233,7 +1259,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, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); + 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, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); } @Override @@ -1254,6 +1280,7 @@ public String toString() { sb.append(" hostPID: ").append(toIndentedString(hostPID)).append("\n"); sb.append(" hostUsers: ").append(toIndentedString(hostUsers)).append("\n"); sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); + sb.append(" hostnameOverride: ").append(toIndentedString(hostnameOverride)).append("\n"); sb.append(" imagePullSecrets: ").append(toIndentedString(imagePullSecrets)).append("\n"); sb.append(" initContainers: ").append(toIndentedString(initContainers)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); @@ -1316,6 +1343,7 @@ private String toIndentedString(Object o) { openapiFields.add("hostPID"); openapiFields.add("hostUsers"); openapiFields.add("hostname"); + openapiFields.add("hostnameOverride"); openapiFields.add("imagePullSecrets"); openapiFields.add("initContainers"); openapiFields.add("nodeName"); @@ -1428,6 +1456,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("hostname") != null && !jsonObj.get("hostname").isJsonNull()) && !jsonObj.get("hostname").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `hostname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostname").toString())); } + if ((jsonObj.get("hostnameOverride") != null && !jsonObj.get("hostnameOverride").isJsonNull()) && !jsonObj.get("hostnameOverride").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `hostnameOverride` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostnameOverride").toString())); + } if (jsonObj.get("imagePullSecrets") != null && !jsonObj.get("imagePullSecrets").isJsonNull()) { JsonArray jsonArrayimagePullSecrets = jsonObj.getAsJsonArray("imagePullSecrets"); if (jsonArrayimagePullSecrets != 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 f21f4cef14..93b56ece7d 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 @@ -21,6 +21,7 @@ import io.kubernetes.client.openapi.models.V1ContainerStatus; import io.kubernetes.client.openapi.models.V1HostIP; import io.kubernetes.client.openapi.models.V1PodCondition; +import io.kubernetes.client.openapi.models.V1PodExtendedResourceClaimStatus; import io.kubernetes.client.openapi.models.V1PodIP; import io.kubernetes.client.openapi.models.V1PodResourceClaimStatus; import io.swagger.annotations.ApiModel; @@ -58,7 +59,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -75,6 +76,11 @@ public class V1PodStatus { @jakarta.annotation.Nullable private List ephemeralContainerStatuses = new ArrayList<>(); + public static final String SERIALIZED_NAME_EXTENDED_RESOURCE_CLAIM_STATUS = "extendedResourceClaimStatus"; + @SerializedName(SERIALIZED_NAME_EXTENDED_RESOURCE_CLAIM_STATUS) + @jakarta.annotation.Nullable + private V1PodExtendedResourceClaimStatus extendedResourceClaimStatus; + public static final String SERIALIZED_NAME_HOST_I_P = "hostIP"; @SerializedName(SERIALIZED_NAME_HOST_I_P) @jakarta.annotation.Nullable @@ -232,6 +238,26 @@ public void setEphemeralContainerStatuses(@jakarta.annotation.Nullable List> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceClaimConsumerReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceClaimConsumerReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourceClaimConsumerReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimConsumerReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3ResourceClaimConsumerReference.openapiRequiredFields) { + for (String requiredField : V1ResourceClaimConsumerReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -264,22 +264,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceClaimConsumerReference.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceClaimConsumerReference' and its subtypes + if (!V1ResourceClaimConsumerReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceClaimConsumerReference' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceClaimConsumerReference.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceClaimConsumerReference.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceClaimConsumerReference value) throws IOException { + public void write(JsonWriter out, V1ResourceClaimConsumerReference value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceClaimConsumerReference read(JsonReader in) throws IOException { + public V1ResourceClaimConsumerReference read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -290,18 +290,18 @@ public V1alpha3ResourceClaimConsumerReference read(JsonReader in) throws IOExcep } /** - * Create an instance of V1alpha3ResourceClaimConsumerReference given an JSON string + * Create an instance of V1ResourceClaimConsumerReference given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceClaimConsumerReference - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceClaimConsumerReference + * @return An instance of V1ResourceClaimConsumerReference + * @throws IOException if the JSON string is invalid with respect to V1ResourceClaimConsumerReference */ - public static V1alpha3ResourceClaimConsumerReference fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceClaimConsumerReference.class); + public static V1ResourceClaimConsumerReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceClaimConsumerReference.class); } /** - * Convert an instance of V1alpha3ResourceClaimConsumerReference to an JSON string + * Convert an instance of V1ResourceClaimConsumerReference to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java similarity index 77% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java index 2f0cc50bb9..74a76d28a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.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.ResourceV1ResourceClaim; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha3ResourceClaim; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,8 +54,8 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourceClaimList 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 V1alpha3ResourceClaimList implements io.kubernetes.client.common.Ku 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 V1alpha3ResourceClaimList implements io.kubernetes.client.common.Ku @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1alpha3ResourceClaimList() { + public V1ResourceClaimList() { } - public V1alpha3ResourceClaimList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1ResourceClaimList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha3ResourceClaimList items(@jakarta.annotation.Nonnull List items) { + public V1ResourceClaimList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1alpha3ResourceClaimList addItemsItem(V1alpha3ResourceClaim itemsItem) { + public V1ResourceClaimList addItemsItem(ResourceV1ResourceClaim itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -118,16 +118,16 @@ public V1alpha3ResourceClaimList addItemsItem(V1alpha3ResourceClaim itemsItem) { */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of resource claims.") - 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 V1alpha3ResourceClaimList kind(@jakarta.annotation.Nullable String kind) { + public V1ResourceClaimList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha3ResourceClaimList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1ResourceClaimList 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; } - V1alpha3ResourceClaimList v1alpha3ResourceClaimList = (V1alpha3ResourceClaimList) o; - return Objects.equals(this.apiVersion, v1alpha3ResourceClaimList.apiVersion) && - Objects.equals(this.items, v1alpha3ResourceClaimList.items) && - Objects.equals(this.kind, v1alpha3ResourceClaimList.kind) && - Objects.equals(this.metadata, v1alpha3ResourceClaimList.metadata); + V1ResourceClaimList v1ResourceClaimList = (V1ResourceClaimList) o; + return Objects.equals(this.apiVersion, v1ResourceClaimList.apiVersion) && + Objects.equals(this.items, v1ResourceClaimList.items) && + Objects.equals(this.kind, v1ResourceClaimList.kind) && + Objects.equals(this.metadata, v1ResourceClaimList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceClaimList {\n"); + sb.append("class V1ResourceClaimList {\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"); @@ -232,25 +232,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 V1alpha3ResourceClaimList + * @throws IOException if the JSON Element is invalid with respect to V1ResourceClaimList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceClaimList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceClaimList is not found in the empty JSON string", V1alpha3ResourceClaimList.openapiRequiredFields.toString())); + if (!V1ResourceClaimList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimList is not found in the empty JSON string", V1ResourceClaimList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceClaimList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceClaimList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourceClaimList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3ResourceClaimList.openapiRequiredFields) { + for (String requiredField : V1ResourceClaimList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -267,7 +267,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++) { - V1alpha3ResourceClaim.validateJsonElement(jsonArrayitems.get(i)); + ResourceV1ResourceClaim.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -282,22 +282,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceClaimList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceClaimList' and its subtypes + if (!V1ResourceClaimList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceClaimList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceClaimList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceClaimList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceClaimList value) throws IOException { + public void write(JsonWriter out, V1ResourceClaimList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceClaimList read(JsonReader in) throws IOException { + public V1ResourceClaimList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -308,18 +308,18 @@ public V1alpha3ResourceClaimList read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3ResourceClaimList given an JSON string + * Create an instance of V1ResourceClaimList given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceClaimList - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceClaimList + * @return An instance of V1ResourceClaimList + * @throws IOException if the JSON string is invalid with respect to V1ResourceClaimList */ - public static V1alpha3ResourceClaimList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceClaimList.class); + public static V1ResourceClaimList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceClaimList.class); } /** - * Convert an instance of V1alpha3ResourceClaimList to an JSON string + * Convert an instance of V1ResourceClaimList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java similarity index 70% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java index 97bc0fc519..bd9cda5a7d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.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.V1alpha3DeviceClaim; +import io.kubernetes.client.openapi.models.V1DeviceClaim; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,17 +51,17 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceClaimSpec { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) @jakarta.annotation.Nullable - private V1alpha3DeviceClaim devices; + private V1DeviceClaim devices; - public V1alpha3ResourceClaimSpec() { + public V1ResourceClaimSpec() { } - public V1alpha3ResourceClaimSpec devices(@jakarta.annotation.Nullable V1alpha3DeviceClaim devices) { + public V1ResourceClaimSpec devices(@jakarta.annotation.Nullable V1DeviceClaim devices) { this.devices = devices; return this; } @@ -72,11 +72,11 @@ public V1alpha3ResourceClaimSpec devices(@jakarta.annotation.Nullable V1alpha3De */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3DeviceClaim getDevices() { + public V1DeviceClaim getDevices() { return devices; } - public void setDevices(@jakarta.annotation.Nullable V1alpha3DeviceClaim devices) { + public void setDevices(@jakarta.annotation.Nullable V1DeviceClaim devices) { this.devices = devices; } @@ -90,8 +90,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3ResourceClaimSpec v1alpha3ResourceClaimSpec = (V1alpha3ResourceClaimSpec) o; - return Objects.equals(this.devices, v1alpha3ResourceClaimSpec.devices); + V1ResourceClaimSpec v1ResourceClaimSpec = (V1ResourceClaimSpec) o; + return Objects.equals(this.devices, v1ResourceClaimSpec.devices); } @Override @@ -102,7 +102,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceClaimSpec {\n"); + sb.append("class V1ResourceClaimSpec {\n"); sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); sb.append("}"); return sb.toString(); @@ -136,26 +136,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 V1alpha3ResourceClaimSpec + * @throws IOException if the JSON Element is invalid with respect to V1ResourceClaimSpec */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceClaimSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceClaimSpec is not found in the empty JSON string", V1alpha3ResourceClaimSpec.openapiRequiredFields.toString())); + if (!V1ResourceClaimSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimSpec is not found in the empty JSON string", V1ResourceClaimSpec.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceClaimSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceClaimSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourceClaimSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `devices` if (jsonObj.get("devices") != null && !jsonObj.get("devices").isJsonNull()) { - V1alpha3DeviceClaim.validateJsonElement(jsonObj.get("devices")); + V1DeviceClaim.validateJsonElement(jsonObj.get("devices")); } } @@ -163,22 +163,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceClaimSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceClaimSpec' and its subtypes + if (!V1ResourceClaimSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceClaimSpec' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceClaimSpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceClaimSpec.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceClaimSpec value) throws IOException { + public void write(JsonWriter out, V1ResourceClaimSpec value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceClaimSpec read(JsonReader in) throws IOException { + public V1ResourceClaimSpec read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -189,18 +189,18 @@ public V1alpha3ResourceClaimSpec read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3ResourceClaimSpec given an JSON string + * Create an instance of V1ResourceClaimSpec given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceClaimSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceClaimSpec + * @return An instance of V1ResourceClaimSpec + * @throws IOException if the JSON string is invalid with respect to V1ResourceClaimSpec */ - public static V1alpha3ResourceClaimSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceClaimSpec.class); + public static V1ResourceClaimSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceClaimSpec.class); } /** - * Convert an instance of V1alpha3ResourceClaimSpec to an JSON string + * Convert an instance of V1ResourceClaimSpec to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java similarity index 73% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatus.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java index d7d8467dcd..1ea56f27ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java @@ -18,9 +18,9 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha3AllocatedDeviceStatus; -import io.kubernetes.client.openapi.models.V1alpha3AllocationResult; -import io.kubernetes.client.openapi.models.V1alpha3ResourceClaimConsumerReference; +import io.kubernetes.client.openapi.models.V1AllocatedDeviceStatus; +import io.kubernetes.client.openapi.models.V1AllocationResult; +import io.kubernetes.client.openapi.models.V1ResourceClaimConsumerReference; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -55,27 +55,27 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceClaimStatus { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) @jakarta.annotation.Nullable - private V1alpha3AllocationResult allocation; + private V1AllocationResult allocation; public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) @jakarta.annotation.Nullable - private List devices = new ArrayList<>(); + private List devices = new ArrayList<>(); public static final String SERIALIZED_NAME_RESERVED_FOR = "reservedFor"; @SerializedName(SERIALIZED_NAME_RESERVED_FOR) @jakarta.annotation.Nullable - private List reservedFor = new ArrayList<>(); + private List reservedFor = new ArrayList<>(); - public V1alpha3ResourceClaimStatus() { + public V1ResourceClaimStatus() { } - public V1alpha3ResourceClaimStatus allocation(@jakarta.annotation.Nullable V1alpha3AllocationResult allocation) { + public V1ResourceClaimStatus allocation(@jakarta.annotation.Nullable V1AllocationResult allocation) { this.allocation = allocation; return this; } @@ -86,21 +86,21 @@ public V1alpha3ResourceClaimStatus allocation(@jakarta.annotation.Nullable V1alp */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3AllocationResult getAllocation() { + public V1AllocationResult getAllocation() { return allocation; } - public void setAllocation(@jakarta.annotation.Nullable V1alpha3AllocationResult allocation) { + public void setAllocation(@jakarta.annotation.Nullable V1AllocationResult allocation) { this.allocation = allocation; } - public V1alpha3ResourceClaimStatus devices(@jakarta.annotation.Nullable List devices) { + public V1ResourceClaimStatus devices(@jakarta.annotation.Nullable List devices) { this.devices = devices; return this; } - public V1alpha3ResourceClaimStatus addDevicesItem(V1alpha3AllocatedDeviceStatus devicesItem) { + public V1ResourceClaimStatus addDevicesItem(V1AllocatedDeviceStatus devicesItem) { if (this.devices == null) { this.devices = new ArrayList<>(); } @@ -114,21 +114,21 @@ public V1alpha3ResourceClaimStatus addDevicesItem(V1alpha3AllocatedDeviceStatus */ @jakarta.annotation.Nullable @ApiModelProperty(value = "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.") - public List getDevices() { + public List getDevices() { return devices; } - public void setDevices(@jakarta.annotation.Nullable List devices) { + public void setDevices(@jakarta.annotation.Nullable List devices) { this.devices = devices; } - public V1alpha3ResourceClaimStatus reservedFor(@jakarta.annotation.Nullable List reservedFor) { + public V1ResourceClaimStatus reservedFor(@jakarta.annotation.Nullable List reservedFor) { this.reservedFor = reservedFor; return this; } - public V1alpha3ResourceClaimStatus addReservedForItem(V1alpha3ResourceClaimConsumerReference reservedForItem) { + public V1ResourceClaimStatus addReservedForItem(V1ResourceClaimConsumerReference reservedForItem) { if (this.reservedFor == null) { this.reservedFor = new ArrayList<>(); } @@ -142,11 +142,11 @@ public V1alpha3ResourceClaimStatus addReservedForItem(V1alpha3ResourceClaimConsu */ @jakarta.annotation.Nullable @ApiModelProperty(value = "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 256 such reservations. This may get increased in the future, but not reduced.") - public List getReservedFor() { + public List getReservedFor() { return reservedFor; } - public void setReservedFor(@jakarta.annotation.Nullable List reservedFor) { + public void setReservedFor(@jakarta.annotation.Nullable List reservedFor) { this.reservedFor = reservedFor; } @@ -160,10 +160,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3ResourceClaimStatus v1alpha3ResourceClaimStatus = (V1alpha3ResourceClaimStatus) o; - return Objects.equals(this.allocation, v1alpha3ResourceClaimStatus.allocation) && - Objects.equals(this.devices, v1alpha3ResourceClaimStatus.devices) && - Objects.equals(this.reservedFor, v1alpha3ResourceClaimStatus.reservedFor); + V1ResourceClaimStatus v1ResourceClaimStatus = (V1ResourceClaimStatus) o; + return Objects.equals(this.allocation, v1ResourceClaimStatus.allocation) && + Objects.equals(this.devices, v1ResourceClaimStatus.devices) && + Objects.equals(this.reservedFor, v1ResourceClaimStatus.reservedFor); } @Override @@ -174,7 +174,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceClaimStatus {\n"); + sb.append("class V1ResourceClaimStatus {\n"); sb.append(" allocation: ").append(toIndentedString(allocation)).append("\n"); sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); sb.append(" reservedFor: ").append(toIndentedString(reservedFor)).append("\n"); @@ -212,26 +212,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 V1alpha3ResourceClaimStatus + * @throws IOException if the JSON Element is invalid with respect to V1ResourceClaimStatus */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceClaimStatus is not found in the empty JSON string", V1alpha3ResourceClaimStatus.openapiRequiredFields.toString())); + if (!V1ResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimStatus is not found in the empty JSON string", V1ResourceClaimStatus.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceClaimStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourceClaimStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `allocation` if (jsonObj.get("allocation") != null && !jsonObj.get("allocation").isJsonNull()) { - V1alpha3AllocationResult.validateJsonElement(jsonObj.get("allocation")); + V1AllocationResult.validateJsonElement(jsonObj.get("allocation")); } if (jsonObj.get("devices") != null && !jsonObj.get("devices").isJsonNull()) { JsonArray jsonArraydevices = jsonObj.getAsJsonArray("devices"); @@ -243,7 +243,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `devices` (array) for (int i = 0; i < jsonArraydevices.size(); i++) { - V1alpha3AllocatedDeviceStatus.validateJsonElement(jsonArraydevices.get(i)); + V1AllocatedDeviceStatus.validateJsonElement(jsonArraydevices.get(i)); }; } } @@ -257,7 +257,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `reservedFor` (array) for (int i = 0; i < jsonArrayreservedFor.size(); i++) { - V1alpha3ResourceClaimConsumerReference.validateJsonElement(jsonArrayreservedFor.get(i)); + V1ResourceClaimConsumerReference.validateJsonElement(jsonArrayreservedFor.get(i)); }; } } @@ -267,22 +267,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceClaimStatus.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceClaimStatus' and its subtypes + if (!V1ResourceClaimStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceClaimStatus' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceClaimStatus.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceClaimStatus.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceClaimStatus value) throws IOException { + public void write(JsonWriter out, V1ResourceClaimStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceClaimStatus read(JsonReader in) throws IOException { + public V1ResourceClaimStatus read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -293,18 +293,18 @@ public V1alpha3ResourceClaimStatus read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3ResourceClaimStatus given an JSON string + * Create an instance of V1ResourceClaimStatus given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceClaimStatus - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceClaimStatus + * @return An instance of V1ResourceClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1ResourceClaimStatus */ - public static V1alpha3ResourceClaimStatus fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceClaimStatus.class); + public static V1ResourceClaimStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceClaimStatus.class); } /** - * Convert an instance of V1alpha3ResourceClaimStatus to an JSON string + * Convert an instance of V1ResourceClaimStatus to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java similarity index 75% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplate.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java index a452664c27..411cca7f37 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.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.V1alpha3ResourceClaimTemplateSpec; +import io.kubernetes.client.openapi.models.V1ResourceClaimTemplateSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -52,8 +52,8 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourceClaimTemplate 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 V1alpha3ResourceClaimTemplate implements io.kubernetes.client.commo public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1alpha3ResourceClaimTemplateSpec spec; + private V1ResourceClaimTemplateSpec spec; - public V1alpha3ResourceClaimTemplate() { + public V1ResourceClaimTemplate() { } - public V1alpha3ResourceClaimTemplate apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1ResourceClaimTemplate apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -97,7 +97,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha3ResourceClaimTemplate kind(@jakarta.annotation.Nullable String kind) { + public V1ResourceClaimTemplate kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -117,7 +117,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha3ResourceClaimTemplate metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1ResourceClaimTemplate metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha3ResourceClaimTemplate spec(@jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplateSpec spec) { + public V1ResourceClaimTemplate spec(@jakarta.annotation.Nonnull V1ResourceClaimTemplateSpec spec) { this.spec = spec; return this; } @@ -148,11 +148,11 @@ public V1alpha3ResourceClaimTemplate spec(@jakarta.annotation.Nonnull V1alpha3Re */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha3ResourceClaimTemplateSpec getSpec() { + public V1ResourceClaimTemplateSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1alpha3ResourceClaimTemplateSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1ResourceClaimTemplateSpec spec) { this.spec = spec; } @@ -166,11 +166,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3ResourceClaimTemplate v1alpha3ResourceClaimTemplate = (V1alpha3ResourceClaimTemplate) o; - return Objects.equals(this.apiVersion, v1alpha3ResourceClaimTemplate.apiVersion) && - Objects.equals(this.kind, v1alpha3ResourceClaimTemplate.kind) && - Objects.equals(this.metadata, v1alpha3ResourceClaimTemplate.metadata) && - Objects.equals(this.spec, v1alpha3ResourceClaimTemplate.spec); + V1ResourceClaimTemplate v1ResourceClaimTemplate = (V1ResourceClaimTemplate) o; + return Objects.equals(this.apiVersion, v1ResourceClaimTemplate.apiVersion) && + Objects.equals(this.kind, v1ResourceClaimTemplate.kind) && + Objects.equals(this.metadata, v1ResourceClaimTemplate.metadata) && + Objects.equals(this.spec, v1ResourceClaimTemplate.spec); } @Override @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceClaimTemplate {\n"); + sb.append("class V1ResourceClaimTemplate {\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"); @@ -222,25 +222,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 V1alpha3ResourceClaimTemplate + * @throws IOException if the JSON Element is invalid with respect to V1ResourceClaimTemplate */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceClaimTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceClaimTemplate is not found in the empty JSON string", V1alpha3ResourceClaimTemplate.openapiRequiredFields.toString())); + if (!V1ResourceClaimTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimTemplate is not found in the empty JSON string", V1ResourceClaimTemplate.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceClaimTemplate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourceClaimTemplate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("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 : V1alpha3ResourceClaimTemplate.openapiRequiredFields) { + for (String requiredField : V1ResourceClaimTemplate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -257,29 +257,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1alpha3ResourceClaimTemplateSpec.validateJsonElement(jsonObj.get("spec")); + V1ResourceClaimTemplateSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceClaimTemplate.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceClaimTemplate' and its subtypes + if (!V1ResourceClaimTemplate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceClaimTemplate' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceClaimTemplate.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceClaimTemplate.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceClaimTemplate value) throws IOException { + public void write(JsonWriter out, V1ResourceClaimTemplate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceClaimTemplate read(JsonReader in) throws IOException { + public V1ResourceClaimTemplate read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -290,18 +290,18 @@ public V1alpha3ResourceClaimTemplate read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3ResourceClaimTemplate given an JSON string + * Create an instance of V1ResourceClaimTemplate given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceClaimTemplate - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceClaimTemplate + * @return An instance of V1ResourceClaimTemplate + * @throws IOException if the JSON string is invalid with respect to V1ResourceClaimTemplate */ - public static V1alpha3ResourceClaimTemplate fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceClaimTemplate.class); + public static V1ResourceClaimTemplate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceClaimTemplate.class); } /** - * Convert an instance of V1alpha3ResourceClaimTemplate to an JSON string + * Convert an instance of V1ResourceClaimTemplate to an JSON string * * @return JSON string */ 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 new file mode 100644 index 0000000000..940b116c4a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java @@ -0,0 +1,329 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1ResourceClaimTemplate; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourceClaimTemplateList 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 V1ResourceClaimTemplateList() { + } + + public V1ResourceClaimTemplateList 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 V1ResourceClaimTemplateList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1ResourceClaimTemplateList addItemsItem(V1ResourceClaimTemplate itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of resource claim templates. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of resource claim templates.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1ResourceClaimTemplateList 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 V1ResourceClaimTemplateList 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; + } + V1ResourceClaimTemplateList v1ResourceClaimTemplateList = (V1ResourceClaimTemplateList) o; + return Objects.equals(this.apiVersion, v1ResourceClaimTemplateList.apiVersion) && + Objects.equals(this.items, v1ResourceClaimTemplateList.items) && + Objects.equals(this.kind, v1ResourceClaimTemplateList.kind) && + Objects.equals(this.metadata, v1ResourceClaimTemplateList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ResourceClaimTemplateList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ResourceClaimTemplateList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ResourceClaimTemplateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimTemplateList is not found in the empty JSON string", V1ResourceClaimTemplateList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ResourceClaimTemplateList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimTemplateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ResourceClaimTemplateList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1ResourceClaimTemplate.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ResourceClaimTemplateList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceClaimTemplateList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceClaimTemplateList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ResourceClaimTemplateList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ResourceClaimTemplateList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ResourceClaimTemplateList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ResourceClaimTemplateList + * @throws IOException if the JSON string is invalid with respect to V1ResourceClaimTemplateList + */ + public static V1ResourceClaimTemplateList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceClaimTemplateList.class); + } + + /** + * Convert an instance of V1ResourceClaimTemplateList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java similarity index 70% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java index 9cc9ef76de..ab63d56a1c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.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.V1alpha3ResourceClaimSpec; +import io.kubernetes.client.openapi.models.V1ResourceClaimSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -52,8 +52,8 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceClaimTemplateSpec { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @jakarta.annotation.Nullable @@ -62,12 +62,12 @@ public class V1alpha3ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1alpha3ResourceClaimSpec spec; + private V1ResourceClaimSpec spec; - public V1alpha3ResourceClaimTemplateSpec() { + public V1ResourceClaimTemplateSpec() { } - public V1alpha3ResourceClaimTemplateSpec metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1ResourceClaimTemplateSpec metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -87,7 +87,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha3ResourceClaimTemplateSpec spec(@jakarta.annotation.Nonnull V1alpha3ResourceClaimSpec spec) { + public V1ResourceClaimTemplateSpec spec(@jakarta.annotation.Nonnull V1ResourceClaimSpec spec) { this.spec = spec; return this; } @@ -98,11 +98,11 @@ public V1alpha3ResourceClaimTemplateSpec spec(@jakarta.annotation.Nonnull V1alph */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha3ResourceClaimSpec getSpec() { + public V1ResourceClaimSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1alpha3ResourceClaimSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1ResourceClaimSpec spec) { this.spec = spec; } @@ -116,9 +116,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3ResourceClaimTemplateSpec v1alpha3ResourceClaimTemplateSpec = (V1alpha3ResourceClaimTemplateSpec) o; - return Objects.equals(this.metadata, v1alpha3ResourceClaimTemplateSpec.metadata) && - Objects.equals(this.spec, v1alpha3ResourceClaimTemplateSpec.spec); + V1ResourceClaimTemplateSpec v1ResourceClaimTemplateSpec = (V1ResourceClaimTemplateSpec) o; + return Objects.equals(this.metadata, v1ResourceClaimTemplateSpec.metadata) && + Objects.equals(this.spec, v1ResourceClaimTemplateSpec.spec); } @Override @@ -129,7 +129,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceClaimTemplateSpec {\n"); + sb.append("class V1ResourceClaimTemplateSpec {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); sb.append("}"); @@ -166,25 +166,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 V1alpha3ResourceClaimTemplateSpec + * @throws IOException if the JSON Element is invalid with respect to V1ResourceClaimTemplateSpec */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceClaimTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceClaimTemplateSpec is not found in the empty JSON string", V1alpha3ResourceClaimTemplateSpec.openapiRequiredFields.toString())); + if (!V1ResourceClaimTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimTemplateSpec is not found in the empty JSON string", V1ResourceClaimTemplateSpec.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceClaimTemplateSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourceClaimTemplateSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("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 : V1alpha3ResourceClaimTemplateSpec.openapiRequiredFields) { + for (String requiredField : V1ResourceClaimTemplateSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -195,29 +195,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1alpha3ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); + V1ResourceClaimSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceClaimTemplateSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceClaimTemplateSpec' and its subtypes + if (!V1ResourceClaimTemplateSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceClaimTemplateSpec' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceClaimTemplateSpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceClaimTemplateSpec.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceClaimTemplateSpec value) throws IOException { + public void write(JsonWriter out, V1ResourceClaimTemplateSpec value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceClaimTemplateSpec read(JsonReader in) throws IOException { + public V1ResourceClaimTemplateSpec read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -228,18 +228,18 @@ public V1alpha3ResourceClaimTemplateSpec read(JsonReader in) throws IOException } /** - * Create an instance of V1alpha3ResourceClaimTemplateSpec given an JSON string + * Create an instance of V1ResourceClaimTemplateSpec given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceClaimTemplateSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceClaimTemplateSpec + * @return An instance of V1ResourceClaimTemplateSpec + * @throws IOException if the JSON string is invalid with respect to V1ResourceClaimTemplateSpec */ - public static V1alpha3ResourceClaimTemplateSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceClaimTemplateSpec.class); + public static V1ResourceClaimTemplateSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceClaimTemplateSpec.class); } /** - * Convert an instance of V1alpha3ResourceClaimTemplateSpec to an JSON string + * Convert an instance of V1ResourceClaimTemplateSpec to an JSON string * * @return JSON string */ 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 bc4a59621b..96d8585c72 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) 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 084e544246..659900d5d8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1152fc44e6..9896f12bdc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java similarity index 81% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePool.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java index 9fcff89725..78cd9e7dd4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java @@ -50,8 +50,8 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourcePool { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) @jakarta.annotation.Nonnull @@ -67,10 +67,10 @@ public class V1alpha3ResourcePool { @jakarta.annotation.Nonnull private Long resourceSliceCount; - public V1alpha3ResourcePool() { + public V1ResourcePool() { } - public V1alpha3ResourcePool generation(@jakarta.annotation.Nonnull Long generation) { + public V1ResourcePool generation(@jakarta.annotation.Nonnull Long generation) { this.generation = generation; return this; } @@ -90,7 +90,7 @@ public void setGeneration(@jakarta.annotation.Nonnull Long generation) { } - public V1alpha3ResourcePool name(@jakarta.annotation.Nonnull String name) { + public V1ResourcePool name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -110,7 +110,7 @@ public void setName(@jakarta.annotation.Nonnull String name) { } - public V1alpha3ResourcePool resourceSliceCount(@jakarta.annotation.Nonnull Long resourceSliceCount) { + public V1ResourcePool resourceSliceCount(@jakarta.annotation.Nonnull Long resourceSliceCount) { this.resourceSliceCount = resourceSliceCount; return this; } @@ -139,10 +139,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3ResourcePool v1alpha3ResourcePool = (V1alpha3ResourcePool) o; - return Objects.equals(this.generation, v1alpha3ResourcePool.generation) && - Objects.equals(this.name, v1alpha3ResourcePool.name) && - Objects.equals(this.resourceSliceCount, v1alpha3ResourcePool.resourceSliceCount); + V1ResourcePool v1ResourcePool = (V1ResourcePool) o; + return Objects.equals(this.generation, v1ResourcePool.generation) && + Objects.equals(this.name, v1ResourcePool.name) && + Objects.equals(this.resourceSliceCount, v1ResourcePool.resourceSliceCount); } @Override @@ -153,7 +153,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourcePool {\n"); + sb.append("class V1ResourcePool {\n"); sb.append(" generation: ").append(toIndentedString(generation)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" resourceSliceCount: ").append(toIndentedString(resourceSliceCount)).append("\n"); @@ -194,25 +194,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 V1alpha3ResourcePool + * @throws IOException if the JSON Element is invalid with respect to V1ResourcePool */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourcePool.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourcePool is not found in the empty JSON string", V1alpha3ResourcePool.openapiRequiredFields.toString())); + if (!V1ResourcePool.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourcePool is not found in the empty JSON string", V1ResourcePool.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourcePool.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourcePool` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourcePool.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourcePool` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3ResourcePool.openapiRequiredFields) { + for (String requiredField : V1ResourcePool.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -227,22 +227,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourcePool.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourcePool' and its subtypes + if (!V1ResourcePool.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourcePool' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourcePool.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourcePool.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourcePool value) throws IOException { + public void write(JsonWriter out, V1ResourcePool value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourcePool read(JsonReader in) throws IOException { + public V1ResourcePool read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -253,18 +253,18 @@ public V1alpha3ResourcePool read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3ResourcePool given an JSON string + * Create an instance of V1ResourcePool given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourcePool - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourcePool + * @return An instance of V1ResourcePool + * @throws IOException if the JSON string is invalid with respect to V1ResourcePool */ - public static V1alpha3ResourcePool fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourcePool.class); + public static V1ResourcePool fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourcePool.class); } /** - * Convert an instance of V1alpha3ResourcePool to an JSON string + * Convert an instance of V1ResourcePool to an JSON string * * @return JSON string */ 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 f5002c80b4..76cb6897ca 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2d04c36e88..70773ca3ba 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 aa1d1584af..60f63b7062 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b967fc024e..d92a76bd04 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1cf3efba53..ec5494290b 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 @@ -19,7 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.openapi.models.V1ResourceClaim; +import io.kubernetes.client.openapi.models.CoreV1ResourceClaim; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -56,12 +56,12 @@ * ResourceRequirements describes the compute resource requirements. */ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_CLAIMS = "claims"; @SerializedName(SERIALIZED_NAME_CLAIMS) @jakarta.annotation.Nullable - private List claims = new ArrayList<>(); + private List claims = new ArrayList<>(); public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) @@ -76,12 +76,12 @@ public class V1ResourceRequirements { public V1ResourceRequirements() { } - public V1ResourceRequirements claims(@jakarta.annotation.Nullable List claims) { + public V1ResourceRequirements claims(@jakarta.annotation.Nullable List claims) { this.claims = claims; return this; } - public V1ResourceRequirements addClaimsItem(V1ResourceClaim claimsItem) { + public V1ResourceRequirements addClaimsItem(CoreV1ResourceClaim claimsItem) { if (this.claims == null) { this.claims = new ArrayList<>(); } @@ -90,16 +90,16 @@ public V1ResourceRequirements addClaimsItem(V1ResourceClaim claimsItem) { } /** - * Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. + * 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. * @return claims */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.") - public List getClaims() { + @ApiModelProperty(value = "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.") + public List getClaims() { return claims; } - public void setClaims(@jakarta.annotation.Nullable List claims) { + public void setClaims(@jakarta.annotation.Nullable List claims) { this.claims = claims; } @@ -248,7 +248,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `claims` (array) for (int i = 0; i < jsonArrayclaims.size(); i++) { - V1ResourceClaim.validateJsonElement(jsonArrayclaims.get(i)); + CoreV1ResourceClaim.validateJsonElement(jsonArrayclaims.get(i)); }; } } 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 b2d6bc38a1..c3f0a7ddef 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java similarity index 81% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSlice.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java index b2db8ebea1..736d98c0e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.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.V1alpha3ResourceSliceSpec; +import io.kubernetes.client.openapi.models.V1ResourceSliceSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -52,8 +52,8 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceSlice implements io.kubernetes.client.common.KubernetesObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourceSlice 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 V1alpha3ResourceSlice implements io.kubernetes.client.common.Kubern public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1alpha3ResourceSliceSpec spec; + private V1ResourceSliceSpec spec; - public V1alpha3ResourceSlice() { + public V1ResourceSlice() { } - public V1alpha3ResourceSlice apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1ResourceSlice apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -97,7 +97,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha3ResourceSlice kind(@jakarta.annotation.Nullable String kind) { + public V1ResourceSlice kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -117,7 +117,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha3ResourceSlice metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1ResourceSlice metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha3ResourceSlice spec(@jakarta.annotation.Nonnull V1alpha3ResourceSliceSpec spec) { + public V1ResourceSlice spec(@jakarta.annotation.Nonnull V1ResourceSliceSpec spec) { this.spec = spec; return this; } @@ -148,11 +148,11 @@ public V1alpha3ResourceSlice spec(@jakarta.annotation.Nonnull V1alpha3ResourceSl */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha3ResourceSliceSpec getSpec() { + public V1ResourceSliceSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1alpha3ResourceSliceSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1ResourceSliceSpec spec) { this.spec = spec; } @@ -166,11 +166,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3ResourceSlice v1alpha3ResourceSlice = (V1alpha3ResourceSlice) o; - return Objects.equals(this.apiVersion, v1alpha3ResourceSlice.apiVersion) && - Objects.equals(this.kind, v1alpha3ResourceSlice.kind) && - Objects.equals(this.metadata, v1alpha3ResourceSlice.metadata) && - Objects.equals(this.spec, v1alpha3ResourceSlice.spec); + V1ResourceSlice v1ResourceSlice = (V1ResourceSlice) o; + return Objects.equals(this.apiVersion, v1ResourceSlice.apiVersion) && + Objects.equals(this.kind, v1ResourceSlice.kind) && + Objects.equals(this.metadata, v1ResourceSlice.metadata) && + Objects.equals(this.spec, v1ResourceSlice.spec); } @Override @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceSlice {\n"); + sb.append("class V1ResourceSlice {\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"); @@ -222,25 +222,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 V1alpha3ResourceSlice + * @throws IOException if the JSON Element is invalid with respect to V1ResourceSlice */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceSlice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceSlice is not found in the empty JSON string", V1alpha3ResourceSlice.openapiRequiredFields.toString())); + if (!V1ResourceSlice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceSlice is not found in the empty JSON string", V1ResourceSlice.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceSlice.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceSlice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourceSlice.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceSlice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3ResourceSlice.openapiRequiredFields) { + for (String requiredField : V1ResourceSlice.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -257,29 +257,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1alpha3ResourceSliceSpec.validateJsonElement(jsonObj.get("spec")); + V1ResourceSliceSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceSlice.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceSlice' and its subtypes + if (!V1ResourceSlice.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceSlice' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceSlice.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceSlice.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceSlice value) throws IOException { + public void write(JsonWriter out, V1ResourceSlice value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceSlice read(JsonReader in) throws IOException { + public V1ResourceSlice read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -290,18 +290,18 @@ public V1alpha3ResourceSlice read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3ResourceSlice given an JSON string + * Create an instance of V1ResourceSlice given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceSlice - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceSlice + * @return An instance of V1ResourceSlice + * @throws IOException if the JSON string is invalid with respect to V1ResourceSlice */ - public static V1alpha3ResourceSlice fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceSlice.class); + public static V1ResourceSlice fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceSlice.class); } /** - * Convert an instance of V1alpha3ResourceSlice to an JSON string + * Convert an instance of V1ResourceSlice to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java similarity index 77% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java index d5c0a9e33e..8f92c0f2f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.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.V1alpha3ResourceSlice; +import io.kubernetes.client.openapi.models.V1ResourceSlice; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,8 +54,8 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourceSliceList 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 V1alpha3ResourceSliceList implements io.kubernetes.client.common.Ku 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 V1alpha3ResourceSliceList implements io.kubernetes.client.common.Ku @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1alpha3ResourceSliceList() { + public V1ResourceSliceList() { } - public V1alpha3ResourceSliceList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1ResourceSliceList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha3ResourceSliceList items(@jakarta.annotation.Nonnull List items) { + public V1ResourceSliceList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1alpha3ResourceSliceList addItemsItem(V1alpha3ResourceSlice itemsItem) { + public V1ResourceSliceList addItemsItem(V1ResourceSlice itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -118,16 +118,16 @@ public V1alpha3ResourceSliceList addItemsItem(V1alpha3ResourceSlice itemsItem) { */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of resource ResourceSlices.") - 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 V1alpha3ResourceSliceList kind(@jakarta.annotation.Nullable String kind) { + public V1ResourceSliceList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha3ResourceSliceList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1ResourceSliceList 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; } - V1alpha3ResourceSliceList v1alpha3ResourceSliceList = (V1alpha3ResourceSliceList) o; - return Objects.equals(this.apiVersion, v1alpha3ResourceSliceList.apiVersion) && - Objects.equals(this.items, v1alpha3ResourceSliceList.items) && - Objects.equals(this.kind, v1alpha3ResourceSliceList.kind) && - Objects.equals(this.metadata, v1alpha3ResourceSliceList.metadata); + V1ResourceSliceList v1ResourceSliceList = (V1ResourceSliceList) o; + return Objects.equals(this.apiVersion, v1ResourceSliceList.apiVersion) && + Objects.equals(this.items, v1ResourceSliceList.items) && + Objects.equals(this.kind, v1ResourceSliceList.kind) && + Objects.equals(this.metadata, v1ResourceSliceList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceSliceList {\n"); + sb.append("class V1ResourceSliceList {\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"); @@ -232,25 +232,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 V1alpha3ResourceSliceList + * @throws IOException if the JSON Element is invalid with respect to V1ResourceSliceList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceSliceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceSliceList is not found in the empty JSON string", V1alpha3ResourceSliceList.openapiRequiredFields.toString())); + if (!V1ResourceSliceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceSliceList is not found in the empty JSON string", V1ResourceSliceList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceSliceList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceSliceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourceSliceList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceSliceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3ResourceSliceList.openapiRequiredFields) { + for (String requiredField : V1ResourceSliceList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -267,7 +267,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++) { - V1alpha3ResourceSlice.validateJsonElement(jsonArrayitems.get(i)); + V1ResourceSlice.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -282,22 +282,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceSliceList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceSliceList' and its subtypes + if (!V1ResourceSliceList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceSliceList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceSliceList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceSliceList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceSliceList value) throws IOException { + public void write(JsonWriter out, V1ResourceSliceList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceSliceList read(JsonReader in) throws IOException { + public V1ResourceSliceList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -308,18 +308,18 @@ public V1alpha3ResourceSliceList read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3ResourceSliceList given an JSON string + * Create an instance of V1ResourceSliceList given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceSliceList - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceSliceList + * @return An instance of V1ResourceSliceList + * @throws IOException if the JSON string is invalid with respect to V1ResourceSliceList */ - public static V1alpha3ResourceSliceList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceSliceList.class); + public static V1ResourceSliceList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceSliceList.class); } /** - * Convert an instance of V1alpha3ResourceSliceList to an JSON string + * Convert an instance of V1ResourceSliceList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java similarity index 77% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java index f27d8f359a..9e6b0a3633 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java @@ -18,10 +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.V1CounterSet; +import io.kubernetes.client.openapi.models.V1Device; import io.kubernetes.client.openapi.models.V1NodeSelector; -import io.kubernetes.client.openapi.models.V1alpha3CounterSet; -import io.kubernetes.client.openapi.models.V1alpha3Device; -import io.kubernetes.client.openapi.models.V1alpha3ResourcePool; +import io.kubernetes.client.openapi.models.V1ResourcePool; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -56,8 +56,8 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceSliceSpec { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @jakarta.annotation.Nullable @@ -66,7 +66,7 @@ public class V1alpha3ResourceSliceSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) @jakarta.annotation.Nullable - private List devices = new ArrayList<>(); + private List devices = new ArrayList<>(); public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -91,17 +91,17 @@ public class V1alpha3ResourceSliceSpec { public static final String SERIALIZED_NAME_POOL = "pool"; @SerializedName(SERIALIZED_NAME_POOL) @jakarta.annotation.Nonnull - private V1alpha3ResourcePool pool; + private V1ResourcePool pool; public static final String SERIALIZED_NAME_SHARED_COUNTERS = "sharedCounters"; @SerializedName(SERIALIZED_NAME_SHARED_COUNTERS) @jakarta.annotation.Nullable - private List sharedCounters = new ArrayList<>(); + private List sharedCounters = new ArrayList<>(); - public V1alpha3ResourceSliceSpec() { + public V1ResourceSliceSpec() { } - public V1alpha3ResourceSliceSpec allNodes(@jakarta.annotation.Nullable Boolean allNodes) { + public V1ResourceSliceSpec allNodes(@jakarta.annotation.Nullable Boolean allNodes) { this.allNodes = allNodes; return this; } @@ -121,12 +121,12 @@ public void setAllNodes(@jakarta.annotation.Nullable Boolean allNodes) { } - public V1alpha3ResourceSliceSpec devices(@jakarta.annotation.Nullable List devices) { + public V1ResourceSliceSpec devices(@jakarta.annotation.Nullable List devices) { this.devices = devices; return this; } - public V1alpha3ResourceSliceSpec addDevicesItem(V1alpha3Device devicesItem) { + public V1ResourceSliceSpec addDevicesItem(V1Device devicesItem) { if (this.devices == null) { this.devices = new ArrayList<>(); } @@ -140,16 +140,16 @@ public V1alpha3ResourceSliceSpec addDevicesItem(V1alpha3Device devicesItem) { */ @jakarta.annotation.Nullable @ApiModelProperty(value = "Devices lists some or all of the devices in this pool. Must not have more than 128 entries.") - public List getDevices() { + public List getDevices() { return devices; } - public void setDevices(@jakarta.annotation.Nullable List devices) { + public void setDevices(@jakarta.annotation.Nullable List devices) { this.devices = devices; } - public V1alpha3ResourceSliceSpec driver(@jakarta.annotation.Nonnull String driver) { + public V1ResourceSliceSpec driver(@jakarta.annotation.Nonnull String driver) { this.driver = driver; return this; } @@ -169,7 +169,7 @@ public void setDriver(@jakarta.annotation.Nonnull String driver) { } - public V1alpha3ResourceSliceSpec nodeName(@jakarta.annotation.Nullable String nodeName) { + public V1ResourceSliceSpec nodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; return this; } @@ -189,7 +189,7 @@ public void setNodeName(@jakarta.annotation.Nullable String nodeName) { } - public V1alpha3ResourceSliceSpec nodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { + public V1ResourceSliceSpec nodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { this.nodeSelector = nodeSelector; return this; } @@ -209,7 +209,7 @@ public void setNodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSele } - public V1alpha3ResourceSliceSpec perDeviceNodeSelection(@jakarta.annotation.Nullable Boolean perDeviceNodeSelection) { + public V1ResourceSliceSpec perDeviceNodeSelection(@jakarta.annotation.Nullable Boolean perDeviceNodeSelection) { this.perDeviceNodeSelection = perDeviceNodeSelection; return this; } @@ -229,7 +229,7 @@ public void setPerDeviceNodeSelection(@jakarta.annotation.Nullable Boolean perDe } - public V1alpha3ResourceSliceSpec pool(@jakarta.annotation.Nonnull V1alpha3ResourcePool pool) { + public V1ResourceSliceSpec pool(@jakarta.annotation.Nonnull V1ResourcePool pool) { this.pool = pool; return this; } @@ -240,21 +240,21 @@ public V1alpha3ResourceSliceSpec pool(@jakarta.annotation.Nonnull V1alpha3Resour */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha3ResourcePool getPool() { + public V1ResourcePool getPool() { return pool; } - public void setPool(@jakarta.annotation.Nonnull V1alpha3ResourcePool pool) { + public void setPool(@jakarta.annotation.Nonnull V1ResourcePool pool) { this.pool = pool; } - public V1alpha3ResourceSliceSpec sharedCounters(@jakarta.annotation.Nullable List sharedCounters) { + public V1ResourceSliceSpec sharedCounters(@jakarta.annotation.Nullable List sharedCounters) { this.sharedCounters = sharedCounters; return this; } - public V1alpha3ResourceSliceSpec addSharedCountersItem(V1alpha3CounterSet sharedCountersItem) { + public V1ResourceSliceSpec addSharedCountersItem(V1CounterSet sharedCountersItem) { if (this.sharedCounters == null) { this.sharedCounters = new ArrayList<>(); } @@ -263,16 +263,16 @@ public V1alpha3ResourceSliceSpec addSharedCountersItem(V1alpha3CounterSet shared } /** - * SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32. + * SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of counters in all sets is 32. * @return sharedCounters */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32.") - public List getSharedCounters() { + @ApiModelProperty(value = "SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of counters in all sets is 32.") + public List getSharedCounters() { return sharedCounters; } - public void setSharedCounters(@jakarta.annotation.Nullable List sharedCounters) { + public void setSharedCounters(@jakarta.annotation.Nullable List sharedCounters) { this.sharedCounters = sharedCounters; } @@ -286,15 +286,15 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3ResourceSliceSpec v1alpha3ResourceSliceSpec = (V1alpha3ResourceSliceSpec) o; - return Objects.equals(this.allNodes, v1alpha3ResourceSliceSpec.allNodes) && - Objects.equals(this.devices, v1alpha3ResourceSliceSpec.devices) && - Objects.equals(this.driver, v1alpha3ResourceSliceSpec.driver) && - Objects.equals(this.nodeName, v1alpha3ResourceSliceSpec.nodeName) && - Objects.equals(this.nodeSelector, v1alpha3ResourceSliceSpec.nodeSelector) && - Objects.equals(this.perDeviceNodeSelection, v1alpha3ResourceSliceSpec.perDeviceNodeSelection) && - Objects.equals(this.pool, v1alpha3ResourceSliceSpec.pool) && - Objects.equals(this.sharedCounters, v1alpha3ResourceSliceSpec.sharedCounters); + V1ResourceSliceSpec v1ResourceSliceSpec = (V1ResourceSliceSpec) o; + return Objects.equals(this.allNodes, v1ResourceSliceSpec.allNodes) && + Objects.equals(this.devices, v1ResourceSliceSpec.devices) && + Objects.equals(this.driver, v1ResourceSliceSpec.driver) && + Objects.equals(this.nodeName, v1ResourceSliceSpec.nodeName) && + Objects.equals(this.nodeSelector, v1ResourceSliceSpec.nodeSelector) && + Objects.equals(this.perDeviceNodeSelection, v1ResourceSliceSpec.perDeviceNodeSelection) && + Objects.equals(this.pool, v1ResourceSliceSpec.pool) && + Objects.equals(this.sharedCounters, v1ResourceSliceSpec.sharedCounters); } @Override @@ -305,7 +305,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceSliceSpec {\n"); + sb.append("class V1ResourceSliceSpec {\n"); sb.append(" allNodes: ").append(toIndentedString(allNodes)).append("\n"); sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); @@ -355,25 +355,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 V1alpha3ResourceSliceSpec + * @throws IOException if the JSON Element is invalid with respect to V1ResourceSliceSpec */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceSliceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceSliceSpec is not found in the empty JSON string", V1alpha3ResourceSliceSpec.openapiRequiredFields.toString())); + if (!V1ResourceSliceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceSliceSpec is not found in the empty JSON string", V1ResourceSliceSpec.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceSliceSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceSliceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1ResourceSliceSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceSliceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3ResourceSliceSpec.openapiRequiredFields) { + for (String requiredField : V1ResourceSliceSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -389,7 +389,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `devices` (array) for (int i = 0; i < jsonArraydevices.size(); i++) { - V1alpha3Device.validateJsonElement(jsonArraydevices.get(i)); + V1Device.validateJsonElement(jsonArraydevices.get(i)); }; } } @@ -404,7 +404,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1NodeSelector.validateJsonElement(jsonObj.get("nodeSelector")); } // validate the required field `pool` - V1alpha3ResourcePool.validateJsonElement(jsonObj.get("pool")); + V1ResourcePool.validateJsonElement(jsonObj.get("pool")); if (jsonObj.get("sharedCounters") != null && !jsonObj.get("sharedCounters").isJsonNull()) { JsonArray jsonArraysharedCounters = jsonObj.getAsJsonArray("sharedCounters"); if (jsonArraysharedCounters != null) { @@ -415,7 +415,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // validate the optional field `sharedCounters` (array) for (int i = 0; i < jsonArraysharedCounters.size(); i++) { - V1alpha3CounterSet.validateJsonElement(jsonArraysharedCounters.get(i)); + V1CounterSet.validateJsonElement(jsonArraysharedCounters.get(i)); }; } } @@ -425,22 +425,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceSliceSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceSliceSpec' and its subtypes + if (!V1ResourceSliceSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ResourceSliceSpec' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceSliceSpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ResourceSliceSpec.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceSliceSpec value) throws IOException { + public void write(JsonWriter out, V1ResourceSliceSpec value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceSliceSpec read(JsonReader in) throws IOException { + public V1ResourceSliceSpec read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -451,18 +451,18 @@ public V1alpha3ResourceSliceSpec read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha3ResourceSliceSpec given an JSON string + * Create an instance of V1ResourceSliceSpec given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceSliceSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceSliceSpec + * @return An instance of V1ResourceSliceSpec + * @throws IOException if the JSON string is invalid with respect to V1ResourceSliceSpec */ - public static V1alpha3ResourceSliceSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceSliceSpec.class); + public static V1ResourceSliceSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ResourceSliceSpec.class); } /** - * Convert an instance of V1alpha3ResourceSliceSpec to an JSON string + * Convert an instance of V1ResourceSliceSpec to an JSON string * * @return JSON string */ 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 ce9314bf95..c9393b809e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ResourceStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_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 1a1e1a4799..17c53fa501 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 2b44f0b3ab..104dd2b586 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 bad39080bb..f133510fde 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 5cec637929..316a3b819c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 84f974f567..45d32eec2b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 f5776f5e12..606136a4d7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) 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 85bd8d587b..86f0465b85 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) 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 9eec4d9a5b..9a881279d0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) 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 a3f0891a52..01842ab467 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 36f924dcc2..9b1f04b249 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 9aee79e264..54f9e92f5b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 65dee0e846..3d7538deee 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 cd32c1e9f4..0e0851f82f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 79e1080be0..ac167dbdf0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 a18d4a23c7..e54772318f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 3a212070dc..3a7e372505 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1a300e5bc6..f71cf817f0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 89ebe0c40e..f33e79b1c7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) 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 c1d88809de..2d5513598a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) 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 ca8ed2913d..ec94805eb6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 79e113c830..b74efec55e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) 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 e5850aee29..16c2b08763 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 69bcd4bbea..8c49162277 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d45172dc7f..47ce5b3212 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ab1a22211c..5ae1bba8ef 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4c9fede95f..501bff97f2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ad98fe5da3..ffbe286913 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a374f035c1..2abf8c2180 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,7 +53,7 @@ * Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) 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 b9aee4e43d..3587a4cc85 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) 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 ff5675f631..88746d2995 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelectableField { public static final String SERIALIZED_NAME_JSON_PATH = "jsonPath"; @SerializedName(SERIALIZED_NAME_JSON_PATH) 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 b6a02cf45d..9b3603d5e9 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ea51dded33..f3c6908ee2 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 ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) 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 bf7f7f2949..531c00b460 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 18e7078158..3274d6587b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectReviewStatus { public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; @SerializedName(SERIALIZED_NAME_USER_INFO) 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 b1b571758b..0d3d34b8fc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 1a76781b50..c8858e0763 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 dc45c29c57..ea9f03ab75 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; @SerializedName(SERIALIZED_NAME_CLIENT_C_I_D_R) 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 a7df76adc0..bb6411a2ff 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 16055d421e..39c1b24132 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b8deb3f231..e6dd052494 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 a500edc876..ac1a5576aa 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 006bee830b..115dd7fdc4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) 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 782b7900d5..a4fd64c7bb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1140c8f15a..d74ca773b5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 52ad0d02c9..056f381c36 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 b2573ad75f..87665a57f2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceCIDRSpec { public static final String SERIALIZED_NAME_CIDRS = "cidrs"; @SerializedName(SERIALIZED_NAME_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 d24268d635..6540968077 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 805b81a7ae..d9f6cc3860 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f3c4be9f26..2ac4be430f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) 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 d663729a65..cda1fff3ca 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ServiceSpec { public static final String SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS = "allocateLoadBalancerNodePorts"; @SerializedName(SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS) 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 fc19e9e5a8..ac04e476cd 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 8b1abd9dda..c626b90529 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; @SerializedName(SERIALIZED_NAME_CLIENT_I_P) 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 8919464ac2..776c12adb6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b039988f92..67861c533e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 4facc7fb40..ccef715fca 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 0d47e03570..d3ad36125a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 978449c73c..d33f35adc0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 adce0fdf26..43bf713d14 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { public static final String SERIALIZED_NAME_WHEN_DELETED = "whenDeleted"; @SerializedName(SERIALIZED_NAME_WHEN_DELETED) 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 29318bcd33..8edc229c38 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) 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 22f0a1f132..20e97388b2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) 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 ed2ac96156..184b6f766a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) 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 2780b3a756..af41bb1fc4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 36e41291e7..6a9dabd1a2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 799eff9c0e..4ee389edbf 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c785aa454e..63c0aa85c0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StorageClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; @SerializedName(SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION) 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 b9f8a9a8b7..e87a9c43bf 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 65388cbab5..1614f9a688 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 f54291440a..38c5c63397 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 f7feb1370e..040905e329 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 3e7462040d..0796eaadbf 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 ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 7d342e8800..6acd04b0d8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 664aa1968e..b6f99f27eb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) 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 aebd7c23cb..aefef0c728 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SuccessPolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) @@ -77,11 +77,11 @@ public V1SuccessPolicy addRulesItem(V1SuccessPolicyRule rulesItem) { } /** - * rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. + * rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. * @return rules */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.") + @ApiModelProperty(required = true, value = "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.") public List getRules() { return rules; } 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 8c52d49611..7fbc7ede49 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1SuccessPolicyRule { public static final String SERIALIZED_NAME_SUCCEEDED_COUNT = "succeededCount"; @SerializedName(SERIALIZED_NAME_SUCCEEDED_COUNT) 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 77216ca272..254db5d461 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a81f8b1d2e..9797fd4eab 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 240dbe6cac..9872118608 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -122,11 +122,11 @@ public V1Taint timeAdded(@jakarta.annotation.Nullable OffsetDateTime timeAdded) } /** - * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + * TimeAdded represents the time at which the taint was added. * @return timeAdded */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.") + @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added.") public OffsetDateTime getTimeAdded() { return timeAdded; } 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 d9de2d7a2b..668f0e7586 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 @@ -53,7 +53,7 @@ * TokenRequestSpec contains client provided parameters of a token request. */ @ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TokenRequestSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) 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 0254e3678d..d3fc6fcfaf 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; @SerializedName(SERIALIZED_NAME_EXPIRATION_TIMESTAMP) 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 6e80585eaf..95552bc42e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 68a8f9473b..0c1d916acc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 164c231ec6..5aa922ca97 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d8e20b2ead..249719b6fc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 4c2623d1ad..42a6469a3a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b1ff35619a..4a77a6d654 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS) 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 a3902e7238..307f13e146 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) 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 88805dcf56..713789255f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TypeChecking { public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) 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 70e9a17104..d70f5684a0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 1322ed822f..16a3952119 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1TypedObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) 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 39319dfba1..cd4deacdfc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 01eeb1ac4b..9cb0acc703 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 603451545b..faa293067b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 6f0e53fc76..c51163c383 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 fd0af7d692..7f7e8547e5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 769b037f48..f0a5dc385d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 039708f54b..919454c4e6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) 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 89b9b96e1a..7a2efa6d8f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 3310c79802..e1faac69b6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) 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 85ac5da726..27662896eb 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2366a5cc73..f368f4b499 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) 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 ec44b0ac4d..ed2e7b75b2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6ab1073156..2a66dc7b81 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 94930bc9e6..a16ccee4c2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ecd4230efc..f1a0f79f24 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1ValidationRule { public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; @SerializedName(SERIALIZED_NAME_FIELD_PATH) 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 8cd38d08e8..9895e6f957 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a0095d9faa..334e6fab01 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) 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 f951494072..536e2d248d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 57b84f7ab2..1677b60d2b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 169bc8ebe3..71638020d7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) 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 b2abeddb70..976e66bdd1 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 99762b11cc..a103ee938a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) 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 new file mode 100644 index 0000000000..786cffc01a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java @@ -0,0 +1,349 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1VolumeAttributesClass 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 V1VolumeAttributesClass() { + } + + public V1VolumeAttributesClass 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 V1VolumeAttributesClass 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 V1VolumeAttributesClass 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 V1VolumeAttributesClass 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 V1VolumeAttributesClass parameters(@jakarta.annotation.Nullable Map parameters) { + this.parameters = parameters; + return this; + } + + public V1VolumeAttributesClass 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; + } + V1VolumeAttributesClass v1VolumeAttributesClass = (V1VolumeAttributesClass) o; + return Objects.equals(this.apiVersion, v1VolumeAttributesClass.apiVersion) && + Objects.equals(this.driverName, v1VolumeAttributesClass.driverName) && + Objects.equals(this.kind, v1VolumeAttributesClass.kind) && + Objects.equals(this.metadata, v1VolumeAttributesClass.metadata) && + Objects.equals(this.parameters, v1VolumeAttributesClass.parameters); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1VolumeAttributesClass {\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(); + openapiFields.add("apiVersion"); + openapiFields.add("driverName"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("parameters"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("driverName"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttributesClass + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1VolumeAttributesClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeAttributesClass is not found in the empty JSON string", V1VolumeAttributesClass.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1VolumeAttributesClass.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeAttributesClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VolumeAttributesClass.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if (!jsonObj.get("driverName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("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("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 (!V1VolumeAttributesClass.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeAttributesClass' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeAttributesClass.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeAttributesClass value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeAttributesClass read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeAttributesClass given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttributesClass + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttributesClass + */ + public static V1VolumeAttributesClass fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeAttributesClass.class); + } + + /** + * Convert an instance of V1VolumeAttributesClass to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 new file mode 100644 index 0000000000..bd181ec0b0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java @@ -0,0 +1,329 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1VolumeAttributesClass; +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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1VolumeAttributesClassList 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 V1VolumeAttributesClassList() { + } + + public V1VolumeAttributesClassList 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 V1VolumeAttributesClassList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1VolumeAttributesClassList addItemsItem(V1VolumeAttributesClass 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 V1VolumeAttributesClassList 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 V1VolumeAttributesClassList 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; + } + V1VolumeAttributesClassList v1VolumeAttributesClassList = (V1VolumeAttributesClassList) o; + return Objects.equals(this.apiVersion, v1VolumeAttributesClassList.apiVersion) && + Objects.equals(this.items, v1VolumeAttributesClassList.items) && + Objects.equals(this.kind, v1VolumeAttributesClassList.kind) && + Objects.equals(this.metadata, v1VolumeAttributesClassList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1VolumeAttributesClassList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("items"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("items"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeAttributesClassList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1VolumeAttributesClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeAttributesClassList is not found in the empty JSON string", V1VolumeAttributesClassList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1VolumeAttributesClassList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeAttributesClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1VolumeAttributesClassList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1VolumeAttributesClass.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeAttributesClassList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeAttributesClassList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeAttributesClassList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeAttributesClassList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeAttributesClassList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeAttributesClassList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeAttributesClassList + * @throws IOException if the JSON string is invalid with respect to V1VolumeAttributesClassList + */ + public static V1VolumeAttributesClassList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeAttributesClassList.class); + } + + /** + * Convert an instance of V1VolumeAttributesClassList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java index 9f15f77f1b..68ebb1c4d6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) 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 0060856ffa..789cb34529 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeError { public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; @SerializedName(SERIALIZED_NAME_ERROR_CODE) @@ -77,11 +77,11 @@ public V1VolumeError errorCode(@jakarta.annotation.Nullable Integer errorCode) { } /** - * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. + * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. * @return errorCode */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.") + @ApiModelProperty(value = "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.") public Integer getErrorCode() { return errorCode; } 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 cde99fd47d..59618972d8 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 @@ -50,7 +50,7 @@ * VolumeMount describes a mounting of a Volume within a container. */ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeMount { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) 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 4f93661a94..fbed01e7d4 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 @@ -50,7 +50,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeMountStatus { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) 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 832d37a508..762e5c4a7e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1647aaa18c..1e2b287947 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 87ecf98c66..53519306bd 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 @@ -21,6 +21,7 @@ import io.kubernetes.client.openapi.models.V1ClusterTrustBundleProjection; import io.kubernetes.client.openapi.models.V1ConfigMapProjection; import io.kubernetes.client.openapi.models.V1DownwardAPIProjection; +import io.kubernetes.client.openapi.models.V1PodCertificateProjection; import io.kubernetes.client.openapi.models.V1SecretProjection; import io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection; import io.swagger.annotations.ApiModel; @@ -55,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE = "clusterTrustBundle"; @SerializedName(SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE) @@ -72,6 +73,11 @@ public class V1VolumeProjection { @jakarta.annotation.Nullable private V1DownwardAPIProjection downwardAPI; + public static final String SERIALIZED_NAME_POD_CERTIFICATE = "podCertificate"; + @SerializedName(SERIALIZED_NAME_POD_CERTIFICATE) + @jakarta.annotation.Nullable + private V1PodCertificateProjection podCertificate; + public static final String SERIALIZED_NAME_SECRET = "secret"; @SerializedName(SERIALIZED_NAME_SECRET) @jakarta.annotation.Nullable @@ -145,6 +151,26 @@ public void setDownwardAPI(@jakarta.annotation.Nullable V1DownwardAPIProjection } + public V1VolumeProjection podCertificate(@jakarta.annotation.Nullable V1PodCertificateProjection podCertificate) { + this.podCertificate = podCertificate; + return this; + } + + /** + * Get podCertificate + * @return podCertificate + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodCertificateProjection getPodCertificate() { + return podCertificate; + } + + public void setPodCertificate(@jakarta.annotation.Nullable V1PodCertificateProjection podCertificate) { + this.podCertificate = podCertificate; + } + + public V1VolumeProjection secret(@jakarta.annotation.Nullable V1SecretProjection secret) { this.secret = secret; return this; @@ -198,13 +224,14 @@ public boolean equals(Object o) { return Objects.equals(this.clusterTrustBundle, v1VolumeProjection.clusterTrustBundle) && Objects.equals(this.configMap, v1VolumeProjection.configMap) && Objects.equals(this.downwardAPI, v1VolumeProjection.downwardAPI) && + Objects.equals(this.podCertificate, v1VolumeProjection.podCertificate) && Objects.equals(this.secret, v1VolumeProjection.secret) && Objects.equals(this.serviceAccountToken, v1VolumeProjection.serviceAccountToken); } @Override public int hashCode() { - return Objects.hash(clusterTrustBundle, configMap, downwardAPI, secret, serviceAccountToken); + return Objects.hash(clusterTrustBundle, configMap, downwardAPI, podCertificate, secret, serviceAccountToken); } @Override @@ -214,6 +241,7 @@ public String toString() { sb.append(" clusterTrustBundle: ").append(toIndentedString(clusterTrustBundle)).append("\n"); sb.append(" configMap: ").append(toIndentedString(configMap)).append("\n"); sb.append(" downwardAPI: ").append(toIndentedString(downwardAPI)).append("\n"); + sb.append(" podCertificate: ").append(toIndentedString(podCertificate)).append("\n"); sb.append(" secret: ").append(toIndentedString(secret)).append("\n"); sb.append(" serviceAccountToken: ").append(toIndentedString(serviceAccountToken)).append("\n"); sb.append("}"); @@ -241,6 +269,7 @@ private String toIndentedString(Object o) { openapiFields.add("clusterTrustBundle"); openapiFields.add("configMap"); openapiFields.add("downwardAPI"); + openapiFields.add("podCertificate"); openapiFields.add("secret"); openapiFields.add("serviceAccountToken"); @@ -281,6 +310,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("downwardAPI") != null && !jsonObj.get("downwardAPI").isJsonNull()) { V1DownwardAPIProjection.validateJsonElement(jsonObj.get("downwardAPI")); } + // validate the optional field `podCertificate` + if (jsonObj.get("podCertificate") != null && !jsonObj.get("podCertificate").isJsonNull()) { + V1PodCertificateProjection.validateJsonElement(jsonObj.get("podCertificate")); + } // validate the optional field `secret` if (jsonObj.get("secret") != null && !jsonObj.get("secret").isJsonNull()) { V1SecretProjection.validateJsonElement(jsonObj.get("secret")); 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 3acfea9954..da9ffc9c40 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1VsphereVirtualDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java index de088559d0..36ac37e660 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) 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 3743b19151..f5fa60356a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 002df88f06..642214c299 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) 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 20d62c24cc..2cf352c8c2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) 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 7150b0fb1b..da7dba3351 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC) 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 cb7c84cd1d..e089f7e10f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1alpha1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java index 6538f07dd4..0d18cc5925 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java @@ -52,7 +52,7 @@ * ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. */ @ApiModel(description = "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java index b94a708a35..df40e393e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java index d8726dfa65..20780bb816 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java index 15fc695700..d47795a6c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java @@ -50,7 +50,7 @@ * The names of the group, the version, and the resource. */ @ApiModel(description = "The names of the group, the version, and the resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1GroupVersionResource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) 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 2b02b130e9..df9bc67d0a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 5c78896ca3..601ccb4a36 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c60a2ec8fe..8a4b25768d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java index 7520ae519f..ef7ae17d52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java @@ -51,7 +51,7 @@ * Describes the state of a migration at a certain point. */ @ApiModel(description = "Describes the state of a migration at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MigrationCondition { public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) 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 b9b5768d17..28a16bcb0f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 0f20f0935f..ecfde8fefa 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 d44301afeb..f8df5371a0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 99382ab463..eb5931361c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) 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 0d58a86802..9c194eac47 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 55f0dda9a7..ea3d1d0d90 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) 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 28d8bb45b7..2e10ad45f6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1Mutation { public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) 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 ba8cd1b14d..14c5b73d3a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) 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 619ea75392..06974e885d 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 84d855b37f..6724bb895c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1beta1ValidatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java similarity index 67% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicy.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java index 87d5de28f8..7011e4895e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.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.V1beta1ValidatingAdmissionPolicySpec; -import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyStatus; +import io.kubernetes.client.openapi.models.V1alpha1PodCertificateRequestSpec; +import io.kubernetes.client.openapi.models.V1alpha1PodCertificateRequestStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -50,11 +50,11 @@ import io.kubernetes.client.openapi.JSON; /** - * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. + * PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes */ -@ApiModel(description = "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { +@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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha1PodCertificateRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -72,18 +72,18 @@ public class V1beta1ValidatingAdmissionPolicy implements io.kubernetes.client.co public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable - private V1beta1ValidatingAdmissionPolicySpec spec; + @jakarta.annotation.Nonnull + private V1alpha1PodCertificateRequestSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @jakarta.annotation.Nullable - private V1beta1ValidatingAdmissionPolicyStatus status; + private V1alpha1PodCertificateRequestStatus status; - public V1beta1ValidatingAdmissionPolicy() { + public V1alpha1PodCertificateRequest() { } - public V1beta1ValidatingAdmissionPolicy apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1alpha1PodCertificateRequest apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -103,7 +103,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1beta1ValidatingAdmissionPolicy kind(@jakarta.annotation.Nullable String kind) { + public V1alpha1PodCertificateRequest kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -123,7 +123,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1beta1ValidatingAdmissionPolicy metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1alpha1PodCertificateRequest metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1ValidatingAdmissionPolicy spec(@jakarta.annotation.Nullable V1beta1ValidatingAdmissionPolicySpec spec) { + public V1alpha1PodCertificateRequest spec(@jakarta.annotation.Nonnull V1alpha1PodCertificateRequestSpec spec) { this.spec = spec; return this; } @@ -152,18 +152,18 @@ public V1beta1ValidatingAdmissionPolicy spec(@jakarta.annotation.Nullable V1beta * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1ValidatingAdmissionPolicySpec getSpec() { + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha1PodCertificateRequestSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1beta1ValidatingAdmissionPolicySpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1alpha1PodCertificateRequestSpec spec) { this.spec = spec; } - public V1beta1ValidatingAdmissionPolicy status(@jakarta.annotation.Nullable V1beta1ValidatingAdmissionPolicyStatus status) { + public V1alpha1PodCertificateRequest status(@jakarta.annotation.Nullable V1alpha1PodCertificateRequestStatus status) { this.status = status; return this; } @@ -174,11 +174,11 @@ public V1beta1ValidatingAdmissionPolicy status(@jakarta.annotation.Nullable V1be */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1beta1ValidatingAdmissionPolicyStatus getStatus() { + public V1alpha1PodCertificateRequestStatus getStatus() { return status; } - public void setStatus(@jakarta.annotation.Nullable V1beta1ValidatingAdmissionPolicyStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1alpha1PodCertificateRequestStatus status) { this.status = status; } @@ -192,12 +192,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1ValidatingAdmissionPolicy v1beta1ValidatingAdmissionPolicy = (V1beta1ValidatingAdmissionPolicy) o; - return Objects.equals(this.apiVersion, v1beta1ValidatingAdmissionPolicy.apiVersion) && - Objects.equals(this.kind, v1beta1ValidatingAdmissionPolicy.kind) && - Objects.equals(this.metadata, v1beta1ValidatingAdmissionPolicy.metadata) && - Objects.equals(this.spec, v1beta1ValidatingAdmissionPolicy.spec) && - Objects.equals(this.status, v1beta1ValidatingAdmissionPolicy.status); + V1alpha1PodCertificateRequest v1alpha1PodCertificateRequest = (V1alpha1PodCertificateRequest) o; + return Objects.equals(this.apiVersion, v1alpha1PodCertificateRequest.apiVersion) && + Objects.equals(this.kind, v1alpha1PodCertificateRequest.kind) && + Objects.equals(this.metadata, v1alpha1PodCertificateRequest.metadata) && + Objects.equals(this.spec, v1alpha1PodCertificateRequest.spec) && + Objects.equals(this.status, v1alpha1PodCertificateRequest.status); } @Override @@ -208,7 +208,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ValidatingAdmissionPolicy {\n"); + sb.append("class V1alpha1PodCertificateRequest {\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"); @@ -244,26 +244,34 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("spec"); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1ValidatingAdmissionPolicy + * @throws IOException if the JSON Element is invalid with respect to V1alpha1PodCertificateRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ValidatingAdmissionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ValidatingAdmissionPolicy is not found in the empty JSON string", V1beta1ValidatingAdmissionPolicy.openapiRequiredFields.toString())); + if (!V1alpha1PodCertificateRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1PodCertificateRequest is not found in the empty JSON string", V1alpha1PodCertificateRequest.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ValidatingAdmissionPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ValidatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha1PodCertificateRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1PodCertificateRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -277,13 +285,11 @@ 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()) { - V1beta1ValidatingAdmissionPolicySpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1alpha1PodCertificateRequestSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - V1beta1ValidatingAdmissionPolicyStatus.validateJsonElement(jsonObj.get("status")); + V1alpha1PodCertificateRequestStatus.validateJsonElement(jsonObj.get("status")); } } @@ -291,22 +297,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ValidatingAdmissionPolicy.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ValidatingAdmissionPolicy' and its subtypes + if (!V1alpha1PodCertificateRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1PodCertificateRequest' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ValidatingAdmissionPolicy.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1PodCertificateRequest.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ValidatingAdmissionPolicy value) throws IOException { + public void write(JsonWriter out, V1alpha1PodCertificateRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ValidatingAdmissionPolicy read(JsonReader in) throws IOException { + public V1alpha1PodCertificateRequest read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -317,18 +323,18 @@ public V1beta1ValidatingAdmissionPolicy read(JsonReader in) throws IOException { } /** - * Create an instance of V1beta1ValidatingAdmissionPolicy given an JSON string + * Create an instance of V1alpha1PodCertificateRequest given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ValidatingAdmissionPolicy - * @throws IOException if the JSON string is invalid with respect to V1beta1ValidatingAdmissionPolicy + * @return An instance of V1alpha1PodCertificateRequest + * @throws IOException if the JSON string is invalid with respect to V1alpha1PodCertificateRequest */ - public static V1beta1ValidatingAdmissionPolicy fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ValidatingAdmissionPolicy.class); + public static V1alpha1PodCertificateRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1PodCertificateRequest.class); } /** - * Convert an instance of V1beta1ValidatingAdmissionPolicy to an JSON string + * Convert an instance of V1alpha1PodCertificateRequest to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java similarity index 76% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java index 5712459403..d66cad835f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.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.V1alpha3ResourceClaimTemplate; +import io.kubernetes.client.openapi.models.V1alpha1PodCertificateRequest; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,11 +51,11 @@ import io.kubernetes.client.openapi.JSON; /** - * ResourceClaimTemplateList is a collection of claim templates. + * PodCertificateRequestList is a collection of PodCertificateRequest objects */ -@ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { +@ApiModel(description = "PodCertificateRequestList is a collection of PodCertificateRequest objects") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha1PodCertificateRequestList 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 V1alpha3ResourceClaimTemplateList implements io.kubernetes.client.c 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 V1alpha3ResourceClaimTemplateList implements io.kubernetes.client.c @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1alpha3ResourceClaimTemplateList() { + public V1alpha1PodCertificateRequestList() { } - public V1alpha3ResourceClaimTemplateList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1alpha1PodCertificateRequestList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha3ResourceClaimTemplateList items(@jakarta.annotation.Nonnull List items) { + public V1alpha1PodCertificateRequestList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1alpha3ResourceClaimTemplateList addItemsItem(V1alpha3ResourceClaimTemplate itemsItem) { + public V1alpha1PodCertificateRequestList addItemsItem(V1alpha1PodCertificateRequest itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -113,21 +113,21 @@ public V1alpha3ResourceClaimTemplateList addItemsItem(V1alpha3ResourceClaimTempl } /** - * Items is the list of resource claim templates. + * items is a collection of PodCertificateRequest objects * @return items */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Items is the list of resource claim templates.") - public List getItems() { + @ApiModelProperty(required = true, value = "items is a collection of PodCertificateRequest objects") + 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 V1alpha3ResourceClaimTemplateList kind(@jakarta.annotation.Nullable String kind) { + public V1alpha1PodCertificateRequestList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha3ResourceClaimTemplateList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1alpha1PodCertificateRequestList 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; } - V1alpha3ResourceClaimTemplateList v1alpha3ResourceClaimTemplateList = (V1alpha3ResourceClaimTemplateList) o; - return Objects.equals(this.apiVersion, v1alpha3ResourceClaimTemplateList.apiVersion) && - Objects.equals(this.items, v1alpha3ResourceClaimTemplateList.items) && - Objects.equals(this.kind, v1alpha3ResourceClaimTemplateList.kind) && - Objects.equals(this.metadata, v1alpha3ResourceClaimTemplateList.metadata); + V1alpha1PodCertificateRequestList v1alpha1PodCertificateRequestList = (V1alpha1PodCertificateRequestList) o; + return Objects.equals(this.apiVersion, v1alpha1PodCertificateRequestList.apiVersion) && + Objects.equals(this.items, v1alpha1PodCertificateRequestList.items) && + Objects.equals(this.kind, v1alpha1PodCertificateRequestList.kind) && + Objects.equals(this.metadata, v1alpha1PodCertificateRequestList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceClaimTemplateList {\n"); + sb.append("class V1alpha1PodCertificateRequestList {\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"); @@ -232,25 +232,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 V1alpha3ResourceClaimTemplateList + * @throws IOException if the JSON Element is invalid with respect to V1alpha1PodCertificateRequestList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha3ResourceClaimTemplateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3ResourceClaimTemplateList is not found in the empty JSON string", V1alpha3ResourceClaimTemplateList.openapiRequiredFields.toString())); + if (!V1alpha1PodCertificateRequestList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1PodCertificateRequestList is not found in the empty JSON string", V1alpha1PodCertificateRequestList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha3ResourceClaimTemplateList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3ResourceClaimTemplateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha1PodCertificateRequestList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequestList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha3ResourceClaimTemplateList.openapiRequiredFields) { + for (String requiredField : V1alpha1PodCertificateRequestList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -267,7 +267,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++) { - V1alpha3ResourceClaimTemplate.validateJsonElement(jsonArrayitems.get(i)); + V1alpha1PodCertificateRequest.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -282,22 +282,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3ResourceClaimTemplateList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3ResourceClaimTemplateList' and its subtypes + if (!V1alpha1PodCertificateRequestList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1PodCertificateRequestList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourceClaimTemplateList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1PodCertificateRequestList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha3ResourceClaimTemplateList value) throws IOException { + public void write(JsonWriter out, V1alpha1PodCertificateRequestList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha3ResourceClaimTemplateList read(JsonReader in) throws IOException { + public V1alpha1PodCertificateRequestList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -308,18 +308,18 @@ public V1alpha3ResourceClaimTemplateList read(JsonReader in) throws IOException } /** - * Create an instance of V1alpha3ResourceClaimTemplateList given an JSON string + * Create an instance of V1alpha1PodCertificateRequestList given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha3ResourceClaimTemplateList - * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourceClaimTemplateList + * @return An instance of V1alpha1PodCertificateRequestList + * @throws IOException if the JSON string is invalid with respect to V1alpha1PodCertificateRequestList */ - public static V1alpha3ResourceClaimTemplateList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3ResourceClaimTemplateList.class); + public static V1alpha1PodCertificateRequestList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1PodCertificateRequestList.class); } /** - * Convert an instance of V1alpha3ResourceClaimTemplateList to an JSON string + * Convert an instance of V1alpha1PodCertificateRequestList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java new file mode 100644 index 0000000000..9ec3e88558 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java @@ -0,0 +1,494 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha1PodCertificateRequestSpec { + 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_PKIX_PUBLIC_KEY = "pkixPublicKey"; + @SerializedName(SERIALIZED_NAME_PKIX_PUBLIC_KEY) + @jakarta.annotation.Nonnull + private byte[] pkixPublicKey; + + 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_PROOF_OF_POSSESSION = "proofOfPossession"; + @SerializedName(SERIALIZED_NAME_PROOF_OF_POSSESSION) + @jakarta.annotation.Nonnull + private byte[] proofOfPossession; + + 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 V1alpha1PodCertificateRequestSpec() { + } + + public V1alpha1PodCertificateRequestSpec 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 V1alpha1PodCertificateRequestSpec 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 V1alpha1PodCertificateRequestSpec 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 V1alpha1PodCertificateRequestSpec pkixPublicKey(@jakarta.annotation.Nonnull byte[] pkixPublicKey) { + this.pkixPublicKey = pkixPublicKey; + return this; + } + + /** + * pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. The 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 pkixPublicKey + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. The 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[] getPkixPublicKey() { + return pkixPublicKey; + } + + public void setPkixPublicKey(@jakarta.annotation.Nonnull byte[] pkixPublicKey) { + this.pkixPublicKey = pkixPublicKey; + } + + + public V1alpha1PodCertificateRequestSpec 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 V1alpha1PodCertificateRequestSpec 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 V1alpha1PodCertificateRequestSpec proofOfPossession(@jakarta.annotation.Nonnull byte[] proofOfPossession) { + this.proofOfPossession = proofOfPossession; + return this; + } + + /** + * proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). + * @return proofOfPossession + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign).") + public byte[] getProofOfPossession() { + return proofOfPossession; + } + + public void setProofOfPossession(@jakarta.annotation.Nonnull byte[] proofOfPossession) { + this.proofOfPossession = proofOfPossession; + } + + + public V1alpha1PodCertificateRequestSpec 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 V1alpha1PodCertificateRequestSpec 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 V1alpha1PodCertificateRequestSpec 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; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1PodCertificateRequestSpec v1alpha1PodCertificateRequestSpec = (V1alpha1PodCertificateRequestSpec) o; + return Objects.equals(this.maxExpirationSeconds, v1alpha1PodCertificateRequestSpec.maxExpirationSeconds) && + Objects.equals(this.nodeName, v1alpha1PodCertificateRequestSpec.nodeName) && + Objects.equals(this.nodeUID, v1alpha1PodCertificateRequestSpec.nodeUID) && + Arrays.equals(this.pkixPublicKey, v1alpha1PodCertificateRequestSpec.pkixPublicKey) && + Objects.equals(this.podName, v1alpha1PodCertificateRequestSpec.podName) && + Objects.equals(this.podUID, v1alpha1PodCertificateRequestSpec.podUID) && + Arrays.equals(this.proofOfPossession, v1alpha1PodCertificateRequestSpec.proofOfPossession) && + Objects.equals(this.serviceAccountName, v1alpha1PodCertificateRequestSpec.serviceAccountName) && + Objects.equals(this.serviceAccountUID, v1alpha1PodCertificateRequestSpec.serviceAccountUID) && + Objects.equals(this.signerName, v1alpha1PodCertificateRequestSpec.signerName); + } + + @Override + public int hashCode() { + return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, Arrays.hashCode(pkixPublicKey), podName, podUID, Arrays.hashCode(proofOfPossession), serviceAccountName, serviceAccountUID, signerName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1PodCertificateRequestSpec {\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(" pkixPublicKey: ").append(toIndentedString(pkixPublicKey)).append("\n"); + sb.append(" podName: ").append(toIndentedString(podName)).append("\n"); + sb.append(" podUID: ").append(toIndentedString(podUID)).append("\n"); + sb.append(" proofOfPossession: ").append(toIndentedString(proofOfPossession)).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("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("maxExpirationSeconds"); + openapiFields.add("nodeName"); + openapiFields.add("nodeUID"); + openapiFields.add("pkixPublicKey"); + openapiFields.add("podName"); + openapiFields.add("podUID"); + openapiFields.add("proofOfPossession"); + openapiFields.add("serviceAccountName"); + openapiFields.add("serviceAccountUID"); + openapiFields.add("signerName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("nodeName"); + openapiRequiredFields.add("nodeUID"); + openapiRequiredFields.add("pkixPublicKey"); + openapiRequiredFields.add("podName"); + openapiRequiredFields.add("podUID"); + openapiRequiredFields.add("proofOfPossession"); + openapiRequiredFields.add("serviceAccountName"); + openapiRequiredFields.add("serviceAccountUID"); + openapiRequiredFields.add("signerName"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1PodCertificateRequestSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1PodCertificateRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1PodCertificateRequestSpec is not found in the empty JSON string", V1alpha1PodCertificateRequestSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1PodCertificateRequestSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequestSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1PodCertificateRequestSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("nodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); + } + if (!jsonObj.get("nodeUID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("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("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("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("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("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("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 (!V1alpha1PodCertificateRequestSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1PodCertificateRequestSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1PodCertificateRequestSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1PodCertificateRequestSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1PodCertificateRequestSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1PodCertificateRequestSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1PodCertificateRequestSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha1PodCertificateRequestSpec + */ + public static V1alpha1PodCertificateRequestSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1PodCertificateRequestSpec.class); + } + + /** + * Convert an instance of V1alpha1PodCertificateRequestSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java new file mode 100644 index 0000000000..36281d8cd8 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java @@ -0,0 +1,346 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1Condition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1alpha1PodCertificateRequestStatus { + 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 V1alpha1PodCertificateRequestStatus() { + } + + public V1alpha1PodCertificateRequestStatus 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 V1alpha1PodCertificateRequestStatus 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 V1alpha1PodCertificateRequestStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1alpha1PodCertificateRequestStatus 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 V1alpha1PodCertificateRequestStatus 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 V1alpha1PodCertificateRequestStatus 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; + } + V1alpha1PodCertificateRequestStatus v1alpha1PodCertificateRequestStatus = (V1alpha1PodCertificateRequestStatus) o; + return Objects.equals(this.beginRefreshAt, v1alpha1PodCertificateRequestStatus.beginRefreshAt) && + Objects.equals(this.certificateChain, v1alpha1PodCertificateRequestStatus.certificateChain) && + Objects.equals(this.conditions, v1alpha1PodCertificateRequestStatus.conditions) && + Objects.equals(this.notAfter, v1alpha1PodCertificateRequestStatus.notAfter) && + Objects.equals(this.notBefore, v1alpha1PodCertificateRequestStatus.notBefore); + } + + @Override + public int hashCode() { + return Objects.hash(beginRefreshAt, certificateChain, conditions, notAfter, notBefore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1PodCertificateRequestStatus {\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(); + openapiFields.add("beginRefreshAt"); + openapiFields.add("certificateChain"); + openapiFields.add("conditions"); + openapiFields.add("notAfter"); + openapiFields.add("notBefore"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha1PodCertificateRequestStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha1PodCertificateRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1PodCertificateRequestStatus is not found in the empty JSON string", V1alpha1PodCertificateRequestStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha1PodCertificateRequestStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequestStatus` 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("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("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 (!V1alpha1PodCertificateRequestStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha1PodCertificateRequestStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1PodCertificateRequestStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha1PodCertificateRequestStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha1PodCertificateRequestStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha1PodCertificateRequestStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha1PodCertificateRequestStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha1PodCertificateRequestStatus + */ + public static V1alpha1PodCertificateRequestStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha1PodCertificateRequestStatus.class); + } + + /** + * Convert an instance of V1alpha1PodCertificateRequestStatus to an JSON 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 cec5086d9a..b8e9c0be83 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_API_SERVER_I_D = "apiServerID"; @SerializedName(SERIALIZED_NAME_API_SERVER_I_D) 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 83ee89fcce..593796ff2f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersion implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 f9c06ee1a5..ed01e3af39 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) 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 96773daa96..14fb73c866 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java index 63356b0ed8..e5dff4c09c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionMigration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java index 08c7c30b85..99d94ee575 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionMigrationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java index 20137b1d44..87d417a727 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionMigrationSpec { public static final String SERIALIZED_NAME_CONTINUE_TOKEN = "continueToken"; @SerializedName(SERIALIZED_NAME_CONTINUE_TOKEN) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java index 28e03ba4f5..595648085d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionMigrationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) 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 1d70eccd4c..b049d50ed0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_COMMON_ENCODING_VERSION = "commonEncodingVersion"; @SerializedName(SERIALIZED_NAME_COMMON_ENCODING_VERSION) 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 918c2b04e0..f0ba117c04 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1alpha1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java index 7140107231..7f6946907b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java index 70e8d48251..6a96a610d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6ed3b29663..8811e69dfc 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha2LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 80053e2101..93977cf17e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha2LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 6a8f4c92c3..01cdec6af6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha2LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java deleted file mode 100644 index 9ca14cabf0..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java +++ /dev/null @@ -1,449 +0,0 @@ -/* -Copyright 2025 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.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.kubernetes.client.openapi.models.V1NodeSelector; -import io.kubernetes.client.openapi.models.V1alpha3DeviceAttribute; -import io.kubernetes.client.openapi.models.V1alpha3DeviceCounterConsumption; -import io.kubernetes.client.openapi.models.V1alpha3DeviceTaint; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.Gson; -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; - -/** - * BasicDevice defines one device instance. - */ -@ApiModel(description = "BasicDevice defines one device instance.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1alpha3BasicDevice { - public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; - @SerializedName(SERIALIZED_NAME_ALL_NODES) - @jakarta.annotation.Nullable - private Boolean allNodes; - - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - @jakarta.annotation.Nullable - private Map attributes = new HashMap<>(); - - public static final String SERIALIZED_NAME_CAPACITY = "capacity"; - @SerializedName(SERIALIZED_NAME_CAPACITY) - @jakarta.annotation.Nullable - private Map capacity = new HashMap<>(); - - public static final String SERIALIZED_NAME_CONSUMES_COUNTERS = "consumesCounters"; - @SerializedName(SERIALIZED_NAME_CONSUMES_COUNTERS) - @jakarta.annotation.Nullable - private List consumesCounters = new ArrayList<>(); - - public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; - @SerializedName(SERIALIZED_NAME_NODE_NAME) - @jakarta.annotation.Nullable - private String nodeName; - - public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; - @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) - @jakarta.annotation.Nullable - private V1NodeSelector nodeSelector; - - public static final String SERIALIZED_NAME_TAINTS = "taints"; - @SerializedName(SERIALIZED_NAME_TAINTS) - @jakarta.annotation.Nullable - private List taints = new ArrayList<>(); - - public V1alpha3BasicDevice() { - } - - public V1alpha3BasicDevice allNodes(@jakarta.annotation.Nullable Boolean allNodes) { - this.allNodes = allNodes; - return this; - } - - /** - * AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. - * @return allNodes - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.") - public Boolean getAllNodes() { - return allNodes; - } - - public void setAllNodes(@jakarta.annotation.Nullable Boolean allNodes) { - this.allNodes = allNodes; - } - - - public V1alpha3BasicDevice attributes(@jakarta.annotation.Nullable Map attributes) { - this.attributes = attributes; - return this; - } - - public V1alpha3BasicDevice putAttributesItem(String key, V1alpha3DeviceAttribute attributesItem) { - if (this.attributes == null) { - this.attributes = new HashMap<>(); - } - this.attributes.put(key, attributesItem); - return this; - } - - /** - * Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. - * @return attributes - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.") - public Map getAttributes() { - return attributes; - } - - public void setAttributes(@jakarta.annotation.Nullable Map attributes) { - this.attributes = attributes; - } - - - public V1alpha3BasicDevice capacity(@jakarta.annotation.Nullable Map capacity) { - this.capacity = capacity; - return this; - } - - public V1alpha3BasicDevice putCapacityItem(String key, Quantity capacityItem) { - if (this.capacity == null) { - this.capacity = new HashMap<>(); - } - this.capacity.put(key, capacityItem); - return this; - } - - /** - * Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. - * @return capacity - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.") - public Map getCapacity() { - return capacity; - } - - public void setCapacity(@jakarta.annotation.Nullable Map capacity) { - this.capacity = capacity; - } - - - public V1alpha3BasicDevice consumesCounters(@jakarta.annotation.Nullable List consumesCounters) { - this.consumesCounters = consumesCounters; - return this; - } - - public V1alpha3BasicDevice addConsumesCountersItem(V1alpha3DeviceCounterConsumption consumesCountersItem) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList<>(); - } - this.consumesCounters.add(consumesCountersItem); - return this; - } - - /** - * ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). - * @return consumesCounters - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).") - public List getConsumesCounters() { - return consumesCounters; - } - - public void setConsumesCounters(@jakarta.annotation.Nullable List consumesCounters) { - this.consumesCounters = consumesCounters; - } - - - public V1alpha3BasicDevice nodeName(@jakarta.annotation.Nullable String nodeName) { - this.nodeName = nodeName; - return this; - } - - /** - * NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. - * @return nodeName - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.") - public String getNodeName() { - return nodeName; - } - - public void setNodeName(@jakarta.annotation.Nullable String nodeName) { - this.nodeName = nodeName; - } - - - public V1alpha3BasicDevice nodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { - this.nodeSelector = nodeSelector; - return this; - } - - /** - * Get nodeSelector - * @return nodeSelector - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") - public V1NodeSelector getNodeSelector() { - return nodeSelector; - } - - public void setNodeSelector(@jakarta.annotation.Nullable V1NodeSelector nodeSelector) { - this.nodeSelector = nodeSelector; - } - - - public V1alpha3BasicDevice taints(@jakarta.annotation.Nullable List taints) { - this.taints = taints; - return this; - } - - public V1alpha3BasicDevice addTaintsItem(V1alpha3DeviceTaint taintsItem) { - if (this.taints == null) { - this.taints = new ArrayList<>(); - } - this.taints.add(taintsItem); - return this; - } - - /** - * If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. - * @return taints - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") - public List getTaints() { - return taints; - } - - public void setTaints(@jakarta.annotation.Nullable List taints) { - this.taints = taints; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha3BasicDevice v1alpha3BasicDevice = (V1alpha3BasicDevice) o; - return Objects.equals(this.allNodes, v1alpha3BasicDevice.allNodes) && - Objects.equals(this.attributes, v1alpha3BasicDevice.attributes) && - Objects.equals(this.capacity, v1alpha3BasicDevice.capacity) && - Objects.equals(this.consumesCounters, v1alpha3BasicDevice.consumesCounters) && - Objects.equals(this.nodeName, v1alpha3BasicDevice.nodeName) && - Objects.equals(this.nodeSelector, v1alpha3BasicDevice.nodeSelector) && - Objects.equals(this.taints, v1alpha3BasicDevice.taints); - } - - @Override - public int hashCode() { - return Objects.hash(allNodes, attributes, capacity, consumesCounters, nodeName, nodeSelector, taints); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3BasicDevice {\n"); - sb.append(" allNodes: ").append(toIndentedString(allNodes)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); - sb.append(" consumesCounters: ").append(toIndentedString(consumesCounters)).append("\n"); - sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); - sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); - sb.append(" taints: ").append(toIndentedString(taints)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allNodes"); - openapiFields.add("attributes"); - openapiFields.add("capacity"); - openapiFields.add("consumesCounters"); - openapiFields.add("nodeName"); - openapiFields.add("nodeSelector"); - openapiFields.add("taints"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha3BasicDevice - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1alpha3BasicDevice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3BasicDevice is not found in the empty JSON string", V1alpha3BasicDevice.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1alpha3BasicDevice.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3BasicDevice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("consumesCounters") != null && !jsonObj.get("consumesCounters").isJsonNull()) { - JsonArray jsonArrayconsumesCounters = jsonObj.getAsJsonArray("consumesCounters"); - if (jsonArrayconsumesCounters != null) { - // ensure the json data is an array - if (!jsonObj.get("consumesCounters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `consumesCounters` to be an array in the JSON string but got `%s`", jsonObj.get("consumesCounters").toString())); - } - - // validate the optional field `consumesCounters` (array) - for (int i = 0; i < jsonArrayconsumesCounters.size(); i++) { - V1alpha3DeviceCounterConsumption.validateJsonElement(jsonArrayconsumesCounters.get(i)); - }; - } - } - if ((jsonObj.get("nodeName") != null && !jsonObj.get("nodeName").isJsonNull()) && !jsonObj.get("nodeName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); - } - // validate the optional field `nodeSelector` - if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { - V1NodeSelector.validateJsonElement(jsonObj.get("nodeSelector")); - } - if (jsonObj.get("taints") != null && !jsonObj.get("taints").isJsonNull()) { - JsonArray jsonArraytaints = jsonObj.getAsJsonArray("taints"); - if (jsonArraytaints != null) { - // ensure the json data is an array - if (!jsonObj.get("taints").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `taints` to be an array in the JSON string but got `%s`", jsonObj.get("taints").toString())); - } - - // validate the optional field `taints` (array) - for (int i = 0; i < jsonArraytaints.size(); i++) { - V1alpha3DeviceTaint.validateJsonElement(jsonArraytaints.get(i)); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha3BasicDevice.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha3BasicDevice' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3BasicDevice.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1alpha3BasicDevice value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1alpha3BasicDevice read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1alpha3BasicDevice given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1alpha3BasicDevice - * @throws IOException if the JSON string is invalid with respect to V1alpha3BasicDevice - */ - public static V1alpha3BasicDevice fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha3BasicDevice.class); - } - - /** - * Convert an instance of V1alpha3BasicDevice to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java index b6ad292255..7f9feaf22c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java index b27e8e4122..f2ba810979 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java @@ -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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) 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 3704dc0d29..85e8c45dd8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 9be1ff7f5c..66587e7c18 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 @@ -52,7 +52,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceTaintRule implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 ad1e21d4e8..e5382e9522 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceTaintRuleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) 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 dab5faa511..4be0d58c30 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1alpha3DeviceTaintRuleSpec { public static final String SERIALIZED_NAME_DEVICE_SELECTOR = "deviceSelector"; @SerializedName(SERIALIZED_NAME_DEVICE_SELECTOR) 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 6bcbec20b0..d0e4a192de 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 @@ -53,7 +53,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1beta1AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java index 02c673e863..2617a17410 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 @@ -51,10 +51,10 @@ import io.kubernetes.client.openapi.JSON; /** - * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. + * 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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -86,6 +86,11 @@ public class V1beta1AllocatedDeviceStatus { @jakarta.annotation.Nonnull private String pool; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + @jakarta.annotation.Nullable + private String shareID; + public V1beta1AllocatedDeviceStatus() { } @@ -217,6 +222,26 @@ public void setPool(@jakarta.annotation.Nonnull String pool) { } + public V1beta1AllocatedDeviceStatus shareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + return this; + } + + /** + * ShareID uniquely identifies an individual allocation share of the device. + * @return shareID + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ShareID uniquely identifies an individual allocation share of the device.") + public String getShareID() { + return shareID; + } + + public void setShareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + } + + @Override public boolean equals(Object o) { @@ -232,12 +257,13 @@ public boolean equals(Object o) { Objects.equals(this.device, v1beta1AllocatedDeviceStatus.device) && Objects.equals(this.driver, v1beta1AllocatedDeviceStatus.driver) && Objects.equals(this.networkData, v1beta1AllocatedDeviceStatus.networkData) && - Objects.equals(this.pool, v1beta1AllocatedDeviceStatus.pool); + Objects.equals(this.pool, v1beta1AllocatedDeviceStatus.pool) && + Objects.equals(this.shareID, v1beta1AllocatedDeviceStatus.shareID); } @Override public int hashCode() { - return Objects.hash(conditions, data, device, driver, networkData, pool); + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); } @Override @@ -250,6 +276,7 @@ public String toString() { sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" networkData: ").append(toIndentedString(networkData)).append("\n"); sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); + sb.append(" shareID: ").append(toIndentedString(shareID)).append("\n"); sb.append("}"); return sb.toString(); } @@ -278,6 +305,7 @@ private String toIndentedString(Object o) { openapiFields.add("driver"); openapiFields.add("networkData"); openapiFields.add("pool"); + openapiFields.add("shareID"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -341,6 +369,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("pool").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } + if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 860d1d10da..0b2df11c00 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 @@ -23,6 +23,7 @@ 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; @@ -52,8 +53,13 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1AllocationResult { + public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) + @jakarta.annotation.Nullable + private OffsetDateTime allocationTimestamp; + public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) @jakarta.annotation.Nullable @@ -67,6 +73,26 @@ public class V1beta1AllocationResult { public V1beta1AllocationResult() { } + public V1beta1AllocationResult allocationTimestamp(@jakarta.annotation.Nullable OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + * @return allocationTimestamp + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.") + public OffsetDateTime getAllocationTimestamp() { + return allocationTimestamp; + } + + public void setAllocationTimestamp(@jakarta.annotation.Nullable OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + } + + public V1beta1AllocationResult devices(@jakarta.annotation.Nullable V1beta1DeviceAllocationResult devices) { this.devices = devices; return this; @@ -117,19 +143,21 @@ public boolean equals(Object o) { return false; } V1beta1AllocationResult v1beta1AllocationResult = (V1beta1AllocationResult) o; - return Objects.equals(this.devices, v1beta1AllocationResult.devices) && + return Objects.equals(this.allocationTimestamp, v1beta1AllocationResult.allocationTimestamp) && + Objects.equals(this.devices, v1beta1AllocationResult.devices) && Objects.equals(this.nodeSelector, v1beta1AllocationResult.nodeSelector); } @Override public int hashCode() { - return Objects.hash(devices, nodeSelector); + return Objects.hash(allocationTimestamp, devices, nodeSelector); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1AllocationResult {\n"); + sb.append(" allocationTimestamp: ").append(toIndentedString(allocationTimestamp)).append("\n"); sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); sb.append("}"); @@ -154,6 +182,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("allocationTimestamp"); openapiFields.add("devices"); openapiFields.add("nodeSelector"); 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 new file mode 100644 index 0000000000..4c31d45d9e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java @@ -0,0 +1,208 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ApplyConfiguration defines the desired configuration values of an object. + */ +@ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1ApplyConfiguration { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nullable + private String expression; + + public V1beta1ApplyConfiguration() { + } + + public V1beta1ApplyConfiguration expression(@jakarta.annotation.Nullable String expression) { + this.expression = expression; + return this; + } + + /** + * expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. + * @return expression + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.") + public String getExpression() { + return expression; + } + + public void setExpression(@jakarta.annotation.Nullable String expression) { + this.expression = expression; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1ApplyConfiguration v1beta1ApplyConfiguration = (V1beta1ApplyConfiguration) o; + return Objects.equals(this.expression, v1beta1ApplyConfiguration.expression); + } + + @Override + public int hashCode() { + return Objects.hash(expression); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1ApplyConfiguration {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("expression"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1ApplyConfiguration + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1ApplyConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ApplyConfiguration is not found in the empty JSON string", V1beta1ApplyConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1ApplyConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ApplyConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1ApplyConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1ApplyConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ApplyConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1ApplyConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1ApplyConfiguration read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1ApplyConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1ApplyConfiguration + * @throws IOException if the JSON string is invalid with respect to V1beta1ApplyConfiguration + */ + public static V1beta1ApplyConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1ApplyConfiguration.class); + } + + /** + * Convert an instance of V1beta1ApplyConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java deleted file mode 100644 index b9242743b2..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java +++ /dev/null @@ -1,248 +0,0 @@ -/* -Copyright 2025 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.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; - -/** - * AuditAnnotation describes how to produce an audit annotation for an API request. - */ -@ApiModel(description = "AuditAnnotation describes how to produce an audit annotation for an API request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1AuditAnnotation { - public static final String SERIALIZED_NAME_KEY = "key"; - @SerializedName(SERIALIZED_NAME_KEY) - @jakarta.annotation.Nonnull - private String key; - - public static final String SERIALIZED_NAME_VALUE_EXPRESSION = "valueExpression"; - @SerializedName(SERIALIZED_NAME_VALUE_EXPRESSION) - @jakarta.annotation.Nonnull - private String valueExpression; - - public V1beta1AuditAnnotation() { - } - - public V1beta1AuditAnnotation key(@jakarta.annotation.Nonnull String key) { - this.key = key; - return this; - } - - /** - * key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. - * @return key - */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required.") - public String getKey() { - return key; - } - - public void setKey(@jakarta.annotation.Nonnull String key) { - this.key = key; - } - - - public V1beta1AuditAnnotation valueExpression(@jakarta.annotation.Nonnull String valueExpression) { - this.valueExpression = valueExpression; - return this; - } - - /** - * valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. - * @return valueExpression - */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required.") - public String getValueExpression() { - return valueExpression; - } - - public void setValueExpression(@jakarta.annotation.Nonnull String valueExpression) { - this.valueExpression = valueExpression; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1AuditAnnotation v1beta1AuditAnnotation = (V1beta1AuditAnnotation) o; - return Objects.equals(this.key, v1beta1AuditAnnotation.key) && - Objects.equals(this.valueExpression, v1beta1AuditAnnotation.valueExpression); - } - - @Override - public int hashCode() { - return Objects.hash(key, valueExpression); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1AuditAnnotation {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); - sb.append(" valueExpression: ").append(toIndentedString(valueExpression)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("valueExpression"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); - openapiRequiredFields.add("valueExpression"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1AuditAnnotation - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1beta1AuditAnnotation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1AuditAnnotation is not found in the empty JSON string", V1beta1AuditAnnotation.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1beta1AuditAnnotation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1AuditAnnotation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1AuditAnnotation.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if (!jsonObj.get("valueExpression").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `valueExpression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("valueExpression").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1AuditAnnotation.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1AuditAnnotation' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1AuditAnnotation.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1beta1AuditAnnotation value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1beta1AuditAnnotation read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1beta1AuditAnnotation given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1beta1AuditAnnotation - * @throws IOException if the JSON string is invalid with respect to V1beta1AuditAnnotation - */ - public static V1beta1AuditAnnotation fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1AuditAnnotation.class); - } - - /** - * Convert an instance of V1beta1AuditAnnotation to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} 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 a6e32c4488..dd76da741d 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 @@ -59,18 +59,38 @@ * BasicDevice defines one device instance. */ @ApiModel(description = "BasicDevice defines one device instance.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1BasicDevice { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @jakarta.annotation.Nullable private Boolean allNodes; + public static final String SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS = "allowMultipleAllocations"; + @SerializedName(SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS) + @jakarta.annotation.Nullable + private Boolean allowMultipleAllocations; + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @jakarta.annotation.Nullable private Map attributes = new HashMap<>(); + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingFailureConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BINDS_TO_NODE = "bindsToNode"; + @SerializedName(SERIALIZED_NAME_BINDS_TO_NODE) + @jakarta.annotation.Nullable + private Boolean bindsToNode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) @jakarta.annotation.Nullable @@ -119,6 +139,26 @@ public void setAllNodes(@jakarta.annotation.Nullable Boolean allNodes) { } + public V1beta1BasicDevice allowMultipleAllocations(@jakarta.annotation.Nullable Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return this; + } + + /** + * 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. + * @return allowMultipleAllocations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Boolean getAllowMultipleAllocations() { + return allowMultipleAllocations; + } + + public void setAllowMultipleAllocations(@jakarta.annotation.Nullable Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + } + + public V1beta1BasicDevice attributes(@jakarta.annotation.Nullable Map attributes) { this.attributes = attributes; return this; @@ -147,6 +187,82 @@ public void setAttributes(@jakarta.annotation.Nullable Map bindingConditions) { + this.bindingConditions = bindingConditions; + return this; + } + + public V1beta1BasicDevice addBindingConditionsItem(String bindingConditionsItem) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList<>(); + } + this.bindingConditions.add(bindingConditionsItem); + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingConditions() { + return bindingConditions; + } + + public void setBindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1beta1BasicDevice bindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + return this; + } + + public V1beta1BasicDevice addBindingFailureConditionsItem(String bindingFailureConditionsItem) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList<>(); + } + this.bindingFailureConditions.add(bindingFailureConditionsItem); + return this; + } + + /** + * 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. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingFailureConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingFailureConditions() { + return bindingFailureConditions; + } + + public void setBindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1beta1BasicDevice bindsToNode(@jakarta.annotation.Nullable Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindsToNode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public Boolean getBindsToNode() { + return bindsToNode; + } + + public void setBindsToNode(@jakarta.annotation.Nullable Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + } + + public V1beta1BasicDevice capacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; return this; @@ -282,7 +398,11 @@ public boolean equals(Object o) { } V1beta1BasicDevice v1beta1BasicDevice = (V1beta1BasicDevice) o; return Objects.equals(this.allNodes, v1beta1BasicDevice.allNodes) && + Objects.equals(this.allowMultipleAllocations, v1beta1BasicDevice.allowMultipleAllocations) && Objects.equals(this.attributes, v1beta1BasicDevice.attributes) && + Objects.equals(this.bindingConditions, v1beta1BasicDevice.bindingConditions) && + Objects.equals(this.bindingFailureConditions, v1beta1BasicDevice.bindingFailureConditions) && + Objects.equals(this.bindsToNode, v1beta1BasicDevice.bindsToNode) && Objects.equals(this.capacity, v1beta1BasicDevice.capacity) && Objects.equals(this.consumesCounters, v1beta1BasicDevice.consumesCounters) && Objects.equals(this.nodeName, v1beta1BasicDevice.nodeName) && @@ -292,7 +412,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allNodes, attributes, capacity, consumesCounters, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeName, nodeSelector, taints); } @Override @@ -300,7 +420,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1BasicDevice {\n"); sb.append(" allNodes: ").append(toIndentedString(allNodes)).append("\n"); + sb.append(" allowMultipleAllocations: ").append(toIndentedString(allowMultipleAllocations)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" bindingConditions: ").append(toIndentedString(bindingConditions)).append("\n"); + sb.append(" bindingFailureConditions: ").append(toIndentedString(bindingFailureConditions)).append("\n"); + 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(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); @@ -329,7 +453,11 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("allNodes"); + openapiFields.add("allowMultipleAllocations"); openapiFields.add("attributes"); + openapiFields.add("bindingConditions"); + openapiFields.add("bindingFailureConditions"); + openapiFields.add("bindsToNode"); openapiFields.add("capacity"); openapiFields.add("consumesCounters"); openapiFields.add("nodeName"); @@ -361,6 +489,14 @@ 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("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + } if (jsonObj.get("consumesCounters") != null && !jsonObj.get("consumesCounters").isJsonNull()) { JsonArray jsonArrayconsumesCounters = jsonObj.getAsJsonArray("consumesCounters"); if (jsonArrayconsumesCounters != null) { 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 537c0c923c..ff7ffcf0c8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + * 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) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") + @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) 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 new file mode 100644 index 0000000000..1a3c4d0e8d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java @@ -0,0 +1,284 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.openapi.models.V1beta1CapacityRequestPolicyRange; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1CapacityRequestPolicy { + public static final String SERIALIZED_NAME_DEFAULT = "default"; + @SerializedName(SERIALIZED_NAME_DEFAULT) + @jakarta.annotation.Nullable + private Quantity _default; + + public static final String SERIALIZED_NAME_VALID_RANGE = "validRange"; + @SerializedName(SERIALIZED_NAME_VALID_RANGE) + @jakarta.annotation.Nullable + private V1beta1CapacityRequestPolicyRange validRange; + + public static final String SERIALIZED_NAME_VALID_VALUES = "validValues"; + @SerializedName(SERIALIZED_NAME_VALID_VALUES) + @jakarta.annotation.Nullable + private List validValues = new ArrayList<>(); + + public V1beta1CapacityRequestPolicy() { + } + + public V1beta1CapacityRequestPolicy _default(@jakarta.annotation.Nullable Quantity _default) { + this._default = _default; + 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 _default + */ + @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 getDefault() { + return _default; + } + + public void setDefault(@jakarta.annotation.Nullable Quantity _default) { + this._default = _default; + } + + + public V1beta1CapacityRequestPolicy validRange(@jakarta.annotation.Nullable V1beta1CapacityRequestPolicyRange validRange) { + this.validRange = validRange; + return this; + } + + /** + * Get validRange + * @return validRange + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CapacityRequestPolicyRange getValidRange() { + return validRange; + } + + public void setValidRange(@jakarta.annotation.Nullable V1beta1CapacityRequestPolicyRange validRange) { + this.validRange = validRange; + } + + + public V1beta1CapacityRequestPolicy validValues(@jakarta.annotation.Nullable List validValues) { + this.validValues = validValues; + return this; + } + + public V1beta1CapacityRequestPolicy addValidValuesItem(Quantity validValuesItem) { + if (this.validValues == null) { + this.validValues = new ArrayList<>(); + } + this.validValues.add(validValuesItem); + return this; + } + + /** + * 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. + * @return validValues + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public List getValidValues() { + return validValues; + } + + public void setValidValues(@jakarta.annotation.Nullable List validValues) { + this.validValues = validValues; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1CapacityRequestPolicy v1beta1CapacityRequestPolicy = (V1beta1CapacityRequestPolicy) o; + return Objects.equals(this._default, v1beta1CapacityRequestPolicy._default) && + Objects.equals(this.validRange, v1beta1CapacityRequestPolicy.validRange) && + Objects.equals(this.validValues, v1beta1CapacityRequestPolicy.validValues); + } + + @Override + public int hashCode() { + return Objects.hash(_default, validRange, validValues); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1CapacityRequestPolicy {\n"); + sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); + sb.append(" validRange: ").append(toIndentedString(validRange)).append("\n"); + sb.append(" validValues: ").append(toIndentedString(validValues)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("default"); + openapiFields.add("validRange"); + openapiFields.add("validValues"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1CapacityRequestPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1CapacityRequestPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1CapacityRequestPolicy is not found in the empty JSON string", V1beta1CapacityRequestPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1CapacityRequestPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1CapacityRequestPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("default") != null && !jsonObj.get("default").isJsonNull()) && !jsonObj.get("default").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `default` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default").toString())); + } + // validate the optional field `validRange` + if (jsonObj.get("validRange") != null && !jsonObj.get("validRange").isJsonNull()) { + V1beta1CapacityRequestPolicyRange.validateJsonElement(jsonObj.get("validRange")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("validValues") != null && !jsonObj.get("validValues").isJsonNull() && !jsonObj.get("validValues").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `validValues` to be an array in the JSON string but got `%s`", jsonObj.get("validValues").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1CapacityRequestPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1CapacityRequestPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1CapacityRequestPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1CapacityRequestPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1CapacityRequestPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1CapacityRequestPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1CapacityRequestPolicy + * @throws IOException if the JSON string is invalid with respect to V1beta1CapacityRequestPolicy + */ + public static V1beta1CapacityRequestPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1CapacityRequestPolicy.class); + } + + /** + * Convert an instance of V1beta1CapacityRequestPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 new file mode 100644 index 0000000000..ce2c022afa --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java @@ -0,0 +1,279 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * 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. + */ +@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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1CapacityRequestPolicyRange { + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + @jakarta.annotation.Nullable + private Quantity max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + @jakarta.annotation.Nonnull + private Quantity min; + + public static final String SERIALIZED_NAME_STEP = "step"; + @SerializedName(SERIALIZED_NAME_STEP) + @jakarta.annotation.Nullable + private Quantity step; + + public V1beta1CapacityRequestPolicyRange() { + } + + public V1beta1CapacityRequestPolicyRange max(@jakarta.annotation.Nullable Quantity max) { + this.max = max; + 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 max + */ + @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 getMax() { + return max; + } + + public void setMax(@jakarta.annotation.Nullable Quantity max) { + this.max = max; + } + + + public V1beta1CapacityRequestPolicyRange min(@jakarta.annotation.Nonnull Quantity min) { + this.min = min; + 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 min + */ + @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 getMin() { + return min; + } + + public void setMin(@jakarta.annotation.Nonnull Quantity min) { + this.min = min; + } + + + public V1beta1CapacityRequestPolicyRange step(@jakarta.annotation.Nullable Quantity step) { + this.step = step; + 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 step + */ + @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 getStep() { + return step; + } + + public void setStep(@jakarta.annotation.Nullable Quantity step) { + this.step = step; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1CapacityRequestPolicyRange v1beta1CapacityRequestPolicyRange = (V1beta1CapacityRequestPolicyRange) o; + return Objects.equals(this.max, v1beta1CapacityRequestPolicyRange.max) && + Objects.equals(this.min, v1beta1CapacityRequestPolicyRange.min) && + Objects.equals(this.step, v1beta1CapacityRequestPolicyRange.step); + } + + @Override + public int hashCode() { + return Objects.hash(max, min, step); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1CapacityRequestPolicyRange {\n"); + sb.append(" max: ").append(toIndentedString(max)).append("\n"); + sb.append(" min: ").append(toIndentedString(min)).append("\n"); + sb.append(" step: ").append(toIndentedString(step)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("max"); + openapiFields.add("min"); + openapiFields.add("step"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("min"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1CapacityRequestPolicyRange + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1CapacityRequestPolicyRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1CapacityRequestPolicyRange is not found in the empty JSON string", V1beta1CapacityRequestPolicyRange.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1CapacityRequestPolicyRange.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1CapacityRequestPolicyRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1CapacityRequestPolicyRange.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("max") != null && !jsonObj.get("max").isJsonNull()) && !jsonObj.get("max").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `max` to be a primitive type in the JSON string but got `%s`", jsonObj.get("max").toString())); + } + if (!jsonObj.get("min").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `min` to be a primitive type in the JSON string but got `%s`", jsonObj.get("min").toString())); + } + if ((jsonObj.get("step") != null && !jsonObj.get("step").isJsonNull()) && !jsonObj.get("step").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `step` to be a primitive type in the JSON string but got `%s`", jsonObj.get("step").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1CapacityRequestPolicyRange.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1CapacityRequestPolicyRange' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1CapacityRequestPolicyRange.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1CapacityRequestPolicyRange value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1CapacityRequestPolicyRange read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1CapacityRequestPolicyRange given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1CapacityRequestPolicyRange + * @throws IOException if the JSON string is invalid with respect to V1beta1CapacityRequestPolicyRange + */ + public static V1beta1CapacityRequestPolicyRange fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1CapacityRequestPolicyRange.class); + } + + /** + * Convert an instance of V1beta1CapacityRequestPolicyRange to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 new file mode 100644 index 0000000000..dc49c950a5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java @@ -0,0 +1,216 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1CapacityRequirements { + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + @jakarta.annotation.Nullable + private Map requests = new HashMap<>(); + + public V1beta1CapacityRequirements() { + } + + public V1beta1CapacityRequirements requests(@jakarta.annotation.Nullable Map requests) { + this.requests = requests; + return this; + } + + public V1beta1CapacityRequirements putRequestsItem(String key, Quantity requestsItem) { + if (this.requests == null) { + this.requests = new HashMap<>(); + } + this.requests.put(key, requestsItem); + return this; + } + + /** + * 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[<domain>].<name>.compareTo(quantity(<request 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. + * @return requests + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Map getRequests() { + return requests; + } + + public void setRequests(@jakarta.annotation.Nullable Map requests) { + this.requests = requests; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1CapacityRequirements v1beta1CapacityRequirements = (V1beta1CapacityRequirements) o; + return Objects.equals(this.requests, v1beta1CapacityRequirements.requests); + } + + @Override + public int hashCode() { + return Objects.hash(requests); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1CapacityRequirements {\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("requests"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1CapacityRequirements + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1CapacityRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1CapacityRequirements is not found in the empty JSON string", V1beta1CapacityRequirements.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1CapacityRequirements.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1CapacityRequirements` 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 (!V1beta1CapacityRequirements.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1CapacityRequirements' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1CapacityRequirements.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1CapacityRequirements value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1CapacityRequirements read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1CapacityRequirements given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1CapacityRequirements + * @throws IOException if the JSON string is invalid with respect to V1beta1CapacityRequirements + */ + public static V1beta1CapacityRequirements fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1CapacityRequirements.class); + } + + /** + * Convert an instance of V1beta1CapacityRequirements to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 aa321bec32..bcb6e4ea70 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 @@ -52,7 +52,7 @@ * ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. */ @ApiModel(description = "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 625b2fb0eb..09fe911013 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 5e5c67d732..04aa586aac 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1beta1Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java index 3d3d93fa3e..fb60bad28a 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 4c1ad6dd1b..7e30bb51bc 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 ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. */ @ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d10be17637..6f541c838b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 19a75e0e59..80b14aca20 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 cb53b70a3c..14aef4e0a6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 9c0e7f1644..bbef5e14b0 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 @@ -50,7 +50,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c2e226dc7a..9d085701db 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 @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.openapi.models.V1beta1CapacityRequestPolicy; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,8 +52,13 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1DeviceCapacity { + public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; + @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) + @jakarta.annotation.Nullable + private V1beta1CapacityRequestPolicy requestPolicy; + public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @jakarta.annotation.Nonnull @@ -61,6 +67,26 @@ public class V1beta1DeviceCapacity { public V1beta1DeviceCapacity() { } + public V1beta1DeviceCapacity requestPolicy(@jakarta.annotation.Nullable V1beta1CapacityRequestPolicy requestPolicy) { + this.requestPolicy = requestPolicy; + return this; + } + + /** + * Get requestPolicy + * @return requestPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CapacityRequestPolicy getRequestPolicy() { + return requestPolicy; + } + + public void setRequestPolicy(@jakarta.annotation.Nullable V1beta1CapacityRequestPolicy requestPolicy) { + this.requestPolicy = requestPolicy; + } + + public V1beta1DeviceCapacity value(@jakarta.annotation.Nonnull Quantity value) { this.value = value; return this; @@ -91,18 +117,20 @@ public boolean equals(Object o) { return false; } V1beta1DeviceCapacity v1beta1DeviceCapacity = (V1beta1DeviceCapacity) o; - return Objects.equals(this.value, v1beta1DeviceCapacity.value); + return Objects.equals(this.requestPolicy, v1beta1DeviceCapacity.requestPolicy) && + Objects.equals(this.value, v1beta1DeviceCapacity.value); } @Override public int hashCode() { - return Objects.hash(value); + return Objects.hash(requestPolicy, value); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DeviceCapacity {\n"); + sb.append(" requestPolicy: ").append(toIndentedString(requestPolicy)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); @@ -126,6 +154,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("requestPolicy"); openapiFields.add("value"); // a set of required properties/fields (JSON key names) @@ -161,6 +190,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `requestPolicy` + if (jsonObj.get("requestPolicy") != null && !jsonObj.get("requestPolicy").isJsonNull()) { + V1beta1CapacityRequestPolicy.validateJsonElement(jsonObj.get("requestPolicy")); + } if (!jsonObj.get("value").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } 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 c55bfaa5a7..52b7d15180 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 e60e0eccf3..19767b6fbd 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 de729a584d..fa7bc49e06 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1DeviceClass 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/V1beta1DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java index c679323a69..e22004b829 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 8c90663ed4..617fb603a0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 80c803c3a8..239a2777a9 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,13 +54,18 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @jakarta.annotation.Nullable private List config = new ArrayList<>(); + public static final String SERIALIZED_NAME_EXTENDED_RESOURCE_NAME = "extendedResourceName"; + @SerializedName(SERIALIZED_NAME_EXTENDED_RESOURCE_NAME) + @jakarta.annotation.Nullable + private String extendedResourceName; + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) @jakarta.annotation.Nullable @@ -97,6 +102,26 @@ public void setConfig(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; return this; @@ -136,12 +161,13 @@ public boolean equals(Object o) { } V1beta1DeviceClassSpec v1beta1DeviceClassSpec = (V1beta1DeviceClassSpec) o; return Objects.equals(this.config, v1beta1DeviceClassSpec.config) && + Objects.equals(this.extendedResourceName, v1beta1DeviceClassSpec.extendedResourceName) && Objects.equals(this.selectors, v1beta1DeviceClassSpec.selectors); } @Override public int hashCode() { - return Objects.hash(config, selectors); + return Objects.hash(config, extendedResourceName, selectors); } @Override @@ -149,6 +175,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DeviceClassSpec {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" extendedResourceName: ").append(toIndentedString(extendedResourceName)).append("\n"); sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); sb.append("}"); return sb.toString(); @@ -173,6 +200,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("config"); + openapiFields.add("extendedResourceName"); openapiFields.add("selectors"); // a set of required properties/fields (JSON key names) @@ -214,6 +242,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + if ((jsonObj.get("extendedResourceName") != null && !jsonObj.get("extendedResourceName").isJsonNull()) && !jsonObj.get("extendedResourceName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `extendedResourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("extendedResourceName").toString())); + } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { 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 4557130472..b4c93470e3 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,8 +52,13 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1DeviceConstraint { + public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; + @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) + @jakarta.annotation.Nullable + private String distinctAttribute; + public static final String SERIALIZED_NAME_MATCH_ATTRIBUTE = "matchAttribute"; @SerializedName(SERIALIZED_NAME_MATCH_ATTRIBUTE) @jakarta.annotation.Nullable @@ -67,6 +72,26 @@ public class V1beta1DeviceConstraint { public V1beta1DeviceConstraint() { } + public V1beta1DeviceConstraint distinctAttribute(@jakarta.annotation.Nullable String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return this; + } + + /** + * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. 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. + * @return distinctAttribute + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. 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.") + public String getDistinctAttribute() { + return distinctAttribute; + } + + public void setDistinctAttribute(@jakarta.annotation.Nullable String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + } + + public V1beta1DeviceConstraint matchAttribute(@jakarta.annotation.Nullable String matchAttribute) { this.matchAttribute = matchAttribute; return this; @@ -125,19 +150,21 @@ public boolean equals(Object o) { return false; } V1beta1DeviceConstraint v1beta1DeviceConstraint = (V1beta1DeviceConstraint) o; - return Objects.equals(this.matchAttribute, v1beta1DeviceConstraint.matchAttribute) && + return Objects.equals(this.distinctAttribute, v1beta1DeviceConstraint.distinctAttribute) && + Objects.equals(this.matchAttribute, v1beta1DeviceConstraint.matchAttribute) && Objects.equals(this.requests, v1beta1DeviceConstraint.requests); } @Override public int hashCode() { - return Objects.hash(matchAttribute, requests); + return Objects.hash(distinctAttribute, matchAttribute, requests); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DeviceConstraint {\n"); + sb.append(" distinctAttribute: ").append(toIndentedString(distinctAttribute)).append("\n"); sb.append(" matchAttribute: ").append(toIndentedString(matchAttribute)).append("\n"); sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); sb.append("}"); @@ -162,6 +189,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("distinctAttribute"); openapiFields.add("matchAttribute"); openapiFields.add("requests"); @@ -190,6 +218,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("distinctAttribute") != null && !jsonObj.get("distinctAttribute").isJsonNull()) && !jsonObj.get("distinctAttribute").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `distinctAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("distinctAttribute").toString())); + } if ((jsonObj.get("matchAttribute") != null && !jsonObj.get("matchAttribute").isJsonNull()) && !jsonObj.get("matchAttribute").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `matchAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchAttribute").toString())); } 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 92ecb9cb0d..b8b61a454b 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 @@ -53,7 +53,7 @@ * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. */ @ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) 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 44dad708fa..76bb1dd559 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 @@ -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.V1beta1CapacityRequirements; import io.kubernetes.client.openapi.models.V1beta1DeviceSelector; import io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest; import io.kubernetes.client.openapi.models.V1beta1DeviceToleration; @@ -55,7 +56,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1DeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -67,6 +68,11 @@ public class V1beta1DeviceRequest { @jakarta.annotation.Nullable private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable + private V1beta1CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @jakarta.annotation.Nullable @@ -140,6 +146,26 @@ public void setAllocationMode(@jakarta.annotation.Nullable String allocationMode } + public V1beta1DeviceRequest capacity(@jakarta.annotation.Nullable V1beta1CapacityRequirements capacity) { + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CapacityRequirements getCapacity() { + return capacity; + } + + public void setCapacity(@jakarta.annotation.Nullable V1beta1CapacityRequirements capacity) { + this.capacity = capacity; + } + + public V1beta1DeviceRequest count(@jakarta.annotation.Nullable Long count) { this.count = count; return this; @@ -296,6 +322,7 @@ public boolean equals(Object o) { V1beta1DeviceRequest v1beta1DeviceRequest = (V1beta1DeviceRequest) o; return Objects.equals(this.adminAccess, v1beta1DeviceRequest.adminAccess) && Objects.equals(this.allocationMode, v1beta1DeviceRequest.allocationMode) && + Objects.equals(this.capacity, v1beta1DeviceRequest.capacity) && Objects.equals(this.count, v1beta1DeviceRequest.count) && Objects.equals(this.deviceClassName, v1beta1DeviceRequest.deviceClassName) && Objects.equals(this.firstAvailable, v1beta1DeviceRequest.firstAvailable) && @@ -306,7 +333,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(adminAccess, allocationMode, count, deviceClassName, firstAvailable, name, selectors, tolerations); + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, firstAvailable, name, selectors, tolerations); } @Override @@ -315,6 +342,7 @@ public String toString() { sb.append("class V1beta1DeviceRequest {\n"); sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).append("\n"); 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(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); sb.append(" firstAvailable: ").append(toIndentedString(firstAvailable)).append("\n"); @@ -345,6 +373,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("adminAccess"); openapiFields.add("allocationMode"); + openapiFields.add("capacity"); openapiFields.add("count"); openapiFields.add("deviceClassName"); openapiFields.add("firstAvailable"); @@ -388,6 +417,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("allocationMode") != null && !jsonObj.get("allocationMode").isJsonNull()) && !jsonObj.get("allocationMode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } + // validate the optional field `capacity` + if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { + V1beta1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); + } if ((jsonObj.get("deviceClassName") != null && !jsonObj.get("deviceClassName").isJsonNull()) && !jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } 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 1d12c1aa17..405e17ade9 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 @@ -18,13 +18,16 @@ 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.V1beta1DeviceToleration; 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; @@ -53,13 +56,28 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @jakarta.annotation.Nullable private Boolean adminAccess; + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingFailureConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CONSUMED_CAPACITY = "consumedCapacity"; + @SerializedName(SERIALIZED_NAME_CONSUMED_CAPACITY) + @jakarta.annotation.Nullable + private Map consumedCapacity = new HashMap<>(); + public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) @jakarta.annotation.Nonnull @@ -80,6 +98,11 @@ public class V1beta1DeviceRequestAllocationResult { @jakarta.annotation.Nonnull private String request; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + @jakarta.annotation.Nullable + private String shareID; + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) @jakarta.annotation.Nullable @@ -108,6 +131,90 @@ public void setAdminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { } + public V1beta1DeviceRequestAllocationResult bindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + return this; + } + + public V1beta1DeviceRequestAllocationResult addBindingConditionsItem(String bindingConditionsItem) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList<>(); + } + this.bindingConditions.add(bindingConditionsItem); + return this; + } + + /** + * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingConditions() { + return bindingConditions; + } + + public void setBindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1beta1DeviceRequestAllocationResult bindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + return this; + } + + public V1beta1DeviceRequestAllocationResult addBindingFailureConditionsItem(String bindingFailureConditionsItem) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList<>(); + } + this.bindingFailureConditions.add(bindingFailureConditionsItem); + return this; + } + + /** + * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingFailureConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingFailureConditions() { + return bindingFailureConditions; + } + + public void setBindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1beta1DeviceRequestAllocationResult consumedCapacity(@jakarta.annotation.Nullable Map consumedCapacity) { + this.consumedCapacity = consumedCapacity; + return this; + } + + public V1beta1DeviceRequestAllocationResult putConsumedCapacityItem(String key, Quantity consumedCapacityItem) { + if (this.consumedCapacity == null) { + this.consumedCapacity = new HashMap<>(); + } + this.consumedCapacity.put(key, consumedCapacityItem); + return this; + } + + /** + * 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. + * @return consumedCapacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Map getConsumedCapacity() { + return consumedCapacity; + } + + public void setConsumedCapacity(@jakarta.annotation.Nullable Map consumedCapacity) { + this.consumedCapacity = consumedCapacity; + } + + public V1beta1DeviceRequestAllocationResult device(@jakarta.annotation.Nonnull String device) { this.device = device; return this; @@ -188,6 +295,26 @@ public void setRequest(@jakarta.annotation.Nonnull String request) { } + public V1beta1DeviceRequestAllocationResult shareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + return this; + } + + /** + * 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. + * @return shareID + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public String getShareID() { + return shareID; + } + + public void setShareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + } + + public V1beta1DeviceRequestAllocationResult tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; @@ -227,16 +354,20 @@ public boolean equals(Object o) { } V1beta1DeviceRequestAllocationResult v1beta1DeviceRequestAllocationResult = (V1beta1DeviceRequestAllocationResult) o; return Objects.equals(this.adminAccess, v1beta1DeviceRequestAllocationResult.adminAccess) && + Objects.equals(this.bindingConditions, v1beta1DeviceRequestAllocationResult.bindingConditions) && + Objects.equals(this.bindingFailureConditions, v1beta1DeviceRequestAllocationResult.bindingFailureConditions) && + Objects.equals(this.consumedCapacity, v1beta1DeviceRequestAllocationResult.consumedCapacity) && Objects.equals(this.device, v1beta1DeviceRequestAllocationResult.device) && Objects.equals(this.driver, v1beta1DeviceRequestAllocationResult.driver) && Objects.equals(this.pool, v1beta1DeviceRequestAllocationResult.pool) && Objects.equals(this.request, v1beta1DeviceRequestAllocationResult.request) && + Objects.equals(this.shareID, v1beta1DeviceRequestAllocationResult.shareID) && Objects.equals(this.tolerations, v1beta1DeviceRequestAllocationResult.tolerations); } @Override public int hashCode() { - return Objects.hash(adminAccess, device, driver, pool, request, tolerations); + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); } @Override @@ -244,10 +375,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DeviceRequestAllocationResult {\n"); sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).append("\n"); + sb.append(" bindingConditions: ").append(toIndentedString(bindingConditions)).append("\n"); + sb.append(" bindingFailureConditions: ").append(toIndentedString(bindingFailureConditions)).append("\n"); + sb.append(" consumedCapacity: ").append(toIndentedString(consumedCapacity)).append("\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(" request: ").append(toIndentedString(request)).append("\n"); + sb.append(" shareID: ").append(toIndentedString(shareID)).append("\n"); sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append("}"); return sb.toString(); @@ -272,10 +407,14 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("adminAccess"); + openapiFields.add("bindingConditions"); + openapiFields.add("bindingFailureConditions"); + openapiFields.add("consumedCapacity"); openapiFields.add("device"); openapiFields.add("driver"); openapiFields.add("pool"); openapiFields.add("request"); + openapiFields.add("shareID"); openapiFields.add("tolerations"); // a set of required properties/fields (JSON key names) @@ -314,6 +453,14 @@ 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("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + } if (!jsonObj.get("device").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); } @@ -326,6 +473,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("request").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); } + if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").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 eeb57838e8..bf31095c47 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 f8706d47ff..e9d6d9ec2e 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 @@ -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.V1beta1CapacityRequirements; import io.kubernetes.client.openapi.models.V1beta1DeviceSelector; import io.kubernetes.client.openapi.models.V1beta1DeviceToleration; import io.swagger.annotations.ApiModel; @@ -54,13 +55,18 @@ * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. */ @ApiModel(description = "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @jakarta.annotation.Nullable private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable + private V1beta1CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @jakarta.annotation.Nullable @@ -109,6 +115,26 @@ public void setAllocationMode(@jakarta.annotation.Nullable String allocationMode } + public V1beta1DeviceSubRequest capacity(@jakarta.annotation.Nullable V1beta1CapacityRequirements capacity) { + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CapacityRequirements getCapacity() { + return capacity; + } + + public void setCapacity(@jakarta.annotation.Nullable V1beta1CapacityRequirements capacity) { + this.capacity = capacity; + } + + public V1beta1DeviceSubRequest count(@jakarta.annotation.Nullable Long count) { this.count = count; return this; @@ -236,6 +262,7 @@ public boolean equals(Object o) { } V1beta1DeviceSubRequest v1beta1DeviceSubRequest = (V1beta1DeviceSubRequest) o; return Objects.equals(this.allocationMode, v1beta1DeviceSubRequest.allocationMode) && + Objects.equals(this.capacity, v1beta1DeviceSubRequest.capacity) && Objects.equals(this.count, v1beta1DeviceSubRequest.count) && Objects.equals(this.deviceClassName, v1beta1DeviceSubRequest.deviceClassName) && Objects.equals(this.name, v1beta1DeviceSubRequest.name) && @@ -245,7 +272,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allocationMode, count, deviceClassName, name, selectors, tolerations); + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); } @Override @@ -253,6 +280,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DeviceSubRequest {\n"); 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(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -281,6 +309,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("allocationMode"); + openapiFields.add("capacity"); openapiFields.add("count"); openapiFields.add("deviceClassName"); openapiFields.add("name"); @@ -324,6 +353,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("allocationMode") != null && !jsonObj.get("allocationMode").isJsonNull()) && !jsonObj.get("allocationMode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } + // validate the optional field `capacity` + if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { + V1beta1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); + } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } 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 8aaaae5406..051a80cae1 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 32583a736f..287064895f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1beta1ExpressionWarning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java deleted file mode 100644 index 1a6fd5eea6..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java +++ /dev/null @@ -1,248 +0,0 @@ -/* -Copyright 2025 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.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; - -/** - * ExpressionWarning is a warning information that targets a specific expression. - */ -@ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1ExpressionWarning { - public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; - @SerializedName(SERIALIZED_NAME_FIELD_REF) - @jakarta.annotation.Nonnull - private String fieldRef; - - public static final String SERIALIZED_NAME_WARNING = "warning"; - @SerializedName(SERIALIZED_NAME_WARNING) - @jakarta.annotation.Nonnull - private String warning; - - public V1beta1ExpressionWarning() { - } - - public V1beta1ExpressionWarning fieldRef(@jakarta.annotation.Nonnull String fieldRef) { - this.fieldRef = fieldRef; - return this; - } - - /** - * The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" - * @return fieldRef - */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"") - public String getFieldRef() { - return fieldRef; - } - - public void setFieldRef(@jakarta.annotation.Nonnull String fieldRef) { - this.fieldRef = fieldRef; - } - - - public V1beta1ExpressionWarning warning(@jakarta.annotation.Nonnull String warning) { - this.warning = warning; - return this; - } - - /** - * The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. - * @return warning - */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.") - public String getWarning() { - return warning; - } - - public void setWarning(@jakarta.annotation.Nonnull String warning) { - this.warning = warning; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ExpressionWarning v1beta1ExpressionWarning = (V1beta1ExpressionWarning) o; - return Objects.equals(this.fieldRef, v1beta1ExpressionWarning.fieldRef) && - Objects.equals(this.warning, v1beta1ExpressionWarning.warning); - } - - @Override - public int hashCode() { - return Objects.hash(fieldRef, warning); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ExpressionWarning {\n"); - sb.append(" fieldRef: ").append(toIndentedString(fieldRef)).append("\n"); - sb.append(" warning: ").append(toIndentedString(warning)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fieldRef"); - openapiFields.add("warning"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("fieldRef"); - openapiRequiredFields.add("warning"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1ExpressionWarning - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1beta1ExpressionWarning.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ExpressionWarning is not found in the empty JSON string", V1beta1ExpressionWarning.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1beta1ExpressionWarning.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ExpressionWarning` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1ExpressionWarning.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("fieldRef").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `fieldRef` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldRef").toString())); - } - if (!jsonObj.get("warning").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `warning` to be a primitive type in the JSON string but got `%s`", jsonObj.get("warning").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ExpressionWarning.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ExpressionWarning' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ExpressionWarning.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1beta1ExpressionWarning value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1beta1ExpressionWarning read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1beta1ExpressionWarning given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1beta1ExpressionWarning - * @throws IOException if the JSON string is invalid with respect to V1beta1ExpressionWarning - */ - public static V1beta1ExpressionWarning fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ExpressionWarning.class); - } - - /** - * Convert an instance of V1beta1ExpressionWarning to an JSON 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/V1beta1IPAddress.java index c6c88c61cd..0ef4cc4f83 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1IPAddress 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/V1beta1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java index dc79c7adea..df9411bf0f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1IPAddressList 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/V1beta1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java index 5d4db4bf2f..77e09d3980 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1IPAddressSpec { 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/V1beta1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java new file mode 100644 index 0000000000..41084a3d83 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java @@ -0,0 +1,208 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * JSONPatch defines a JSON Patch. + */ +@ApiModel(description = "JSONPatch defines a JSON Patch.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1JSONPatch { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nullable + private String expression; + + public V1beta1JSONPatch() { + } + + public V1beta1JSONPatch expression(@jakarta.annotation.Nullable String expression) { + this.expression = expression; + return this; + } + + /** + * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. + * @return expression + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.") + public String getExpression() { + return expression; + } + + public void setExpression(@jakarta.annotation.Nullable String expression) { + this.expression = expression; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1JSONPatch v1beta1JSONPatch = (V1beta1JSONPatch) o; + return Objects.equals(this.expression, v1beta1JSONPatch.expression); + } + + @Override + public int hashCode() { + return Objects.hash(expression); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1JSONPatch {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("expression"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1JSONPatch + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1JSONPatch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1JSONPatch is not found in the empty JSON string", V1beta1JSONPatch.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1JSONPatch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1JSONPatch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1JSONPatch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1JSONPatch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1JSONPatch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1JSONPatch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1JSONPatch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1JSONPatch given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1JSONPatch + * @throws IOException if the JSON string is invalid with respect to V1beta1JSONPatch + */ + public static V1beta1JSONPatch fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1JSONPatch.class); + } + + /** + * Convert an instance of V1beta1JSONPatch to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 b3a83b67c8..bc95ea4cdf 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1d8b39bc89..0a72b234f7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2dfda726a2..28dc2e9270 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) 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 b4b0677add..c41f0bec39 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 8c7aac0ebb..5dc01e35d3 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1beta1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java similarity index 64% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java index 805296293b..783a46b3d8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.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.V1beta1ValidatingAdmissionPolicyBindingSpec; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicySpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -49,11 +49,11 @@ import io.kubernetes.client.openapi.JSON; /** - * 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. + * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. */ -@ApiModel(description = "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { +@ApiModel(description = "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1MutatingAdmissionPolicy 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 V1beta1ValidatingAdmissionPolicyBinding implements io.kubernetes.cl public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nullable - private V1beta1ValidatingAdmissionPolicyBindingSpec spec; + private V1beta1MutatingAdmissionPolicySpec spec; - public V1beta1ValidatingAdmissionPolicyBinding() { + public V1beta1MutatingAdmissionPolicy() { } - public V1beta1ValidatingAdmissionPolicyBinding apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1beta1MutatingAdmissionPolicy apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -97,7 +97,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1beta1ValidatingAdmissionPolicyBinding kind(@jakarta.annotation.Nullable String kind) { + public V1beta1MutatingAdmissionPolicy kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -117,7 +117,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1beta1ValidatingAdmissionPolicyBinding metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1beta1MutatingAdmissionPolicy metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1ValidatingAdmissionPolicyBinding spec(@jakarta.annotation.Nullable V1beta1ValidatingAdmissionPolicyBindingSpec spec) { + public V1beta1MutatingAdmissionPolicy spec(@jakarta.annotation.Nullable V1beta1MutatingAdmissionPolicySpec spec) { this.spec = spec; return this; } @@ -148,11 +148,11 @@ public V1beta1ValidatingAdmissionPolicyBinding spec(@jakarta.annotation.Nullable */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1beta1ValidatingAdmissionPolicyBindingSpec getSpec() { + public V1beta1MutatingAdmissionPolicySpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1beta1ValidatingAdmissionPolicyBindingSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1beta1MutatingAdmissionPolicySpec spec) { this.spec = spec; } @@ -166,11 +166,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1ValidatingAdmissionPolicyBinding v1beta1ValidatingAdmissionPolicyBinding = (V1beta1ValidatingAdmissionPolicyBinding) o; - return Objects.equals(this.apiVersion, v1beta1ValidatingAdmissionPolicyBinding.apiVersion) && - Objects.equals(this.kind, v1beta1ValidatingAdmissionPolicyBinding.kind) && - Objects.equals(this.metadata, v1beta1ValidatingAdmissionPolicyBinding.metadata) && - Objects.equals(this.spec, v1beta1ValidatingAdmissionPolicyBinding.spec); + V1beta1MutatingAdmissionPolicy v1beta1MutatingAdmissionPolicy = (V1beta1MutatingAdmissionPolicy) o; + return Objects.equals(this.apiVersion, v1beta1MutatingAdmissionPolicy.apiVersion) && + Objects.equals(this.kind, v1beta1MutatingAdmissionPolicy.kind) && + Objects.equals(this.metadata, v1beta1MutatingAdmissionPolicy.metadata) && + Objects.equals(this.spec, v1beta1MutatingAdmissionPolicy.spec); } @Override @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ValidatingAdmissionPolicyBinding {\n"); + sb.append("class V1beta1MutatingAdmissionPolicy {\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"); @@ -221,20 +221,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 V1beta1ValidatingAdmissionPolicyBinding + * @throws IOException if the JSON Element is invalid with respect to V1beta1MutatingAdmissionPolicy */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ValidatingAdmissionPolicyBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ValidatingAdmissionPolicyBinding is not found in the empty JSON string", V1beta1ValidatingAdmissionPolicyBinding.openapiRequiredFields.toString())); + if (!V1beta1MutatingAdmissionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicy is not found in the empty JSON string", V1beta1MutatingAdmissionPolicy.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ValidatingAdmissionPolicyBinding.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ValidatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1beta1MutatingAdmissionPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -250,7 +250,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // validate the optional field `spec` if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V1beta1ValidatingAdmissionPolicyBindingSpec.validateJsonElement(jsonObj.get("spec")); + V1beta1MutatingAdmissionPolicySpec.validateJsonElement(jsonObj.get("spec")); } } @@ -258,22 +258,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ValidatingAdmissionPolicyBinding.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ValidatingAdmissionPolicyBinding' and its subtypes + if (!V1beta1MutatingAdmissionPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1MutatingAdmissionPolicy' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ValidatingAdmissionPolicyBinding.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1MutatingAdmissionPolicy.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ValidatingAdmissionPolicyBinding value) throws IOException { + public void write(JsonWriter out, V1beta1MutatingAdmissionPolicy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ValidatingAdmissionPolicyBinding read(JsonReader in) throws IOException { + public V1beta1MutatingAdmissionPolicy read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -284,18 +284,18 @@ public V1beta1ValidatingAdmissionPolicyBinding read(JsonReader in) throws IOExce } /** - * Create an instance of V1beta1ValidatingAdmissionPolicyBinding given an JSON string + * Create an instance of V1beta1MutatingAdmissionPolicy given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ValidatingAdmissionPolicyBinding - * @throws IOException if the JSON string is invalid with respect to V1beta1ValidatingAdmissionPolicyBinding + * @return An instance of V1beta1MutatingAdmissionPolicy + * @throws IOException if the JSON string is invalid with respect to V1beta1MutatingAdmissionPolicy */ - public static V1beta1ValidatingAdmissionPolicyBinding fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ValidatingAdmissionPolicyBinding.class); + public static V1beta1MutatingAdmissionPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1MutatingAdmissionPolicy.class); } /** - * Convert an instance of V1beta1ValidatingAdmissionPolicyBinding to an JSON string + * Convert an instance of V1beta1MutatingAdmissionPolicy to an JSON string * * @return JSON string */ 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 new file mode 100644 index 0000000000..94bbbb78a1 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java @@ -0,0 +1,305 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBindingSpec; +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; + +/** + * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + */ +@ApiModel(description = "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable + private V1beta1MutatingAdmissionPolicyBindingSpec spec; + + public V1beta1MutatingAdmissionPolicyBinding() { + } + + public V1beta1MutatingAdmissionPolicyBinding 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 V1beta1MutatingAdmissionPolicyBinding 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 V1beta1MutatingAdmissionPolicyBinding 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 V1beta1MutatingAdmissionPolicyBinding spec(@jakarta.annotation.Nullable V1beta1MutatingAdmissionPolicyBindingSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1MutatingAdmissionPolicyBindingSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nullable V1beta1MutatingAdmissionPolicyBindingSpec spec) { + this.spec = spec; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1MutatingAdmissionPolicyBinding v1beta1MutatingAdmissionPolicyBinding = (V1beta1MutatingAdmissionPolicyBinding) o; + return Objects.equals(this.apiVersion, v1beta1MutatingAdmissionPolicyBinding.apiVersion) && + Objects.equals(this.kind, v1beta1MutatingAdmissionPolicyBinding.kind) && + Objects.equals(this.metadata, v1beta1MutatingAdmissionPolicyBinding.metadata) && + Objects.equals(this.spec, v1beta1MutatingAdmissionPolicyBinding.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1MutatingAdmissionPolicyBinding {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("apiVersion"); + openapiFields.add("kind"); + openapiFields.add("metadata"); + openapiFields.add("spec"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1MutatingAdmissionPolicyBinding + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1MutatingAdmissionPolicyBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicyBinding is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyBinding.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1MutatingAdmissionPolicyBinding.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1beta1MutatingAdmissionPolicyBindingSpec.validateJsonElement(jsonObj.get("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1MutatingAdmissionPolicyBinding.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1MutatingAdmissionPolicyBinding' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1MutatingAdmissionPolicyBinding.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1MutatingAdmissionPolicyBinding value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1MutatingAdmissionPolicyBinding read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1MutatingAdmissionPolicyBinding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1MutatingAdmissionPolicyBinding + * @throws IOException if the JSON string is invalid with respect to V1beta1MutatingAdmissionPolicyBinding + */ + public static V1beta1MutatingAdmissionPolicyBinding fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1MutatingAdmissionPolicyBinding.class); + } + + /** + * Convert an instance of V1beta1MutatingAdmissionPolicyBinding to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java similarity index 71% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java index b277299941..eb291e308c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.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.V1beta1ValidatingAdmissionPolicyBinding; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBinding; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,11 +51,11 @@ import io.kubernetes.client.openapi.JSON; /** - * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ -@ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { +@ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1MutatingAdmissionPolicyBindingList 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 V1beta1ValidatingAdmissionPolicyBindingList implements io.kubernete 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 V1beta1ValidatingAdmissionPolicyBindingList implements io.kubernete @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1beta1ValidatingAdmissionPolicyBindingList() { + public V1beta1MutatingAdmissionPolicyBindingList() { } - public V1beta1ValidatingAdmissionPolicyBindingList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1beta1MutatingAdmissionPolicyBindingList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1beta1ValidatingAdmissionPolicyBindingList items(@jakarta.annotation.Nonnull List items) { + public V1beta1MutatingAdmissionPolicyBindingList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1beta1ValidatingAdmissionPolicyBindingList addItemsItem(V1beta1ValidatingAdmissionPolicyBinding itemsItem) { + public V1beta1MutatingAdmissionPolicyBindingList addItemsItem(V1beta1MutatingAdmissionPolicyBinding itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -118,16 +118,16 @@ public V1beta1ValidatingAdmissionPolicyBindingList addItemsItem(V1beta1Validatin */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of PolicyBinding.") - 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 V1beta1ValidatingAdmissionPolicyBindingList kind(@jakarta.annotation.Nullable String kind) { + public V1beta1MutatingAdmissionPolicyBindingList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1beta1ValidatingAdmissionPolicyBindingList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1beta1MutatingAdmissionPolicyBindingList 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; } - V1beta1ValidatingAdmissionPolicyBindingList v1beta1ValidatingAdmissionPolicyBindingList = (V1beta1ValidatingAdmissionPolicyBindingList) o; - return Objects.equals(this.apiVersion, v1beta1ValidatingAdmissionPolicyBindingList.apiVersion) && - Objects.equals(this.items, v1beta1ValidatingAdmissionPolicyBindingList.items) && - Objects.equals(this.kind, v1beta1ValidatingAdmissionPolicyBindingList.kind) && - Objects.equals(this.metadata, v1beta1ValidatingAdmissionPolicyBindingList.metadata); + V1beta1MutatingAdmissionPolicyBindingList v1beta1MutatingAdmissionPolicyBindingList = (V1beta1MutatingAdmissionPolicyBindingList) o; + return Objects.equals(this.apiVersion, v1beta1MutatingAdmissionPolicyBindingList.apiVersion) && + Objects.equals(this.items, v1beta1MutatingAdmissionPolicyBindingList.items) && + Objects.equals(this.kind, v1beta1MutatingAdmissionPolicyBindingList.kind) && + Objects.equals(this.metadata, v1beta1MutatingAdmissionPolicyBindingList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ValidatingAdmissionPolicyBindingList {\n"); + sb.append("class V1beta1MutatingAdmissionPolicyBindingList {\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"); @@ -232,25 +232,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 V1beta1ValidatingAdmissionPolicyBindingList + * @throws IOException if the JSON Element is invalid with respect to V1beta1MutatingAdmissionPolicyBindingList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ValidatingAdmissionPolicyBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ValidatingAdmissionPolicyBindingList is not found in the empty JSON string", V1beta1ValidatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); + if (!V1beta1MutatingAdmissionPolicyBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicyBindingList is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ValidatingAdmissionPolicyBindingList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ValidatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1beta1MutatingAdmissionPolicyBindingList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1ValidatingAdmissionPolicyBindingList.openapiRequiredFields) { + for (String requiredField : V1beta1MutatingAdmissionPolicyBindingList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -267,7 +267,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++) { - V1beta1ValidatingAdmissionPolicyBinding.validateJsonElement(jsonArrayitems.get(i)); + V1beta1MutatingAdmissionPolicyBinding.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -282,22 +282,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ValidatingAdmissionPolicyBindingList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ValidatingAdmissionPolicyBindingList' and its subtypes + if (!V1beta1MutatingAdmissionPolicyBindingList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1MutatingAdmissionPolicyBindingList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ValidatingAdmissionPolicyBindingList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1MutatingAdmissionPolicyBindingList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ValidatingAdmissionPolicyBindingList value) throws IOException { + public void write(JsonWriter out, V1beta1MutatingAdmissionPolicyBindingList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ValidatingAdmissionPolicyBindingList read(JsonReader in) throws IOException { + public V1beta1MutatingAdmissionPolicyBindingList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -308,18 +308,18 @@ public V1beta1ValidatingAdmissionPolicyBindingList read(JsonReader in) throws IO } /** - * Create an instance of V1beta1ValidatingAdmissionPolicyBindingList given an JSON string + * Create an instance of V1beta1MutatingAdmissionPolicyBindingList given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ValidatingAdmissionPolicyBindingList - * @throws IOException if the JSON string is invalid with respect to V1beta1ValidatingAdmissionPolicyBindingList + * @return An instance of V1beta1MutatingAdmissionPolicyBindingList + * @throws IOException if the JSON string is invalid with respect to V1beta1MutatingAdmissionPolicyBindingList */ - public static V1beta1ValidatingAdmissionPolicyBindingList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ValidatingAdmissionPolicyBindingList.class); + public static V1beta1MutatingAdmissionPolicyBindingList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1MutatingAdmissionPolicyBindingList.class); } /** - * Convert an instance of V1beta1ValidatingAdmissionPolicyBindingList to an JSON string + * Convert an instance of V1beta1MutatingAdmissionPolicyBindingList to an JSON string * * @return JSON string */ 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 new file mode 100644 index 0000000000..61675368ca --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java @@ -0,0 +1,274 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1beta1MatchResources; +import io.kubernetes.client.openapi.models.V1beta1ParamRef; +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; + +/** + * MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. + */ +@ApiModel(description = "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1MutatingAdmissionPolicyBindingSpec { + public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; + @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) + @jakarta.annotation.Nullable + private V1beta1MatchResources matchResources; + + public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; + @SerializedName(SERIALIZED_NAME_PARAM_REF) + @jakarta.annotation.Nullable + private V1beta1ParamRef paramRef; + + public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; + @SerializedName(SERIALIZED_NAME_POLICY_NAME) + @jakarta.annotation.Nullable + private String policyName; + + public V1beta1MutatingAdmissionPolicyBindingSpec() { + } + + public V1beta1MutatingAdmissionPolicyBindingSpec matchResources(@jakarta.annotation.Nullable V1beta1MatchResources matchResources) { + this.matchResources = matchResources; + return this; + } + + /** + * Get matchResources + * @return matchResources + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1MatchResources getMatchResources() { + return matchResources; + } + + public void setMatchResources(@jakarta.annotation.Nullable V1beta1MatchResources matchResources) { + this.matchResources = matchResources; + } + + + public V1beta1MutatingAdmissionPolicyBindingSpec paramRef(@jakarta.annotation.Nullable V1beta1ParamRef paramRef) { + this.paramRef = paramRef; + return this; + } + + /** + * Get paramRef + * @return paramRef + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1ParamRef getParamRef() { + return paramRef; + } + + public void setParamRef(@jakarta.annotation.Nullable V1beta1ParamRef paramRef) { + this.paramRef = paramRef; + } + + + public V1beta1MutatingAdmissionPolicyBindingSpec policyName(@jakarta.annotation.Nullable String policyName) { + this.policyName = policyName; + return this; + } + + /** + * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. + * @return policyName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") + public String getPolicyName() { + return policyName; + } + + public void setPolicyName(@jakarta.annotation.Nullable String policyName) { + this.policyName = policyName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1MutatingAdmissionPolicyBindingSpec v1beta1MutatingAdmissionPolicyBindingSpec = (V1beta1MutatingAdmissionPolicyBindingSpec) o; + return Objects.equals(this.matchResources, v1beta1MutatingAdmissionPolicyBindingSpec.matchResources) && + Objects.equals(this.paramRef, v1beta1MutatingAdmissionPolicyBindingSpec.paramRef) && + Objects.equals(this.policyName, v1beta1MutatingAdmissionPolicyBindingSpec.policyName); + } + + @Override + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1MutatingAdmissionPolicyBindingSpec {\n"); + sb.append(" matchResources: ").append(toIndentedString(matchResources)).append("\n"); + sb.append(" paramRef: ").append(toIndentedString(paramRef)).append("\n"); + sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("matchResources"); + openapiFields.add("paramRef"); + openapiFields.add("policyName"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1MutatingAdmissionPolicyBindingSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1MutatingAdmissionPolicyBindingSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `matchResources` + if (jsonObj.get("matchResources") != null && !jsonObj.get("matchResources").isJsonNull()) { + V1beta1MatchResources.validateJsonElement(jsonObj.get("matchResources")); + } + // validate the optional field `paramRef` + if (jsonObj.get("paramRef") != null && !jsonObj.get("paramRef").isJsonNull()) { + V1beta1ParamRef.validateJsonElement(jsonObj.get("paramRef")); + } + if ((jsonObj.get("policyName") != null && !jsonObj.get("policyName").isJsonNull()) && !jsonObj.get("policyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `policyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policyName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1MutatingAdmissionPolicyBindingSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1MutatingAdmissionPolicyBindingSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1MutatingAdmissionPolicyBindingSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1MutatingAdmissionPolicyBindingSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1MutatingAdmissionPolicyBindingSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1MutatingAdmissionPolicyBindingSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1MutatingAdmissionPolicyBindingSpec + * @throws IOException if the JSON string is invalid with respect to V1beta1MutatingAdmissionPolicyBindingSpec + */ + public static V1beta1MutatingAdmissionPolicyBindingSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1MutatingAdmissionPolicyBindingSpec.class); + } + + /** + * Convert an instance of V1beta1MutatingAdmissionPolicyBindingSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java similarity index 73% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java index db042184d0..cc88b86a6a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.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.V1beta1ValidatingAdmissionPolicy; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicy; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,11 +51,11 @@ import io.kubernetes.client.openapi.JSON; /** - * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ -@ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { +@ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1MutatingAdmissionPolicyList 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 V1beta1ValidatingAdmissionPolicyList implements io.kubernetes.clien 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 V1beta1ValidatingAdmissionPolicyList implements io.kubernetes.clien @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1beta1ValidatingAdmissionPolicyList() { + public V1beta1MutatingAdmissionPolicyList() { } - public V1beta1ValidatingAdmissionPolicyList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1beta1MutatingAdmissionPolicyList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1beta1ValidatingAdmissionPolicyList items(@jakarta.annotation.Nonnull List items) { + public V1beta1MutatingAdmissionPolicyList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1beta1ValidatingAdmissionPolicyList addItemsItem(V1beta1ValidatingAdmissionPolicy itemsItem) { + public V1beta1MutatingAdmissionPolicyList addItemsItem(V1beta1MutatingAdmissionPolicy itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -118,16 +118,16 @@ public V1beta1ValidatingAdmissionPolicyList addItemsItem(V1beta1ValidatingAdmiss */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") - 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 V1beta1ValidatingAdmissionPolicyList kind(@jakarta.annotation.Nullable String kind) { + public V1beta1MutatingAdmissionPolicyList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1beta1ValidatingAdmissionPolicyList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1beta1MutatingAdmissionPolicyList 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; } - V1beta1ValidatingAdmissionPolicyList v1beta1ValidatingAdmissionPolicyList = (V1beta1ValidatingAdmissionPolicyList) o; - return Objects.equals(this.apiVersion, v1beta1ValidatingAdmissionPolicyList.apiVersion) && - Objects.equals(this.items, v1beta1ValidatingAdmissionPolicyList.items) && - Objects.equals(this.kind, v1beta1ValidatingAdmissionPolicyList.kind) && - Objects.equals(this.metadata, v1beta1ValidatingAdmissionPolicyList.metadata); + V1beta1MutatingAdmissionPolicyList v1beta1MutatingAdmissionPolicyList = (V1beta1MutatingAdmissionPolicyList) o; + return Objects.equals(this.apiVersion, v1beta1MutatingAdmissionPolicyList.apiVersion) && + Objects.equals(this.items, v1beta1MutatingAdmissionPolicyList.items) && + Objects.equals(this.kind, v1beta1MutatingAdmissionPolicyList.kind) && + Objects.equals(this.metadata, v1beta1MutatingAdmissionPolicyList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ValidatingAdmissionPolicyList {\n"); + sb.append("class V1beta1MutatingAdmissionPolicyList {\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"); @@ -232,25 +232,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 V1beta1ValidatingAdmissionPolicyList + * @throws IOException if the JSON Element is invalid with respect to V1beta1MutatingAdmissionPolicyList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ValidatingAdmissionPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ValidatingAdmissionPolicyList is not found in the empty JSON string", V1beta1ValidatingAdmissionPolicyList.openapiRequiredFields.toString())); + if (!V1beta1MutatingAdmissionPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicyList is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ValidatingAdmissionPolicyList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ValidatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1beta1MutatingAdmissionPolicyList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1ValidatingAdmissionPolicyList.openapiRequiredFields) { + for (String requiredField : V1beta1MutatingAdmissionPolicyList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -267,7 +267,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++) { - V1beta1ValidatingAdmissionPolicy.validateJsonElement(jsonArrayitems.get(i)); + V1beta1MutatingAdmissionPolicy.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -282,22 +282,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ValidatingAdmissionPolicyList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ValidatingAdmissionPolicyList' and its subtypes + if (!V1beta1MutatingAdmissionPolicyList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1MutatingAdmissionPolicyList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ValidatingAdmissionPolicyList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1MutatingAdmissionPolicyList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ValidatingAdmissionPolicyList value) throws IOException { + public void write(JsonWriter out, V1beta1MutatingAdmissionPolicyList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ValidatingAdmissionPolicyList read(JsonReader in) throws IOException { + public V1beta1MutatingAdmissionPolicyList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -308,18 +308,18 @@ public V1beta1ValidatingAdmissionPolicyList read(JsonReader in) throws IOExcepti } /** - * Create an instance of V1beta1ValidatingAdmissionPolicyList given an JSON string + * Create an instance of V1beta1MutatingAdmissionPolicyList given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ValidatingAdmissionPolicyList - * @throws IOException if the JSON string is invalid with respect to V1beta1ValidatingAdmissionPolicyList + * @return An instance of V1beta1MutatingAdmissionPolicyList + * @throws IOException if the JSON string is invalid with respect to V1beta1MutatingAdmissionPolicyList */ - public static V1beta1ValidatingAdmissionPolicyList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ValidatingAdmissionPolicyList.class); + public static V1beta1MutatingAdmissionPolicyList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1MutatingAdmissionPolicyList.class); } /** - * Convert an instance of V1beta1ValidatingAdmissionPolicyList to an JSON string + * Convert an instance of V1beta1MutatingAdmissionPolicyList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java similarity index 53% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java index 3fe966eb11..91f054c780 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java @@ -18,11 +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.V1beta1AuditAnnotation; import io.kubernetes.client.openapi.models.V1beta1MatchCondition; import io.kubernetes.client.openapi.models.V1beta1MatchResources; +import io.kubernetes.client.openapi.models.V1beta1Mutation; import io.kubernetes.client.openapi.models.V1beta1ParamKind; -import io.kubernetes.client.openapi.models.V1beta1Validation; import io.kubernetes.client.openapi.models.V1beta1Variable; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -55,16 +54,11 @@ import io.kubernetes.client.openapi.JSON; /** - * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. + * MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. */ -@ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1ValidatingAdmissionPolicySpec { - public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; - @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) - @jakarta.annotation.Nullable - private List auditAnnotations = new ArrayList<>(); - +@ApiModel(description = "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) @jakarta.annotation.Nullable @@ -80,63 +74,40 @@ public class V1beta1ValidatingAdmissionPolicySpec { @jakarta.annotation.Nullable private V1beta1MatchResources matchConstraints; + public static final String SERIALIZED_NAME_MUTATIONS = "mutations"; + @SerializedName(SERIALIZED_NAME_MUTATIONS) + @jakarta.annotation.Nullable + private List mutations = new ArrayList<>(); + public static final String SERIALIZED_NAME_PARAM_KIND = "paramKind"; @SerializedName(SERIALIZED_NAME_PARAM_KIND) @jakarta.annotation.Nullable private V1beta1ParamKind paramKind; - public static final String SERIALIZED_NAME_VALIDATIONS = "validations"; - @SerializedName(SERIALIZED_NAME_VALIDATIONS) + public static final String SERIALIZED_NAME_REINVOCATION_POLICY = "reinvocationPolicy"; + @SerializedName(SERIALIZED_NAME_REINVOCATION_POLICY) @jakarta.annotation.Nullable - private List validations = new ArrayList<>(); + private String reinvocationPolicy; public static final String SERIALIZED_NAME_VARIABLES = "variables"; @SerializedName(SERIALIZED_NAME_VARIABLES) @jakarta.annotation.Nullable private List variables = new ArrayList<>(); - public V1beta1ValidatingAdmissionPolicySpec() { - } - - public V1beta1ValidatingAdmissionPolicySpec auditAnnotations(@jakarta.annotation.Nullable List auditAnnotations) { - this.auditAnnotations = auditAnnotations; - return this; - } - - public V1beta1ValidatingAdmissionPolicySpec addAuditAnnotationsItem(V1beta1AuditAnnotation auditAnnotationsItem) { - if (this.auditAnnotations == null) { - this.auditAnnotations = new ArrayList<>(); - } - this.auditAnnotations.add(auditAnnotationsItem); - return this; + public V1beta1MutatingAdmissionPolicySpec() { } - /** - * auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. - * @return auditAnnotations - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.") - public List getAuditAnnotations() { - return auditAnnotations; - } - - public void setAuditAnnotations(@jakarta.annotation.Nullable List auditAnnotations) { - this.auditAnnotations = auditAnnotations; - } - - - public V1beta1ValidatingAdmissionPolicySpec failurePolicy(@jakarta.annotation.Nullable String failurePolicy) { + public V1beta1MutatingAdmissionPolicySpec failurePolicy(@jakarta.annotation.Nullable String failurePolicy) { this.failurePolicy = failurePolicy; return this; } /** - * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. + * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail. * @return failurePolicy */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if 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.") + @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } @@ -146,12 +117,12 @@ public void setFailurePolicy(@jakarta.annotation.Nullable String failurePolicy) } - public V1beta1ValidatingAdmissionPolicySpec matchConditions(@jakarta.annotation.Nullable List matchConditions) { + public V1beta1MutatingAdmissionPolicySpec matchConditions(@jakarta.annotation.Nullable List matchConditions) { this.matchConditions = matchConditions; return this; } - public V1beta1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1beta1MatchCondition matchConditionsItem) { + public V1beta1MutatingAdmissionPolicySpec addMatchConditionsItem(V1beta1MatchCondition matchConditionsItem) { if (this.matchConditions == null) { this.matchConditions = new ArrayList<>(); } @@ -160,11 +131,11 @@ public V1beta1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1beta1MatchC } /** - * 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 + * matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped * @return matchConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the 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") + @ApiModelProperty(value = "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") public List getMatchConditions() { return matchConditions; } @@ -174,7 +145,7 @@ public void setMatchConditions(@jakarta.annotation.Nullable List mutations) { + this.mutations = mutations; + return this; + } + + public V1beta1MutatingAdmissionPolicySpec addMutationsItem(V1beta1Mutation mutationsItem) { + if (this.mutations == null) { + this.mutations = new ArrayList<>(); + } + this.mutations.add(mutationsItem); + return this; + } + + /** + * mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis. + * @return mutations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.") + public List getMutations() { + return mutations; + } + + public void setMutations(@jakarta.annotation.Nullable List mutations) { + this.mutations = mutations; + } + + + public V1beta1MutatingAdmissionPolicySpec paramKind(@jakarta.annotation.Nullable V1beta1ParamKind paramKind) { this.paramKind = paramKind; return this; } @@ -214,40 +213,32 @@ public void setParamKind(@jakarta.annotation.Nullable V1beta1ParamKind paramKind } - public V1beta1ValidatingAdmissionPolicySpec validations(@jakarta.annotation.Nullable List validations) { - this.validations = validations; - return this; - } - - public V1beta1ValidatingAdmissionPolicySpec addValidationsItem(V1beta1Validation validationsItem) { - if (this.validations == null) { - this.validations = new ArrayList<>(); - } - this.validations.add(validationsItem); + public V1beta1MutatingAdmissionPolicySpec reinvocationPolicy(@jakarta.annotation.Nullable String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; return this; } /** - * Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. - * @return validations + * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. + * @return reinvocationPolicy */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.") - public List getValidations() { - return validations; + @ApiModelProperty(value = "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.") + public String getReinvocationPolicy() { + return reinvocationPolicy; } - public void setValidations(@jakarta.annotation.Nullable List validations) { - this.validations = validations; + public void setReinvocationPolicy(@jakarta.annotation.Nullable String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; } - public V1beta1ValidatingAdmissionPolicySpec variables(@jakarta.annotation.Nullable List variables) { + public V1beta1MutatingAdmissionPolicySpec variables(@jakarta.annotation.Nullable List variables) { this.variables = variables; return this; } - public V1beta1ValidatingAdmissionPolicySpec addVariablesItem(V1beta1Variable variablesItem) { + public V1beta1MutatingAdmissionPolicySpec addVariablesItem(V1beta1Variable variablesItem) { if (this.variables == null) { this.variables = new ArrayList<>(); } @@ -256,11 +247,11 @@ public V1beta1ValidatingAdmissionPolicySpec addVariablesItem(V1beta1Variable var } /** - * 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. + * variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. * @return variables */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.") + @ApiModelProperty(value = "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic.") public List getVariables() { return variables; } @@ -279,31 +270,31 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1ValidatingAdmissionPolicySpec v1beta1ValidatingAdmissionPolicySpec = (V1beta1ValidatingAdmissionPolicySpec) o; - return Objects.equals(this.auditAnnotations, v1beta1ValidatingAdmissionPolicySpec.auditAnnotations) && - Objects.equals(this.failurePolicy, v1beta1ValidatingAdmissionPolicySpec.failurePolicy) && - Objects.equals(this.matchConditions, v1beta1ValidatingAdmissionPolicySpec.matchConditions) && - Objects.equals(this.matchConstraints, v1beta1ValidatingAdmissionPolicySpec.matchConstraints) && - Objects.equals(this.paramKind, v1beta1ValidatingAdmissionPolicySpec.paramKind) && - Objects.equals(this.validations, v1beta1ValidatingAdmissionPolicySpec.validations) && - Objects.equals(this.variables, v1beta1ValidatingAdmissionPolicySpec.variables); + V1beta1MutatingAdmissionPolicySpec v1beta1MutatingAdmissionPolicySpec = (V1beta1MutatingAdmissionPolicySpec) o; + return Objects.equals(this.failurePolicy, v1beta1MutatingAdmissionPolicySpec.failurePolicy) && + Objects.equals(this.matchConditions, v1beta1MutatingAdmissionPolicySpec.matchConditions) && + Objects.equals(this.matchConstraints, v1beta1MutatingAdmissionPolicySpec.matchConstraints) && + Objects.equals(this.mutations, v1beta1MutatingAdmissionPolicySpec.mutations) && + Objects.equals(this.paramKind, v1beta1MutatingAdmissionPolicySpec.paramKind) && + Objects.equals(this.reinvocationPolicy, v1beta1MutatingAdmissionPolicySpec.reinvocationPolicy) && + Objects.equals(this.variables, v1beta1MutatingAdmissionPolicySpec.variables); } @Override public int hashCode() { - return Objects.hash(auditAnnotations, failurePolicy, matchConditions, matchConstraints, paramKind, validations, variables); + return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ValidatingAdmissionPolicySpec {\n"); - sb.append(" auditAnnotations: ").append(toIndentedString(auditAnnotations)).append("\n"); + sb.append("class V1beta1MutatingAdmissionPolicySpec {\n"); sb.append(" failurePolicy: ").append(toIndentedString(failurePolicy)).append("\n"); sb.append(" matchConditions: ").append(toIndentedString(matchConditions)).append("\n"); sb.append(" matchConstraints: ").append(toIndentedString(matchConstraints)).append("\n"); + sb.append(" mutations: ").append(toIndentedString(mutations)).append("\n"); sb.append(" paramKind: ").append(toIndentedString(paramKind)).append("\n"); - sb.append(" validations: ").append(toIndentedString(validations)).append("\n"); + sb.append(" reinvocationPolicy: ").append(toIndentedString(reinvocationPolicy)).append("\n"); sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); sb.append("}"); return sb.toString(); @@ -327,12 +318,12 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("auditAnnotations"); openapiFields.add("failurePolicy"); openapiFields.add("matchConditions"); openapiFields.add("matchConstraints"); + openapiFields.add("mutations"); openapiFields.add("paramKind"); - openapiFields.add("validations"); + openapiFields.add("reinvocationPolicy"); openapiFields.add("variables"); // a set of required properties/fields (JSON key names) @@ -343,37 +334,23 @@ 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 V1beta1ValidatingAdmissionPolicySpec + * @throws IOException if the JSON Element is invalid with respect to V1beta1MutatingAdmissionPolicySpec */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1beta1ValidatingAdmissionPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ValidatingAdmissionPolicySpec is not found in the empty JSON string", V1beta1ValidatingAdmissionPolicySpec.openapiRequiredFields.toString())); + if (!V1beta1MutatingAdmissionPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicySpec is not found in the empty JSON string", V1beta1MutatingAdmissionPolicySpec.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1beta1ValidatingAdmissionPolicySpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ValidatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1beta1MutatingAdmissionPolicySpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("auditAnnotations") != null && !jsonObj.get("auditAnnotations").isJsonNull()) { - JsonArray jsonArrayauditAnnotations = jsonObj.getAsJsonArray("auditAnnotations"); - if (jsonArrayauditAnnotations != null) { - // ensure the json data is an array - if (!jsonObj.get("auditAnnotations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `auditAnnotations` to be an array in the JSON string but got `%s`", jsonObj.get("auditAnnotations").toString())); - } - - // validate the optional field `auditAnnotations` (array) - for (int i = 0; i < jsonArrayauditAnnotations.size(); i++) { - V1beta1AuditAnnotation.validateJsonElement(jsonArrayauditAnnotations.get(i)); - }; - } - } if ((jsonObj.get("failurePolicy") != null && !jsonObj.get("failurePolicy").isJsonNull()) && !jsonObj.get("failurePolicy").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `failurePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("failurePolicy").toString())); } @@ -395,24 +372,27 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("matchConstraints") != null && !jsonObj.get("matchConstraints").isJsonNull()) { V1beta1MatchResources.validateJsonElement(jsonObj.get("matchConstraints")); } - // validate the optional field `paramKind` - if (jsonObj.get("paramKind") != null && !jsonObj.get("paramKind").isJsonNull()) { - V1beta1ParamKind.validateJsonElement(jsonObj.get("paramKind")); - } - if (jsonObj.get("validations") != null && !jsonObj.get("validations").isJsonNull()) { - JsonArray jsonArrayvalidations = jsonObj.getAsJsonArray("validations"); - if (jsonArrayvalidations != null) { + if (jsonObj.get("mutations") != null && !jsonObj.get("mutations").isJsonNull()) { + JsonArray jsonArraymutations = jsonObj.getAsJsonArray("mutations"); + if (jsonArraymutations != null) { // ensure the json data is an array - if (!jsonObj.get("validations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `validations` to be an array in the JSON string but got `%s`", jsonObj.get("validations").toString())); + if (!jsonObj.get("mutations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mutations` to be an array in the JSON string but got `%s`", jsonObj.get("mutations").toString())); } - // validate the optional field `validations` (array) - for (int i = 0; i < jsonArrayvalidations.size(); i++) { - V1beta1Validation.validateJsonElement(jsonArrayvalidations.get(i)); + // validate the optional field `mutations` (array) + for (int i = 0; i < jsonArraymutations.size(); i++) { + V1beta1Mutation.validateJsonElement(jsonArraymutations.get(i)); }; } } + // validate the optional field `paramKind` + if (jsonObj.get("paramKind") != null && !jsonObj.get("paramKind").isJsonNull()) { + V1beta1ParamKind.validateJsonElement(jsonObj.get("paramKind")); + } + if ((jsonObj.get("reinvocationPolicy") != null && !jsonObj.get("reinvocationPolicy").isJsonNull()) && !jsonObj.get("reinvocationPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reinvocationPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reinvocationPolicy").toString())); + } if (jsonObj.get("variables") != null && !jsonObj.get("variables").isJsonNull()) { JsonArray jsonArrayvariables = jsonObj.getAsJsonArray("variables"); if (jsonArrayvariables != null) { @@ -433,22 +413,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ValidatingAdmissionPolicySpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ValidatingAdmissionPolicySpec' and its subtypes + if (!V1beta1MutatingAdmissionPolicySpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1MutatingAdmissionPolicySpec' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ValidatingAdmissionPolicySpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1MutatingAdmissionPolicySpec.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1beta1ValidatingAdmissionPolicySpec value) throws IOException { + public void write(JsonWriter out, V1beta1MutatingAdmissionPolicySpec value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1beta1ValidatingAdmissionPolicySpec read(JsonReader in) throws IOException { + public V1beta1MutatingAdmissionPolicySpec read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -459,18 +439,18 @@ public V1beta1ValidatingAdmissionPolicySpec read(JsonReader in) throws IOExcepti } /** - * Create an instance of V1beta1ValidatingAdmissionPolicySpec given an JSON string + * Create an instance of V1beta1MutatingAdmissionPolicySpec given an JSON string * * @param jsonString JSON string - * @return An instance of V1beta1ValidatingAdmissionPolicySpec - * @throws IOException if the JSON string is invalid with respect to V1beta1ValidatingAdmissionPolicySpec + * @return An instance of V1beta1MutatingAdmissionPolicySpec + * @throws IOException if the JSON string is invalid with respect to V1beta1MutatingAdmissionPolicySpec */ - public static V1beta1ValidatingAdmissionPolicySpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ValidatingAdmissionPolicySpec.class); + public static V1beta1MutatingAdmissionPolicySpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1MutatingAdmissionPolicySpec.class); } /** - * Convert an instance of V1beta1ValidatingAdmissionPolicySpec to an JSON string + * Convert an instance of V1beta1MutatingAdmissionPolicySpec to an JSON string * * @return JSON string */ 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 new file mode 100644 index 0000000000..e314366332 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java @@ -0,0 +1,282 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1beta1ApplyConfiguration; +import io.kubernetes.client.openapi.models.V1beta1JSONPatch; +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; + +/** + * Mutation specifies the CEL expression which is used to apply the Mutation. + */ +@ApiModel(description = "Mutation specifies the CEL expression which is used to apply the Mutation.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta1Mutation { + public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; + @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) + @jakarta.annotation.Nullable + private V1beta1ApplyConfiguration applyConfiguration; + + public static final String SERIALIZED_NAME_JSON_PATCH = "jsonPatch"; + @SerializedName(SERIALIZED_NAME_JSON_PATCH) + @jakarta.annotation.Nullable + private V1beta1JSONPatch jsonPatch; + + public static final String SERIALIZED_NAME_PATCH_TYPE = "patchType"; + @SerializedName(SERIALIZED_NAME_PATCH_TYPE) + @jakarta.annotation.Nonnull + private String patchType; + + public V1beta1Mutation() { + } + + public V1beta1Mutation applyConfiguration(@jakarta.annotation.Nullable V1beta1ApplyConfiguration applyConfiguration) { + this.applyConfiguration = applyConfiguration; + return this; + } + + /** + * Get applyConfiguration + * @return applyConfiguration + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1ApplyConfiguration getApplyConfiguration() { + return applyConfiguration; + } + + public void setApplyConfiguration(@jakarta.annotation.Nullable V1beta1ApplyConfiguration applyConfiguration) { + this.applyConfiguration = applyConfiguration; + } + + + public V1beta1Mutation jsonPatch(@jakarta.annotation.Nullable V1beta1JSONPatch jsonPatch) { + this.jsonPatch = jsonPatch; + return this; + } + + /** + * Get jsonPatch + * @return jsonPatch + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1JSONPatch getJsonPatch() { + return jsonPatch; + } + + public void setJsonPatch(@jakarta.annotation.Nullable V1beta1JSONPatch jsonPatch) { + this.jsonPatch = jsonPatch; + } + + + public V1beta1Mutation patchType(@jakarta.annotation.Nonnull String patchType) { + this.patchType = patchType; + return this; + } + + /** + * patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. + * @return patchType + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.") + public String getPatchType() { + return patchType; + } + + public void setPatchType(@jakarta.annotation.Nonnull String patchType) { + this.patchType = patchType; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1Mutation v1beta1Mutation = (V1beta1Mutation) o; + return Objects.equals(this.applyConfiguration, v1beta1Mutation.applyConfiguration) && + Objects.equals(this.jsonPatch, v1beta1Mutation.jsonPatch) && + Objects.equals(this.patchType, v1beta1Mutation.patchType); + } + + @Override + public int hashCode() { + return Objects.hash(applyConfiguration, jsonPatch, patchType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1Mutation {\n"); + sb.append(" applyConfiguration: ").append(toIndentedString(applyConfiguration)).append("\n"); + sb.append(" jsonPatch: ").append(toIndentedString(jsonPatch)).append("\n"); + sb.append(" patchType: ").append(toIndentedString(patchType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("applyConfiguration"); + openapiFields.add("jsonPatch"); + openapiFields.add("patchType"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("patchType"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1Mutation + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1Mutation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1Mutation is not found in the empty JSON string", V1beta1Mutation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1Mutation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1Mutation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1Mutation.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `applyConfiguration` + if (jsonObj.get("applyConfiguration") != null && !jsonObj.get("applyConfiguration").isJsonNull()) { + V1beta1ApplyConfiguration.validateJsonElement(jsonObj.get("applyConfiguration")); + } + // validate the optional field `jsonPatch` + if (jsonObj.get("jsonPatch") != null && !jsonObj.get("jsonPatch").isJsonNull()) { + V1beta1JSONPatch.validateJsonElement(jsonObj.get("jsonPatch")); + } + if (!jsonObj.get("patchType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `patchType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchType").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1Mutation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1Mutation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1Mutation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1Mutation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1Mutation read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1Mutation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1Mutation + * @throws IOException if the JSON string is invalid with respect to V1beta1Mutation + */ + public static V1beta1Mutation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1Mutation.class); + } + + /** + * Convert an instance of V1beta1Mutation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 9ac35ddaac..ad1861fdde 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 17ed0cd32c..07ac1cf986 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1beta1OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java index 0ef246694d..d6b4f77533 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b767be60bc..db35c55be5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 de6f197af7..1036998688 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1beta1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java index 113fd25fd0..0d6903c90a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ParentReference { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) 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 4d1e32c024..5514178faf 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ResourceClaim 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/V1beta1ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java index 16bb32e761..ea174bbe1e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 72df30ba31..5e271c9305 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 44f1ac91ea..07a2b68156 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 7ae384a6e5..cc1f519d78 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 3c273edf47..66b0e70df1 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ResourceClaimTemplate 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/V1beta1ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java index bcf2e590be..b717e2d9ea 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 f1599d2775..edeee75fd5 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) 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 10ebf65847..863e8756c8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) 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 46fd17fac7..87242c53b6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 0c3e065693..edd6928c1c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 347af5ab48..3083f9aca9 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java index 5a94275d18..4fd9cf290f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ServiceCIDR 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/V1beta1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java index 9db000365c..7767b0cb1b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ServiceCIDRList 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/V1beta1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java index 915e0c7ec7..abd2616f90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ServiceCIDRSpec { public static final String SERIALIZED_NAME_CIDRS = "cidrs"; @SerializedName(SERIALIZED_NAME_CIDRS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java index fd5e36f827..a9616b3cd0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1ServiceCIDRStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java deleted file mode 100644 index 5c46ac34cb..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java +++ /dev/null @@ -1,316 +0,0 @@ -/* -Copyright 2025 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.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.V1beta1MatchResources; -import io.kubernetes.client.openapi.models.V1beta1ParamRef; -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; - -/** - * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. - */ -@ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1ValidatingAdmissionPolicyBindingSpec { - public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; - @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) - @jakarta.annotation.Nullable - private V1beta1MatchResources matchResources; - - public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; - @SerializedName(SERIALIZED_NAME_PARAM_REF) - @jakarta.annotation.Nullable - private V1beta1ParamRef paramRef; - - public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; - @SerializedName(SERIALIZED_NAME_POLICY_NAME) - @jakarta.annotation.Nullable - private String policyName; - - public static final String SERIALIZED_NAME_VALIDATION_ACTIONS = "validationActions"; - @SerializedName(SERIALIZED_NAME_VALIDATION_ACTIONS) - @jakarta.annotation.Nullable - private List validationActions = new ArrayList<>(); - - public V1beta1ValidatingAdmissionPolicyBindingSpec() { - } - - public V1beta1ValidatingAdmissionPolicyBindingSpec matchResources(@jakarta.annotation.Nullable V1beta1MatchResources matchResources) { - this.matchResources = matchResources; - return this; - } - - /** - * Get matchResources - * @return matchResources - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1MatchResources getMatchResources() { - return matchResources; - } - - public void setMatchResources(@jakarta.annotation.Nullable V1beta1MatchResources matchResources) { - this.matchResources = matchResources; - } - - - public V1beta1ValidatingAdmissionPolicyBindingSpec paramRef(@jakarta.annotation.Nullable V1beta1ParamRef paramRef) { - this.paramRef = paramRef; - return this; - } - - /** - * Get paramRef - * @return paramRef - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1ParamRef getParamRef() { - return paramRef; - } - - public void setParamRef(@jakarta.annotation.Nullable V1beta1ParamRef paramRef) { - this.paramRef = paramRef; - } - - - public V1beta1ValidatingAdmissionPolicyBindingSpec policyName(@jakarta.annotation.Nullable String policyName) { - this.policyName = policyName; - return this; - } - - /** - * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. - * @return policyName - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") - public String getPolicyName() { - return policyName; - } - - public void setPolicyName(@jakarta.annotation.Nullable String policyName) { - this.policyName = policyName; - } - - - public V1beta1ValidatingAdmissionPolicyBindingSpec validationActions(@jakarta.annotation.Nullable List validationActions) { - this.validationActions = validationActions; - return this; - } - - public V1beta1ValidatingAdmissionPolicyBindingSpec addValidationActionsItem(String validationActionsItem) { - if (this.validationActions == null) { - this.validationActions = new ArrayList<>(); - } - this.validationActions.add(validationActionsItem); - return this; - } - - /** - * validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. - * @return validationActions - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.") - public List getValidationActions() { - return validationActions; - } - - public void setValidationActions(@jakarta.annotation.Nullable List validationActions) { - this.validationActions = validationActions; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ValidatingAdmissionPolicyBindingSpec v1beta1ValidatingAdmissionPolicyBindingSpec = (V1beta1ValidatingAdmissionPolicyBindingSpec) o; - return Objects.equals(this.matchResources, v1beta1ValidatingAdmissionPolicyBindingSpec.matchResources) && - Objects.equals(this.paramRef, v1beta1ValidatingAdmissionPolicyBindingSpec.paramRef) && - Objects.equals(this.policyName, v1beta1ValidatingAdmissionPolicyBindingSpec.policyName) && - Objects.equals(this.validationActions, v1beta1ValidatingAdmissionPolicyBindingSpec.validationActions); - } - - @Override - public int hashCode() { - return Objects.hash(matchResources, paramRef, policyName, validationActions); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ValidatingAdmissionPolicyBindingSpec {\n"); - sb.append(" matchResources: ").append(toIndentedString(matchResources)).append("\n"); - sb.append(" paramRef: ").append(toIndentedString(paramRef)).append("\n"); - sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); - sb.append(" validationActions: ").append(toIndentedString(validationActions)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("matchResources"); - openapiFields.add("paramRef"); - openapiFields.add("policyName"); - openapiFields.add("validationActions"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1ValidatingAdmissionPolicyBindingSpec - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1beta1ValidatingAdmissionPolicyBindingSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ValidatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1beta1ValidatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1beta1ValidatingAdmissionPolicyBindingSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ValidatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `matchResources` - if (jsonObj.get("matchResources") != null && !jsonObj.get("matchResources").isJsonNull()) { - V1beta1MatchResources.validateJsonElement(jsonObj.get("matchResources")); - } - // validate the optional field `paramRef` - if (jsonObj.get("paramRef") != null && !jsonObj.get("paramRef").isJsonNull()) { - V1beta1ParamRef.validateJsonElement(jsonObj.get("paramRef")); - } - if ((jsonObj.get("policyName") != null && !jsonObj.get("policyName").isJsonNull()) && !jsonObj.get("policyName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `policyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policyName").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("validationActions") != null && !jsonObj.get("validationActions").isJsonNull() && !jsonObj.get("validationActions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `validationActions` to be an array in the JSON string but got `%s`", jsonObj.get("validationActions").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ValidatingAdmissionPolicyBindingSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ValidatingAdmissionPolicyBindingSpec' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ValidatingAdmissionPolicyBindingSpec.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1beta1ValidatingAdmissionPolicyBindingSpec value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1beta1ValidatingAdmissionPolicyBindingSpec read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1beta1ValidatingAdmissionPolicyBindingSpec given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1beta1ValidatingAdmissionPolicyBindingSpec - * @throws IOException if the JSON string is invalid with respect to V1beta1ValidatingAdmissionPolicyBindingSpec - */ - public static V1beta1ValidatingAdmissionPolicyBindingSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ValidatingAdmissionPolicyBindingSpec.class); - } - - /** - * Convert an instance of V1beta1ValidatingAdmissionPolicyBindingSpec to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java deleted file mode 100644 index 365f788a68..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java +++ /dev/null @@ -1,291 +0,0 @@ -/* -Copyright 2025 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.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.V1beta1TypeChecking; -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; - -/** - * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. - */ -@ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1ValidatingAdmissionPolicyStatus { - public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; - @SerializedName(SERIALIZED_NAME_CONDITIONS) - @jakarta.annotation.Nullable - private List conditions = new ArrayList<>(); - - public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; - @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) - @jakarta.annotation.Nullable - private Long observedGeneration; - - public static final String SERIALIZED_NAME_TYPE_CHECKING = "typeChecking"; - @SerializedName(SERIALIZED_NAME_TYPE_CHECKING) - @jakarta.annotation.Nullable - private V1beta1TypeChecking typeChecking; - - public V1beta1ValidatingAdmissionPolicyStatus() { - } - - public V1beta1ValidatingAdmissionPolicyStatus conditions(@jakarta.annotation.Nullable List conditions) { - this.conditions = conditions; - return this; - } - - public V1beta1ValidatingAdmissionPolicyStatus addConditionsItem(V1Condition conditionsItem) { - if (this.conditions == null) { - this.conditions = new ArrayList<>(); - } - this.conditions.add(conditionsItem); - return this; - } - - /** - * The conditions represent the latest available observations of a policy's current state. - * @return conditions - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") - public List getConditions() { - return conditions; - } - - public void setConditions(@jakarta.annotation.Nullable List conditions) { - this.conditions = conditions; - } - - - public V1beta1ValidatingAdmissionPolicyStatus observedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { - this.observedGeneration = observedGeneration; - return this; - } - - /** - * The generation observed by the controller. - * @return observedGeneration - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "The generation observed by the controller.") - public Long getObservedGeneration() { - return observedGeneration; - } - - public void setObservedGeneration(@jakarta.annotation.Nullable Long observedGeneration) { - this.observedGeneration = observedGeneration; - } - - - public V1beta1ValidatingAdmissionPolicyStatus typeChecking(@jakarta.annotation.Nullable V1beta1TypeChecking typeChecking) { - this.typeChecking = typeChecking; - return this; - } - - /** - * Get typeChecking - * @return typeChecking - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1TypeChecking getTypeChecking() { - return typeChecking; - } - - public void setTypeChecking(@jakarta.annotation.Nullable V1beta1TypeChecking typeChecking) { - this.typeChecking = typeChecking; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ValidatingAdmissionPolicyStatus v1beta1ValidatingAdmissionPolicyStatus = (V1beta1ValidatingAdmissionPolicyStatus) o; - return Objects.equals(this.conditions, v1beta1ValidatingAdmissionPolicyStatus.conditions) && - Objects.equals(this.observedGeneration, v1beta1ValidatingAdmissionPolicyStatus.observedGeneration) && - Objects.equals(this.typeChecking, v1beta1ValidatingAdmissionPolicyStatus.typeChecking); - } - - @Override - public int hashCode() { - return Objects.hash(conditions, observedGeneration, typeChecking); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ValidatingAdmissionPolicyStatus {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); - sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); - sb.append(" typeChecking: ").append(toIndentedString(typeChecking)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("observedGeneration"); - openapiFields.add("typeChecking"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1ValidatingAdmissionPolicyStatus - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1beta1ValidatingAdmissionPolicyStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ValidatingAdmissionPolicyStatus is not found in the empty JSON string", V1beta1ValidatingAdmissionPolicyStatus.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1beta1ValidatingAdmissionPolicyStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ValidatingAdmissionPolicyStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { - JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); - if (jsonArrayconditions != null) { - // ensure the json data is an array - if (!jsonObj.get("conditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); - } - - // validate the optional field `conditions` (array) - for (int i = 0; i < jsonArrayconditions.size(); i++) { - V1Condition.validateJsonElement(jsonArrayconditions.get(i)); - }; - } - } - // validate the optional field `typeChecking` - if (jsonObj.get("typeChecking") != null && !jsonObj.get("typeChecking").isJsonNull()) { - V1beta1TypeChecking.validateJsonElement(jsonObj.get("typeChecking")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1ValidatingAdmissionPolicyStatus.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1ValidatingAdmissionPolicyStatus' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1ValidatingAdmissionPolicyStatus.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1beta1ValidatingAdmissionPolicyStatus value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1beta1ValidatingAdmissionPolicyStatus read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1beta1ValidatingAdmissionPolicyStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1beta1ValidatingAdmissionPolicyStatus - * @throws IOException if the JSON string is invalid with respect to V1beta1ValidatingAdmissionPolicyStatus - */ - public static V1beta1ValidatingAdmissionPolicyStatus fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1ValidatingAdmissionPolicyStatus.class); - } - - /** - * Convert an instance of V1beta1ValidatingAdmissionPolicyStatus to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java deleted file mode 100644 index 78fdf692ea..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java +++ /dev/null @@ -1,309 +0,0 @@ -/* -Copyright 2025 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.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; - -/** - * Validation specifies the CEL expression which is used to apply the validation. - */ -@ApiModel(description = "Validation specifies the CEL expression which is used to apply the validation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class V1beta1Validation { - public static final String SERIALIZED_NAME_EXPRESSION = "expression"; - @SerializedName(SERIALIZED_NAME_EXPRESSION) - @jakarta.annotation.Nonnull - private String expression; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - @jakarta.annotation.Nullable - private String message; - - public static final String SERIALIZED_NAME_MESSAGE_EXPRESSION = "messageExpression"; - @SerializedName(SERIALIZED_NAME_MESSAGE_EXPRESSION) - @jakarta.annotation.Nullable - private String messageExpression; - - public static final String SERIALIZED_NAME_REASON = "reason"; - @SerializedName(SERIALIZED_NAME_REASON) - @jakarta.annotation.Nullable - private String reason; - - public V1beta1Validation() { - } - - public V1beta1Validation expression(@jakarta.annotation.Nonnull String expression) { - this.expression = expression; - return this; - } - - /** - * Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. - * @return expression - */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required.") - public String getExpression() { - return expression; - } - - public void setExpression(@jakarta.annotation.Nonnull String expression) { - this.expression = expression; - } - - - public V1beta1Validation message(@jakarta.annotation.Nullable String message) { - this.message = message; - return this; - } - - /** - * Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". - * @return message - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".") - public String getMessage() { - return message; - } - - public void setMessage(@jakarta.annotation.Nullable String message) { - this.message = message; - } - - - public V1beta1Validation messageExpression(@jakarta.annotation.Nullable String messageExpression) { - this.messageExpression = messageExpression; - return this; - } - - /** - * messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\" - * @return messageExpression - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"") - public String getMessageExpression() { - return messageExpression; - } - - public void setMessageExpression(@jakarta.annotation.Nullable String messageExpression) { - this.messageExpression = messageExpression; - } - - - public V1beta1Validation reason(@jakarta.annotation.Nullable String reason) { - this.reason = reason; - return this; - } - - /** - * Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. - * @return reason - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.") - public String getReason() { - return reason; - } - - public void setReason(@jakarta.annotation.Nullable String reason) { - this.reason = reason; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Validation v1beta1Validation = (V1beta1Validation) o; - return Objects.equals(this.expression, v1beta1Validation.expression) && - Objects.equals(this.message, v1beta1Validation.message) && - Objects.equals(this.messageExpression, v1beta1Validation.messageExpression) && - Objects.equals(this.reason, v1beta1Validation.reason); - } - - @Override - public int hashCode() { - return Objects.hash(expression, message, messageExpression, reason); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1Validation {\n"); - sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" messageExpression: ").append(toIndentedString(messageExpression)).append("\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); - openapiFields.add("message"); - openapiFields.add("messageExpression"); - openapiFields.add("reason"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1beta1Validation - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1beta1Validation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1Validation is not found in the empty JSON string", V1beta1Validation.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1beta1Validation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1Validation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1beta1Validation.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("expression").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); - } - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - if ((jsonObj.get("messageExpression") != null && !jsonObj.get("messageExpression").isJsonNull()) && !jsonObj.get("messageExpression").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `messageExpression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("messageExpression").toString())); - } - if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1beta1Validation.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1beta1Validation' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1beta1Validation.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1beta1Validation value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1beta1Validation read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1beta1Validation given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1beta1Validation - * @throws IOException if the JSON string is invalid with respect to V1beta1Validation - */ - public static V1beta1Validation fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1beta1Validation.class); - } - - /** - * Convert an instance of V1beta1Validation to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} 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 0b17c2512d..0aeffce844 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 index 0f3e755ea4..93515dd5cd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1VolumeAttributesClass 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/V1beta1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java index d222d684b2..1ca037af4a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta1VolumeAttributesClassList 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/V1beta2AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java index c0f7936cac..663ac3da82 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 @@ -51,10 +51,10 @@ import io.kubernetes.client.openapi.JSON; /** - * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. + * 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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -86,6 +86,11 @@ public class V1beta2AllocatedDeviceStatus { @jakarta.annotation.Nonnull private String pool; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + @jakarta.annotation.Nullable + private String shareID; + public V1beta2AllocatedDeviceStatus() { } @@ -217,6 +222,26 @@ public void setPool(@jakarta.annotation.Nonnull String pool) { } + public V1beta2AllocatedDeviceStatus shareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + return this; + } + + /** + * ShareID uniquely identifies an individual allocation share of the device. + * @return shareID + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ShareID uniquely identifies an individual allocation share of the device.") + public String getShareID() { + return shareID; + } + + public void setShareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + } + + @Override public boolean equals(Object o) { @@ -232,12 +257,13 @@ public boolean equals(Object o) { Objects.equals(this.device, v1beta2AllocatedDeviceStatus.device) && Objects.equals(this.driver, v1beta2AllocatedDeviceStatus.driver) && Objects.equals(this.networkData, v1beta2AllocatedDeviceStatus.networkData) && - Objects.equals(this.pool, v1beta2AllocatedDeviceStatus.pool); + Objects.equals(this.pool, v1beta2AllocatedDeviceStatus.pool) && + Objects.equals(this.shareID, v1beta2AllocatedDeviceStatus.shareID); } @Override public int hashCode() { - return Objects.hash(conditions, data, device, driver, networkData, pool); + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); } @Override @@ -250,6 +276,7 @@ public String toString() { sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" networkData: ").append(toIndentedString(networkData)).append("\n"); sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); + sb.append(" shareID: ").append(toIndentedString(shareID)).append("\n"); sb.append("}"); return sb.toString(); } @@ -278,6 +305,7 @@ private String toIndentedString(Object o) { openapiFields.add("driver"); openapiFields.add("networkData"); openapiFields.add("pool"); + openapiFields.add("shareID"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -341,6 +369,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("pool").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } + if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { 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 0dd3ee6cc3..591cd3b5bd 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 @@ -23,6 +23,7 @@ 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; @@ -52,8 +53,13 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2AllocationResult { + public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) + @jakarta.annotation.Nullable + private OffsetDateTime allocationTimestamp; + public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) @jakarta.annotation.Nullable @@ -67,6 +73,26 @@ public class V1beta2AllocationResult { public V1beta2AllocationResult() { } + public V1beta2AllocationResult allocationTimestamp(@jakarta.annotation.Nullable OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + * @return allocationTimestamp + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.") + public OffsetDateTime getAllocationTimestamp() { + return allocationTimestamp; + } + + public void setAllocationTimestamp(@jakarta.annotation.Nullable OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + } + + public V1beta2AllocationResult devices(@jakarta.annotation.Nullable V1beta2DeviceAllocationResult devices) { this.devices = devices; return this; @@ -117,19 +143,21 @@ public boolean equals(Object o) { return false; } V1beta2AllocationResult v1beta2AllocationResult = (V1beta2AllocationResult) o; - return Objects.equals(this.devices, v1beta2AllocationResult.devices) && + return Objects.equals(this.allocationTimestamp, v1beta2AllocationResult.allocationTimestamp) && + Objects.equals(this.devices, v1beta2AllocationResult.devices) && Objects.equals(this.nodeSelector, v1beta2AllocationResult.nodeSelector); } @Override public int hashCode() { - return Objects.hash(devices, nodeSelector); + return Objects.hash(allocationTimestamp, devices, nodeSelector); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2AllocationResult {\n"); + sb.append(" allocationTimestamp: ").append(toIndentedString(allocationTimestamp)).append("\n"); sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); sb.append("}"); @@ -154,6 +182,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("allocationTimestamp"); openapiFields.add("devices"); openapiFields.add("nodeSelector"); 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 4937035ed3..8cb11f0c7e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + * 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) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") + @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) 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 new file mode 100644 index 0000000000..fa492c38e4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java @@ -0,0 +1,284 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.openapi.models.V1beta2CapacityRequestPolicyRange; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta2CapacityRequestPolicy { + public static final String SERIALIZED_NAME_DEFAULT = "default"; + @SerializedName(SERIALIZED_NAME_DEFAULT) + @jakarta.annotation.Nullable + private Quantity _default; + + public static final String SERIALIZED_NAME_VALID_RANGE = "validRange"; + @SerializedName(SERIALIZED_NAME_VALID_RANGE) + @jakarta.annotation.Nullable + private V1beta2CapacityRequestPolicyRange validRange; + + public static final String SERIALIZED_NAME_VALID_VALUES = "validValues"; + @SerializedName(SERIALIZED_NAME_VALID_VALUES) + @jakarta.annotation.Nullable + private List validValues = new ArrayList<>(); + + public V1beta2CapacityRequestPolicy() { + } + + public V1beta2CapacityRequestPolicy _default(@jakarta.annotation.Nullable Quantity _default) { + this._default = _default; + 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 _default + */ + @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 getDefault() { + return _default; + } + + public void setDefault(@jakarta.annotation.Nullable Quantity _default) { + this._default = _default; + } + + + public V1beta2CapacityRequestPolicy validRange(@jakarta.annotation.Nullable V1beta2CapacityRequestPolicyRange validRange) { + this.validRange = validRange; + return this; + } + + /** + * Get validRange + * @return validRange + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2CapacityRequestPolicyRange getValidRange() { + return validRange; + } + + public void setValidRange(@jakarta.annotation.Nullable V1beta2CapacityRequestPolicyRange validRange) { + this.validRange = validRange; + } + + + public V1beta2CapacityRequestPolicy validValues(@jakarta.annotation.Nullable List validValues) { + this.validValues = validValues; + return this; + } + + public V1beta2CapacityRequestPolicy addValidValuesItem(Quantity validValuesItem) { + if (this.validValues == null) { + this.validValues = new ArrayList<>(); + } + this.validValues.add(validValuesItem); + return this; + } + + /** + * 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. + * @return validValues + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public List getValidValues() { + return validValues; + } + + public void setValidValues(@jakarta.annotation.Nullable List validValues) { + this.validValues = validValues; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2CapacityRequestPolicy v1beta2CapacityRequestPolicy = (V1beta2CapacityRequestPolicy) o; + return Objects.equals(this._default, v1beta2CapacityRequestPolicy._default) && + Objects.equals(this.validRange, v1beta2CapacityRequestPolicy.validRange) && + Objects.equals(this.validValues, v1beta2CapacityRequestPolicy.validValues); + } + + @Override + public int hashCode() { + return Objects.hash(_default, validRange, validValues); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2CapacityRequestPolicy {\n"); + sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); + sb.append(" validRange: ").append(toIndentedString(validRange)).append("\n"); + sb.append(" validValues: ").append(toIndentedString(validValues)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("default"); + openapiFields.add("validRange"); + openapiFields.add("validValues"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2CapacityRequestPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2CapacityRequestPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2CapacityRequestPolicy is not found in the empty JSON string", V1beta2CapacityRequestPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2CapacityRequestPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2CapacityRequestPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("default") != null && !jsonObj.get("default").isJsonNull()) && !jsonObj.get("default").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `default` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default").toString())); + } + // validate the optional field `validRange` + if (jsonObj.get("validRange") != null && !jsonObj.get("validRange").isJsonNull()) { + V1beta2CapacityRequestPolicyRange.validateJsonElement(jsonObj.get("validRange")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("validValues") != null && !jsonObj.get("validValues").isJsonNull() && !jsonObj.get("validValues").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `validValues` to be an array in the JSON string but got `%s`", jsonObj.get("validValues").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2CapacityRequestPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2CapacityRequestPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2CapacityRequestPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2CapacityRequestPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2CapacityRequestPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2CapacityRequestPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2CapacityRequestPolicy + * @throws IOException if the JSON string is invalid with respect to V1beta2CapacityRequestPolicy + */ + public static V1beta2CapacityRequestPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2CapacityRequestPolicy.class); + } + + /** + * Convert an instance of V1beta2CapacityRequestPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 new file mode 100644 index 0000000000..2c47561d8c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java @@ -0,0 +1,279 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * 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. + */ +@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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta2CapacityRequestPolicyRange { + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + @jakarta.annotation.Nullable + private Quantity max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + @jakarta.annotation.Nonnull + private Quantity min; + + public static final String SERIALIZED_NAME_STEP = "step"; + @SerializedName(SERIALIZED_NAME_STEP) + @jakarta.annotation.Nullable + private Quantity step; + + public V1beta2CapacityRequestPolicyRange() { + } + + public V1beta2CapacityRequestPolicyRange max(@jakarta.annotation.Nullable Quantity max) { + this.max = max; + 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 max + */ + @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 getMax() { + return max; + } + + public void setMax(@jakarta.annotation.Nullable Quantity max) { + this.max = max; + } + + + public V1beta2CapacityRequestPolicyRange min(@jakarta.annotation.Nonnull Quantity min) { + this.min = min; + 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 min + */ + @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 getMin() { + return min; + } + + public void setMin(@jakarta.annotation.Nonnull Quantity min) { + this.min = min; + } + + + public V1beta2CapacityRequestPolicyRange step(@jakarta.annotation.Nullable Quantity step) { + this.step = step; + 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 step + */ + @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 getStep() { + return step; + } + + public void setStep(@jakarta.annotation.Nullable Quantity step) { + this.step = step; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2CapacityRequestPolicyRange v1beta2CapacityRequestPolicyRange = (V1beta2CapacityRequestPolicyRange) o; + return Objects.equals(this.max, v1beta2CapacityRequestPolicyRange.max) && + Objects.equals(this.min, v1beta2CapacityRequestPolicyRange.min) && + Objects.equals(this.step, v1beta2CapacityRequestPolicyRange.step); + } + + @Override + public int hashCode() { + return Objects.hash(max, min, step); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2CapacityRequestPolicyRange {\n"); + sb.append(" max: ").append(toIndentedString(max)).append("\n"); + sb.append(" min: ").append(toIndentedString(min)).append("\n"); + sb.append(" step: ").append(toIndentedString(step)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("max"); + openapiFields.add("min"); + openapiFields.add("step"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("min"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2CapacityRequestPolicyRange + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2CapacityRequestPolicyRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2CapacityRequestPolicyRange is not found in the empty JSON string", V1beta2CapacityRequestPolicyRange.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2CapacityRequestPolicyRange.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2CapacityRequestPolicyRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2CapacityRequestPolicyRange.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("max") != null && !jsonObj.get("max").isJsonNull()) && !jsonObj.get("max").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `max` to be a primitive type in the JSON string but got `%s`", jsonObj.get("max").toString())); + } + if (!jsonObj.get("min").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `min` to be a primitive type in the JSON string but got `%s`", jsonObj.get("min").toString())); + } + if ((jsonObj.get("step") != null && !jsonObj.get("step").isJsonNull()) && !jsonObj.get("step").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `step` to be a primitive type in the JSON string but got `%s`", jsonObj.get("step").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2CapacityRequestPolicyRange.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2CapacityRequestPolicyRange' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2CapacityRequestPolicyRange.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2CapacityRequestPolicyRange value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2CapacityRequestPolicyRange read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2CapacityRequestPolicyRange given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2CapacityRequestPolicyRange + * @throws IOException if the JSON string is invalid with respect to V1beta2CapacityRequestPolicyRange + */ + public static V1beta2CapacityRequestPolicyRange fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2CapacityRequestPolicyRange.class); + } + + /** + * Convert an instance of V1beta2CapacityRequestPolicyRange to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 new file mode 100644 index 0000000000..f62669d549 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java @@ -0,0 +1,216 @@ +/* +Copyright 2025 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +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; + +/** + * 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 = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +public class V1beta2CapacityRequirements { + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + @jakarta.annotation.Nullable + private Map requests = new HashMap<>(); + + public V1beta2CapacityRequirements() { + } + + public V1beta2CapacityRequirements requests(@jakarta.annotation.Nullable Map requests) { + this.requests = requests; + return this; + } + + public V1beta2CapacityRequirements putRequestsItem(String key, Quantity requestsItem) { + if (this.requests == null) { + this.requests = new HashMap<>(); + } + this.requests.put(key, requestsItem); + return this; + } + + /** + * 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[<domain>].<name>.compareTo(quantity(<request 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. + * @return requests + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Map getRequests() { + return requests; + } + + public void setRequests(@jakarta.annotation.Nullable Map requests) { + this.requests = requests; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2CapacityRequirements v1beta2CapacityRequirements = (V1beta2CapacityRequirements) o; + return Objects.equals(this.requests, v1beta2CapacityRequirements.requests); + } + + @Override + public int hashCode() { + return Objects.hash(requests); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2CapacityRequirements {\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("requests"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2CapacityRequirements + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2CapacityRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2CapacityRequirements is not found in the empty JSON string", V1beta2CapacityRequirements.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2CapacityRequirements.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2CapacityRequirements` 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 (!V1beta2CapacityRequirements.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2CapacityRequirements' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2CapacityRequirements.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2CapacityRequirements value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2CapacityRequirements read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2CapacityRequirements given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2CapacityRequirements + * @throws IOException if the JSON string is invalid with respect to V1beta2CapacityRequirements + */ + public static V1beta2CapacityRequirements fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2CapacityRequirements.class); + } + + /** + * Convert an instance of V1beta2CapacityRequirements to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} 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 538627c441..5b0480533b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ddf8ba79f2..d806a47fd8 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 ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. */ @ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 fd7b3600ef..29f23b4b10 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 @@ -59,18 +59,38 @@ * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. */ @ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2Device { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @jakarta.annotation.Nullable private Boolean allNodes; + public static final String SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS = "allowMultipleAllocations"; + @SerializedName(SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS) + @jakarta.annotation.Nullable + private Boolean allowMultipleAllocations; + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @jakarta.annotation.Nullable private Map attributes = new HashMap<>(); + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingFailureConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BINDS_TO_NODE = "bindsToNode"; + @SerializedName(SERIALIZED_NAME_BINDS_TO_NODE) + @jakarta.annotation.Nullable + private Boolean bindsToNode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) @jakarta.annotation.Nullable @@ -124,6 +144,26 @@ public void setAllNodes(@jakarta.annotation.Nullable Boolean allNodes) { } + public V1beta2Device allowMultipleAllocations(@jakarta.annotation.Nullable Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return this; + } + + /** + * 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. + * @return allowMultipleAllocations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Boolean getAllowMultipleAllocations() { + return allowMultipleAllocations; + } + + public void setAllowMultipleAllocations(@jakarta.annotation.Nullable Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + } + + public V1beta2Device attributes(@jakarta.annotation.Nullable Map attributes) { this.attributes = attributes; return this; @@ -152,6 +192,82 @@ public void setAttributes(@jakarta.annotation.Nullable Map bindingConditions) { + this.bindingConditions = bindingConditions; + return this; + } + + public V1beta2Device addBindingConditionsItem(String bindingConditionsItem) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList<>(); + } + this.bindingConditions.add(bindingConditionsItem); + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingConditions() { + return bindingConditions; + } + + public void setBindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1beta2Device bindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + return this; + } + + public V1beta2Device addBindingFailureConditionsItem(String bindingFailureConditionsItem) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList<>(); + } + this.bindingFailureConditions.add(bindingFailureConditionsItem); + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingFailureConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingFailureConditions() { + return bindingFailureConditions; + } + + public void setBindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1beta2Device bindsToNode(@jakarta.annotation.Nullable Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return this; + } + + /** + * 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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindsToNode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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 an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public Boolean getBindsToNode() { + return bindsToNode; + } + + public void setBindsToNode(@jakarta.annotation.Nullable Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + } + + public V1beta2Device capacity(@jakarta.annotation.Nullable Map capacity) { this.capacity = capacity; return this; @@ -307,7 +423,11 @@ public boolean equals(Object o) { } V1beta2Device v1beta2Device = (V1beta2Device) o; return Objects.equals(this.allNodes, v1beta2Device.allNodes) && + Objects.equals(this.allowMultipleAllocations, v1beta2Device.allowMultipleAllocations) && Objects.equals(this.attributes, v1beta2Device.attributes) && + Objects.equals(this.bindingConditions, v1beta2Device.bindingConditions) && + Objects.equals(this.bindingFailureConditions, v1beta2Device.bindingFailureConditions) && + Objects.equals(this.bindsToNode, v1beta2Device.bindsToNode) && Objects.equals(this.capacity, v1beta2Device.capacity) && Objects.equals(this.consumesCounters, v1beta2Device.consumesCounters) && Objects.equals(this.name, v1beta2Device.name) && @@ -318,7 +438,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allNodes, attributes, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); } @Override @@ -326,7 +446,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2Device {\n"); sb.append(" allNodes: ").append(toIndentedString(allNodes)).append("\n"); + sb.append(" allowMultipleAllocations: ").append(toIndentedString(allowMultipleAllocations)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" bindingConditions: ").append(toIndentedString(bindingConditions)).append("\n"); + sb.append(" bindingFailureConditions: ").append(toIndentedString(bindingFailureConditions)).append("\n"); + 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(" name: ").append(toIndentedString(name)).append("\n"); @@ -356,7 +480,11 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("allNodes"); + openapiFields.add("allowMultipleAllocations"); openapiFields.add("attributes"); + openapiFields.add("bindingConditions"); + openapiFields.add("bindingFailureConditions"); + openapiFields.add("bindsToNode"); openapiFields.add("capacity"); openapiFields.add("consumesCounters"); openapiFields.add("name"); @@ -397,6 +525,14 @@ 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("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + } if (jsonObj.get("consumesCounters") != null && !jsonObj.get("consumesCounters").isJsonNull()) { JsonArray jsonArrayconsumesCounters = jsonObj.getAsJsonArray("consumesCounters"); if (jsonArrayconsumesCounters != null) { 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 75344dcbb0..50b2113921 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 79982c200f..128c2507f8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 205059bc31..bf2cb6ebc6 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 @@ -50,7 +50,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ef241f3d88..314ab94e02 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 @@ -19,6 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.openapi.models.V1beta2CapacityRequestPolicy; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -51,8 +52,13 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2DeviceCapacity { + public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; + @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) + @jakarta.annotation.Nullable + private V1beta2CapacityRequestPolicy requestPolicy; + public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @jakarta.annotation.Nonnull @@ -61,6 +67,26 @@ public class V1beta2DeviceCapacity { public V1beta2DeviceCapacity() { } + public V1beta2DeviceCapacity requestPolicy(@jakarta.annotation.Nullable V1beta2CapacityRequestPolicy requestPolicy) { + this.requestPolicy = requestPolicy; + return this; + } + + /** + * Get requestPolicy + * @return requestPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2CapacityRequestPolicy getRequestPolicy() { + return requestPolicy; + } + + public void setRequestPolicy(@jakarta.annotation.Nullable V1beta2CapacityRequestPolicy requestPolicy) { + this.requestPolicy = requestPolicy; + } + + public V1beta2DeviceCapacity value(@jakarta.annotation.Nonnull Quantity value) { this.value = value; return this; @@ -91,18 +117,20 @@ public boolean equals(Object o) { return false; } V1beta2DeviceCapacity v1beta2DeviceCapacity = (V1beta2DeviceCapacity) o; - return Objects.equals(this.value, v1beta2DeviceCapacity.value); + return Objects.equals(this.requestPolicy, v1beta2DeviceCapacity.requestPolicy) && + Objects.equals(this.value, v1beta2DeviceCapacity.value); } @Override public int hashCode() { - return Objects.hash(value); + return Objects.hash(requestPolicy, value); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeviceCapacity {\n"); + sb.append(" requestPolicy: ").append(toIndentedString(requestPolicy)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); @@ -126,6 +154,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("requestPolicy"); openapiFields.add("value"); // a set of required properties/fields (JSON key names) @@ -161,6 +190,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `requestPolicy` + if (jsonObj.get("requestPolicy") != null && !jsonObj.get("requestPolicy").isJsonNull()) { + V1beta2CapacityRequestPolicy.validateJsonElement(jsonObj.get("requestPolicy")); + } if (!jsonObj.get("value").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } 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 8bf4ce45b6..3802cd1152 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 3ee59b141c..9fe61497db 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b7cfc5950c..bceee788b6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2DeviceClass 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/V1beta2DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java index 4615ff74b8..bb5c8c6707 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 cb8b019c0e..29b32d1e0c 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ba448cd366..41a7a1d845 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,13 +54,18 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @jakarta.annotation.Nullable private List config = new ArrayList<>(); + public static final String SERIALIZED_NAME_EXTENDED_RESOURCE_NAME = "extendedResourceName"; + @SerializedName(SERIALIZED_NAME_EXTENDED_RESOURCE_NAME) + @jakarta.annotation.Nullable + private String extendedResourceName; + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) @jakarta.annotation.Nullable @@ -97,6 +102,26 @@ public void setConfig(@jakarta.annotation.Nullable List selectors) { this.selectors = selectors; return this; @@ -136,12 +161,13 @@ public boolean equals(Object o) { } V1beta2DeviceClassSpec v1beta2DeviceClassSpec = (V1beta2DeviceClassSpec) o; return Objects.equals(this.config, v1beta2DeviceClassSpec.config) && + Objects.equals(this.extendedResourceName, v1beta2DeviceClassSpec.extendedResourceName) && Objects.equals(this.selectors, v1beta2DeviceClassSpec.selectors); } @Override public int hashCode() { - return Objects.hash(config, selectors); + return Objects.hash(config, extendedResourceName, selectors); } @Override @@ -149,6 +175,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeviceClassSpec {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" extendedResourceName: ").append(toIndentedString(extendedResourceName)).append("\n"); sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); sb.append("}"); return sb.toString(); @@ -173,6 +200,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("config"); + openapiFields.add("extendedResourceName"); openapiFields.add("selectors"); // a set of required properties/fields (JSON key names) @@ -214,6 +242,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + if ((jsonObj.get("extendedResourceName") != null && !jsonObj.get("extendedResourceName").isJsonNull()) && !jsonObj.get("extendedResourceName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `extendedResourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("extendedResourceName").toString())); + } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { 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 f5cd91ef6d..152f89d49b 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,8 +52,13 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2DeviceConstraint { + public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; + @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) + @jakarta.annotation.Nullable + private String distinctAttribute; + public static final String SERIALIZED_NAME_MATCH_ATTRIBUTE = "matchAttribute"; @SerializedName(SERIALIZED_NAME_MATCH_ATTRIBUTE) @jakarta.annotation.Nullable @@ -67,6 +72,26 @@ public class V1beta2DeviceConstraint { public V1beta2DeviceConstraint() { } + public V1beta2DeviceConstraint distinctAttribute(@jakarta.annotation.Nullable String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return this; + } + + /** + * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. 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. + * @return distinctAttribute + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. 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.") + public String getDistinctAttribute() { + return distinctAttribute; + } + + public void setDistinctAttribute(@jakarta.annotation.Nullable String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + } + + public V1beta2DeviceConstraint matchAttribute(@jakarta.annotation.Nullable String matchAttribute) { this.matchAttribute = matchAttribute; return this; @@ -125,19 +150,21 @@ public boolean equals(Object o) { return false; } V1beta2DeviceConstraint v1beta2DeviceConstraint = (V1beta2DeviceConstraint) o; - return Objects.equals(this.matchAttribute, v1beta2DeviceConstraint.matchAttribute) && + return Objects.equals(this.distinctAttribute, v1beta2DeviceConstraint.distinctAttribute) && + Objects.equals(this.matchAttribute, v1beta2DeviceConstraint.matchAttribute) && Objects.equals(this.requests, v1beta2DeviceConstraint.requests); } @Override public int hashCode() { - return Objects.hash(matchAttribute, requests); + return Objects.hash(distinctAttribute, matchAttribute, requests); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeviceConstraint {\n"); + sb.append(" distinctAttribute: ").append(toIndentedString(distinctAttribute)).append("\n"); sb.append(" matchAttribute: ").append(toIndentedString(matchAttribute)).append("\n"); sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); sb.append("}"); @@ -162,6 +189,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("distinctAttribute"); openapiFields.add("matchAttribute"); openapiFields.add("requests"); @@ -190,6 +218,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("distinctAttribute") != null && !jsonObj.get("distinctAttribute").isJsonNull()) && !jsonObj.get("distinctAttribute").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `distinctAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("distinctAttribute").toString())); + } if ((jsonObj.get("matchAttribute") != null && !jsonObj.get("matchAttribute").isJsonNull()) && !jsonObj.get("matchAttribute").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `matchAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchAttribute").toString())); } 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 972208f235..22b7f8ba24 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 @@ -53,7 +53,7 @@ * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. */ @ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) 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 324fea89f4..5b81e14042 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 55c4be075c..7891245992 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 @@ -18,13 +18,16 @@ 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.V1beta2DeviceToleration; 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; @@ -53,13 +56,28 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @jakarta.annotation.Nullable private Boolean adminAccess; + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + @jakarta.annotation.Nullable + private List bindingFailureConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CONSUMED_CAPACITY = "consumedCapacity"; + @SerializedName(SERIALIZED_NAME_CONSUMED_CAPACITY) + @jakarta.annotation.Nullable + private Map consumedCapacity = new HashMap<>(); + public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) @jakarta.annotation.Nonnull @@ -80,6 +98,11 @@ public class V1beta2DeviceRequestAllocationResult { @jakarta.annotation.Nonnull private String request; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + @jakarta.annotation.Nullable + private String shareID; + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) @jakarta.annotation.Nullable @@ -108,6 +131,90 @@ public void setAdminAccess(@jakarta.annotation.Nullable Boolean adminAccess) { } + public V1beta2DeviceRequestAllocationResult bindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + return this; + } + + public V1beta2DeviceRequestAllocationResult addBindingConditionsItem(String bindingConditionsItem) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList<>(); + } + this.bindingConditions.add(bindingConditionsItem); + return this; + } + + /** + * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingConditions() { + return bindingConditions; + } + + public void setBindingConditions(@jakarta.annotation.Nullable List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1beta2DeviceRequestAllocationResult bindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + return this; + } + + public V1beta2DeviceRequestAllocationResult addBindingFailureConditionsItem(String bindingFailureConditionsItem) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList<>(); + } + this.bindingFailureConditions.add(bindingFailureConditionsItem); + return this; + } + + /** + * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * @return bindingFailureConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + public List getBindingFailureConditions() { + return bindingFailureConditions; + } + + public void setBindingFailureConditions(@jakarta.annotation.Nullable List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1beta2DeviceRequestAllocationResult consumedCapacity(@jakarta.annotation.Nullable Map consumedCapacity) { + this.consumedCapacity = consumedCapacity; + return this; + } + + public V1beta2DeviceRequestAllocationResult putConsumedCapacityItem(String key, Quantity consumedCapacityItem) { + if (this.consumedCapacity == null) { + this.consumedCapacity = new HashMap<>(); + } + this.consumedCapacity.put(key, consumedCapacityItem); + return this; + } + + /** + * 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. + * @return consumedCapacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public Map getConsumedCapacity() { + return consumedCapacity; + } + + public void setConsumedCapacity(@jakarta.annotation.Nullable Map consumedCapacity) { + this.consumedCapacity = consumedCapacity; + } + + public V1beta2DeviceRequestAllocationResult device(@jakarta.annotation.Nonnull String device) { this.device = device; return this; @@ -188,6 +295,26 @@ public void setRequest(@jakarta.annotation.Nonnull String request) { } + public V1beta2DeviceRequestAllocationResult shareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + return this; + } + + /** + * 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. + * @return shareID + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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.") + public String getShareID() { + return shareID; + } + + public void setShareID(@jakarta.annotation.Nullable String shareID) { + this.shareID = shareID; + } + + public V1beta2DeviceRequestAllocationResult tolerations(@jakarta.annotation.Nullable List tolerations) { this.tolerations = tolerations; return this; @@ -227,16 +354,20 @@ public boolean equals(Object o) { } V1beta2DeviceRequestAllocationResult v1beta2DeviceRequestAllocationResult = (V1beta2DeviceRequestAllocationResult) o; return Objects.equals(this.adminAccess, v1beta2DeviceRequestAllocationResult.adminAccess) && + Objects.equals(this.bindingConditions, v1beta2DeviceRequestAllocationResult.bindingConditions) && + Objects.equals(this.bindingFailureConditions, v1beta2DeviceRequestAllocationResult.bindingFailureConditions) && + Objects.equals(this.consumedCapacity, v1beta2DeviceRequestAllocationResult.consumedCapacity) && Objects.equals(this.device, v1beta2DeviceRequestAllocationResult.device) && Objects.equals(this.driver, v1beta2DeviceRequestAllocationResult.driver) && Objects.equals(this.pool, v1beta2DeviceRequestAllocationResult.pool) && Objects.equals(this.request, v1beta2DeviceRequestAllocationResult.request) && + Objects.equals(this.shareID, v1beta2DeviceRequestAllocationResult.shareID) && Objects.equals(this.tolerations, v1beta2DeviceRequestAllocationResult.tolerations); } @Override public int hashCode() { - return Objects.hash(adminAccess, device, driver, pool, request, tolerations); + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); } @Override @@ -244,10 +375,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeviceRequestAllocationResult {\n"); sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).append("\n"); + sb.append(" bindingConditions: ").append(toIndentedString(bindingConditions)).append("\n"); + sb.append(" bindingFailureConditions: ").append(toIndentedString(bindingFailureConditions)).append("\n"); + sb.append(" consumedCapacity: ").append(toIndentedString(consumedCapacity)).append("\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(" request: ").append(toIndentedString(request)).append("\n"); + sb.append(" shareID: ").append(toIndentedString(shareID)).append("\n"); sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append("}"); return sb.toString(); @@ -272,10 +407,14 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("adminAccess"); + openapiFields.add("bindingConditions"); + openapiFields.add("bindingFailureConditions"); + openapiFields.add("consumedCapacity"); openapiFields.add("device"); openapiFields.add("driver"); openapiFields.add("pool"); openapiFields.add("request"); + openapiFields.add("shareID"); openapiFields.add("tolerations"); // a set of required properties/fields (JSON key names) @@ -314,6 +453,14 @@ 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("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + } if (!jsonObj.get("device").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); } @@ -326,6 +473,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("request").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); } + if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").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 d999b24a29..4c6fef218e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2e27a42aa0..78836ca016 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 @@ -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.V1beta2CapacityRequirements; import io.kubernetes.client.openapi.models.V1beta2DeviceSelector; import io.kubernetes.client.openapi.models.V1beta2DeviceToleration; import io.swagger.annotations.ApiModel; @@ -54,13 +55,18 @@ * 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @jakarta.annotation.Nullable private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable + private V1beta2CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @jakarta.annotation.Nullable @@ -109,6 +115,26 @@ public void setAllocationMode(@jakarta.annotation.Nullable String allocationMode } + public V1beta2DeviceSubRequest capacity(@jakarta.annotation.Nullable V1beta2CapacityRequirements capacity) { + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2CapacityRequirements getCapacity() { + return capacity; + } + + public void setCapacity(@jakarta.annotation.Nullable V1beta2CapacityRequirements capacity) { + this.capacity = capacity; + } + + public V1beta2DeviceSubRequest count(@jakarta.annotation.Nullable Long count) { this.count = count; return this; @@ -236,6 +262,7 @@ public boolean equals(Object o) { } V1beta2DeviceSubRequest v1beta2DeviceSubRequest = (V1beta2DeviceSubRequest) o; return Objects.equals(this.allocationMode, v1beta2DeviceSubRequest.allocationMode) && + Objects.equals(this.capacity, v1beta2DeviceSubRequest.capacity) && Objects.equals(this.count, v1beta2DeviceSubRequest.count) && Objects.equals(this.deviceClassName, v1beta2DeviceSubRequest.deviceClassName) && Objects.equals(this.name, v1beta2DeviceSubRequest.name) && @@ -245,7 +272,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allocationMode, count, deviceClassName, name, selectors, tolerations); + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); } @Override @@ -253,6 +280,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeviceSubRequest {\n"); 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(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -281,6 +309,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("allocationMode"); + openapiFields.add("capacity"); openapiFields.add("count"); openapiFields.add("deviceClassName"); openapiFields.add("name"); @@ -324,6 +353,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("allocationMode") != null && !jsonObj.get("allocationMode").isJsonNull()) && !jsonObj.get("allocationMode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } + // validate the optional field `capacity` + if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { + V1beta2CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); + } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } 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 5ff9ab7e33..a16545a047 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1beta2DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java index 815a8edb7d..54e5d21b9b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d1d620d1ed..bc55e661a4 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 @@ -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.V1beta2CapacityRequirements; import io.kubernetes.client.openapi.models.V1beta2DeviceSelector; import io.kubernetes.client.openapi.models.V1beta2DeviceToleration; import io.swagger.annotations.ApiModel; @@ -54,7 +55,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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2ExactDeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -66,6 +67,11 @@ public class V1beta2ExactDeviceRequest { @jakarta.annotation.Nullable private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + @jakarta.annotation.Nullable + private V1beta2CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @jakarta.annotation.Nullable @@ -129,6 +135,26 @@ public void setAllocationMode(@jakarta.annotation.Nullable String allocationMode } + public V1beta2ExactDeviceRequest capacity(@jakarta.annotation.Nullable V1beta2CapacityRequirements capacity) { + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2CapacityRequirements getCapacity() { + return capacity; + } + + public void setCapacity(@jakarta.annotation.Nullable V1beta2CapacityRequirements capacity) { + this.capacity = capacity; + } + + public V1beta2ExactDeviceRequest count(@jakarta.annotation.Nullable Long count) { this.count = count; return this; @@ -237,6 +263,7 @@ public boolean equals(Object o) { V1beta2ExactDeviceRequest v1beta2ExactDeviceRequest = (V1beta2ExactDeviceRequest) o; return Objects.equals(this.adminAccess, v1beta2ExactDeviceRequest.adminAccess) && Objects.equals(this.allocationMode, v1beta2ExactDeviceRequest.allocationMode) && + Objects.equals(this.capacity, v1beta2ExactDeviceRequest.capacity) && Objects.equals(this.count, v1beta2ExactDeviceRequest.count) && Objects.equals(this.deviceClassName, v1beta2ExactDeviceRequest.deviceClassName) && Objects.equals(this.selectors, v1beta2ExactDeviceRequest.selectors) && @@ -245,7 +272,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(adminAccess, allocationMode, count, deviceClassName, selectors, tolerations); + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); } @Override @@ -254,6 +281,7 @@ public String toString() { sb.append("class V1beta2ExactDeviceRequest {\n"); sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).append("\n"); 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(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); @@ -282,6 +310,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("adminAccess"); openapiFields.add("allocationMode"); + openapiFields.add("capacity"); openapiFields.add("count"); openapiFields.add("deviceClassName"); openapiFields.add("selectors"); @@ -323,6 +352,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("allocationMode") != null && !jsonObj.get("allocationMode").isJsonNull()) && !jsonObj.get("allocationMode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } + // validate the optional field `capacity` + if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { + V1beta2CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); + } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } 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 8e83e63073..b3b2bcb395 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/V1beta2OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java index 9001dba1b2..226182b9f7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 5c95f6d6c6..cff7730461 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2ResourceClaim 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/V1beta2ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java index cba1398f44..b5822b8ef1 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 8ed5b6e55a..d07df78113 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2f8ec6ad93..34b09c4c23 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 4856aeb0a1..f6b16ec28e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ed4d733f46..f0f7de19a4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2ResourceClaimTemplate 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/V1beta2ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java index 78882ed92f..d0cbb29ab7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 34625ef45d..c9c77d1cce 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) 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 998d8232b3..910ab25316 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) 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 125056b0c0..7b0e7047c2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 843f3b40b7..629fac25c8 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 1baa37564c..6ffa1a46da 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V1beta2ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) 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 c421a5e1a0..1ee7bd7fab 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c8b2f61f62..d4c087f63b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 29d045d24f..208821adf2 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 f17399ebc7..e42cc83b74 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 371ede68a3..2379ed42a6 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 4b2d01806d..bd08fefb94 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 f8e9e77f25..5083228db4 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 @@ -54,7 +54,7 @@ * HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.) */ @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 enabling the alpha HPAConfigurableTolerance feature gate.)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 fb51a188b6..d13e46ad00 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 ec3f928229..a768373048 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 eea0415e8c..22f1ddd92b 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V2HorizontalPodAutoscalerCondition { 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/V2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java index ef53df6a19..300c53b4c0 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 8b810a15b6..3cb28fbe83 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 d74d54c1a3..c2d815d6ef 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c46bfd3f72..00c5d8b174 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b840763eb7..c1b2b6188e 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 833815842e..6afe2a8d4f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b5c615c75e..a4a0a16ab4 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a69d844d29..af2a1a43f7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") public class V2MetricValueStatus { 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/V2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java index 09bc77cc7c..272d7d074f 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 c376bf5e1a..231dc6cab7 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 b257ed790e..ad4e5d2519 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 2ef5148d66..5bdd8253ea 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 0eddea35c4..a76b09d3ad 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 af497bb65b..7f35c22955 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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/VersionInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java index 24ad3d3d2b..9a7a86a343 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 = "2025-05-20T20:47:13.890592Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.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 a0314c9715..1a3e0df80d 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -1299,40 +1299,24 @@ ], "type": "object" }, - "v1beta1.AuditAnnotation": { - "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "v1beta1.ApplyConfiguration": { + "description": "ApplyConfiguration defines the desired configuration values of an object.", "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.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf 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.\n\nRequired.", - "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.\n\nIf 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.\n\nRequired.", + "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" } }, - "required": [ - "key", - "valueExpression" - ], "type": "object" }, - "v1beta1.ExpressionWarning": { - "description": "ExpressionWarning is a warning information that targets a specific expression.", + "v1beta1.JSONPatch": { + "description": "JSONPatch defines a JSON Patch.", "properties": { - "fieldRef": { - "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", - "type": "string" - }, - "warning": { - "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "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" } }, - "required": [ - "fieldRef", - "warning" - ], "type": "object" }, "v1beta1.MatchCondition": { @@ -1388,111 +1372,8 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, - "v1beta1.NamedRuleWithOperations": { - "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", - "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.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending 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.", - "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.", - "properties": { - "name": { - "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA 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.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- 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.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "v1beta1.TypeChecking": { - "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", - "properties": { - "expressionWarnings": { - "description": "The type checking warnings for each expression.", - "items": { - "$ref": "#/definitions/v1beta1.ExpressionWarning" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "v1beta1.ValidatingAdmissionPolicy": { - "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "v1beta1.MutatingAdmissionPolicy": { + "description": "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.", "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", @@ -1507,19 +1388,15 @@ "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { - "$ref": "#/definitions/v1beta1.ValidatingAdmissionPolicySpec", - "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." - }, - "status": { - "$ref": "#/definitions/v1beta1.ValidatingAdmissionPolicyStatus", - "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the MutatingAdmissionPolicy." } }, "type": "object", "x-kubernetes-group-version-kind": [ { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", + "kind": "MutatingAdmissionPolicy", "version": "v1beta1" } ], @@ -1527,8 +1404,8 @@ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1beta1.ValidatingAdmissionPolicyBinding": { - "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor 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.\n\nThe 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.", + "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.\n\nFor 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).\n\nAdding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", "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", @@ -1543,15 +1420,15 @@ "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { - "$ref": "#/definitions/v1beta1.ValidatingAdmissionPolicyBindingSpec", - "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the MutatingAdmissionPolicyBinding." } }, "type": "object", "x-kubernetes-group-version-kind": [ { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyBinding", + "kind": "MutatingAdmissionPolicyBinding", "version": "v1beta1" } ], @@ -1559,8 +1436,8 @@ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1beta1.ValidatingAdmissionPolicyBindingList": { - "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "v1beta1.MutatingAdmissionPolicyBindingList": { + "description": "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.", "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", @@ -1569,7 +1446,7 @@ "items": { "description": "List of PolicyBinding.", "items": { - "$ref": "#/definitions/v1beta1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" }, "type": "array" }, @@ -1589,7 +1466,7 @@ "x-kubernetes-group-version-kind": [ { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyBindingList", + "kind": "MutatingAdmissionPolicyBindingList", "version": "v1beta1" } ], @@ -1597,34 +1474,26 @@ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1beta1.ValidatingAdmissionPolicyBindingSpec": { - "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "v1beta1.MutatingAdmissionPolicyBindingSpec": { + "description": "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.", "properties": { "matchResources": { "$ref": "#/definitions/v1beta1.MatchResources", - "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + "description": "matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT." }, "paramRef": { "$ref": "#/definitions/v1beta1.ParamRef", - "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." }, "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": "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" - }, - "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.\n\nFailures 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.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"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.\n\n\"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\\\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"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.\n\nRequired.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" } }, "type": "object" }, - "v1beta1.ValidatingAdmissionPolicyList": { - "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "v1beta1.MutatingAdmissionPolicyList": { + "description": "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.", "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", @@ -1633,7 +1502,7 @@ "items": { "description": "List of ValidatingAdmissionPolicy.", "items": { - "$ref": "#/definitions/v1beta1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" }, "type": "array" }, @@ -1653,7 +1522,7 @@ "x-kubernetes-group-version-kind": [ { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyList", + "kind": "MutatingAdmissionPolicyList", "version": "v1beta1" } ], @@ -1661,23 +1530,15 @@ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1beta1.ValidatingAdmissionPolicySpec": { - "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "v1beta1.MutatingAdmissionPolicySpec": { + "description": "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.", "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": "#/definitions/v1beta1.AuditAnnotation" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, "failurePolicy": { - "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA 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.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "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.\n\nA policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nAllowed 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.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "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.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", "items": { "$ref": "#/definitions/v1beta1.MatchCondition" }, @@ -1691,86 +1552,144 @@ }, "matchConstraints": { "$ref": "#/definitions/v1beta1.MatchResources", - "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." - }, - "paramKind": { - "$ref": "#/definitions/v1beta1.ParamKind", - "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + "description": "matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required." }, - "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.", + "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": "#/definitions/v1beta1.Validation" + "$ref": "#/definitions/v1beta1.Mutation" }, "type": "array", "x-kubernetes-list-type": "atomic" }, + "paramKind": { + "$ref": "#/definitions/v1beta1.ParamKind", + "description": "paramKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null." + }, + "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\".\n\nNever: These mutations will not be called more than once per binding in a single admission evaluation.\n\nIfNeeded: 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.\n\nThe 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.", + "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.\n\nThe 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": "#/definitions/v1beta1.Variable" }, "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" + "x-kubernetes-list-type": "atomic" } }, "type": "object" }, - "v1beta1.ValidatingAdmissionPolicyStatus": { - "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "v1beta1.Mutation": { + "description": "Mutation specifies the CEL expression which is used to apply the Mutation.", "properties": { - "conditions": { - "description": "The conditions represent the latest available observations of a policy's current state.", + "applyConfiguration": { + "$ref": "#/definitions/v1beta1.ApplyConfiguration", + "description": "applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration." + }, + "jsonPatch": { + "$ref": "#/definitions/v1beta1.JSONPatch", + "description": "jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch." + }, + "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.", + "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": "#/definitions/v1.Condition" + "type": "string" }, "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" + "x-kubernetes-list-type": "atomic" }, - "observedGeneration": { - "description": "The generation observed by the controller.", - "format": "int64", - "type": "integer" + "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" }, - "typeChecking": { - "$ref": "#/definitions/v1beta1.TypeChecking", - "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + "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.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending 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" + "type": "object", + "x-kubernetes-map-type": "atomic" }, - "v1beta1.Validation": { - "description": "Validation specifies the CEL expression which is used to apply the validation.", + "v1beta1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", "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.", + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", "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}\".", + "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.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA 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" }, - "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)+\")\"", + "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.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- 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" }, - "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.", + "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.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", "type": "string" + }, + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." } }, - "required": [ - "expression" - ], - "type": "object" + "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.", @@ -2687,7 +2606,7 @@ "properties": { "maxSurge": { "$ref": "#/definitions/intstr.IntOrString", - "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." + "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." }, "maxUnavailable": { "$ref": "#/definitions/intstr.IntOrString", @@ -3377,7 +3296,7 @@ "properties": { "fieldSelector": { "$ref": "#/definitions/v1.FieldSelectorAttributes", - "description": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + "description": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it." }, "group": { "description": "Group is the API Group of the Resource. \"*\" means all.", @@ -3385,7 +3304,7 @@ }, "labelSelector": { "$ref": "#/definitions/v1.LabelSelectorAttributes", - "description": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + "description": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it." }, "name": { "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", @@ -4791,7 +4710,7 @@ "type": "integer" }, "backoffLimit": { - "description": "Specifies the number of retries before marking this job failed. Defaults to 6", + "description": "Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647.", "format": "int32", "type": "integer" }, @@ -4832,7 +4751,7 @@ "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure." }, "podReplacementPolicy": { - "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. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.", + "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" }, "selector": { @@ -5030,7 +4949,7 @@ "description": "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.", "properties": { "rules": { - "description": "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", + "description": "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", "items": { "$ref": "#/definitions/v1.SuccessPolicyRule" }, @@ -5363,6 +5282,181 @@ ], "type": "object" }, + "v1alpha1.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/v1alpha1.PodCertificateRequestSpec", + "description": "spec contains the details about the certificate being requested." + }, + "status": { + "$ref": "#/definitions/v1alpha1.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": "v1alpha1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1alpha1.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/v1alpha1.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": "v1alpha1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1alpha1.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" + }, + "pkixPublicKey": { + "description": "pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to.\n\nThe 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" + }, + "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" + }, + "proofOfPossession": { + "description": "proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey.\n\nIt is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`.\n\nkube-apiserver validates the proof of possession during creation of the PodCertificateRequest.\n\nIf the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options).\n\nIf the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1)\n\nIf the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign).", + "format": "byte", + "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" + } + }, + "required": [ + "signerName", + "podName", + "podUID", + "serviceAccountName", + "serviceAccountUID", + "nodeName", + "nodeUID", + "pkixPublicKey", + "proofOfPossession" + ], + "type": "object" + }, + "v1alpha1.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.", "properties": { @@ -6589,7 +6683,7 @@ "x-kubernetes-patch-strategy": "merge" }, "envFrom": { - "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "description": "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", "items": { "$ref": "#/definitions/v1.EnvFromSource" }, @@ -6647,9 +6741,17 @@ "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" }, "restartPolicy": { - "description": "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", + "description": "RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", "type": "string" }, + "restartPolicyRules": { + "description": "Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy.", + "items": { + "$ref": "#/definitions/v1.ContainerRestartRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "securityContext": { "$ref": "#/definitions/v1.SecurityContext", "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" @@ -6714,6 +6816,29 @@ ], "type": "object" }, + "v1.ContainerExtendedResourceRequest": { + "description": "ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.", + "properties": { + "containerName": { + "description": "The name of the container requesting resources.", + "type": "string" + }, + "requestName": { + "description": "The name of the request in the special ResourceClaim which corresponds to the extended resource.", + "type": "string" + }, + "resourceName": { + "description": "The name of the extended resource in that container which gets backed by DRA.", + "type": "string" + } + }, + "required": [ + "containerName", + "resourceName", + "requestName" + ], + "type": "object" + }, "v1.ContainerImage": { "description": "Describe a container image", "properties": { @@ -6782,6 +6907,45 @@ ], "type": "object" }, + "v1.ContainerRestartRule": { + "description": "ContainerRestartRule describes how a container exit is handled.", + "properties": { + "action": { + "description": "Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.", + "type": "string" + }, + "exitCodes": { + "$ref": "#/definitions/v1.ContainerRestartRuleOnExitCodes", + "description": "Represents the exit codes to check on container exits." + } + }, + "required": [ + "action" + ], + "type": "object" + }, + "v1.ContainerRestartRuleOnExitCodes": { + "description": "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.", + "properties": { + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the\n set of specified values.\n- NotIn: the requirement is satisfied if the container exit code is\n not in the set of specified values.", + "type": "string" + }, + "values": { + "description": "Specifies the set of values to check for container exit codes. At most 255 elements are allowed.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "operator" + ], + "type": "object" + }, "v1.ContainerState": { "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.", "properties": { @@ -7223,7 +7387,7 @@ "description": "The ConfigMap to select from" }, "prefix": { - "description": "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.", + "description": "Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='.", "type": "string" }, "secretRef": { @@ -7237,7 +7401,7 @@ "description": "EnvVar represents an environment variable present in a Container.", "properties": { "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "description": "Name of the environment variable. May consist of any printable ASCII characters except '='.", "type": "string" }, "value": { @@ -7265,6 +7429,10 @@ "$ref": "#/definitions/v1.ObjectFieldSelector", "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." }, + "fileKeyRef": { + "$ref": "#/definitions/v1.FileKeySelector", + "description": "FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled." + }, "resourceFieldRef": { "$ref": "#/definitions/v1.ResourceFieldSelector", "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." @@ -7309,7 +7477,7 @@ "x-kubernetes-patch-strategy": "merge" }, "envFrom": { - "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "description": "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", "items": { "$ref": "#/definitions/v1.EnvFromSource" }, @@ -7367,9 +7535,17 @@ "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." }, "restartPolicy": { - "description": "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + "description": "Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.", "type": "string" }, + "restartPolicyRules": { + "description": "Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers.", + "items": { + "$ref": "#/definitions/v1.ContainerRestartRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "securityContext": { "$ref": "#/definitions/v1.SecurityContext", "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." @@ -7657,6 +7833,34 @@ }, "type": "object" }, + "v1.FileKeySelector": { + "description": "FileKeySelector selects a key of the env file.", + "properties": { + "key": { + "description": "The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.", + "type": "string" + }, + "optional": { + "description": "Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers.\n\nIf optional is set to false and the specified key does not exist, an error will be returned during Pod creation.", + "type": "boolean" + }, + "path": { + "description": "The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.", + "type": "string" + }, + "volumeName": { + "description": "The name of the volume mount containing the env file.", + "type": "string" + } + }, + "required": [ + "volumeName", + "path", + "key" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, "v1.FlexPersistentVolumeSource": { "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", "properties": { @@ -7830,7 +8034,7 @@ "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", "properties": { "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "description": "endpoints is the endpoint name that details Glusterfs topology.", "type": "string" }, "path": { @@ -9298,7 +9502,7 @@ "type": "string" }, "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", + "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/", "type": "string" }, "volumeMode": { @@ -9359,12 +9563,12 @@ "x-kubernetes-patch-strategy": "merge" }, "currentVolumeAttributesClassName": { - "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "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" }, "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. This is a beta field and requires enabling VolumeAttributesClass feature (off by default)." + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted." }, "phase": { "description": "phase represents the current phase of PersistentVolumeClaim.", @@ -9573,7 +9777,7 @@ "description": "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md" }, "volumeAttributesClassName": { - "description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.", "type": "string" }, "volumeMode": { @@ -9734,7 +9938,7 @@ "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", "properties": { "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", "items": { "$ref": "#/definitions/v1.WeightedPodAffinityTerm" }, @@ -9752,6 +9956,41 @@ }, "type": "object" }, + "v1.PodCertificateProjection": { + "description": "PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.", + "properties": { + "certificateChainPath": { + "description": "Write the certificate chain at this path in the projected volume.\n\nMost applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.", + "type": "string" + }, + "credentialBundlePath": { + "description": "Write the credential bundle at this path in the projected volume.\n\nThe credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key.\n\nThe remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates).\n\nUsing credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key.", + "type": "string" + }, + "keyPath": { + "description": "Write the key at this path in the projected volume.\n\nMost applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.", + "type": "string" + }, + "keyType": { + "description": "The type of keypair Kubelet will generate for the pod.\n\nValid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\".", + "type": "string" + }, + "maxExpirationSeconds": { + "description": "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nKubelet copies this value verbatim into the PodCertificateRequests it generates for this projection.\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" + }, + "signerName": { + "description": "Kubelet's generated CSRs will be addressed to this signer.", + "type": "string" + } + }, + "required": [ + "signerName", + "keyType" + ], + "type": "object" + }, "v1.PodCondition": { "description": "PodCondition contains details for the current condition of this pod.", "properties": { @@ -9837,6 +10076,28 @@ }, "type": "object" }, + "v1.PodExtendedResourceClaimStatus": { + "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.", + "properties": { + "requestMappings": { + "description": "RequestMappings identifies the mapping of to device request in the generated ResourceClaim.", + "items": { + "$ref": "#/definitions/v1.ContainerExtendedResourceRequest" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod.", + "type": "string" + } + }, + "required": [ + "requestMappings", + "resourceClaimName" + ], + "type": "object" + }, "v1.PodIP": { "description": "PodIP represents a single IP address allocated to the pod.", "properties": { @@ -10107,7 +10368,7 @@ "type": "boolean" }, "hostNetwork": { - "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + "description": "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.", "type": "boolean" }, "hostPID": { @@ -10122,6 +10383,10 @@ "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", "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.", + "type": "string" + }, "imagePullSecrets": { "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", "items": { @@ -10162,7 +10427,7 @@ }, "os": { "$ref": "#/definitions/v1.PodOS", - "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" + "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.resources - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" }, "overhead": { "additionalProperties": { @@ -10207,7 +10472,7 @@ }, "resources": { "$ref": "#/definitions/v1.ResourceRequirements", - "description": "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate." + "description": "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\", \"memory\" and \"hugepages-\" resource names only. ResourceClaims are not supported.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate." }, "restartPolicy": { "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", @@ -10336,6 +10601,10 @@ "type": "array", "x-kubernetes-list-type": "atomic" }, + "extendedResourceClaimStatus": { + "$ref": "#/definitions/v1.PodExtendedResourceClaimStatus", + "description": "Status of extended resource claim backed by DRA." + }, "hostIP": { "description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", "type": "string" @@ -10949,7 +11218,7 @@ ], "type": "object" }, - "v1.ResourceClaim": { + "core.v1.ResourceClaim": { "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", "properties": { "name": { @@ -11128,9 +11397,9 @@ "description": "ResourceRequirements describes the compute resource requirements.", "properties": { "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis field depends on the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", "items": { - "$ref": "#/definitions/v1.ResourceClaim" + "$ref": "#/definitions/core.v1.ResourceClaim" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -12099,7 +12368,7 @@ "type": "string" }, "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", + "description": "TimeAdded represents the time at which the taint was added.", "format": "date-time", "type": "string" }, @@ -12341,7 +12610,7 @@ }, "glusterfs": { "$ref": "#/definitions/v1.GlusterfsVolumeSource", - "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported." }, "hostPath": { "$ref": "#/definitions/v1.HostPathVolumeSource", @@ -12353,7 +12622,7 @@ }, "iscsi": { "$ref": "#/definitions/v1.ISCSIVolumeSource", - "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md" + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi" }, "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", @@ -12385,7 +12654,7 @@ }, "rbd": { "$ref": "#/definitions/v1.RBDVolumeSource", - "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md" + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported." }, "scaleIO": { "$ref": "#/definitions/v1.ScaleIOVolumeSource", @@ -12516,6 +12785,10 @@ "$ref": "#/definitions/v1.DownwardAPIProjection", "description": "downwardAPI information about the downwardAPI data to project" }, + "podCertificate": { + "$ref": "#/definitions/v1.PodCertificateProjection", + "description": "Projects an auto-rotating credential bundle (private key and certificate chain) that the pod can use either as a TLS client or server.\n\nKubelet generates a private key and uses it to send a PodCertificateRequest to the named signer. Once the signer approves the request and issues a certificate chain, Kubelet writes the key and certificate chain to the pod filesystem. The pod does not start until certificates have been issued for each podCertificate projected volume source in its spec.\n\nKubelet will begin trying to rotate the certificate at the time indicated by the signer using the PodCertificateRequest.Status.BeginRefreshAt timestamp.\n\nKubelet can write a single file, indicated by the credentialBundlePath field, or separate files, indicated by the keyPath and certificateChainPath fields.\n\nThe credential bundle is a single file in PEM format. The first PEM entry is the private key (in PKCS#8 format), and the remaining PEM entries are the certificate chain issued by the signer (typically, signers will return their certificate chain in leaf-to-root order).\n\nPrefer using the credential bundle format, since your application code can read it atomically. If you use keyPath and certificateChainPath, your application must make two separate file reads. If these coincide with a certificate rotation, it is possible that the private key and leaf certificate you read may not correspond to each other. Your application will need to check for this condition, and re-read until they are consistent.\n\nThe named signer controls chooses the format of the certificate it issues; consult the signer implementation's documentation to learn how to use the certificates it issues." + }, "secret": { "$ref": "#/definitions/v1.SecretProjection", "description": "secret information about the secret data to project" @@ -14252,7 +14525,7 @@ }, "podSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace." + "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", @@ -14263,9 +14536,6 @@ "x-kubernetes-list-type": "atomic" } }, - "required": [ - "podSelector" - ], "type": "object" }, "v1.ParentReference": { @@ -15365,8 +15635,8 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, - "v1alpha3.AllocatedDeviceStatus": { - "description": "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.", + "v1.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": { "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.\n\nMust not contain more than 8 entries.", @@ -15392,12 +15662,16 @@ "type": "string" }, "networkData": { - "$ref": "#/definitions/v1alpha3.NetworkDeviceData", + "$ref": "#/definitions/v1.NetworkDeviceData", "description": "NetworkData contains network-related information specific to the device." }, "pool": { "description": "This name together with the driver name and the device name field identify which device was allocated (`//`).\n\nMust 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": [ @@ -15407,11 +15681,16 @@ ], "type": "object" }, - "v1alpha3.AllocationResult": { + "v1.AllocationResult": { "description": "AllocationResult contains attributes of an allocated resource.", "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.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.", + "format": "date-time", + "type": "string" + }, "devices": { - "$ref": "#/definitions/v1alpha3.DeviceAllocationResult", + "$ref": "#/definitions/v1.DeviceAllocationResult", "description": "Devices is the result of allocating devices." }, "nodeSelector": { @@ -15421,47 +15700,34 @@ }, "type": "object" }, - "v1alpha3.BasicDevice": { - "description": "BasicDevice defines one device instance.", + "v1.CELDeviceSelector": { + "description": "CELDeviceSelector contains a CEL expression for selecting a device.", "properties": { - "allNodes": { - "description": "AllNodes indicates that all nodes have access to the device.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.", - "type": "boolean" - }, - "attributes": { - "additionalProperties": { - "$ref": "#/definitions/v1alpha3.DeviceAttribute" - }, - "description": "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", - "type": "object" - }, - "capacity": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe 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.\n\nThere can only be a single entry per counterSet.\n\nThe total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).", - "items": { - "$ref": "#/definitions/v1alpha3.DeviceCounterConsumption" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "nodeName": { - "description": "NodeName identifies the node where the device is available.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.", + "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\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" + } + }, + "required": [ + "expression" + ], + "type": "object" + }, + "v1.CapacityRequestPolicy": { + "description": "CapacityRequestPolicy defines how requests consume device capacity.\n\nMust not set more than one ValidRequestValues.", + "properties": { + "default": { + "$ref": "#/definitions/resource.Quantity", + "description": "Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity." }, - "nodeSelector": { - "$ref": "#/definitions/v1.NodeSelector", - "description": "NodeSelector defines the nodes where the device is available.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set." + "validRange": { + "$ref": "#/definitions/v1.CapacityRequestPolicyRange", + "description": "ValidRange defines an acceptable quantity value range in consuming requests.\n\nIf this field is set, Default must be defined and it must fall within the defined ValidRange.\n\nIf the requested amount does not fall within the defined range, the request violates the policy, and this device cannot be allocated.\n\nIf the request doesn't contain this capacity entry, Default value is used." }, - "taints": { - "description": "If specified, these are the driver-defined taints.\n\nThe maximum number of taints is 4.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "validValues": { + "description": "ValidValues defines a set of acceptable quantity values in consuming requests.\n\nMust not contain more than 10 entries. Must be sorted in ascending order.\n\nIf this field is set, Default must be defined and it must be included in ValidValues list.\n\nIf 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) \u2208 validValues), where requestedValue \u2264 max(validValues).\n\nIf the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceTaint" + "$ref": "#/definitions/resource.Quantity" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15469,20 +15735,41 @@ }, "type": "object" }, - "v1alpha3.CELDeviceSelector": { - "description": "CELDeviceSelector contains a CEL expression for selecting a device.", + "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.", "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\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\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" + "max": { + "$ref": "#/definitions/resource.Quantity", + "description": "Max defines the upper limit for capacity that can be requested.\n\nMax must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum." + }, + "min": { + "$ref": "#/definitions/resource.Quantity", + "description": "Min specifies the minimum capacity allowed for a consumption request.\n\nMin must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum." + }, + "step": { + "$ref": "#/definitions/resource.Quantity", + "description": "Step defines the step size between valid capacity amounts within the range.\n\nMax (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value." } }, "required": [ - "expression" + "min" ], "type": "object" }, - "v1alpha3.Counter": { + "v1.CapacityRequirements": { + "description": "CapacityRequirements defines the capacity requirements for a specific device request.", + "properties": { + "requests": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "Requests represent individual device resource requests for distinct resources, all of which must be provided by the device.\n\nThis 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.\n\nWhen 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\u2014because it exceeds what the requestPolicy allows\u2014 the device is considered ineligible for allocation.\n\nFor any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity\n (i.e., the whole device is claimed).\n- If a requestPolicy is set, the default consumed capacity is determined according to that policy.\n\nIf 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\u2019s status.devices[*].consumedCapacity field.", + "type": "object" + } + }, + "type": "object" + }, + "v1.Counter": { "description": "Counter describes a quantity associated with a device.", "properties": { "value": { @@ -15495,18 +15782,18 @@ ], "type": "object" }, - "v1alpha3.CounterSet": { + "v1.CounterSet": { "description": "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.\n\nThe counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.", "properties": { "counters": { "additionalProperties": { - "$ref": "#/definitions/v1alpha3.Counter" + "$ref": "#/definitions/v1.Counter" }, - "description": "Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label.\n\nTo ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix.\n\nThe maximum number of counters is 32.", + "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.\n\nThe maximum number of counters in all sets is 32.", "type": "object" }, "name": { - "description": "CounterSet is the name of the set from which the counters defined will be consumed.", + "description": "Name defines the name of the counter set. It must be a DNS label.", "type": "string" } }, @@ -15516,16 +15803,78 @@ ], "type": "object" }, - "v1alpha3.Device": { + "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.", "properties": { - "basic": { - "$ref": "#/definitions/v1alpha3.BasicDevice", - "description": "Basic defines one device instance." + "allNodes": { + "description": "AllNodes indicates that all nodes have access to the device.\n\nMust 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.\n\nIf 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": "#/definitions/v1.DeviceAttribute" + }, + "description": "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe 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.\n\nThe maximum number of binding conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha 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.\n\nThe maximum number of binding failure conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha 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.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "type": "boolean" + }, + "capacity": { + "additionalProperties": { + "$ref": "#/definitions/v1.DeviceCapacity" + }, + "description": "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe 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.\n\nThere can only be a single entry per counterSet.\n\nThe total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).", + "items": { + "$ref": "#/definitions/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" + }, + "nodeName": { + "description": "NodeName identifies the node where the device is available.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.", + "type": "string" + }, + "nodeSelector": { + "$ref": "#/definitions/v1.NodeSelector", + "description": "NodeSelector defines the nodes where the device is available.\n\nMust use exactly one term.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set." + }, + "taints": { + "description": "If specified, these are the driver-defined taints.\n\nThe maximum number of taints is 4.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "items": { + "$ref": "#/definitions/v1.DeviceTaint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "required": [ @@ -15533,11 +15882,11 @@ ], "type": "object" }, - "v1alpha3.DeviceAllocationConfiguration": { + "v1.DeviceAllocationConfiguration": { "description": "DeviceAllocationConfiguration gets embedded in an AllocationResult.", "properties": { "opaque": { - "$ref": "#/definitions/v1alpha3.OpaqueDeviceConfiguration", + "$ref": "#/definitions/v1.OpaqueDeviceConfiguration", "description": "Opaque provides driver-specific configuration parameters." }, "requests": { @@ -15558,13 +15907,13 @@ ], "type": "object" }, - "v1alpha3.DeviceAllocationResult": { + "v1.DeviceAllocationResult": { "description": "DeviceAllocationResult is the result of allocating devices.", "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.\n\nThis 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": "#/definitions/v1alpha3.DeviceAllocationConfiguration" + "$ref": "#/definitions/v1.DeviceAllocationConfiguration" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15572,7 +15921,7 @@ "results": { "description": "Results lists all allocated devices.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceRequestAllocationResult" + "$ref": "#/definitions/v1.DeviceRequestAllocationResult" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15580,7 +15929,7 @@ }, "type": "object" }, - "v1alpha3.DeviceAttribute": { + "v1.DeviceAttribute": { "description": "DeviceAttribute must have exactly one field set.", "properties": { "bool": { @@ -15603,13 +15952,30 @@ }, "type": "object" }, - "v1alpha3.DeviceClaim": { + "v1.DeviceCapacity": { + "description": "DeviceCapacity describes a quantity associated with a device.", + "properties": { + "requestPolicy": { + "$ref": "#/definitions/v1.CapacityRequestPolicy", + "description": "RequestPolicy defines how this DeviceCapacity must be consumed when the device is allowed to be shared by multiple allocations.\n\nThe Device must have allowMultipleAllocations set to true in order to set a requestPolicy.\n\nIf unset, capacity requests are unconstrained: requests can consume any amount of capacity, as long as the total consumed across all allocations does not exceed the device's defined capacity. If request is also unset, default is the full capacity value." + }, + "value": { + "$ref": "#/definitions/resource.Quantity", + "description": "Value defines how much of a certain capacity that device has.\n\nThis field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value." + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "v1.DeviceClaim": { "description": "DeviceClaim defines how to request devices with a ResourceClaim.", "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": "#/definitions/v1alpha3.DeviceClaimConfiguration" + "$ref": "#/definitions/v1.DeviceClaimConfiguration" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15617,7 +15983,7 @@ "constraints": { "description": "These constraints must be satisfied by the set of devices that get allocated for the claim.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceConstraint" + "$ref": "#/definitions/v1.DeviceConstraint" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15625,7 +15991,7 @@ "requests": { "description": "Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceRequest" + "$ref": "#/definitions/v1.DeviceRequest" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15633,11 +15999,11 @@ }, "type": "object" }, - "v1alpha3.DeviceClaimConfiguration": { + "v1.DeviceClaimConfiguration": { "description": "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.", "properties": { "opaque": { - "$ref": "#/definitions/v1alpha3.OpaqueDeviceConfiguration", + "$ref": "#/definitions/v1.OpaqueDeviceConfiguration", "description": "Opaque provides driver-specific configuration parameters." }, "requests": { @@ -15651,7 +16017,7 @@ }, "type": "object" }, - "v1alpha3.DeviceClass": { + "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.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", "properties": { "apiVersion": { @@ -15667,7 +16033,7 @@ "description": "Standard object metadata" }, "spec": { - "$ref": "#/definitions/v1alpha3.DeviceClassSpec", + "$ref": "#/definitions/v1.DeviceClassSpec", "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." } }, @@ -15679,24 +16045,24 @@ { "group": "resource.k8s.io", "kind": "DeviceClass", - "version": "v1alpha3" + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1alpha3.DeviceClassConfiguration": { + "v1.DeviceClassConfiguration": { "description": "DeviceClassConfiguration is used in DeviceClass.", "properties": { "opaque": { - "$ref": "#/definitions/v1alpha3.OpaqueDeviceConfiguration", + "$ref": "#/definitions/v1.OpaqueDeviceConfiguration", "description": "Opaque provides driver-specific configuration parameters." } }, "type": "object" }, - "v1alpha3.DeviceClassList": { + "v1.DeviceClassList": { "description": "DeviceClassList is a collection of classes.", "properties": { "apiVersion": { @@ -15706,7 +16072,7 @@ "items": { "description": "Items is the list of resource classes.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceClass" + "$ref": "#/definitions/v1.DeviceClass" }, "type": "array" }, @@ -15727,28 +16093,32 @@ { "group": "resource.k8s.io", "kind": "DeviceClassList", - "version": "v1alpha3" + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1alpha3.DeviceClassSpec": { + "v1.DeviceClassSpec": { "description": "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.", "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.\n\nThey are passed to the driver, but are not considered while allocating the claim.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceClassConfiguration" + "$ref": "#/definitions/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.\n\nThis is an alpha field.", + "type": "string" + }, "selectors": { "description": "Each selector must be satisfied by a device which is claimed via this class.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceSelector" + "$ref": "#/definitions/v1.DeviceSelector" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15756,9 +16126,13 @@ }, "type": "object" }, - "v1alpha3.DeviceConstraint": { + "v1.DeviceConstraint": { "description": "DeviceConstraint must have exactly one field set besides 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.\n\nThis acts as the inverse of MatchAttribute.\n\nThis constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation.\n\nThis 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.\n\nFor 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.\n\nMust include the domain qualifier.", "type": "string" @@ -15774,18 +16148,18 @@ }, "type": "object" }, - "v1alpha3.DeviceCounterConsumption": { + "v1.DeviceCounterConsumption": { "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.", "properties": { "counterSet": { - "description": "CounterSet defines the set from which the counters defined will be consumed.", + "description": "CounterSet is the name of the set from which the counters defined will be consumed.", "type": "string" }, "counters": { "additionalProperties": { - "$ref": "#/definitions/v1alpha3.Counter" + "$ref": "#/definitions/v1.Counter" }, - "description": "Counters defines the Counter that will be consumed by the device.\n\nThe maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).", + "description": "Counters defines the counters that will be consumed by the device.\n\nThe maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).", "type": "object" } }, @@ -15795,53 +16169,24 @@ ], "type": "object" }, - "v1alpha3.DeviceRequest": { - "description": "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.", + "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": { - "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.\n\nThis field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.\n\nThis 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:\n\n- ExactCount: This request is for a specific number of devices.\n This is the default. The exact number is provided in the\n count field.\n\n- All: This request is for all of the matching devices in a pool.\n At least one device must exist on the node for the allocation to succeed.\n Allocation will fail if some devices are already allocated,\n unless adminAccess is requested.\n\nIf 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.\n\nThis field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.\n\nMore modes may get added in the future. Clients must refuse to handle requests with unknown modes.", - "type": "string" - }, - "count": { - "description": "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.\n\nThis 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.\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" + "exactly": { + "$ref": "#/definitions/v1.ExactDeviceRequest", + "description": "Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.\n\nOne of Exactly or FirstAvailable must be set." }, "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.\n\nThis field may only be set in the entries of DeviceClaim.Requests.\n\nDRA 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.", + "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.\n\nDRA 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": "#/definitions/v1alpha3.DeviceSubRequest" + "$ref": "#/definitions/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.\n\nMust be a DNS label.", + "description": "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.\n\nReferences 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.\n\nMust be a DNS label.", "type": "string" - }, - "selectors": { - "description": "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.\n\nThis field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.", - "items": { - "$ref": "#/definitions/v1alpha3.DeviceSelector" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "tolerations": { - "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn 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.\n\nThe maximum number of tolerations is 16.\n\nThis field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", - "items": { - "$ref": "#/definitions/v1alpha3.DeviceToleration" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" } }, "required": [ @@ -15849,13 +16194,36 @@ ], "type": "object" }, - "v1alpha3.DeviceRequestAllocationResult": { + "v1.DeviceRequestAllocationResult": { "description": "DeviceRequestAllocationResult contains the allocation result for one request.", "properties": { "adminAccess": { "description": "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.\n\nThis 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.\n\nThis is an alpha 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.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "consumedCapacity": { + "additionalProperties": { + "$ref": "#/definitions/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\u2019s requestPolicy if applicable (i.e., may not be less than the requested amount).\n\nThe total consumed capacity for each device must not exceed the DeviceCapacity's Value.\n\nThis 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" @@ -15872,10 +16240,14 @@ "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
/.\n\nMultiple 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.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceToleration" + "$ref": "#/definitions/v1.DeviceToleration" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15889,23 +16261,27 @@ ], "type": "object" }, - "v1alpha3.DeviceSelector": { + "v1.DeviceSelector": { "description": "DeviceSelector must have exactly one field set.", "properties": { "cel": { - "$ref": "#/definitions/v1alpha3.CELDeviceSelector", + "$ref": "#/definitions/v1.CELDeviceSelector", "description": "CEL contains a CEL expression for selecting a device." } }, "type": "object" }, - "v1alpha3.DeviceSubRequest": { - "description": "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.\n\nDeviceSubRequest 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.", + "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.\n\nDeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.", "properties": { "allocationMode": { - "description": "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:\n\n- ExactCount: This request is for a specific number of devices.\n This is the default. The exact number is provided in the\n count field.\n\n- All: This request is for all of the matching devices in a pool.\n Allocation will fail if some devices are already allocated,\n unless adminAccess is requested.\n\nIf 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.\n\nMore modes may get added in the future. Clients must refuse to handle requests with unknown modes.", + "description": "AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:\n\n- ExactCount: This request is for a specific number of devices.\n This is the default. The exact number is provided in the\n count field.\n\n- All: This subrequest is for all of the matching devices in a pool.\n Allocation will fail if some devices are already allocated,\n unless adminAccess is requested.\n\nIf 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.\n\nMore modes may get added in the future. Clients must refuse to handle requests with unknown modes.", "type": "string" }, + "capacity": { + "$ref": "#/definitions/v1.CapacityRequirements", + "description": "Capacity define resource requirements against each capacity.\n\nIf this field is unset and the device supports multiple allocations, the default value will be applied to each capacity according to requestPolicy. For the capacity that has no requestPolicy, default is the full capacity value.\n\nApplies to each device allocation. If Count > 1, the request fails if there aren't enough devices that meet the requirements. If AllocationMode is set to All, the request fails if there are devices that otherwise match the request, and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request." + }, "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", @@ -15920,9 +16296,9 @@ "type": "string" }, "selectors": { - "description": "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.", + "description": "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceSelector" + "$ref": "#/definitions/v1.DeviceSelector" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15930,7 +16306,7 @@ "tolerations": { "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn 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.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", "items": { - "$ref": "#/definitions/v1alpha3.DeviceToleration" + "$ref": "#/definitions/v1.DeviceToleration" }, "type": "array", "x-kubernetes-list-type": "atomic" @@ -15942,7 +16318,7 @@ ], "type": "object" }, - "v1alpha3.DeviceTaint": { + "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.", "properties": { "effect": { @@ -15969,154 +16345,80 @@ ], "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.", + "v1.DeviceToleration": { + "description": "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .", "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.", "type": "string" }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata" - }, - "spec": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRuleSpec", - "description": "Spec specifies the selector and one taint.\n\nChanging the spec automatically increments the metadata.generation number." - } - }, - "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.", - "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", + "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" }, - "items": { - "description": "Items is the list of DeviceTaintRules.", - "items": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" - }, - "type": "array" + "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